Remove debian packaging stuff
[platform/upstream/libijs.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 for ijs 0.35.
5 #
6 # Report bugs to <inkjet-list@linuxprinting.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='print -r --'
51   as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in #(
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order.  Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" ""        $as_nl"
93
94 # Find who we are.  Look in the path if we contain no directory separator.
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         BASH_ENV=/dev/null
221         ENV=/dev/null
222         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223         export CONFIG_SHELL
224         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 fi
226
227     if test x$as_have_required = xno; then :
228   $as_echo "$0: This script requires a shell more modern than all"
229   $as_echo "$0: the shells that I found on your system."
230   if test x${ZSH_VERSION+set} = xset ; then
231     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233   else
234     $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: inkjet-list@linuxprinting.org about your system,
236 $0: including any error possibly output before this
237 $0: message. Then install a modern shell, or manually run
238 $0: the script under such a shell if you do have one."
239   fi
240   exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258   { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267   return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275   set +e
276   as_fn_set_status $1
277   exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286   case $as_dir in #(
287   -*) as_dir=./$as_dir;;
288   esac
289   test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292       case $as_dir in #(
293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294       *) as_qdir=$as_dir;;
295       esac
296       as_dirs="'$as_qdir' $as_dirs"
297       as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299          X"$as_dir" : 'X\(//\)[^/]' \| \
300          X"$as_dir" : 'X\(//\)$' \| \
301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)[^/].*/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\).*/{
316             s//\1/
317             q
318           }
319           s/.*/./; q'`
320       test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334   eval 'as_fn_append ()
335   {
336     eval $1+=\$2
337   }'
338 else
339   as_fn_append ()
340   {
341     eval $1=\$$1\$2
342   }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351   eval 'as_fn_arith ()
352   {
353     as_val=$(( $* ))
354   }'
355 else
356   as_fn_arith ()
357   {
358     as_val=`expr "$@" || test $? -eq 1`
359   }
360 fi # as_fn_arith
361
362
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
368 as_fn_error ()
369 {
370   as_status=$1; test $as_status -eq 0 && as_status=1
371   if test "$4"; then
372     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374   fi
375   $as_echo "$as_me: error: $2" >&2
376   as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
381   as_expr=expr
382 else
383   as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387   as_basename=basename
388 else
389   as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393   as_dirname=dirname
394 else
395   as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400          X"$0" : 'X\(//\)$' \| \
401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\/\)$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\).*/{
412             s//\1/
413             q
414           }
415           s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425   as_lineno_1=$LINENO as_lineno_1a=$LINENO
426   as_lineno_2=$LINENO as_lineno_2a=$LINENO
427   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430   sed -n '
431     p
432     /[$]LINENO/=
433   ' <$as_myself |
434     sed '
435       s/[$]LINENO.*/&-/
436       t lineno
437       b
438       :lineno
439       N
440       :loop
441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442       t loop
443       s/-\n.*//
444     ' >$as_me.lineno &&
445   chmod +x "$as_me.lineno" ||
446     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448   # Don't try to exec as it changes $[0], causing all sort of problems
449   # (the dirname of $[0] is not the place where we might find the
450   # original and so on.  Autoconf is especially sensitive to this).
451   . "./$as_me.lineno"
452   # Exit status is that of the last command.
453   exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459   case `echo 'xy\c'` in
460   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461   xy)  ECHO_C='\c';;
462   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463        ECHO_T=' ';;
464   esac;;
465 *)
466   ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471   rm -f conf$$.dir/conf$$.file
472 else
473   rm -f conf$$.dir
474   mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477   if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484       as_ln_s='cp -p'
485   elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487   else
488     as_ln_s='cp -p'
489   fi
490 else
491   as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497   as_mkdir_p='mkdir -p "$as_dir"'
498 else
499   test -d ./-p && rmdir ./-p
500   as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504   as_test_x='test -x'
505 else
506   if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508   else
509     as_ls_L_option=
510   fi
511   as_test_x='
512     eval sh -c '\''
513       if test -d "$1"; then
514         test -d "$1/.";
515       else
516         case $1 in #(
517         -*)set "./$1";;
518         esac;
519         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520         ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522   '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$ECHO in
538 X*--fallback-echo)
539   # Remove one level of quotation (which was required for Make).
540   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
541   ;;
542 esac
543
544 echo=${ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546   # Discard the --no-reexec flag, and continue.
547   shift
548 elif test "X$1" = X--fallback-echo; then
549   # Avoid inline document here, it may be left over
550   :
551 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
552   # Yippee, $echo works!
553   :
554 else
555   # Restart under the correct shell.
556   exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560   # used as fallback echo
561   shift
562   cat <<EOF
563 $*
564 EOF
565   exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
571
572 if test -z "$ECHO"; then
573 if test "X${echo_test_string+set}" != Xset; then
574 # find a string as large as possible, as long as the shell can cope with it
575   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
578        echo_test_string="`eval $cmd`" &&
579        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
580     then
581       break
582     fi
583   done
584 fi
585
586 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
587    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
588    test "X$echo_testing_string" = "X$echo_test_string"; then
589   :
590 else
591   # The Solaris, AIX, and Digital Unix default echo programs unquote
592   # backslashes.  This makes it impossible to quote backslashes using
593   #   echo "$something" | sed 's/\\/\\\\/g'
594   #
595   # So, first we look for a working echo in the user's PATH.
596
597   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
598   for dir in $PATH /usr/ucb; do
599     IFS="$lt_save_ifs"
600     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
601        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
602        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
603        test "X$echo_testing_string" = "X$echo_test_string"; then
604       echo="$dir/echo"
605       break
606     fi
607   done
608   IFS="$lt_save_ifs"
609
610   if test "X$echo" = Xecho; then
611     # We didn't find a better echo, so look for alternatives.
612     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
613        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
614        test "X$echo_testing_string" = "X$echo_test_string"; then
615       # This shell has a builtin print -r that does the trick.
616       echo='print -r'
617     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
618          test "X$CONFIG_SHELL" != X/bin/ksh; then
619       # If we have ksh, try running configure again with it.
620       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
621       export ORIGINAL_CONFIG_SHELL
622       CONFIG_SHELL=/bin/ksh
623       export CONFIG_SHELL
624       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
625     else
626       # Try using printf.
627       echo='printf %s\n'
628       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
629          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
630          test "X$echo_testing_string" = "X$echo_test_string"; then
631         # Cool, printf works
632         :
633       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
634            test "X$echo_testing_string" = 'X\t' &&
635            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
636            test "X$echo_testing_string" = "X$echo_test_string"; then
637         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
638         export CONFIG_SHELL
639         SHELL="$CONFIG_SHELL"
640         export SHELL
641         echo="$CONFIG_SHELL $0 --fallback-echo"
642       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
643            test "X$echo_testing_string" = 'X\t' &&
644            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
645            test "X$echo_testing_string" = "X$echo_test_string"; then
646         echo="$CONFIG_SHELL $0 --fallback-echo"
647       else
648         # maybe with a smaller string...
649         prev=:
650
651         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
652           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
653           then
654             break
655           fi
656           prev="$cmd"
657         done
658
659         if test "$prev" != 'sed 50q "$0"'; then
660           echo_test_string=`eval $prev`
661           export echo_test_string
662           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
663         else
664           # Oops.  We lost completely, so just stick with echo.
665           echo=echo
666         fi
667       fi
668     fi
669   fi
670 fi
671 fi
672
673 # Copy echo and quote the copy suitably for passing to libtool from
674 # the Makefile, instead of quoting the original, which is used later.
675 ECHO=$echo
676 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
677    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 fi
679
680
681
682
683 tagnames=${tagnames+${tagnames},}CXX
684
685 tagnames=${tagnames+${tagnames},}F77
686
687 test -n "$DJDIR" || exec 7<&0 </dev/null
688 exec 6>&1
689
690 # Name of the host.
691 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
692 # so uname gets run too.
693 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
694
695 #
696 # Initializations.
697 #
698 ac_default_prefix=/usr/local
699 ac_clean_files=
700 ac_config_libobj_dir=.
701 LIBOBJS=
702 cross_compiling=no
703 subdirs=
704 MFLAGS=
705 MAKEFLAGS=
706
707 # Identity of this package.
708 PACKAGE_NAME='ijs'
709 PACKAGE_TARNAME='ijs'
710 PACKAGE_VERSION='0.35'
711 PACKAGE_STRING='ijs 0.35'
712 PACKAGE_BUGREPORT='inkjet-list@linuxprinting.org'
713 PACKAGE_URL=''
714
715 ac_unique_file="ijs.c"
716 # Factoring default headers for most tests.
717 ac_includes_default="\
718 #include <stdio.h>
719 #ifdef HAVE_SYS_TYPES_H
720 # include <sys/types.h>
721 #endif
722 #ifdef HAVE_SYS_STAT_H
723 # include <sys/stat.h>
724 #endif
725 #ifdef STDC_HEADERS
726 # include <stdlib.h>
727 # include <stddef.h>
728 #else
729 # ifdef HAVE_STDLIB_H
730 #  include <stdlib.h>
731 # endif
732 #endif
733 #ifdef HAVE_STRING_H
734 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
735 #  include <memory.h>
736 # endif
737 # include <string.h>
738 #endif
739 #ifdef HAVE_STRINGS_H
740 # include <strings.h>
741 #endif
742 #ifdef HAVE_INTTYPES_H
743 # include <inttypes.h>
744 #endif
745 #ifdef HAVE_STDINT_H
746 # include <stdint.h>
747 #endif
748 #ifdef HAVE_UNISTD_H
749 # include <unistd.h>
750 #endif"
751
752 ac_subst_vars='LTLIBOBJS
753 LIBOBJS
754 LIBIJS_LIBS
755 INCLUDES
756 ijs_libs
757 ijs_cflags
758 IJS_DEPLIBS
759 IJS_LIBS
760 IJS_CFLAGS
761 SYSDEPS_WINDOWS_FALSE
762 SYSDEPS_WINDOWS_TRUE
763 PS2PDF
764 DB2PS
765 LIBTOOL_DEPS
766 LIBTOOL
767 ac_ct_F77
768 FFLAGS
769 F77
770 CXXCPP
771 CXXDEPMODE
772 ac_ct_CXX
773 CXXFLAGS
774 CXX
775 CPP
776 RANLIB
777 AR
778 ECHO
779 LN_S
780 EGREP
781 GREP
782 CCDEPMODE
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__quote
787 am__include
788 DEPDIR
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 host_os
797 host_vendor
798 host_cpu
799 host
800 build_os
801 build_vendor
802 build_cpu
803 build
804 LT_AGE
805 LT_REVISION
806 LT_CURRENT
807 LT_RELEASE
808 IJS_VERSION
809 IJS_BINARY_AGE
810 IJS_INTERFACE_AGE
811 IJS_CURRENT_INTERFACE
812 IJS_MINOR_VERSION
813 IJS_MAJOR_VERSION
814 SET_MAKE
815 AWK
816 INSTALL_STRIP_PROGRAM
817 STRIP
818 install_sh
819 AMTAR
820 MAKEINFO
821 AUTOHEADER
822 AUTOMAKE
823 AUTOCONF
824 ACLOCAL
825 VERSION
826 PACKAGE
827 INSTALL_DATA
828 INSTALL_SCRIPT
829 INSTALL_PROGRAM
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_shared
872 enable_static
873 enable_fast_install
874 enable_dependency_tracking
875 with_gnu_ld
876 enable_libtool_lock
877 with_pic
878 with_tags
879 '
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 CXX
890 CXXFLAGS
891 CCC
892 CXXCPP
893 F77
894 FFLAGS'
895
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 ac_unrecognized_opts=
901 ac_unrecognized_sep=
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
918
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
944
945 ac_prev=
946 ac_dashdash=
947 for ac_option
948 do
949   # If the previous option needs an argument, assign it.
950   if test -n "$ac_prev"; then
951     eval $ac_prev=\$ac_option
952     ac_prev=
953     continue
954   fi
955
956   case $ac_option in
957   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958   *=)   ac_optarg= ;;
959   *)    ac_optarg=yes ;;
960   esac
961
962   # Accept the important Cygnus configure options, so we can diagnose typos.
963
964   case $ac_dashdash$ac_option in
965   --)
966     ac_dashdash=yes ;;
967
968   -bindir | --bindir | --bindi | --bind | --bin | --bi)
969     ac_prev=bindir ;;
970   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971     bindir=$ac_optarg ;;
972
973   -build | --build | --buil | --bui | --bu)
974     ac_prev=build_alias ;;
975   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976     build_alias=$ac_optarg ;;
977
978   -cache-file | --cache-file | --cache-fil | --cache-fi \
979   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980     ac_prev=cache_file ;;
981   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983     cache_file=$ac_optarg ;;
984
985   --config-cache | -C)
986     cache_file=config.cache ;;
987
988   -datadir | --datadir | --datadi | --datad)
989     ac_prev=datadir ;;
990   -datadir=* | --datadir=* | --datadi=* | --datad=*)
991     datadir=$ac_optarg ;;
992
993   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994   | --dataroo | --dataro | --datar)
995     ac_prev=datarootdir ;;
996   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998     datarootdir=$ac_optarg ;;
999
1000   -disable-* | --disable-*)
1001     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002     # Reject names that are not valid shell variable names.
1003     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004       as_fn_error $? "invalid feature name: $ac_useropt"
1005     ac_useropt_orig=$ac_useropt
1006     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007     case $ac_user_opts in
1008       *"
1009 "enable_$ac_useropt"
1010 "*) ;;
1011       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012          ac_unrecognized_sep=', ';;
1013     esac
1014     eval enable_$ac_useropt=no ;;
1015
1016   -docdir | --docdir | --docdi | --doc | --do)
1017     ac_prev=docdir ;;
1018   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019     docdir=$ac_optarg ;;
1020
1021   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022     ac_prev=dvidir ;;
1023   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024     dvidir=$ac_optarg ;;
1025
1026   -enable-* | --enable-*)
1027     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030       as_fn_error $? "invalid feature name: $ac_useropt"
1031     ac_useropt_orig=$ac_useropt
1032     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033     case $ac_user_opts in
1034       *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038          ac_unrecognized_sep=', ';;
1039     esac
1040     eval enable_$ac_useropt=\$ac_optarg ;;
1041
1042   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044   | --exec | --exe | --ex)
1045     ac_prev=exec_prefix ;;
1046   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048   | --exec=* | --exe=* | --ex=*)
1049     exec_prefix=$ac_optarg ;;
1050
1051   -gas | --gas | --ga | --g)
1052     # Obsolete; use --with-gas.
1053     with_gas=yes ;;
1054
1055   -help | --help | --hel | --he | -h)
1056     ac_init_help=long ;;
1057   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058     ac_init_help=recursive ;;
1059   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060     ac_init_help=short ;;
1061
1062   -host | --host | --hos | --ho)
1063     ac_prev=host_alias ;;
1064   -host=* | --host=* | --hos=* | --ho=*)
1065     host_alias=$ac_optarg ;;
1066
1067   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068     ac_prev=htmldir ;;
1069   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070   | --ht=*)
1071     htmldir=$ac_optarg ;;
1072
1073   -includedir | --includedir | --includedi | --included | --include \
1074   | --includ | --inclu | --incl | --inc)
1075     ac_prev=includedir ;;
1076   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077   | --includ=* | --inclu=* | --incl=* | --inc=*)
1078     includedir=$ac_optarg ;;
1079
1080   -infodir | --infodir | --infodi | --infod | --info | --inf)
1081     ac_prev=infodir ;;
1082   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083     infodir=$ac_optarg ;;
1084
1085   -libdir | --libdir | --libdi | --libd)
1086     ac_prev=libdir ;;
1087   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088     libdir=$ac_optarg ;;
1089
1090   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091   | --libexe | --libex | --libe)
1092     ac_prev=libexecdir ;;
1093   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094   | --libexe=* | --libex=* | --libe=*)
1095     libexecdir=$ac_optarg ;;
1096
1097   -localedir | --localedir | --localedi | --localed | --locale)
1098     ac_prev=localedir ;;
1099   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100     localedir=$ac_optarg ;;
1101
1102   -localstatedir | --localstatedir | --localstatedi | --localstated \
1103   | --localstate | --localstat | --localsta | --localst | --locals)
1104     ac_prev=localstatedir ;;
1105   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107     localstatedir=$ac_optarg ;;
1108
1109   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110     ac_prev=mandir ;;
1111   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112     mandir=$ac_optarg ;;
1113
1114   -nfp | --nfp | --nf)
1115     # Obsolete; use --without-fp.
1116     with_fp=no ;;
1117
1118   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119   | --no-cr | --no-c | -n)
1120     no_create=yes ;;
1121
1122   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124     no_recursion=yes ;;
1125
1126   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128   | --oldin | --oldi | --old | --ol | --o)
1129     ac_prev=oldincludedir ;;
1130   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133     oldincludedir=$ac_optarg ;;
1134
1135   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136     ac_prev=prefix ;;
1137   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138     prefix=$ac_optarg ;;
1139
1140   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141   | --program-pre | --program-pr | --program-p)
1142     ac_prev=program_prefix ;;
1143   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145     program_prefix=$ac_optarg ;;
1146
1147   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148   | --program-suf | --program-su | --program-s)
1149     ac_prev=program_suffix ;;
1150   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152     program_suffix=$ac_optarg ;;
1153
1154   -program-transform-name | --program-transform-name \
1155   | --program-transform-nam | --program-transform-na \
1156   | --program-transform-n | --program-transform- \
1157   | --program-transform | --program-transfor \
1158   | --program-transfo | --program-transf \
1159   | --program-trans | --program-tran \
1160   | --progr-tra | --program-tr | --program-t)
1161     ac_prev=program_transform_name ;;
1162   -program-transform-name=* | --program-transform-name=* \
1163   | --program-transform-nam=* | --program-transform-na=* \
1164   | --program-transform-n=* | --program-transform-=* \
1165   | --program-transform=* | --program-transfor=* \
1166   | --program-transfo=* | --program-transf=* \
1167   | --program-trans=* | --program-tran=* \
1168   | --progr-tra=* | --program-tr=* | --program-t=*)
1169     program_transform_name=$ac_optarg ;;
1170
1171   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172     ac_prev=pdfdir ;;
1173   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174     pdfdir=$ac_optarg ;;
1175
1176   -psdir | --psdir | --psdi | --psd | --ps)
1177     ac_prev=psdir ;;
1178   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179     psdir=$ac_optarg ;;
1180
1181   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182   | -silent | --silent | --silen | --sile | --sil)
1183     silent=yes ;;
1184
1185   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186     ac_prev=sbindir ;;
1187   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188   | --sbi=* | --sb=*)
1189     sbindir=$ac_optarg ;;
1190
1191   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193   | --sharedst | --shareds | --shared | --share | --shar \
1194   | --sha | --sh)
1195     ac_prev=sharedstatedir ;;
1196   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199   | --sha=* | --sh=*)
1200     sharedstatedir=$ac_optarg ;;
1201
1202   -site | --site | --sit)
1203     ac_prev=site ;;
1204   -site=* | --site=* | --sit=*)
1205     site=$ac_optarg ;;
1206
1207   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208     ac_prev=srcdir ;;
1209   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210     srcdir=$ac_optarg ;;
1211
1212   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213   | --syscon | --sysco | --sysc | --sys | --sy)
1214     ac_prev=sysconfdir ;;
1215   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217     sysconfdir=$ac_optarg ;;
1218
1219   -target | --target | --targe | --targ | --tar | --ta | --t)
1220     ac_prev=target_alias ;;
1221   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222     target_alias=$ac_optarg ;;
1223
1224   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225     verbose=yes ;;
1226
1227   -version | --version | --versio | --versi | --vers | -V)
1228     ac_init_version=: ;;
1229
1230   -with-* | --with-*)
1231     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232     # Reject names that are not valid shell variable names.
1233     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234       as_fn_error $? "invalid package name: $ac_useropt"
1235     ac_useropt_orig=$ac_useropt
1236     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237     case $ac_user_opts in
1238       *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242          ac_unrecognized_sep=', ';;
1243     esac
1244     eval with_$ac_useropt=\$ac_optarg ;;
1245
1246   -without-* | --without-*)
1247     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248     # Reject names that are not valid shell variable names.
1249     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250       as_fn_error $? "invalid package name: $ac_useropt"
1251     ac_useropt_orig=$ac_useropt
1252     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253     case $ac_user_opts in
1254       *"
1255 "with_$ac_useropt"
1256 "*) ;;
1257       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258          ac_unrecognized_sep=', ';;
1259     esac
1260     eval with_$ac_useropt=no ;;
1261
1262   --x)
1263     # Obsolete; use --with-x.
1264     with_x=yes ;;
1265
1266   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267   | --x-incl | --x-inc | --x-in | --x-i)
1268     ac_prev=x_includes ;;
1269   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271     x_includes=$ac_optarg ;;
1272
1273   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275     ac_prev=x_libraries ;;
1276   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278     x_libraries=$ac_optarg ;;
1279
1280   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1282     ;;
1283
1284   *=*)
1285     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286     # Reject names that are not valid shell variable names.
1287     case $ac_envvar in #(
1288       '' | [0-9]* | *[!_$as_cr_alnum]* )
1289       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1290     esac
1291     eval $ac_envvar=\$ac_optarg
1292     export $ac_envvar ;;
1293
1294   *)
1295     # FIXME: should be removed in autoconf 3.0.
1296     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300     ;;
1301
1302   esac
1303 done
1304
1305 if test -n "$ac_prev"; then
1306   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307   as_fn_error $? "missing argument to $ac_option"
1308 fi
1309
1310 if test -n "$ac_unrecognized_opts"; then
1311   case $enable_option_checking in
1312     no) ;;
1313     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315   esac
1316 fi
1317
1318 # Check all directory arguments for consistency.
1319 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320                 datadir sysconfdir sharedstatedir localstatedir includedir \
1321                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322                 libdir localedir mandir
1323 do
1324   eval ac_val=\$$ac_var
1325   # Remove trailing slashes.
1326   case $ac_val in
1327     */ )
1328       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329       eval $ac_var=\$ac_val;;
1330   esac
1331   # Be sure to have absolute directory names.
1332   case $ac_val in
1333     [\\/$]* | ?:[\\/]* )  continue;;
1334     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1335   esac
1336   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 done
1338
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1342 build=$build_alias
1343 host=$host_alias
1344 target=$target_alias
1345
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348   if test "x$build_alias" = x; then
1349     cross_compiling=maybe
1350     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1351     If a cross compiler is detected then cross compile mode will be used" >&2
1352   elif test "x$build_alias" != "x$host_alias"; then
1353     cross_compiling=yes
1354   fi
1355 fi
1356
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360 test "$silent" = yes && exec 6>/dev/null
1361
1362
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366   as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368   as_fn_error $? "pwd does not report name of working directory"
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373   ac_srcdir_defaulted=yes
1374   # Try the directory containing this script, then the parent directory.
1375   ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377          X"$as_myself" : 'X\(//\)[^/]' \| \
1378          X"$as_myself" : 'X\(//\)$' \| \
1379          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\/\)[^/].*/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)$/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\).*/{
1394             s//\1/
1395             q
1396           }
1397           s/.*/./; q'`
1398   srcdir=$ac_confdir
1399   if test ! -r "$srcdir/$ac_unique_file"; then
1400     srcdir=..
1401   fi
1402 else
1403   ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1408 fi
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412         pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415   srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_env_${ac_var}_value=\$${ac_var}
1426   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434   # Omit some internal or obsolete options to make the list less imposing.
1435   # This message is too long to be a string in the A/UX 3.1 sh.
1436   cat <<_ACEOF
1437 \`configure' configures ijs 0.35 to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE.  See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447   -h, --help              display this help and exit
1448       --help=short        display options specific to this package
1449       --help=recursive    display the short help of all the included packages
1450   -V, --version           display version information and exit
1451   -q, --quiet, --silent   do not print \`checking ...' messages
1452       --cache-file=FILE   cache test results in FILE [disabled]
1453   -C, --config-cache      alias for \`--cache-file=config.cache'
1454   -n, --no-create         do not create output files
1455       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458   --prefix=PREFIX         install architecture-independent files in PREFIX
1459                           [$ac_default_prefix]
1460   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1461                           [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471   --bindir=DIR            user executables [EPREFIX/bin]
1472   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1473   --libexecdir=DIR        program executables [EPREFIX/libexec]
1474   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1475   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1476   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1477   --libdir=DIR            object code libraries [EPREFIX/lib]
1478   --includedir=DIR        C header files [PREFIX/include]
1479   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1480   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1481   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1482   --infodir=DIR           info documentation [DATAROOTDIR/info]
1483   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1484   --mandir=DIR            man documentation [DATAROOTDIR/man]
1485   --docdir=DIR            documentation root [DATAROOTDIR/doc/ijs]
1486   --htmldir=DIR           html documentation [DOCDIR]
1487   --dvidir=DIR            dvi documentation [DOCDIR]
1488   --pdfdir=DIR            pdf documentation [DOCDIR]
1489   --psdir=DIR             ps documentation [DOCDIR]
1490 _ACEOF
1491
1492   cat <<\_ACEOF
1493
1494 Program names:
1495   --program-prefix=PREFIX            prepend PREFIX to installed program names
1496   --program-suffix=SUFFIX            append SUFFIX to installed program names
1497   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1498
1499 System types:
1500   --build=BUILD     configure for building on BUILD [guessed]
1501   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1502 _ACEOF
1503 fi
1504
1505 if test -n "$ac_init_help"; then
1506   case $ac_init_help in
1507      short | recursive ) echo "Configuration of ijs 0.35:";;
1508    esac
1509   cat <<\_ACEOF
1510
1511 Optional Features:
1512   --disable-option-checking  ignore unrecognized --enable/--with options
1513   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1514   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1515   --enable-shared[=PKGS]  build shared libraries [default=no]
1516   --enable-static[=PKGS]  build static libraries [default=yes]
1517   --enable-fast-install[=PKGS]
1518                           optimize for fast installation [default=yes]
1519   --disable-dependency-tracking Speeds up one-time builds
1520   --enable-dependency-tracking  Do not reject slow dependency extractors
1521   --disable-libtool-lock  avoid locking (might break parallel builds)
1522
1523 Optional Packages:
1524   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1525   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1526   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1527   --with-pic              try to use only PIC/non-PIC objects [default=use
1528                           both]
1529   --with-tags[=TAGS]      include additional configurations [automatic]
1530
1531 Some influential environment variables:
1532   CC          C compiler command
1533   CFLAGS      C compiler flags
1534   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535               nonstandard directory <lib dir>
1536   LIBS        libraries to pass to the linker, e.g. -l<library>
1537   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538               you have headers in a nonstandard directory <include dir>
1539   CPP         C preprocessor
1540   CXX         C++ compiler command
1541   CXXFLAGS    C++ compiler flags
1542   CXXCPP      C++ preprocessor
1543   F77         Fortran 77 compiler command
1544   FFLAGS      Fortran 77 compiler flags
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to <inkjet-list@linuxprinting.org>.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555   # If there are subdirs, report their specific --help.
1556   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557     test -d "$ac_dir" ||
1558       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559       continue
1560     ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566   # A ".." for each directory in $ac_dir_suffix.
1567   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568   case $ac_top_builddir_sub in
1569   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571   esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579   .)  # We are building in place.
1580     ac_srcdir=.
1581     ac_top_srcdir=$ac_top_builddir_sub
1582     ac_abs_top_srcdir=$ac_pwd ;;
1583   [\\/]* | ?:[\\/]* )  # Absolute name.
1584     ac_srcdir=$srcdir$ac_dir_suffix;
1585     ac_top_srcdir=$srcdir
1586     ac_abs_top_srcdir=$srcdir ;;
1587   *) # Relative name.
1588     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589     ac_top_srcdir=$ac_top_build_prefix$srcdir
1590     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594     cd "$ac_dir" || { ac_status=$?; continue; }
1595     # Check for guested configure.
1596     if test -f "$ac_srcdir/configure.gnu"; then
1597       echo &&
1598       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599     elif test -f "$ac_srcdir/configure"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure" --help=recursive
1602     else
1603       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604     fi || ac_status=$?
1605     cd "$ac_pwd" || { ac_status=$?; break; }
1606   done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611   cat <<\_ACEOF
1612 ijs configure 0.35
1613 generated by GNU Autoconf 2.67
1614
1615 Copyright (C) 2010 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619   exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632   rm -f conftest.$ac_objext
1633   if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_compile") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && {
1649          test -z "$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        } && test -s conftest.$ac_objext; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657         ac_retval=1
1658 fi
1659   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_link ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   rm -f conftest.$ac_objext conftest$ac_exeext
1671   if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674   *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678   (eval "$ac_link") 2>conftest.err
1679   ac_status=$?
1680   if test -s conftest.err; then
1681     grep -v '^ *+' conftest.err >conftest.er1
1682     cat conftest.er1 >&5
1683     mv -f conftest.er1 conftest.err
1684   fi
1685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686   test $ac_status = 0; } && {
1687          test -z "$ac_c_werror_flag" ||
1688          test ! -s conftest.err
1689        } && test -s conftest$ac_exeext && {
1690          test "$cross_compiling" = yes ||
1691          $as_test_x conftest$ac_exeext
1692        }; then :
1693   ac_retval=0
1694 else
1695   $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698         ac_retval=1
1699 fi
1700   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702   # interfere with the next link command; also delete a directory that is
1703   # left behind by Apple's compiler.  We do this before executing the actions.
1704   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706   as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_link
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716   if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719   *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724   ac_status=$?
1725   if test -s conftest.err; then
1726     grep -v '^ *+' conftest.err >conftest.er1
1727     cat conftest.er1 >&5
1728     mv -f conftest.er1 conftest.err
1729   fi
1730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731   test $ac_status = 0; } > conftest.i && {
1732          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733          test ! -s conftest.err
1734        }; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740     ac_retval=1
1741 fi
1742   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743   as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1750 # the include files in INCLUDES and setting the cache variable VAR
1751 # accordingly.
1752 ac_fn_c_check_header_mongrel ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   if eval "test \"\${$3+set}\"" = set; then :
1756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval "test \"\${$3+set}\"" = set; then :
1759   $as_echo_n "(cached) " >&6
1760 fi
1761 eval ac_res=\$$3
1762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 else
1765   # Is the header compilable?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1767 $as_echo_n "checking $2 usability... " >&6; }
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h.  */
1770 $4
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774   ac_header_compiler=yes
1775 else
1776   ac_header_compiler=no
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1780 $as_echo "$ac_header_compiler" >&6; }
1781
1782 # Is the header present?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1784 $as_echo_n "checking $2 presence... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h.  */
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_cpp "$LINENO"; then :
1790   ac_header_preproc=yes
1791 else
1792   ac_header_preproc=no
1793 fi
1794 rm -f conftest.err conftest.i conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1796 $as_echo "$ac_header_preproc" >&6; }
1797
1798 # So?  What about this header?
1799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1800   yes:no: )
1801     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1802 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805     ;;
1806   no:yes:* )
1807     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1808 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1809     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1810 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1811     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1812 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1813     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1814 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 ( $as_echo "## -------------------------------------------- ##
1818 ## Report this to inkjet-list@linuxprinting.org ##
1819 ## -------------------------------------------- ##"
1820      ) | sed "s/^/$as_me: WARNING:     /" >&2
1821     ;;
1822 esac
1823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval "test \"\${$3+set}\"" = set; then :
1826   $as_echo_n "(cached) " >&6
1827 else
1828   eval "$3=\$ac_header_compiler"
1829 fi
1830 eval ac_res=\$$3
1831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 fi
1834   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835
1836 } # ac_fn_c_check_header_mongrel
1837
1838 # ac_fn_c_try_run LINENO
1839 # ----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841 # that executables *can* be run.
1842 ac_fn_c_try_run ()
1843 {
1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845   if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_link") 2>&5
1853   ac_status=$?
1854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856   { { case "(($ac_try" in
1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858   *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862   (eval "$ac_try") 2>&5
1863   ac_status=$?
1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865   test $ac_status = 0; }; }; then :
1866   ac_retval=0
1867 else
1868   $as_echo "$as_me: program exited with status $ac_status" >&5
1869        $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872        ac_retval=$ac_status
1873 fi
1874   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876   as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_run
1879
1880 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists and can be compiled using the include files in
1883 # INCLUDES, setting the cache variable VAR accordingly.
1884 ac_fn_c_check_header_compile ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval "test \"\${$3+set}\"" = set; then :
1890   $as_echo_n "(cached) " >&6
1891 else
1892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h.  */
1894 $4
1895 #include <$2>
1896 _ACEOF
1897 if ac_fn_c_try_compile "$LINENO"; then :
1898   eval "$3=yes"
1899 else
1900   eval "$3=no"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 fi
1904 eval ac_res=\$$3
1905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908
1909 } # ac_fn_c_check_header_compile
1910
1911 # ac_fn_c_check_func LINENO FUNC VAR
1912 # ----------------------------------
1913 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1914 ac_fn_c_check_func ()
1915 {
1916   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval "test \"\${$3+set}\"" = set; then :
1920   $as_echo_n "(cached) " >&6
1921 else
1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1926 #define $2 innocuous_$2
1927
1928 /* System header to define __stub macros and hopefully few prototypes,
1929     which can conflict with char $2 (); below.
1930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931     <limits.h> exists even on freestanding compilers.  */
1932
1933 #ifdef __STDC__
1934 # include <limits.h>
1935 #else
1936 # include <assert.h>
1937 #endif
1938
1939 #undef $2
1940
1941 /* Override any GCC internal prototype to avoid an error.
1942    Use char because int might match the return type of a GCC
1943    builtin and then its argument prototype would still apply.  */
1944 #ifdef __cplusplus
1945 extern "C"
1946 #endif
1947 char $2 ();
1948 /* The GNU C library defines this for functions which it implements
1949     to always fail with ENOSYS.  Some functions are actually named
1950     something starting with __ and the normal name is an alias.  */
1951 #if defined __stub_$2 || defined __stub___$2
1952 choke me
1953 #endif
1954
1955 int
1956 main ()
1957 {
1958 return $2 ();
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_link "$LINENO"; then :
1964   eval "$3=yes"
1965 else
1966   eval "$3=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext \
1969     conftest$ac_exeext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975
1976 } # ac_fn_c_check_func
1977
1978 # ac_fn_cxx_try_compile LINENO
1979 # ----------------------------
1980 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_cxx_try_compile ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   rm -f conftest.$ac_objext
1985   if { { ac_try="$ac_compile"
1986 case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992   (eval "$ac_compile") 2>conftest.err
1993   ac_status=$?
1994   if test -s conftest.err; then
1995     grep -v '^ *+' conftest.err >conftest.er1
1996     cat conftest.er1 >&5
1997     mv -f conftest.er1 conftest.err
1998   fi
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; } && {
2001          test -z "$ac_cxx_werror_flag" ||
2002          test ! -s conftest.err
2003        } && test -s conftest.$ac_objext; then :
2004   ac_retval=0
2005 else
2006   $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009         ac_retval=1
2010 fi
2011   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012   as_fn_set_status $ac_retval
2013
2014 } # ac_fn_cxx_try_compile
2015
2016 # ac_fn_cxx_try_cpp LINENO
2017 # ------------------------
2018 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_cxx_try_cpp ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   if { { ac_try="$ac_cpp conftest.$ac_ext"
2023 case "(($ac_try" in
2024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025   *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2030   ac_status=$?
2031   if test -s conftest.err; then
2032     grep -v '^ *+' conftest.err >conftest.er1
2033     cat conftest.er1 >&5
2034     mv -f conftest.er1 conftest.err
2035   fi
2036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037   test $ac_status = 0; } > conftest.i && {
2038          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2039          test ! -s conftest.err
2040        }; then :
2041   ac_retval=0
2042 else
2043   $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046     ac_retval=1
2047 fi
2048   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049   as_fn_set_status $ac_retval
2050
2051 } # ac_fn_cxx_try_cpp
2052
2053 # ac_fn_cxx_try_link LINENO
2054 # -------------------------
2055 # Try to link conftest.$ac_ext, and return whether this succeeded.
2056 ac_fn_cxx_try_link ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   rm -f conftest.$ac_objext conftest$ac_exeext
2060   if { { ac_try="$ac_link"
2061 case "(($ac_try" in
2062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063   *) ac_try_echo=$ac_try;;
2064 esac
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067   (eval "$ac_link") 2>conftest.err
2068   ac_status=$?
2069   if test -s conftest.err; then
2070     grep -v '^ *+' conftest.err >conftest.er1
2071     cat conftest.er1 >&5
2072     mv -f conftest.er1 conftest.err
2073   fi
2074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075   test $ac_status = 0; } && {
2076          test -z "$ac_cxx_werror_flag" ||
2077          test ! -s conftest.err
2078        } && test -s conftest$ac_exeext && {
2079          test "$cross_compiling" = yes ||
2080          $as_test_x conftest$ac_exeext
2081        }; then :
2082   ac_retval=0
2083 else
2084   $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2086
2087         ac_retval=1
2088 fi
2089   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2090   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2091   # interfere with the next link command; also delete a directory that is
2092   # left behind by Apple's compiler.  We do this before executing the actions.
2093   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2094   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095   as_fn_set_status $ac_retval
2096
2097 } # ac_fn_cxx_try_link
2098
2099 # ac_fn_cxx_check_func LINENO FUNC VAR
2100 # ------------------------------------
2101 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2102 ac_fn_cxx_check_func ()
2103 {
2104   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if eval "test \"\${$3+set}\"" = set; then :
2108   $as_echo_n "(cached) " >&6
2109 else
2110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h.  */
2112 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2114 #define $2 innocuous_$2
2115
2116 /* System header to define __stub macros and hopefully few prototypes,
2117     which can conflict with char $2 (); below.
2118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2119     <limits.h> exists even on freestanding compilers.  */
2120
2121 #ifdef __STDC__
2122 # include <limits.h>
2123 #else
2124 # include <assert.h>
2125 #endif
2126
2127 #undef $2
2128
2129 /* Override any GCC internal prototype to avoid an error.
2130    Use char because int might match the return type of a GCC
2131    builtin and then its argument prototype would still apply.  */
2132 #ifdef __cplusplus
2133 extern "C"
2134 #endif
2135 char $2 ();
2136 /* The GNU C library defines this for functions which it implements
2137     to always fail with ENOSYS.  Some functions are actually named
2138     something starting with __ and the normal name is an alias.  */
2139 #if defined __stub_$2 || defined __stub___$2
2140 choke me
2141 #endif
2142
2143 int
2144 main ()
2145 {
2146 return $2 ();
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_cxx_try_link "$LINENO"; then :
2152   eval "$3=yes"
2153 else
2154   eval "$3=no"
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext \
2157     conftest$ac_exeext conftest.$ac_ext
2158 fi
2159 eval ac_res=\$$3
2160                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163
2164 } # ac_fn_cxx_check_func
2165
2166 # ac_fn_f77_try_compile LINENO
2167 # ----------------------------
2168 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2169 ac_fn_f77_try_compile ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   rm -f conftest.$ac_objext
2173   if { { ac_try="$ac_compile"
2174 case "(($ac_try" in
2175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176   *) ac_try_echo=$ac_try;;
2177 esac
2178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2179 $as_echo "$ac_try_echo"; } >&5
2180   (eval "$ac_compile") 2>conftest.err
2181   ac_status=$?
2182   if test -s conftest.err; then
2183     grep -v '^ *+' conftest.err >conftest.er1
2184     cat conftest.er1 >&5
2185     mv -f conftest.er1 conftest.err
2186   fi
2187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188   test $ac_status = 0; } && {
2189          test -z "$ac_f77_werror_flag" ||
2190          test ! -s conftest.err
2191        } && test -s conftest.$ac_objext; then :
2192   ac_retval=0
2193 else
2194   $as_echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197         ac_retval=1
2198 fi
2199   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2200   as_fn_set_status $ac_retval
2201
2202 } # ac_fn_f77_try_compile
2203
2204 # ac_fn_f77_try_link LINENO
2205 # -------------------------
2206 # Try to link conftest.$ac_ext, and return whether this succeeded.
2207 ac_fn_f77_try_link ()
2208 {
2209   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210   rm -f conftest.$ac_objext conftest$ac_exeext
2211   if { { ac_try="$ac_link"
2212 case "(($ac_try" in
2213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214   *) ac_try_echo=$ac_try;;
2215 esac
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218   (eval "$ac_link") 2>conftest.err
2219   ac_status=$?
2220   if test -s conftest.err; then
2221     grep -v '^ *+' conftest.err >conftest.er1
2222     cat conftest.er1 >&5
2223     mv -f conftest.er1 conftest.err
2224   fi
2225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226   test $ac_status = 0; } && {
2227          test -z "$ac_f77_werror_flag" ||
2228          test ! -s conftest.err
2229        } && test -s conftest$ac_exeext && {
2230          test "$cross_compiling" = yes ||
2231          $as_test_x conftest$ac_exeext
2232        }; then :
2233   ac_retval=0
2234 else
2235   $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238         ac_retval=1
2239 fi
2240   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2241   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2242   # interfere with the next link command; also delete a directory that is
2243   # left behind by Apple's compiler.  We do this before executing the actions.
2244   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2245   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246   as_fn_set_status $ac_retval
2247
2248 } # ac_fn_f77_try_link
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2252
2253 It was created by ijs $as_me 0.35, which was
2254 generated by GNU Autoconf 2.67.  Invocation command line was
2255
2256   $ $0 $@
2257
2258 _ACEOF
2259 exec 5>>config.log
2260 {
2261 cat <<_ASUNAME
2262 ## --------- ##
2263 ## Platform. ##
2264 ## --------- ##
2265
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2274
2275 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2276 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2279 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2280 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2281 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2282
2283 _ASUNAME
2284
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290     $as_echo "PATH: $as_dir"
2291   done
2292 IFS=$as_save_IFS
2293
2294 } >&5
2295
2296 cat >&5 <<_ACEOF
2297
2298
2299 ## ----------- ##
2300 ## Core tests. ##
2301 ## ----------- ##
2302
2303 _ACEOF
2304
2305
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2311 ac_configure_args=
2312 ac_configure_args0=
2313 ac_configure_args1=
2314 ac_must_keep_next=false
2315 for ac_pass in 1 2
2316 do
2317   for ac_arg
2318   do
2319     case $ac_arg in
2320     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322     | -silent | --silent | --silen | --sile | --sil)
2323       continue ;;
2324     *\'*)
2325       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326     esac
2327     case $ac_pass in
2328     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329     2)
2330       as_fn_append ac_configure_args1 " '$ac_arg'"
2331       if test $ac_must_keep_next = true; then
2332         ac_must_keep_next=false # Got value, back to normal.
2333       else
2334         case $ac_arg in
2335           *=* | --config-cache | -C | -disable-* | --disable-* \
2336           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338           | -with-* | --with-* | -without-* | --without-* | --x)
2339             case "$ac_configure_args0 " in
2340               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341             esac
2342             ;;
2343           -* ) ac_must_keep_next=true ;;
2344         esac
2345       fi
2346       as_fn_append ac_configure_args " '$ac_arg'"
2347       ;;
2348     esac
2349   done
2350 done
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2353
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log.  We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360   # Save into config.log some information that might help in debugging.
2361   {
2362     echo
2363
2364     $as_echo "## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##"
2367     echo
2368     # The following way of writing the cache mishandles newlines in values,
2369 (
2370   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2371     eval ac_val=\$$ac_var
2372     case $ac_val in #(
2373     *${as_nl}*)
2374       case $ac_var in #(
2375       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2377       esac
2378       case $ac_var in #(
2379       _ | IFS | as_nl) ;; #(
2380       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2381       *) { eval $ac_var=; unset $ac_var;} ;;
2382       esac ;;
2383     esac
2384   done
2385   (set) 2>&1 |
2386     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2387     *${as_nl}ac_space=\ *)
2388       sed -n \
2389         "s/'\''/'\''\\\\'\'''\''/g;
2390           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2391       ;; #(
2392     *)
2393       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2394       ;;
2395     esac |
2396     sort
2397 )
2398     echo
2399
2400     $as_echo "## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##"
2403     echo
2404     for ac_var in $ac_subst_vars
2405     do
2406       eval ac_val=\$$ac_var
2407       case $ac_val in
2408       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409       esac
2410       $as_echo "$ac_var='\''$ac_val'\''"
2411     done | sort
2412     echo
2413
2414     if test -n "$ac_subst_files"; then
2415       $as_echo "## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##"
2418       echo
2419       for ac_var in $ac_subst_files
2420       do
2421         eval ac_val=\$$ac_var
2422         case $ac_val in
2423         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424         esac
2425         $as_echo "$ac_var='\''$ac_val'\''"
2426       done | sort
2427       echo
2428     fi
2429
2430     if test -s confdefs.h; then
2431       $as_echo "## ----------- ##
2432 ## confdefs.h. ##
2433 ## ----------- ##"
2434       echo
2435       cat confdefs.h
2436       echo
2437     fi
2438     test "$ac_signal" != 0 &&
2439       $as_echo "$as_me: caught signal $ac_signal"
2440     $as_echo "$as_me: exit $exit_status"
2441   } >&5
2442   rm -f core *.core core.conftest.* &&
2443     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2444     exit $exit_status
2445 ' 0
2446 for ac_signal in 1 2 13 15; do
2447   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2448 done
2449 ac_signal=0
2450
2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2452 rm -f -r conftest* confdefs.h
2453
2454 $as_echo "/* confdefs.h */" > confdefs.h
2455
2456 # Predefined preprocessor variables.
2457
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_NAME "$PACKAGE_NAME"
2460 _ACEOF
2461
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2464 _ACEOF
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2468 _ACEOF
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_STRING "$PACKAGE_STRING"
2472 _ACEOF
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_URL "$PACKAGE_URL"
2480 _ACEOF
2481
2482
2483 # Let the site file select an alternate cache file if it wants to.
2484 # Prefer an explicitly selected file to automatically selected ones.
2485 ac_site_file1=NONE
2486 ac_site_file2=NONE
2487 if test -n "$CONFIG_SITE"; then
2488   # We do not want a PATH search for config.site.
2489   case $CONFIG_SITE in #((
2490     -*)  ac_site_file1=./$CONFIG_SITE;;
2491     */*) ac_site_file1=$CONFIG_SITE;;
2492     *)   ac_site_file1=./$CONFIG_SITE;;
2493   esac
2494 elif test "x$prefix" != xNONE; then
2495   ac_site_file1=$prefix/share/config.site
2496   ac_site_file2=$prefix/etc/config.site
2497 else
2498   ac_site_file1=$ac_default_prefix/share/config.site
2499   ac_site_file2=$ac_default_prefix/etc/config.site
2500 fi
2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502 do
2503   test "x$ac_site_file" = xNONE && continue
2504   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2505     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507     sed 's/^/| /' "$ac_site_file" >&5
2508     . "$ac_site_file" \
2509       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 as_fn_error $? "failed to load site script $ac_site_file
2512 See \`config.log' for more details" "$LINENO" 5 ; }
2513   fi
2514 done
2515
2516 if test -r "$cache_file"; then
2517   # Some versions of bash will fail to source /dev/null (special files
2518   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2519   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2520     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
2522     case $cache_file in
2523       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524       *)                      . "./$cache_file";;
2525     esac
2526   fi
2527 else
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
2530   >$cache_file
2531 fi
2532
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538   eval ac_new_set=\$ac_env_${ac_var}_set
2539   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540   eval ac_new_val=\$ac_env_${ac_var}_value
2541   case $ac_old_set,$ac_new_set in
2542     set,)
2543       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545       ac_cache_corrupted=: ;;
2546     ,set)
2547       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549       ac_cache_corrupted=: ;;
2550     ,);;
2551     *)
2552       if test "x$ac_old_val" != "x$ac_new_val"; then
2553         # differences in whitespace do not lead to failure.
2554         ac_old_val_w=`echo x $ac_old_val`
2555         ac_new_val_w=`echo x $ac_new_val`
2556         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559           ac_cache_corrupted=:
2560         else
2561           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563           eval $ac_var=\$ac_old_val
2564         fi
2565         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2566 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2567         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2569       fi;;
2570   esac
2571   # Pass precious variables to config.status.
2572   if test "$ac_new_set" = set; then
2573     case $ac_new_val in
2574     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575     *) ac_arg=$ac_var=$ac_new_val ;;
2576     esac
2577     case " $ac_configure_args " in
2578       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2579       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580     esac
2581   fi
2582 done
2583 if $ac_cache_corrupted; then
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589 fi
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2593
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599
2600
2601
2602
2603
2604
2605
2606 IJS_LIBS="-lijs"
2607
2608 IJS_MAJOR_VERSION=0
2609 IJS_MINOR_VERSION=35
2610 IJS_EXTRA_VERSION=
2611
2612 IJS_CURRENT_INTERFACE=1
2613 IJS_INTERFACE_AGE=1
2614 IJS_BINARY_AGE=0
2615 IJS_VERSION=0.35
2616
2617
2618
2619
2620
2621
2622
2623 am__api_version="1.6"
2624 ac_aux_dir=
2625 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2626   if test -f "$ac_dir/install-sh"; then
2627     ac_aux_dir=$ac_dir
2628     ac_install_sh="$ac_aux_dir/install-sh -c"
2629     break
2630   elif test -f "$ac_dir/install.sh"; then
2631     ac_aux_dir=$ac_dir
2632     ac_install_sh="$ac_aux_dir/install.sh -c"
2633     break
2634   elif test -f "$ac_dir/shtool"; then
2635     ac_aux_dir=$ac_dir
2636     ac_install_sh="$ac_aux_dir/shtool install -c"
2637     break
2638   fi
2639 done
2640 if test -z "$ac_aux_dir"; then
2641   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2642 fi
2643
2644 # These three variables are undocumented and unsupported,
2645 # and are intended to be withdrawn in a future Autoconf release.
2646 # They can cause serious problems if a builder's source tree is in a directory
2647 # whose full name contains unusual characters.
2648 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2649 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2650 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2651
2652
2653 # Find a good install program.  We prefer a C program (faster),
2654 # so one script is as good as another.  But avoid the broken or
2655 # incompatible versions:
2656 # SysV /etc/install, /usr/sbin/install
2657 # SunOS /usr/etc/install
2658 # IRIX /sbin/install
2659 # AIX /bin/install
2660 # AmigaOS /C/install, which installs bootblocks on floppy discs
2661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2664 # OS/2's system install, which has a completely different semantic
2665 # ./install, which can be erroneously created by make from ./install.sh.
2666 # Reject install programs that cannot install multiple files.
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2668 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2669 if test -z "$INSTALL"; then
2670 if test "${ac_cv_path_install+set}" = set; then :
2671   $as_echo_n "(cached) " >&6
2672 else
2673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678     # Account for people who put trailing slashes in PATH elements.
2679 case $as_dir/ in #((
2680   ./ | .// | /[cC]/* | \
2681   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2682   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2683   /usr/ucb/* ) ;;
2684   *)
2685     # OSF1 and SCO ODT 3.0 have their own names for install.
2686     # Don't use installbsd from OSF since it installs stuff as root
2687     # by default.
2688     for ac_prog in ginstall scoinst install; do
2689       for ac_exec_ext in '' $ac_executable_extensions; do
2690         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2691           if test $ac_prog = install &&
2692             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2693             # AIX install.  It has an incompatible calling convention.
2694             :
2695           elif test $ac_prog = install &&
2696             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697             # program-specific install script used by HP pwplus--don't use.
2698             :
2699           else
2700             rm -rf conftest.one conftest.two conftest.dir
2701             echo one > conftest.one
2702             echo two > conftest.two
2703             mkdir conftest.dir
2704             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2705               test -s conftest.one && test -s conftest.two &&
2706               test -s conftest.dir/conftest.one &&
2707               test -s conftest.dir/conftest.two
2708             then
2709               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2710               break 3
2711             fi
2712           fi
2713         fi
2714       done
2715     done
2716     ;;
2717 esac
2718
2719   done
2720 IFS=$as_save_IFS
2721
2722 rm -rf conftest.one conftest.two conftest.dir
2723
2724 fi
2725   if test "${ac_cv_path_install+set}" = set; then
2726     INSTALL=$ac_cv_path_install
2727   else
2728     # As a last resort, use the slow shell script.  Don't cache a
2729     # value for INSTALL within a source directory, because that will
2730     # break other packages using the cache if that directory is
2731     # removed, or if the value is a relative name.
2732     INSTALL=$ac_install_sh
2733   fi
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2736 $as_echo "$INSTALL" >&6; }
2737
2738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2739 # It thinks the first close brace ends the variable substitution.
2740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2741
2742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2743
2744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2745
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2747 $as_echo_n "checking whether build environment is sane... " >&6; }
2748 # Just in case
2749 sleep 1
2750 echo timestamp > conftest.file
2751 # Do `set' in a subshell so we don't clobber the current shell's
2752 # arguments.  Must try -L first in case configure is actually a
2753 # symlink; some systems play weird games with the mod time of symlinks
2754 # (eg FreeBSD returns the mod time of the symlink's containing
2755 # directory).
2756 if (
2757    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2758    if test "$*" = "X"; then
2759       # -L didn't work.
2760       set X `ls -t $srcdir/configure conftest.file`
2761    fi
2762    rm -f conftest.file
2763    if test "$*" != "X $srcdir/configure conftest.file" \
2764       && test "$*" != "X conftest.file $srcdir/configure"; then
2765
2766       # If neither matched, then we have a broken ls.  This can happen
2767       # if, for instance, CONFIG_SHELL is bash and it inherits a
2768       # broken ls alias from the environment.  This has actually
2769       # happened.  Such a system could not be considered "sane".
2770       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2771 alias in your environment" "$LINENO" 5
2772    fi
2773
2774    test "$2" = conftest.file
2775    )
2776 then
2777    # Ok.
2778    :
2779 else
2780    as_fn_error $? "newly created file is older than distributed files!
2781 Check your system clock" "$LINENO" 5
2782 fi
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2784 $as_echo "yes" >&6; }
2785 test "$program_prefix" != NONE &&
2786   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2787 # Use a double $ so make ignores it.
2788 test "$program_suffix" != NONE &&
2789   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2790 # Double any \ or $.
2791 # By default was `s,x,x', remove it if useless.
2792 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2793 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2794
2795
2796 # expand $ac_aux_dir to an absolute path
2797 am_aux_dir=`cd $ac_aux_dir && pwd`
2798
2799 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2800 # Use eval to expand $SHELL
2801 if eval "$MISSING --run true"; then
2802   am_missing_run="$MISSING --run "
2803 else
2804   am_missing_run=
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2806 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2807 fi
2808
2809 for ac_prog in gawk mawk nawk awk
2810 do
2811   # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_AWK+set}" = set; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$AWK"; then
2819   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_AWK="$ac_prog"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 AWK=$ac_cv_prog_AWK
2839 if test -n "$AWK"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841 $as_echo "$AWK" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848   test -n "$AWK" && break
2849 done
2850
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2853 set x ${MAKE-make}
2854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   cat >conftest.make <<\_ACEOF
2859 SHELL = /bin/sh
2860 all:
2861         @echo '@@@%%%=$(MAKE)=@@@%%%'
2862 _ACEOF
2863 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2865   *@@@%%%=?*=@@@%%%*)
2866     eval ac_cv_prog_make_${ac_make}_set=yes;;
2867   *)
2868     eval ac_cv_prog_make_${ac_make}_set=no;;
2869 esac
2870 rm -f conftest.make
2871 fi
2872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2875   SET_MAKE=
2876 else
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879   SET_MAKE="MAKE=${MAKE-make}"
2880 fi
2881
2882  # test to see if srcdir already configured
2883 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2884    test -f $srcdir/config.status; then
2885   as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2886 fi
2887
2888 # Define the identity of the package.
2889  PACKAGE=ijs
2890  VERSION=0.35
2891
2892
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE "$PACKAGE"
2895 _ACEOF
2896
2897
2898 cat >>confdefs.h <<_ACEOF
2899 #define VERSION "$VERSION"
2900 _ACEOF
2901
2902 # Some tools Automake needs.
2903
2904 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2905
2906
2907 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2908
2909
2910 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2911
2912
2913 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2914
2915
2916 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2917
2918
2919 AMTAR=${AMTAR-"${am_missing_run}tar"}
2920
2921 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2922
2923 # Installed binaries are usually stripped using `strip' when the user
2924 # run `make install-strip'.  However `strip' might not be the right
2925 # tool to use in cross-compilation environments, therefore Automake
2926 # will honor the `STRIP' environment variable to overrule this program.
2927 if test "$cross_compiling" != no; then
2928   if test -n "$ac_tool_prefix"; then
2929   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}strip; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_STRIP+set}" = set; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   if test -n "$STRIP"; then
2937   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944     for ac_exec_ext in '' $ac_executable_extensions; do
2945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951   done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 STRIP=$ac_cv_prog_STRIP
2957 if test -n "$STRIP"; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2959 $as_echo "$STRIP" >&6; }
2960 else
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966 fi
2967 if test -z "$ac_cv_prog_STRIP"; then
2968   ac_ct_STRIP=$STRIP
2969   # Extract the first word of "strip", so it can be a program name with args.
2970 set dummy strip; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   if test -n "$ac_ct_STRIP"; then
2977   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984     for ac_exec_ext in '' $ac_executable_extensions; do
2985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986     ac_cv_prog_ac_ct_STRIP="strip"
2987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991   done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2997 if test -n "$ac_ct_STRIP"; then
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2999 $as_echo "$ac_ct_STRIP" >&6; }
3000 else
3001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 fi
3004
3005   if test "x$ac_ct_STRIP" = x; then
3006     STRIP=":"
3007   else
3008     case $cross_compiling:$ac_tool_warned in
3009 yes:)
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3013 esac
3014     STRIP=$ac_ct_STRIP
3015   fi
3016 else
3017   STRIP="$ac_cv_prog_STRIP"
3018 fi
3019
3020 fi
3021 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3022
3023 # We need awk for the "check" target.  The system "awk" is bad on
3024 # some platforms.
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038 LT_RELEASE=$IJS_MAJOR_VERSION.$IJS_MINOR_VERSION
3039 LT_CURRENT=$IJS_CURRENT_INTERFACE
3040 LT_REVISION=$IJS_INTERFACE_AGE
3041 LT_AGE=$IJS_BINARY_AGE
3042
3043
3044
3045
3046
3047
3048 # Check whether --enable-shared was given.
3049 if test "${enable_shared+set}" = set; then :
3050   enableval=$enable_shared; p=${PACKAGE-default}
3051     case $enableval in
3052     yes) enable_shared=yes ;;
3053     no) enable_shared=no ;;
3054     *)
3055       enable_shared=no
3056       # Look at the argument we got.  We use all the common list separators.
3057       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3058       for pkg in $enableval; do
3059         IFS="$lt_save_ifs"
3060         if test "X$pkg" = "X$p"; then
3061           enable_shared=yes
3062         fi
3063       done
3064       IFS="$lt_save_ifs"
3065       ;;
3066     esac
3067 else
3068   enable_shared=no
3069 fi
3070
3071
3072
3073 # Check whether --enable-static was given.
3074 if test "${enable_static+set}" = set; then :
3075   enableval=$enable_static; p=${PACKAGE-default}
3076     case $enableval in
3077     yes) enable_static=yes ;;
3078     no) enable_static=no ;;
3079     *)
3080      enable_static=no
3081       # Look at the argument we got.  We use all the common list separators.
3082       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3083       for pkg in $enableval; do
3084         IFS="$lt_save_ifs"
3085         if test "X$pkg" = "X$p"; then
3086           enable_static=yes
3087         fi
3088       done
3089       IFS="$lt_save_ifs"
3090       ;;
3091     esac
3092 else
3093   enable_static=yes
3094 fi
3095
3096
3097 # Check whether --enable-fast-install was given.
3098 if test "${enable_fast_install+set}" = set; then :
3099   enableval=$enable_fast_install; p=${PACKAGE-default}
3100     case $enableval in
3101     yes) enable_fast_install=yes ;;
3102     no) enable_fast_install=no ;;
3103     *)
3104       enable_fast_install=no
3105       # Look at the argument we got.  We use all the common list separators.
3106       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3107       for pkg in $enableval; do
3108         IFS="$lt_save_ifs"
3109         if test "X$pkg" = "X$p"; then
3110           enable_fast_install=yes
3111         fi
3112       done
3113       IFS="$lt_save_ifs"
3114       ;;
3115     esac
3116 else
3117   enable_fast_install=yes
3118 fi
3119
3120
3121 # Make sure we can run config.sub.
3122 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3123   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3124
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3126 $as_echo_n "checking build system type... " >&6; }
3127 if test "${ac_cv_build+set}" = set; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   ac_build_alias=$build_alias
3131 test "x$ac_build_alias" = x &&
3132   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3133 test "x$ac_build_alias" = x &&
3134   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3136   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3137
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3140 $as_echo "$ac_cv_build" >&6; }
3141 case $ac_cv_build in
3142 *-*-*) ;;
3143 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3144 esac
3145 build=$ac_cv_build
3146 ac_save_IFS=$IFS; IFS='-'
3147 set x $ac_cv_build
3148 shift
3149 build_cpu=$1
3150 build_vendor=$2
3151 shift; shift
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3154 build_os=$*
3155 IFS=$ac_save_IFS
3156 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3157
3158
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3160 $as_echo_n "checking host system type... " >&6; }
3161 if test "${ac_cv_host+set}" = set; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   if test "x$host_alias" = x; then
3165   ac_cv_host=$ac_cv_build
3166 else
3167   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3168     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3169 fi
3170
3171 fi
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3173 $as_echo "$ac_cv_host" >&6; }
3174 case $ac_cv_host in
3175 *-*-*) ;;
3176 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3177 esac
3178 host=$ac_cv_host
3179 ac_save_IFS=$IFS; IFS='-'
3180 set x $ac_cv_host
3181 shift
3182 host_cpu=$1
3183 host_vendor=$2
3184 shift; shift
3185 # Remember, the first character of IFS is used to create $*,
3186 # except with old shells:
3187 host_os=$*
3188 IFS=$ac_save_IFS
3189 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3190
3191
3192 rm -f .deps 2>/dev/null
3193 mkdir .deps 2>/dev/null
3194 if test -d .deps; then
3195   DEPDIR=.deps
3196 else
3197   # MS-DOS does not allow filenames that begin with a dot.
3198   DEPDIR=_deps
3199 fi
3200 rmdir .deps 2>/dev/null
3201
3202
3203 ac_config_commands="$ac_config_commands depfiles"
3204
3205
3206 am_make=${MAKE-make}
3207 cat > confinc << 'END'
3208 doit:
3209         @echo done
3210 END
3211 # If we don't find an include directive, just comment out the code.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3213 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3214 am__include="#"
3215 am__quote=
3216 _am_result=none
3217 # First try GNU make style include.
3218 echo "include confinc" > confmf
3219 # We grep out `Entering directory' and `Leaving directory'
3220 # messages which can occur if `w' ends up in MAKEFLAGS.
3221 # In particular we don't look at `^make:' because GNU make might
3222 # be invoked under some other name (usually "gmake"), in which
3223 # case it prints its new name instead of `make'.
3224 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3225    am__include=include
3226    am__quote=
3227    _am_result=GNU
3228 fi
3229 # Now try BSD make style include.
3230 if test "$am__include" = "#"; then
3231    echo '.include "confinc"' > confmf
3232    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3233       am__include=.include
3234       am__quote="\""
3235       _am_result=BSD
3236    fi
3237 fi
3238
3239
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3241 $as_echo "$_am_result" >&6; }
3242 rm -f confinc confmf
3243
3244 # Check whether --enable-dependency-tracking was given.
3245 if test "${enable_dependency_tracking+set}" = set; then :
3246   enableval=$enable_dependency_tracking;
3247 fi
3248
3249 if test "x$enable_dependency_tracking" != xno; then
3250   am_depcomp="$ac_aux_dir/depcomp"
3251   AMDEPBACKSLASH='\'
3252 fi
3253
3254
3255 if test "x$enable_dependency_tracking" != xno; then
3256   AMDEP_TRUE=
3257   AMDEP_FALSE='#'
3258 else
3259   AMDEP_TRUE='#'
3260   AMDEP_FALSE=
3261 fi
3262
3263
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then :
3276   $as_echo_n "(cached) " >&6
3277 else
3278   if test -n "$CC"; then
3279   ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     for ac_exec_ext in '' $ac_executable_extensions; do
3287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290     break 2
3291   fi
3292 done
3293   done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308 fi
3309 if test -z "$ac_cv_prog_CC"; then
3310   ac_ct_CC=$CC
3311   # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3316   $as_echo_n "(cached) " >&6
3317 else
3318   if test -n "$ac_ct_CC"; then
3319   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326     for ac_exec_ext in '' $ac_executable_extensions; do
3327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328     ac_cv_prog_ac_ct_CC="gcc"
3329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333   done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347   if test "x$ac_ct_CC" = x; then
3348     CC=""
3349   else
3350     case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3355 esac
3356     CC=$ac_ct_CC
3357   fi
3358 else
3359   CC="$ac_cv_prog_CC"
3360 fi
3361
3362 if test -z "$CC"; then
3363           if test -n "$ac_tool_prefix"; then
3364     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}cc; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then :
3369   $as_echo_n "(cached) " >&6
3370 else
3371   if test -n "$CC"; then
3372   ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377   IFS=$as_save_IFS
3378   test -z "$as_dir" && as_dir=.
3379     for ac_exec_ext in '' $ac_executable_extensions; do
3380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381     ac_cv_prog_CC="${ac_tool_prefix}cc"
3382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383     break 2
3384   fi
3385 done
3386   done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3395 else
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3398 fi
3399
3400
3401   fi
3402 fi
3403 if test -z "$CC"; then
3404   # Extract the first word of "cc", so it can be a program name with args.
3405 set dummy cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_CC+set}" = set; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   if test -n "$CC"; then
3412   ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414   ac_prog_rejected=no
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418   IFS=$as_save_IFS
3419   test -z "$as_dir" && as_dir=.
3420     for ac_exec_ext in '' $ac_executable_extensions; do
3421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3422     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3423        ac_prog_rejected=yes
3424        continue
3425      fi
3426     ac_cv_prog_CC="cc"
3427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428     break 2
3429   fi
3430 done
3431   done
3432 IFS=$as_save_IFS
3433
3434 if test $ac_prog_rejected = yes; then
3435   # We found a bogon in the path, so make sure we never use it.
3436   set dummy $ac_cv_prog_CC
3437   shift
3438   if test $# != 0; then
3439     # We chose a different compiler from the bogus one.
3440     # However, it has the same basename, so the bogon will be chosen
3441     # first if we set CC to just the basename; use the full file name.
3442     shift
3443     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3444   fi
3445 fi
3446 fi
3447 fi
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3452 else
3453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3455 fi
3456
3457
3458 fi
3459 if test -z "$CC"; then
3460   if test -n "$ac_tool_prefix"; then
3461   for ac_prog in cl.exe
3462   do
3463     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_CC+set}" = set; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test -n "$CC"; then
3471   ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 CC=$ac_cv_prog_CC
3491 if test -n "$CC"; then
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3494 else
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500     test -n "$CC" && break
3501   done
3502 fi
3503 if test -z "$CC"; then
3504   ac_ct_CC=$CC
3505   for ac_prog in cl.exe
3506 do
3507   # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   if test -n "$ac_ct_CC"; then
3515   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522     for ac_exec_ext in '' $ac_executable_extensions; do
3523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524     ac_cv_prog_ac_ct_CC="$ac_prog"
3525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529   done
3530 IFS=$as_save_IFS
3531
3532 fi
3533 fi
3534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535 if test -n "$ac_ct_CC"; then
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537 $as_echo "$ac_ct_CC" >&6; }
3538 else
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 fi
3542
3543
3544   test -n "$ac_ct_CC" && break
3545 done
3546
3547   if test "x$ac_ct_CC" = x; then
3548     CC=""
3549   else
3550     case $cross_compiling:$ac_tool_warned in
3551 yes:)
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554 ac_tool_warned=yes ;;
3555 esac
3556     CC=$ac_ct_CC
3557   fi
3558 fi
3559
3560 fi
3561
3562
3563 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "no acceptable C compiler found in \$PATH
3566 See \`config.log' for more details" "$LINENO" 5 ; }
3567
3568 # Provide some information about the compiler.
3569 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3570 set X $ac_compile
3571 ac_compiler=$2
3572 for ac_option in --version -v -V -qversion; do
3573   { { ac_try="$ac_compiler $ac_option >&5"
3574 case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3581   ac_status=$?
3582   if test -s conftest.err; then
3583     sed '10a\
3584 ... rest of stderr output deleted ...
3585          10q' conftest.err >conftest.er1
3586     cat conftest.er1 >&5
3587   fi
3588   rm -f conftest.er1 conftest.err
3589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590   test $ac_status = 0; }
3591 done
3592
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h.  */
3595
3596 int
3597 main ()
3598 {
3599
3600   ;
3601   return 0;
3602 }
3603 _ACEOF
3604 ac_clean_files_save=$ac_clean_files
3605 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3606 # Try to create an executable without -o first, disregard a.out.
3607 # It will help us diagnose broken compilers, and finding out an intuition
3608 # of exeext.
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610 $as_echo_n "checking whether the C compiler works... " >&6; }
3611 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3612
3613 # The possible output files:
3614 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3615
3616 ac_rmfiles=
3617 for ac_file in $ac_files
3618 do
3619   case $ac_file in
3620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3621     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3622   esac
3623 done
3624 rm -f $ac_rmfiles
3625
3626 if { { ac_try="$ac_link_default"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633   (eval "$ac_link_default") 2>&5
3634   ac_status=$?
3635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636   test $ac_status = 0; }; then :
3637   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3638 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3639 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3640 # so that the user can short-circuit this test for compilers unknown to
3641 # Autoconf.
3642 for ac_file in $ac_files ''
3643 do
3644   test -f "$ac_file" || continue
3645   case $ac_file in
3646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3647         ;;
3648     [ab].out )
3649         # We found the default executable, but exeext='' is most
3650         # certainly right.
3651         break;;
3652     *.* )
3653         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3654         then :; else
3655            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656         fi
3657         # We set ac_cv_exeext here because the later test for it is not
3658         # safe: cross compilers may not add the suffix if given an `-o'
3659         # argument, so we may need to know it at that point already.
3660         # Even if this section looks crufty: it has the advantage of
3661         # actually working.
3662         break;;
3663     * )
3664         break;;
3665   esac
3666 done
3667 test "$ac_cv_exeext" = no && ac_cv_exeext=
3668
3669 else
3670   ac_file=''
3671 fi
3672 if test -z "$ac_file"; then :
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 $as_echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error 77 "C compiler cannot create executables
3681 See \`config.log' for more details" "$LINENO" 5 ; }
3682 else
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3684 $as_echo "yes" >&6; }
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3687 $as_echo_n "checking for C compiler default output file name... " >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3689 $as_echo "$ac_file" >&6; }
3690 ac_exeext=$ac_cv_exeext
3691
3692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3693 ac_clean_files=$ac_clean_files_save
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3695 $as_echo_n "checking for suffix of executables... " >&6; }
3696 if { { ac_try="$ac_link"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703   (eval "$ac_link") 2>&5
3704   ac_status=$?
3705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706   test $ac_status = 0; }; then :
3707   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3709 # work properly (i.e., refer to `conftest.exe'), while it won't with
3710 # `rm'.
3711 for ac_file in conftest.exe conftest conftest.*; do
3712   test -f "$ac_file" || continue
3713   case $ac_file in
3714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716           break;;
3717     * ) break;;
3718   esac
3719 done
3720 else
3721   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3724 See \`config.log' for more details" "$LINENO" 5 ; }
3725 fi
3726 rm -f conftest conftest$ac_cv_exeext
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3728 $as_echo "$ac_cv_exeext" >&6; }
3729
3730 rm -f conftest.$ac_ext
3731 EXEEXT=$ac_cv_exeext
3732 ac_exeext=$EXEEXT
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735 #include <stdio.h>
3736 int
3737 main ()
3738 {
3739 FILE *f = fopen ("conftest.out", "w");
3740  return ferror (f) || fclose (f) != 0;
3741
3742   ;
3743   return 0;
3744 }
3745 _ACEOF
3746 ac_clean_files="$ac_clean_files conftest.out"
3747 # Check that the compiler produces executables we can run.  If not, either
3748 # the compiler is broken, or we cross compile.
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3750 $as_echo_n "checking whether we are cross compiling... " >&6; }
3751 if test "$cross_compiling" != yes; then
3752   { { ac_try="$ac_link"
3753 case "(($ac_try" in
3754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755   *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759   (eval "$ac_link") 2>&5
3760   ac_status=$?
3761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762   test $ac_status = 0; }
3763   if { ac_try='./conftest$ac_cv_exeext'
3764   { { case "(($ac_try" in
3765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766   *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770   (eval "$ac_try") 2>&5
3771   ac_status=$?
3772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773   test $ac_status = 0; }; }; then
3774     cross_compiling=no
3775   else
3776     if test "$cross_compiling" = maybe; then
3777         cross_compiling=yes
3778     else
3779         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error $? "cannot run C compiled programs.
3782 If you meant to cross compile, use \`--host'.
3783 See \`config.log' for more details" "$LINENO" 5 ; }
3784     fi
3785   fi
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3788 $as_echo "$cross_compiling" >&6; }
3789
3790 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3791 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3793 $as_echo_n "checking for suffix of object files... " >&6; }
3794 if test "${ac_cv_objext+set}" = set; then :
3795   $as_echo_n "(cached) " >&6
3796 else
3797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799
3800 int
3801 main ()
3802 {
3803
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.o conftest.obj
3809 if { { ac_try="$ac_compile"
3810 case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816   (eval "$ac_compile") 2>&5
3817   ac_status=$?
3818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819   test $ac_status = 0; }; then :
3820   for ac_file in conftest.o conftest.obj conftest.*; do
3821   test -f "$ac_file" || continue;
3822   case $ac_file in
3823     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3824     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3825        break;;
3826   esac
3827 done
3828 else
3829   $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "cannot compute suffix of object files: cannot compile
3835 See \`config.log' for more details" "$LINENO" 5 ; }
3836 fi
3837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3840 $as_echo "$ac_cv_objext" >&6; }
3841 OBJEXT=$ac_cv_objext
3842 ac_objext=$OBJEXT
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3844 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3845 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h.  */
3850
3851 int
3852 main ()
3853 {
3854 #ifndef __GNUC__
3855        choke me
3856 #endif
3857
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863   ac_compiler_gnu=yes
3864 else
3865   ac_compiler_gnu=no
3866 fi
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3869
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3872 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3873 if test $ac_compiler_gnu = yes; then
3874   GCC=yes
3875 else
3876   GCC=
3877 fi
3878 ac_test_CFLAGS=${CFLAGS+set}
3879 ac_save_CFLAGS=$CFLAGS
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3881 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3882 if test "${ac_cv_prog_cc_g+set}" = set; then :
3883   $as_echo_n "(cached) " >&6
3884 else
3885   ac_save_c_werror_flag=$ac_c_werror_flag
3886    ac_c_werror_flag=yes
3887    ac_cv_prog_cc_g=no
3888    CFLAGS="-g"
3889    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h.  */
3891
3892 int
3893 main ()
3894 {
3895
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901   ac_cv_prog_cc_g=yes
3902 else
3903   CFLAGS=""
3904       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916
3917 else
3918   ac_c_werror_flag=$ac_save_c_werror_flag
3919          CFLAGS="-g"
3920          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h.  */
3922
3923 int
3924 main ()
3925 {
3926
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932   ac_cv_prog_cc_g=yes
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939    ac_c_werror_flag=$ac_save_c_werror_flag
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942 $as_echo "$ac_cv_prog_cc_g" >&6; }
3943 if test "$ac_test_CFLAGS" = set; then
3944   CFLAGS=$ac_save_CFLAGS
3945 elif test $ac_cv_prog_cc_g = yes; then
3946   if test "$GCC" = yes; then
3947     CFLAGS="-g -O2"
3948   else
3949     CFLAGS="-g"
3950   fi
3951 else
3952   if test "$GCC" = yes; then
3953     CFLAGS="-O2"
3954   else
3955     CFLAGS=
3956   fi
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3960 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   ac_cv_prog_cc_c89=no
3964 ac_save_CC=$CC
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h.  */
3967 #include <stdarg.h>
3968 #include <stdio.h>
3969 #include <sys/types.h>
3970 #include <sys/stat.h>
3971 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3972 struct buf { int x; };
3973 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3974 static char *e (p, i)
3975      char **p;
3976      int i;
3977 {
3978   return p[i];
3979 }
3980 static char *f (char * (*g) (char **, int), char **p, ...)
3981 {
3982   char *s;
3983   va_list v;
3984   va_start (v,p);
3985   s = g (p, va_arg (v,int));
3986   va_end (v);
3987   return s;
3988 }
3989
3990 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3991    function prototypes and stuff, but not '\xHH' hex character constants.
3992    These don't provoke an error unfortunately, instead are silently treated
3993    as 'x'.  The following induces an error, until -std is added to get
3994    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3995    array size at least.  It's necessary to write '\x00'==0 to get something
3996    that's true only with -std.  */
3997 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3998
3999 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4000    inside strings and character constants.  */
4001 #define FOO(x) 'x'
4002 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4003
4004 int test (int i, double x);
4005 struct s1 {int (*f) (int a);};
4006 struct s2 {int (*f) (double a);};
4007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4008 int argc;
4009 char **argv;
4010 int
4011 main ()
4012 {
4013 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4019         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4020 do
4021   CC="$ac_save_CC $ac_arg"
4022   if ac_fn_c_try_compile "$LINENO"; then :
4023   ac_cv_prog_cc_c89=$ac_arg
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext
4026   test "x$ac_cv_prog_cc_c89" != "xno" && break
4027 done
4028 rm -f conftest.$ac_ext
4029 CC=$ac_save_CC
4030
4031 fi
4032 # AC_CACHE_VAL
4033 case "x$ac_cv_prog_cc_c89" in
4034   x)
4035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 $as_echo "none needed" >&6; } ;;
4037   xno)
4038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039 $as_echo "unsupported" >&6; } ;;
4040   *)
4041     CC="$CC $ac_cv_prog_cc_c89"
4042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4043 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4044 esac
4045 if test "x$ac_cv_prog_cc_c89" != xno; then :
4046
4047 fi
4048
4049 ac_ext=c
4050 ac_cpp='$CPP $CPPFLAGS'
4051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054
4055 depcc="$CC"   am_compiler_list=
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4058 $as_echo_n "checking dependency style of $depcc... " >&6; }
4059 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4060   $as_echo_n "(cached) " >&6
4061 else
4062   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4063   # We make a subdir and do the tests there.  Otherwise we can end up
4064   # making bogus files that we don't know about and never remove.  For
4065   # instance it was reported that on HP-UX the gcc test will end up
4066   # making a dummy file named `D' -- because `-MD' means `put the output
4067   # in D'.
4068   mkdir conftest.dir
4069   # Copy depcomp to subdir because otherwise we won't find it if we're
4070   # using a relative directory.
4071   cp "$am_depcomp" conftest.dir
4072   cd conftest.dir
4073
4074   am_cv_CC_dependencies_compiler_type=none
4075   if test "$am_compiler_list" = ""; then
4076      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4077   fi
4078   for depmode in $am_compiler_list; do
4079     # We need to recreate these files for each test, as the compiler may
4080     # overwrite some of them when testing with obscure command lines.
4081     # This happens at least with the AIX C compiler.
4082     echo '#include "conftest.h"' > conftest.c
4083     echo 'int i;' > conftest.h
4084     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4085
4086     case $depmode in
4087     nosideeffect)
4088       # after this tag, mechanisms are not by side-effect, so they'll
4089       # only be used when explicitly requested
4090       if test "x$enable_dependency_tracking" = xyes; then
4091         continue
4092       else
4093         break
4094       fi
4095       ;;
4096     none) break ;;
4097     esac
4098     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4099     # mode.  It turns out that the SunPro C++ compiler does not properly
4100     # handle `-M -o', and we need to detect this.
4101     if depmode=$depmode \
4102        source=conftest.c object=conftest.o \
4103        depfile=conftest.Po tmpdepfile=conftest.TPo \
4104        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4105        grep conftest.h conftest.Po > /dev/null 2>&1 &&
4106        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4107       am_cv_CC_dependencies_compiler_type=$depmode
4108       break
4109     fi
4110   done
4111
4112   cd ..
4113   rm -rf conftest.dir
4114 else
4115   am_cv_CC_dependencies_compiler_type=none
4116 fi
4117
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4120 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4122
4123
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4126 if test "${lt_cv_path_SED+set}" = set; then :
4127   $as_echo_n "(cached) " >&6
4128 else
4129   # Loop through the user's path and test for sed and gsed.
4130 # Then use that list of sed's as ones to test for truncation.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136   for lt_ac_prog in sed gsed; do
4137     for ac_exec_ext in '' $ac_executable_extensions; do
4138       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4139         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4140       fi
4141     done
4142   done
4143 done
4144 lt_ac_max=0
4145 lt_ac_count=0
4146 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4147 # along with /bin/sed that truncates output.
4148 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4149   test ! -f $lt_ac_sed && break
4150   cat /dev/null > conftest.in
4151   lt_ac_count=0
4152   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4153   # Check for GNU sed and select it if it is found.
4154   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4155     lt_cv_path_SED=$lt_ac_sed
4156     break
4157   fi
4158   while true; do
4159     cat conftest.in conftest.in >conftest.tmp
4160     mv conftest.tmp conftest.in
4161     cp conftest.in conftest.nl
4162     echo >>conftest.nl
4163     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4164     cmp -s conftest.out conftest.nl || break
4165     # 10000 chars as input seems more than enough
4166     test $lt_ac_count -gt 10 && break
4167     lt_ac_count=`expr $lt_ac_count + 1`
4168     if test $lt_ac_count -gt $lt_ac_max; then
4169       lt_ac_max=$lt_ac_count
4170       lt_cv_path_SED=$lt_ac_sed
4171     fi
4172   done
4173 done
4174 SED=$lt_cv_path_SED
4175
4176 fi
4177
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4179 $as_echo "$SED" >&6; }
4180
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4182 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4183 if test "${ac_cv_path_GREP+set}" = set; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   if test -z "$GREP"; then
4187   ac_path_GREP_found=false
4188   # Loop through the user's path and test for each of PROGNAME-LIST
4189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194     for ac_prog in grep ggrep; do
4195     for ac_exec_ext in '' $ac_executable_extensions; do
4196       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4197       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4198 # Check for GNU ac_path_GREP and select it if it is found.
4199   # Check for GNU $ac_path_GREP
4200 case `"$ac_path_GREP" --version 2>&1` in
4201 *GNU*)
4202   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4203 *)
4204   ac_count=0
4205   $as_echo_n 0123456789 >"conftest.in"
4206   while :
4207   do
4208     cat "conftest.in" "conftest.in" >"conftest.tmp"
4209     mv "conftest.tmp" "conftest.in"
4210     cp "conftest.in" "conftest.nl"
4211     $as_echo 'GREP' >> "conftest.nl"
4212     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214     as_fn_arith $ac_count + 1 && ac_count=$as_val
4215     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4216       # Best one so far, save it but keep looking for a better one
4217       ac_cv_path_GREP="$ac_path_GREP"
4218       ac_path_GREP_max=$ac_count
4219     fi
4220     # 10*(2^10) chars as input seems more than enough
4221     test $ac_count -gt 10 && break
4222   done
4223   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224 esac
4225
4226       $ac_path_GREP_found && break 3
4227     done
4228   done
4229   done
4230 IFS=$as_save_IFS
4231   if test -z "$ac_cv_path_GREP"; then
4232     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4233   fi
4234 else
4235   ac_cv_path_GREP=$GREP
4236 fi
4237
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4240 $as_echo "$ac_cv_path_GREP" >&6; }
4241  GREP="$ac_cv_path_GREP"
4242
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4245 $as_echo_n "checking for egrep... " >&6; }
4246 if test "${ac_cv_path_EGREP+set}" = set; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4250    then ac_cv_path_EGREP="$GREP -E"
4251    else
4252      if test -z "$EGREP"; then
4253   ac_path_EGREP_found=false
4254   # Loop through the user's path and test for each of PROGNAME-LIST
4255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4257 do
4258   IFS=$as_save_IFS
4259   test -z "$as_dir" && as_dir=.
4260     for ac_prog in egrep; do
4261     for ac_exec_ext in '' $ac_executable_extensions; do
4262       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4263       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4264 # Check for GNU ac_path_EGREP and select it if it is found.
4265   # Check for GNU $ac_path_EGREP
4266 case `"$ac_path_EGREP" --version 2>&1` in
4267 *GNU*)
4268   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4269 *)
4270   ac_count=0
4271   $as_echo_n 0123456789 >"conftest.in"
4272   while :
4273   do
4274     cat "conftest.in" "conftest.in" >"conftest.tmp"
4275     mv "conftest.tmp" "conftest.in"
4276     cp "conftest.in" "conftest.nl"
4277     $as_echo 'EGREP' >> "conftest.nl"
4278     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280     as_fn_arith $ac_count + 1 && ac_count=$as_val
4281     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4282       # Best one so far, save it but keep looking for a better one
4283       ac_cv_path_EGREP="$ac_path_EGREP"
4284       ac_path_EGREP_max=$ac_count
4285     fi
4286     # 10*(2^10) chars as input seems more than enough
4287     test $ac_count -gt 10 && break
4288   done
4289   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290 esac
4291
4292       $ac_path_EGREP_found && break 3
4293     done
4294   done
4295   done
4296 IFS=$as_save_IFS
4297   if test -z "$ac_cv_path_EGREP"; then
4298     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4299   fi
4300 else
4301   ac_cv_path_EGREP=$EGREP
4302 fi
4303
4304    fi
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4307 $as_echo "$ac_cv_path_EGREP" >&6; }
4308  EGREP="$ac_cv_path_EGREP"
4309
4310
4311
4312 # Check whether --with-gnu-ld was given.
4313 if test "${with_gnu_ld+set}" = set; then :
4314   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4315 else
4316   with_gnu_ld=no
4317 fi
4318
4319 ac_prog=ld
4320 if test "$GCC" = yes; then
4321   # Check if gcc -print-prog-name=ld gives a path.
4322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4323 $as_echo_n "checking for ld used by $CC... " >&6; }
4324   case $host in
4325   *-*-mingw*)
4326     # gcc leaves a trailing carriage return which upsets mingw
4327     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4328   *)
4329     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4330   esac
4331   case $ac_prog in
4332     # Accept absolute paths.
4333     [\\/]* | ?:[\\/]*)
4334       re_direlt='/[^/][^/]*/\.\./'
4335       # Canonicalize the pathname of ld
4336       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4337       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4338         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4339       done
4340       test -z "$LD" && LD="$ac_prog"
4341       ;;
4342   "")
4343     # If it fails, then pretend we aren't using GCC.
4344     ac_prog=ld
4345     ;;
4346   *)
4347     # If it is relative, then search for the first ld in PATH.
4348     with_gnu_ld=unknown
4349     ;;
4350   esac
4351 elif test "$with_gnu_ld" = yes; then
4352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4353 $as_echo_n "checking for GNU ld... " >&6; }
4354 else
4355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4356 $as_echo_n "checking for non-GNU ld... " >&6; }
4357 fi
4358 if test "${lt_cv_path_LD+set}" = set; then :
4359   $as_echo_n "(cached) " >&6
4360 else
4361   if test -z "$LD"; then
4362   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4363   for ac_dir in $PATH; do
4364     IFS="$lt_save_ifs"
4365     test -z "$ac_dir" && ac_dir=.
4366     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4367       lt_cv_path_LD="$ac_dir/$ac_prog"
4368       # Check to see if the program is GNU ld.  I'd rather use --version,
4369       # but apparently some GNU ld's only accept -v.
4370       # Break only if it was the GNU/non-GNU ld that we prefer.
4371       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4372       *GNU* | *'with BFD'*)
4373         test "$with_gnu_ld" != no && break
4374         ;;
4375       *)
4376         test "$with_gnu_ld" != yes && break
4377         ;;
4378       esac
4379     fi
4380   done
4381   IFS="$lt_save_ifs"
4382 else
4383   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4384 fi
4385 fi
4386
4387 LD="$lt_cv_path_LD"
4388 if test -n "$LD"; then
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4390 $as_echo "$LD" >&6; }
4391 else
4392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
4394 fi
4395 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4398 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4402 case `$LD -v 2>&1 </dev/null` in
4403 *GNU* | *'with BFD'*)
4404   lt_cv_prog_gnu_ld=yes
4405   ;;
4406 *)
4407   lt_cv_prog_gnu_ld=no
4408   ;;
4409 esac
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4412 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4413 with_gnu_ld=$lt_cv_prog_gnu_ld
4414
4415
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4417 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4418 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   lt_cv_ld_reload_flag='-r'
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4424 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4425 reload_flag=$lt_cv_ld_reload_flag
4426 case $reload_flag in
4427 "" | " "*) ;;
4428 *) reload_flag=" $reload_flag" ;;
4429 esac
4430 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4433 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4434 if test "${lt_cv_path_NM+set}" = set; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   if test -n "$NM"; then
4438   # Let the user override the test.
4439   lt_cv_path_NM="$NM"
4440 else
4441   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4442   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4443     IFS="$lt_save_ifs"
4444     test -z "$ac_dir" && ac_dir=.
4445     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4446     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4447       # Check to see if the nm accepts a BSD-compat flag.
4448       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4449       #   nm: unknown option "B" ignored
4450       # Tru64's nm complains that /dev/null is an invalid object file
4451       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4452       */dev/null* | *'Invalid file or object type'*)
4453         lt_cv_path_NM="$tmp_nm -B"
4454         break
4455         ;;
4456       *)
4457         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4458         */dev/null*)
4459           lt_cv_path_NM="$tmp_nm -p"
4460           break
4461           ;;
4462         *)
4463           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4464           continue # so that we can try to find one that supports BSD flags
4465           ;;
4466         esac
4467       esac
4468     fi
4469   done
4470   IFS="$lt_save_ifs"
4471   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4472 fi
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4475 $as_echo "$lt_cv_path_NM" >&6; }
4476 NM="$lt_cv_path_NM"
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4479 $as_echo_n "checking whether ln -s works... " >&6; }
4480 LN_S=$as_ln_s
4481 if test "$LN_S" = "ln -s"; then
4482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4483 $as_echo "yes" >&6; }
4484 else
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4486 $as_echo "no, using $LN_S" >&6; }
4487 fi
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4490 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4491 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   lt_cv_file_magic_cmd='$MAGIC_CMD'
4495 lt_cv_file_magic_test_file=
4496 lt_cv_deplibs_check_method='unknown'
4497 # Need to set the preceding variable on all platforms that support
4498 # interlibrary dependencies.
4499 # 'none' -- dependencies not supported.
4500 # `unknown' -- same as none, but documents that we really don't know.
4501 # 'pass_all' -- all dependencies passed with no checks.
4502 # 'test_compile' -- check by making test program.
4503 # 'file_magic [[regex]]' -- check by looking for files in library path
4504 # which responds to the $file_magic_cmd with a given extended regex.
4505 # If you have `file' or equivalent on your system and you're not sure
4506 # whether `pass_all' will *always* work, you probably want this one.
4507
4508 case $host_os in
4509 aix4* | aix5*)
4510   lt_cv_deplibs_check_method=pass_all
4511   ;;
4512
4513 beos*)
4514   lt_cv_deplibs_check_method=pass_all
4515   ;;
4516
4517 bsdi4*)
4518   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4519   lt_cv_file_magic_cmd='/usr/bin/file -L'
4520   lt_cv_file_magic_test_file=/shlib/libc.so
4521   ;;
4522
4523 cygwin*)
4524   # win32_libid is a shell function defined in ltmain.sh
4525   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4526   lt_cv_file_magic_cmd='win32_libid'
4527   ;;
4528
4529 mingw* | pw32*)
4530   # Base MSYS/MinGW do not provide the 'file' command needed by
4531   # win32_libid shell function, so use a weaker test based on 'objdump'.
4532   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4533   lt_cv_file_magic_cmd='$OBJDUMP -f'
4534   ;;
4535
4536 darwin* | rhapsody*)
4537   lt_cv_deplibs_check_method=pass_all
4538   ;;
4539
4540 freebsd* | kfreebsd*-gnu)
4541   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4542     case $host_cpu in
4543     i*86 )
4544       # Not sure whether the presence of OpenBSD here was a mistake.
4545       # Let's accept both of them until this is cleared up.
4546       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4547       lt_cv_file_magic_cmd=/usr/bin/file
4548       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4549       ;;
4550     esac
4551   else
4552     lt_cv_deplibs_check_method=pass_all
4553   fi
4554   ;;
4555
4556 gnu*)
4557   lt_cv_deplibs_check_method=pass_all
4558   ;;
4559
4560 hpux10.20* | hpux11*)
4561   lt_cv_file_magic_cmd=/usr/bin/file
4562   case "$host_cpu" in
4563   ia64*)
4564     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4565     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4566     ;;
4567   hppa*64*)
4568     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]'
4569     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4570     ;;
4571   *)
4572     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4573     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4574     ;;
4575   esac
4576   ;;
4577
4578 irix5* | irix6* | nonstopux*)
4579   case $LD in
4580   *-32|*"-32 ") libmagic=32-bit;;
4581   *-n32|*"-n32 ") libmagic=N32;;
4582   *-64|*"-64 ") libmagic=64-bit;;
4583   *) libmagic=never-match;;
4584   esac
4585   lt_cv_deplibs_check_method=pass_all
4586   ;;
4587
4588 # This must be Linux ELF.
4589 linux*)
4590   lt_cv_deplibs_check_method=pass_all
4591   ;;
4592
4593 netbsd* | knetbsd*-gnu)
4594   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4596   else
4597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4598   fi
4599   ;;
4600
4601 newos6*)
4602   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4603   lt_cv_file_magic_cmd=/usr/bin/file
4604   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4605   ;;
4606
4607 nto-qnx*)
4608   lt_cv_deplibs_check_method=unknown
4609   ;;
4610
4611 openbsd*)
4612   lt_cv_file_magic_cmd=/usr/bin/file
4613   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4614   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4615     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4616   else
4617     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4618   fi
4619   ;;
4620
4621 osf3* | osf4* | osf5*)
4622   lt_cv_deplibs_check_method=pass_all
4623   ;;
4624
4625 sco3.2v5*)
4626   lt_cv_deplibs_check_method=pass_all
4627   ;;
4628
4629 solaris*)
4630   lt_cv_deplibs_check_method=pass_all
4631   ;;
4632
4633 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4634   case $host_vendor in
4635   motorola)
4636     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]'
4637     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4638     ;;
4639   ncr)
4640     lt_cv_deplibs_check_method=pass_all
4641     ;;
4642   sequent)
4643     lt_cv_file_magic_cmd='/bin/file'
4644     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4645     ;;
4646   sni)
4647     lt_cv_file_magic_cmd='/bin/file'
4648     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4649     lt_cv_file_magic_test_file=/lib/libc.so
4650     ;;
4651   siemens)
4652     lt_cv_deplibs_check_method=pass_all
4653     ;;
4654   esac
4655   ;;
4656
4657 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4658   lt_cv_deplibs_check_method=pass_all
4659   ;;
4660 esac
4661
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4664 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4665 file_magic_cmd=$lt_cv_file_magic_cmd
4666 deplibs_check_method=$lt_cv_deplibs_check_method
4667 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4668
4669
4670
4671
4672 # If no C compiler was specified, use CC.
4673 LTCC=${LTCC-"$CC"}
4674
4675 # Allow CC to be a program name with arguments.
4676 compiler=$CC
4677
4678
4679 # Check whether --enable-libtool-lock was given.
4680 if test "${enable_libtool_lock+set}" = set; then :
4681   enableval=$enable_libtool_lock;
4682 fi
4683
4684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4685
4686 # Some flags need to be propagated to the compiler or linker for good
4687 # libtool support.
4688 case $host in
4689 ia64-*-hpux*)
4690   # Find out which ABI we are using.
4691   echo 'int i;' > conftest.$ac_ext
4692   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4693   (eval $ac_compile) 2>&5
4694   ac_status=$?
4695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696   test $ac_status = 0; }; then
4697     case `/usr/bin/file conftest.$ac_objext` in
4698     *ELF-32*)
4699       HPUX_IA64_MODE="32"
4700       ;;
4701     *ELF-64*)
4702       HPUX_IA64_MODE="64"
4703       ;;
4704     esac
4705   fi
4706   rm -rf conftest*
4707   ;;
4708 *-*-irix6*)
4709   # Find out which ABI we are using.
4710   echo '#line 4710 "configure"' > conftest.$ac_ext
4711   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4712   (eval $ac_compile) 2>&5
4713   ac_status=$?
4714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715   test $ac_status = 0; }; then
4716    if test "$lt_cv_prog_gnu_ld" = yes; then
4717     case `/usr/bin/file conftest.$ac_objext` in
4718     *32-bit*)
4719       LD="${LD-ld} -melf32bsmip"
4720       ;;
4721     *N32*)
4722       LD="${LD-ld} -melf32bmipn32"
4723       ;;
4724     *64-bit*)
4725       LD="${LD-ld} -melf64bmip"
4726       ;;
4727     esac
4728    else
4729     case `/usr/bin/file conftest.$ac_objext` in
4730     *32-bit*)
4731       LD="${LD-ld} -32"
4732       ;;
4733     *N32*)
4734       LD="${LD-ld} -n32"
4735       ;;
4736     *64-bit*)
4737       LD="${LD-ld} -64"
4738       ;;
4739     esac
4740    fi
4741   fi
4742   rm -rf conftest*
4743   ;;
4744
4745 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4746   # Find out which ABI we are using.
4747   echo 'int i;' > conftest.$ac_ext
4748   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4749   (eval $ac_compile) 2>&5
4750   ac_status=$?
4751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4752   test $ac_status = 0; }; then
4753     case "`/usr/bin/file conftest.o`" in
4754     *32-bit*)
4755       case $host in
4756         x86_64-*linux*)
4757           LD="${LD-ld} -m elf_i386"
4758           ;;
4759         ppc64-*linux*|powerpc64-*linux*)
4760           LD="${LD-ld} -m elf32ppclinux"
4761           ;;
4762         s390x-*linux*)
4763           LD="${LD-ld} -m elf_s390"
4764           ;;
4765         sparc64-*linux*)
4766           LD="${LD-ld} -m elf32_sparc"
4767           ;;
4768       esac
4769       ;;
4770     *64-bit*)
4771       case $host in
4772         x86_64-*linux*)
4773           LD="${LD-ld} -m elf_x86_64"
4774           ;;
4775         ppc*-*linux*|powerpc*-*linux*)
4776           LD="${LD-ld} -m elf64ppc"
4777           ;;
4778         s390*-*linux*)
4779           LD="${LD-ld} -m elf64_s390"
4780           ;;
4781         sparc*-*linux*)
4782           LD="${LD-ld} -m elf64_sparc"
4783           ;;
4784       esac
4785       ;;
4786     esac
4787   fi
4788   rm -rf conftest*
4789   ;;
4790
4791 *-*-sco3.2v5*)
4792   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4793   SAVE_CFLAGS="$CFLAGS"
4794   CFLAGS="$CFLAGS -belf"
4795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4796 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4797 if test "${lt_cv_cc_needs_belf+set}" = set; then :
4798   $as_echo_n "(cached) " >&6
4799 else
4800   ac_ext=c
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h.  */
4808
4809 int
4810 main ()
4811 {
4812
4813   ;
4814   return 0;
4815 }
4816 _ACEOF
4817 if ac_fn_c_try_link "$LINENO"; then :
4818   lt_cv_cc_needs_belf=yes
4819 else
4820   lt_cv_cc_needs_belf=no
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext \
4823     conftest$ac_exeext conftest.$ac_ext
4824      ac_ext=c
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4832 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4833   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4834     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4835     CFLAGS="$SAVE_CFLAGS"
4836   fi
4837   ;;
4838
4839 esac
4840
4841 need_locks="$enable_libtool_lock"
4842
4843
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4851 # On Suns, sometimes $CPP names a directory.
4852 if test -n "$CPP" && test -d "$CPP"; then
4853   CPP=
4854 fi
4855 if test -z "$CPP"; then
4856   if test "${ac_cv_prog_CPP+set}" = set; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859       # Double quotes because CPP needs to be expanded
4860     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4861     do
4862       ac_preproc_ok=false
4863 for ac_c_preproc_warn_flag in '' yes
4864 do
4865   # Use a header file that comes with gcc, so configuring glibc
4866   # with a fresh cross-compiler works.
4867   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868   # <limits.h> exists even on freestanding compilers.
4869   # On the NeXT, cc -E runs the code through the compiler's parser,
4870   # not just through cpp. "Syntax error" is here to catch this case.
4871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h.  */
4873 #ifdef __STDC__
4874 # include <limits.h>
4875 #else
4876 # include <assert.h>
4877 #endif
4878                      Syntax error
4879 _ACEOF
4880 if ac_fn_c_try_cpp "$LINENO"; then :
4881
4882 else
4883   # Broken: fails on valid input.
4884 continue
4885 fi
4886 rm -f conftest.err conftest.i conftest.$ac_ext
4887
4888   # OK, works on sane cases.  Now check whether nonexistent headers
4889   # can be detected and how.
4890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h.  */
4892 #include <ac_nonexistent.h>
4893 _ACEOF
4894 if ac_fn_c_try_cpp "$LINENO"; then :
4895   # Broken: success on invalid input.
4896 continue
4897 else
4898   # Passes both tests.
4899 ac_preproc_ok=:
4900 break
4901 fi
4902 rm -f conftest.err conftest.i conftest.$ac_ext
4903
4904 done
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.i conftest.err conftest.$ac_ext
4907 if $ac_preproc_ok; then :
4908   break
4909 fi
4910
4911     done
4912     ac_cv_prog_CPP=$CPP
4913
4914 fi
4915   CPP=$ac_cv_prog_CPP
4916 else
4917   ac_cv_prog_CPP=$CPP
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4920 $as_echo "$CPP" >&6; }
4921 ac_preproc_ok=false
4922 for ac_c_preproc_warn_flag in '' yes
4923 do
4924   # Use a header file that comes with gcc, so configuring glibc
4925   # with a fresh cross-compiler works.
4926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927   # <limits.h> exists even on freestanding compilers.
4928   # On the NeXT, cc -E runs the code through the compiler's parser,
4929   # not just through cpp. "Syntax error" is here to catch this case.
4930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h.  */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937                      Syntax error
4938 _ACEOF
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4940
4941 else
4942   # Broken: fails on valid input.
4943 continue
4944 fi
4945 rm -f conftest.err conftest.i conftest.$ac_ext
4946
4947   # OK, works on sane cases.  Now check whether nonexistent headers
4948   # can be detected and how.
4949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h.  */
4951 #include <ac_nonexistent.h>
4952 _ACEOF
4953 if ac_fn_c_try_cpp "$LINENO"; then :
4954   # Broken: success on invalid input.
4955 continue
4956 else
4957   # Passes both tests.
4958 ac_preproc_ok=:
4959 break
4960 fi
4961 rm -f conftest.err conftest.i conftest.$ac_ext
4962
4963 done
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.i conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then :
4967
4968 else
4969   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4971 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4972 See \`config.log' for more details" "$LINENO" 5 ; }
4973 fi
4974
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4983 $as_echo_n "checking for ANSI C header files... " >&6; }
4984 if test "${ac_cv_header_stdc+set}" = set; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h.  */
4989 #include <stdlib.h>
4990 #include <stdarg.h>
4991 #include <string.h>
4992 #include <float.h>
4993
4994 int
4995 main ()
4996 {
4997
4998   ;
4999   return 0;
5000 }
5001 _ACEOF
5002 if ac_fn_c_try_compile "$LINENO"; then :
5003   ac_cv_header_stdc=yes
5004 else
5005   ac_cv_header_stdc=no
5006 fi
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008
5009 if test $ac_cv_header_stdc = yes; then
5010   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h.  */
5013 #include <string.h>
5014
5015 _ACEOF
5016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5017   $EGREP "memchr" >/dev/null 2>&1; then :
5018
5019 else
5020   ac_cv_header_stdc=no
5021 fi
5022 rm -f conftest*
5023
5024 fi
5025
5026 if test $ac_cv_header_stdc = yes; then
5027   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h.  */
5030 #include <stdlib.h>
5031
5032 _ACEOF
5033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034   $EGREP "free" >/dev/null 2>&1; then :
5035
5036 else
5037   ac_cv_header_stdc=no
5038 fi
5039 rm -f conftest*
5040
5041 fi
5042
5043 if test $ac_cv_header_stdc = yes; then
5044   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5045   if test "$cross_compiling" = yes; then :
5046   :
5047 else
5048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h.  */
5050 #include <ctype.h>
5051 #include <stdlib.h>
5052 #if ((' ' & 0x0FF) == 0x020)
5053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5055 #else
5056 # define ISLOWER(c) \
5057                    (('a' <= (c) && (c) <= 'i') \
5058                      || ('j' <= (c) && (c) <= 'r') \
5059                      || ('s' <= (c) && (c) <= 'z'))
5060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5061 #endif
5062
5063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5064 int
5065 main ()
5066 {
5067   int i;
5068   for (i = 0; i < 256; i++)
5069     if (XOR (islower (i), ISLOWER (i))
5070         || toupper (i) != TOUPPER (i))
5071       return 2;
5072   return 0;
5073 }
5074 _ACEOF
5075 if ac_fn_c_try_run "$LINENO"; then :
5076
5077 else
5078   ac_cv_header_stdc=no
5079 fi
5080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5081   conftest.$ac_objext conftest.beam conftest.$ac_ext
5082 fi
5083
5084 fi
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5087 $as_echo "$ac_cv_header_stdc" >&6; }
5088 if test $ac_cv_header_stdc = yes; then
5089
5090 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5091
5092 fi
5093
5094 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096                   inttypes.h stdint.h unistd.h
5097 do :
5098   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5100 "
5101 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5102   cat >>confdefs.h <<_ACEOF
5103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5104 _ACEOF
5105
5106 fi
5107
5108 done
5109
5110
5111 for ac_header in dlfcn.h
5112 do :
5113   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5114 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5115   cat >>confdefs.h <<_ACEOF
5116 #define HAVE_DLFCN_H 1
5117 _ACEOF
5118
5119 fi
5120
5121 done
5122
5123 ac_ext=cpp
5124 ac_cpp='$CXXCPP $CPPFLAGS'
5125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5128 if test -z "$CXX"; then
5129   if test -n "$CCC"; then
5130     CXX=$CCC
5131   else
5132     if test -n "$ac_tool_prefix"; then
5133   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5134   do
5135     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if test "${ac_cv_prog_CXX+set}" = set; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   if test -n "$CXX"; then
5143   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148   IFS=$as_save_IFS
5149   test -z "$as_dir" && as_dir=.
5150     for ac_exec_ext in '' $ac_executable_extensions; do
5151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154     break 2
5155   fi
5156 done
5157   done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 CXX=$ac_cv_prog_CXX
5163 if test -n "$CXX"; then
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5165 $as_echo "$CXX" >&6; }
5166 else
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171
5172     test -n "$CXX" && break
5173   done
5174 fi
5175 if test -z "$CXX"; then
5176   ac_ct_CXX=$CXX
5177   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5178 do
5179   # Extract the first word of "$ac_prog", so it can be a program name with args.
5180 set dummy $ac_prog; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   if test -n "$ac_ct_CXX"; then
5187   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194     for ac_exec_ext in '' $ac_executable_extensions; do
5195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196     ac_cv_prog_ac_ct_CXX="$ac_prog"
5197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199   fi
5200 done
5201   done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5207 if test -n "$ac_ct_CXX"; then
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5209 $as_echo "$ac_ct_CXX" >&6; }
5210 else
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215
5216   test -n "$ac_ct_CXX" && break
5217 done
5218
5219   if test "x$ac_ct_CXX" = x; then
5220     CXX="g++"
5221   else
5222     case $cross_compiling:$ac_tool_warned in
5223 yes:)
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5227 esac
5228     CXX=$ac_ct_CXX
5229   fi
5230 fi
5231
5232   fi
5233 fi
5234 # Provide some information about the compiler.
5235 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5236 set X $ac_compile
5237 ac_compiler=$2
5238 for ac_option in --version -v -V -qversion; do
5239   { { ac_try="$ac_compiler $ac_option >&5"
5240 case "(($ac_try" in
5241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242   *) ac_try_echo=$ac_try;;
5243 esac
5244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5245 $as_echo "$ac_try_echo"; } >&5
5246   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5247   ac_status=$?
5248   if test -s conftest.err; then
5249     sed '10a\
5250 ... rest of stderr output deleted ...
5251          10q' conftest.err >conftest.er1
5252     cat conftest.er1 >&5
5253   fi
5254   rm -f conftest.er1 conftest.err
5255   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256   test $ac_status = 0; }
5257 done
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5260 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5261 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h.  */
5266
5267 int
5268 main ()
5269 {
5270 #ifndef __GNUC__
5271        choke me
5272 #endif
5273
5274   ;
5275   return 0;
5276 }
5277 _ACEOF
5278 if ac_fn_cxx_try_compile "$LINENO"; then :
5279   ac_compiler_gnu=yes
5280 else
5281   ac_compiler_gnu=no
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5285
5286 fi
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5288 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5289 if test $ac_compiler_gnu = yes; then
5290   GXX=yes
5291 else
5292   GXX=
5293 fi
5294 ac_test_CXXFLAGS=${CXXFLAGS+set}
5295 ac_save_CXXFLAGS=$CXXFLAGS
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5297 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5298 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5302    ac_cxx_werror_flag=yes
5303    ac_cv_prog_cxx_g=no
5304    CXXFLAGS="-g"
5305    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h.  */
5307
5308 int
5309 main ()
5310 {
5311
5312   ;
5313   return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_cxx_try_compile "$LINENO"; then :
5317   ac_cv_prog_cxx_g=yes
5318 else
5319   CXXFLAGS=""
5320       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h.  */
5322
5323 int
5324 main ()
5325 {
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_cxx_try_compile "$LINENO"; then :
5332
5333 else
5334   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5335          CXXFLAGS="-g"
5336          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h.  */
5338
5339 int
5340 main ()
5341 {
5342
5343   ;
5344   return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_cxx_try_compile "$LINENO"; then :
5348   ac_cv_prog_cxx_g=yes
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5358 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5359 if test "$ac_test_CXXFLAGS" = set; then
5360   CXXFLAGS=$ac_save_CXXFLAGS
5361 elif test $ac_cv_prog_cxx_g = yes; then
5362   if test "$GXX" = yes; then
5363     CXXFLAGS="-g -O2"
5364   else
5365     CXXFLAGS="-g"
5366   fi
5367 else
5368   if test "$GXX" = yes; then
5369     CXXFLAGS="-O2"
5370   else
5371     CXXFLAGS=
5372   fi
5373 fi
5374 ac_ext=cpp
5375 ac_cpp='$CXXCPP $CPPFLAGS'
5376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5379
5380 depcc="$CXX"  am_compiler_list=
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5383 $as_echo_n "checking dependency style of $depcc... " >&6; }
5384 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5385   $as_echo_n "(cached) " >&6
5386 else
5387   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5388   # We make a subdir and do the tests there.  Otherwise we can end up
5389   # making bogus files that we don't know about and never remove.  For
5390   # instance it was reported that on HP-UX the gcc test will end up
5391   # making a dummy file named `D' -- because `-MD' means `put the output
5392   # in D'.
5393   mkdir conftest.dir
5394   # Copy depcomp to subdir because otherwise we won't find it if we're
5395   # using a relative directory.
5396   cp "$am_depcomp" conftest.dir
5397   cd conftest.dir
5398
5399   am_cv_CXX_dependencies_compiler_type=none
5400   if test "$am_compiler_list" = ""; then
5401      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5402   fi
5403   for depmode in $am_compiler_list; do
5404     # We need to recreate these files for each test, as the compiler may
5405     # overwrite some of them when testing with obscure command lines.
5406     # This happens at least with the AIX C compiler.
5407     echo '#include "conftest.h"' > conftest.c
5408     echo 'int i;' > conftest.h
5409     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
5410
5411     case $depmode in
5412     nosideeffect)
5413       # after this tag, mechanisms are not by side-effect, so they'll
5414       # only be used when explicitly requested
5415       if test "x$enable_dependency_tracking" = xyes; then
5416         continue
5417       else
5418         break
5419       fi
5420       ;;
5421     none) break ;;
5422     esac
5423     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5424     # mode.  It turns out that the SunPro C++ compiler does not properly
5425     # handle `-M -o', and we need to detect this.
5426     if depmode=$depmode \
5427        source=conftest.c object=conftest.o \
5428        depfile=conftest.Po tmpdepfile=conftest.TPo \
5429        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
5430        grep conftest.h conftest.Po > /dev/null 2>&1 &&
5431        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5432       am_cv_CXX_dependencies_compiler_type=$depmode
5433       break
5434     fi
5435   done
5436
5437   cd ..
5438   rm -rf conftest.dir
5439 else
5440   am_cv_CXX_dependencies_compiler_type=none
5441 fi
5442
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5445 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5446 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5447
5448
5449 ac_ext=cpp
5450 ac_cpp='$CXXCPP $CPPFLAGS'
5451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5455 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5456 if test -z "$CXXCPP"; then
5457   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460       # Double quotes because CXXCPP needs to be expanded
5461     for CXXCPP in "$CXX -E" "/lib/cpp"
5462     do
5463       ac_preproc_ok=false
5464 for ac_cxx_preproc_warn_flag in '' yes
5465 do
5466   # Use a header file that comes with gcc, so configuring glibc
5467   # with a fresh cross-compiler works.
5468   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5469   # <limits.h> exists even on freestanding compilers.
5470   # On the NeXT, cc -E runs the code through the compiler's parser,
5471   # not just through cpp. "Syntax error" is here to catch this case.
5472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h.  */
5474 #ifdef __STDC__
5475 # include <limits.h>
5476 #else
5477 # include <assert.h>
5478 #endif
5479                      Syntax error
5480 _ACEOF
5481 if ac_fn_cxx_try_cpp "$LINENO"; then :
5482
5483 else
5484   # Broken: fails on valid input.
5485 continue
5486 fi
5487 rm -f conftest.err conftest.i conftest.$ac_ext
5488
5489   # OK, works on sane cases.  Now check whether nonexistent headers
5490   # can be detected and how.
5491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h.  */
5493 #include <ac_nonexistent.h>
5494 _ACEOF
5495 if ac_fn_cxx_try_cpp "$LINENO"; then :
5496   # Broken: success on invalid input.
5497 continue
5498 else
5499   # Passes both tests.
5500 ac_preproc_ok=:
5501 break
5502 fi
5503 rm -f conftest.err conftest.i conftest.$ac_ext
5504
5505 done
5506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5507 rm -f conftest.i conftest.err conftest.$ac_ext
5508 if $ac_preproc_ok; then :
5509   break
5510 fi
5511
5512     done
5513     ac_cv_prog_CXXCPP=$CXXCPP
5514
5515 fi
5516   CXXCPP=$ac_cv_prog_CXXCPP
5517 else
5518   ac_cv_prog_CXXCPP=$CXXCPP
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5521 $as_echo "$CXXCPP" >&6; }
5522 ac_preproc_ok=false
5523 for ac_cxx_preproc_warn_flag in '' yes
5524 do
5525   # Use a header file that comes with gcc, so configuring glibc
5526   # with a fresh cross-compiler works.
5527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5528   # <limits.h> exists even on freestanding compilers.
5529   # On the NeXT, cc -E runs the code through the compiler's parser,
5530   # not just through cpp. "Syntax error" is here to catch this case.
5531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h.  */
5533 #ifdef __STDC__
5534 # include <limits.h>
5535 #else
5536 # include <assert.h>
5537 #endif
5538                      Syntax error
5539 _ACEOF
5540 if ac_fn_cxx_try_cpp "$LINENO"; then :
5541
5542 else
5543   # Broken: fails on valid input.
5544 continue
5545 fi
5546 rm -f conftest.err conftest.i conftest.$ac_ext
5547
5548   # OK, works on sane cases.  Now check whether nonexistent headers
5549   # can be detected and how.
5550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h.  */
5552 #include <ac_nonexistent.h>
5553 _ACEOF
5554 if ac_fn_cxx_try_cpp "$LINENO"; then :
5555   # Broken: success on invalid input.
5556 continue
5557 else
5558   # Passes both tests.
5559 ac_preproc_ok=:
5560 break
5561 fi
5562 rm -f conftest.err conftest.i conftest.$ac_ext
5563
5564 done
5565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5566 rm -f conftest.i conftest.err conftest.$ac_ext
5567 if $ac_preproc_ok; then :
5568
5569 else
5570   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5572 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5573 See \`config.log' for more details" "$LINENO" 5 ; }
5574 fi
5575
5576 ac_ext=cpp
5577 ac_cpp='$CXXCPP $CPPFLAGS'
5578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5581
5582
5583 ac_ext=f
5584 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5585 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5587 if test -n "$ac_tool_prefix"; then
5588   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5589   do
5590     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_prog_F77+set}" = set; then :
5595   $as_echo_n "(cached) " >&6
5596 else
5597   if test -n "$F77"; then
5598   ac_cv_prog_F77="$F77" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605     for ac_exec_ext in '' $ac_executable_extensions; do
5606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609     break 2
5610   fi
5611 done
5612   done
5613 IFS=$as_save_IFS
5614
5615 fi
5616 fi
5617 F77=$ac_cv_prog_F77
5618 if test -n "$F77"; then
5619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5620 $as_echo "$F77" >&6; }
5621 else
5622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625
5626
5627     test -n "$F77" && break
5628   done
5629 fi
5630 if test -z "$F77"; then
5631   ac_ct_F77=$F77
5632   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5633 do
5634   # Extract the first word of "$ac_prog", so it can be a program name with args.
5635 set dummy $ac_prog; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   if test -n "$ac_ct_F77"; then
5642   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649     for ac_exec_ext in '' $ac_executable_extensions; do
5650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651     ac_cv_prog_ac_ct_F77="$ac_prog"
5652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653     break 2
5654   fi
5655 done
5656   done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
5661 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5662 if test -n "$ac_ct_F77"; then
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5664 $as_echo "$ac_ct_F77" >&6; }
5665 else
5666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669
5670
5671   test -n "$ac_ct_F77" && break
5672 done
5673
5674   if test "x$ac_ct_F77" = x; then
5675     F77=""
5676   else
5677     case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683     F77=$ac_ct_F77
5684   fi
5685 fi
5686
5687
5688 # Provide some information about the compiler.
5689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5690 set X $ac_compile
5691 ac_compiler=$2
5692 for ac_option in --version -v -V -qversion; do
5693   { { ac_try="$ac_compiler $ac_option >&5"
5694 case "(($ac_try" in
5695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696   *) ac_try_echo=$ac_try;;
5697 esac
5698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5699 $as_echo "$ac_try_echo"; } >&5
5700   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5701   ac_status=$?
5702   if test -s conftest.err; then
5703     sed '10a\
5704 ... rest of stderr output deleted ...
5705          10q' conftest.err >conftest.er1
5706     cat conftest.er1 >&5
5707   fi
5708   rm -f conftest.er1 conftest.err
5709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710   test $ac_status = 0; }
5711 done
5712 rm -f a.out
5713
5714 # If we don't use `.F' as extension, the preprocessor is not run on the
5715 # input file.  (Note that this only needs to work for GNU compilers.)
5716 ac_save_ext=$ac_ext
5717 ac_ext=F
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5719 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5720 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   cat > conftest.$ac_ext <<_ACEOF
5724       program main
5725 #ifndef __GNUC__
5726        choke me
5727 #endif
5728
5729       end
5730 _ACEOF
5731 if ac_fn_f77_try_compile "$LINENO"; then :
5732   ac_compiler_gnu=yes
5733 else
5734   ac_compiler_gnu=no
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5738
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5741 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5742 ac_ext=$ac_save_ext
5743 ac_test_FFLAGS=${FFLAGS+set}
5744 ac_save_FFLAGS=$FFLAGS
5745 FFLAGS=
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5747 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5748 if test "${ac_cv_prog_f77_g+set}" = set; then :
5749   $as_echo_n "(cached) " >&6
5750 else
5751   FFLAGS=-g
5752 cat > conftest.$ac_ext <<_ACEOF
5753       program main
5754
5755       end
5756 _ACEOF
5757 if ac_fn_f77_try_compile "$LINENO"; then :
5758   ac_cv_prog_f77_g=yes
5759 else
5760   ac_cv_prog_f77_g=no
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5766 $as_echo "$ac_cv_prog_f77_g" >&6; }
5767 if test "$ac_test_FFLAGS" = set; then
5768   FFLAGS=$ac_save_FFLAGS
5769 elif test $ac_cv_prog_f77_g = yes; then
5770   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5771     FFLAGS="-g -O2"
5772   else
5773     FFLAGS="-g"
5774   fi
5775 else
5776   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5777     FFLAGS="-O2"
5778   else
5779     FFLAGS=
5780   fi
5781 fi
5782
5783 if test $ac_compiler_gnu = yes; then
5784   G77=yes
5785 else
5786   G77=
5787 fi
5788 ac_ext=c
5789 ac_cpp='$CPP $CPPFLAGS'
5790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793
5794
5795
5796 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5797
5798 # find the maximum length of command line arguments
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5800 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5801 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5802   $as_echo_n "(cached) " >&6
5803 else
5804     i=0
5805   testring="ABCD"
5806
5807   case $build_os in
5808   msdosdjgpp*)
5809     # On DJGPP, this test can blow up pretty badly due to problems in libc
5810     # (any single argument exceeding 2000 bytes causes a buffer overrun
5811     # during glob expansion).  Even if it were fixed, the result of this
5812     # check would be larger than it should be.
5813     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5814     ;;
5815
5816   gnu*)
5817     # Under GNU Hurd, this test is not required because there is
5818     # no limit to the length of command line arguments.
5819     # Libtool will interpret -1 as no limit whatsoever
5820     lt_cv_sys_max_cmd_len=-1;
5821     ;;
5822
5823   cygwin* | mingw*)
5824     # On Win9x/ME, this test blows up -- it succeeds, but takes
5825     # about 5 minutes as the teststring grows exponentially.
5826     # Worse, since 9x/ME are not pre-emptively multitasking,
5827     # you end up with a "frozen" computer, even though with patience
5828     # the test eventually succeeds (with a max line length of 256k).
5829     # Instead, let's just punt: use the minimum linelength reported by
5830     # all of the supported platforms: 8192 (on NT/2K/XP).
5831     lt_cv_sys_max_cmd_len=8192;
5832     ;;
5833
5834   amigaos*)
5835     # On AmigaOS with pdksh, this test takes hours, literally.
5836     # So we just punt and use a minimum line length of 8192.
5837     lt_cv_sys_max_cmd_len=8192;
5838     ;;
5839
5840  *)
5841     # If test is not a shell built-in, we'll probably end up computing a
5842     # maximum length that is only half of the actual maximum length, but
5843     # we can't tell.
5844     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5845                = "XX$testring") >/dev/null 2>&1 &&
5846             new_result=`expr "X$testring" : ".*" 2>&1` &&
5847             lt_cv_sys_max_cmd_len=$new_result &&
5848             test $i != 17 # 1/2 MB should be enough
5849     do
5850       i=`expr $i + 1`
5851       testring=$testring$testring
5852     done
5853     testring=
5854     # Add a significant safety factor because C++ compilers can tack on massive
5855     # amounts of additional arguments before passing them to the linker.
5856     # It appears as though 1/2 is a usable value.
5857     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5858     ;;
5859   esac
5860
5861 fi
5862
5863 if test -n $lt_cv_sys_max_cmd_len ; then
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5865 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5866 else
5867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5868 $as_echo "none" >&6; }
5869 fi
5870
5871
5872
5873
5874 # Check for command to grab the raw symbol name followed by C symbol from nm.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5876 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5877 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880
5881 # These are sane defaults that work on at least a few old systems.
5882 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5883
5884 # Character class describing NM global symbol codes.
5885 symcode='[BCDEGRST]'
5886
5887 # Regexp to match symbols that can be accessed directly from C.
5888 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5889
5890 # Transform the above into a raw symbol and a C symbol.
5891 symxfrm='\1 \2\3 \3'
5892
5893 # Transform an extracted symbol line into a proper C declaration
5894 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5895
5896 # Transform an extracted symbol line into symbol name and symbol address
5897 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5898
5899 # Define system-specific variables.
5900 case $host_os in
5901 aix*)
5902   symcode='[BCDT]'
5903   ;;
5904 cygwin* | mingw* | pw32*)
5905   symcode='[ABCDGISTW]'
5906   ;;
5907 hpux*) # Its linker distinguishes data from code symbols
5908   if test "$host_cpu" = ia64; then
5909     symcode='[ABCDEGRST]'
5910   fi
5911   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5912   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5913   ;;
5914 irix* | nonstopux*)
5915   symcode='[BCDEGRST]'
5916   ;;
5917 osf*)
5918   symcode='[BCDEGQRST]'
5919   ;;
5920 solaris* | sysv5*)
5921   symcode='[BDRT]'
5922   ;;
5923 sysv4)
5924   symcode='[DFNSTU]'
5925   ;;
5926 esac
5927
5928 # Handle CRLF in mingw tool chain
5929 opt_cr=
5930 case $build_os in
5931 mingw*)
5932   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5933   ;;
5934 esac
5935
5936 # If we're using GNU nm, then use its standard symbol codes.
5937 case `$NM -V 2>&1` in
5938 *GNU* | *'with BFD'*)
5939   symcode='[ABCDGIRSTW]' ;;
5940 esac
5941
5942 # Try without a prefix undercore, then with it.
5943 for ac_symprfx in "" "_"; do
5944
5945   # Write the raw and C identifiers.
5946   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5947
5948   # Check to see that the pipe works correctly.
5949   pipe_works=no
5950
5951   rm -f conftest*
5952   cat > conftest.$ac_ext <<EOF
5953 #ifdef __cplusplus
5954 extern "C" {
5955 #endif
5956 char nm_test_var;
5957 void nm_test_func(){}
5958 #ifdef __cplusplus
5959 }
5960 #endif
5961 int main(){nm_test_var='a';nm_test_func();return(0);}
5962 EOF
5963
5964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5965   (eval $ac_compile) 2>&5
5966   ac_status=$?
5967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968   test $ac_status = 0; }; then
5969     # Now try to grab the symbols.
5970     nlist=conftest.nm
5971     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5972   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5973   ac_status=$?
5974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975   test $ac_status = 0; } && test -s "$nlist"; then
5976       # Try sorting and uniquifying the output.
5977       if sort "$nlist" | uniq > "$nlist"T; then
5978         mv -f "$nlist"T "$nlist"
5979       else
5980         rm -f "$nlist"T
5981       fi
5982
5983       # Make sure that we snagged all the symbols we need.
5984       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5985         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5986           cat <<EOF > conftest.$ac_ext
5987 #ifdef __cplusplus
5988 extern "C" {
5989 #endif
5990
5991 EOF
5992           # Now generate the symbol file.
5993           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5994
5995           cat <<EOF >> conftest.$ac_ext
5996 #if defined (__STDC__) && __STDC__
5997 # define lt_ptr_t void *
5998 #else
5999 # define lt_ptr_t char *
6000 # define const
6001 #endif
6002
6003 /* The mapping between symbol names and symbols. */
6004 const struct {
6005   const char *name;
6006   lt_ptr_t address;
6007 }
6008 lt_preloaded_symbols[] =
6009 {
6010 EOF
6011           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6012           cat <<\EOF >> conftest.$ac_ext
6013   {0, (lt_ptr_t) 0}
6014 };
6015
6016 #ifdef __cplusplus
6017 }
6018 #endif
6019 EOF
6020           # Now try linking the two files.
6021           mv conftest.$ac_objext conftstm.$ac_objext
6022           lt_save_LIBS="$LIBS"
6023           lt_save_CFLAGS="$CFLAGS"
6024           LIBS="conftstm.$ac_objext"
6025           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6026           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6027   (eval $ac_link) 2>&5
6028   ac_status=$?
6029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6031             pipe_works=yes
6032           fi
6033           LIBS="$lt_save_LIBS"
6034           CFLAGS="$lt_save_CFLAGS"
6035         else
6036           echo "cannot find nm_test_func in $nlist" >&5
6037         fi
6038       else
6039         echo "cannot find nm_test_var in $nlist" >&5
6040       fi
6041     else
6042       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6043     fi
6044   else
6045     echo "$progname: failed program was:" >&5
6046     cat conftest.$ac_ext >&5
6047   fi
6048   rm -f conftest* conftst*
6049
6050   # Do not use the global_symbol_pipe unless it works.
6051   if test "$pipe_works" = yes; then
6052     break
6053   else
6054     lt_cv_sys_global_symbol_pipe=
6055   fi
6056 done
6057
6058 fi
6059
6060 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6061   lt_cv_sys_global_symbol_to_cdecl=
6062 fi
6063 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6065 $as_echo "failed" >&6; }
6066 else
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6068 $as_echo "ok" >&6; }
6069 fi
6070
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6072 $as_echo_n "checking for objdir... " >&6; }
6073 if test "${lt_cv_objdir+set}" = set; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   rm -f .libs 2>/dev/null
6077 mkdir .libs 2>/dev/null
6078 if test -d .libs; then
6079   lt_cv_objdir=.libs
6080 else
6081   # MS-DOS does not allow filenames that begin with a dot.
6082   lt_cv_objdir=_libs
6083 fi
6084 rmdir .libs 2>/dev/null
6085 fi
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6087 $as_echo "$lt_cv_objdir" >&6; }
6088 objdir=$lt_cv_objdir
6089
6090
6091
6092
6093
6094 case $host_os in
6095 aix3*)
6096   # AIX sometimes has problems with the GCC collect2 program.  For some
6097   # reason, if we set the COLLECT_NAMES environment variable, the problems
6098   # vanish in a puff of smoke.
6099   if test "X${COLLECT_NAMES+set}" != Xset; then
6100     COLLECT_NAMES=
6101     export COLLECT_NAMES
6102   fi
6103   ;;
6104 esac
6105
6106 # Sed substitution that helps us do robust quoting.  It backslashifies
6107 # metacharacters that are still active within double-quoted strings.
6108 Xsed='sed -e s/^X//'
6109 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6110
6111 # Same as above, but do not quote variable references.
6112 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6113
6114 # Sed substitution to delay expansion of an escaped shell variable in a
6115 # double_quote_subst'ed string.
6116 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6117
6118 # Sed substitution to avoid accidental globbing in evaled expressions
6119 no_glob_subst='s/\*/\\\*/g'
6120
6121 # Constants:
6122 rm="rm -f"
6123
6124 # Global variables:
6125 default_ofile=libtool
6126 can_build_shared=yes
6127
6128 # All known linkers require a `.a' archive for static linking (except M$VC,
6129 # which needs '.lib').
6130 libext=a
6131 ltmain="$ac_aux_dir/ltmain.sh"
6132 ofile="$default_ofile"
6133 with_gnu_ld="$lt_cv_prog_gnu_ld"
6134
6135 if test -n "$ac_tool_prefix"; then
6136   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ar; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if test "${ac_cv_prog_AR+set}" = set; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143   if test -n "$AR"; then
6144   ac_cv_prog_AR="$AR" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151     for ac_exec_ext in '' $ac_executable_extensions; do
6152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153     ac_cv_prog_AR="${ac_tool_prefix}ar"
6154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158   done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 AR=$ac_cv_prog_AR
6164 if test -n "$AR"; then
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6166 $as_echo "$AR" >&6; }
6167 else
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171
6172
6173 fi
6174 if test -z "$ac_cv_prog_AR"; then
6175   ac_ct_AR=$AR
6176   # Extract the first word of "ar", so it can be a program name with args.
6177 set dummy ar; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   if test -n "$ac_ct_AR"; then
6184   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191     for ac_exec_ext in '' $ac_executable_extensions; do
6192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193     ac_cv_prog_ac_ct_AR="ar"
6194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198   done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6204 if test -n "$ac_ct_AR"; then
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6206 $as_echo "$ac_ct_AR" >&6; }
6207 else
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211
6212   if test "x$ac_ct_AR" = x; then
6213     AR="false"
6214   else
6215     case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6220 esac
6221     AR=$ac_ct_AR
6222   fi
6223 else
6224   AR="$ac_cv_prog_AR"
6225 fi
6226
6227 if test -n "$ac_tool_prefix"; then
6228   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6229 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6233   $as_echo_n "(cached) " >&6
6234 else
6235   if test -n "$RANLIB"; then
6236   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243     for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250   done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 RANLIB=$ac_cv_prog_RANLIB
6256 if test -n "$RANLIB"; then
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6258 $as_echo "$RANLIB" >&6; }
6259 else
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263
6264
6265 fi
6266 if test -z "$ac_cv_prog_RANLIB"; then
6267   ac_ct_RANLIB=$RANLIB
6268   # Extract the first word of "ranlib", so it can be a program name with args.
6269 set dummy ranlib; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275   if test -n "$ac_ct_RANLIB"; then
6276   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281   IFS=$as_save_IFS
6282   test -z "$as_dir" && as_dir=.
6283     for ac_exec_ext in '' $ac_executable_extensions; do
6284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285     ac_cv_prog_ac_ct_RANLIB="ranlib"
6286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287     break 2
6288   fi
6289 done
6290   done
6291 IFS=$as_save_IFS
6292
6293 fi
6294 fi
6295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6296 if test -n "$ac_ct_RANLIB"; then
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6298 $as_echo "$ac_ct_RANLIB" >&6; }
6299 else
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6302 fi
6303
6304   if test "x$ac_ct_RANLIB" = x; then
6305     RANLIB=":"
6306   else
6307     case $cross_compiling:$ac_tool_warned in
6308 yes:)
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311 ac_tool_warned=yes ;;
6312 esac
6313     RANLIB=$ac_ct_RANLIB
6314   fi
6315 else
6316   RANLIB="$ac_cv_prog_RANLIB"
6317 fi
6318
6319 if test -n "$ac_tool_prefix"; then
6320   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}strip; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if test "${ac_cv_prog_STRIP+set}" = set; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   if test -n "$STRIP"; then
6328   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333   IFS=$as_save_IFS
6334   test -z "$as_dir" && as_dir=.
6335     for ac_exec_ext in '' $ac_executable_extensions; do
6336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339     break 2
6340   fi
6341 done
6342   done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 STRIP=$ac_cv_prog_STRIP
6348 if test -n "$STRIP"; then
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6350 $as_echo "$STRIP" >&6; }
6351 else
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356
6357 fi
6358 if test -z "$ac_cv_prog_STRIP"; then
6359   ac_ct_STRIP=$STRIP
6360   # Extract the first word of "strip", so it can be a program name with args.
6361 set dummy strip; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6365   $as_echo_n "(cached) " >&6
6366 else
6367   if test -n "$ac_ct_STRIP"; then
6368   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373   IFS=$as_save_IFS
6374   test -z "$as_dir" && as_dir=.
6375     for ac_exec_ext in '' $ac_executable_extensions; do
6376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377     ac_cv_prog_ac_ct_STRIP="strip"
6378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379     break 2
6380   fi
6381 done
6382   done
6383 IFS=$as_save_IFS
6384
6385 fi
6386 fi
6387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6388 if test -n "$ac_ct_STRIP"; then
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6390 $as_echo "$ac_ct_STRIP" >&6; }
6391 else
6392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6394 fi
6395
6396   if test "x$ac_ct_STRIP" = x; then
6397     STRIP=":"
6398   else
6399     case $cross_compiling:$ac_tool_warned in
6400 yes:)
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6404 esac
6405     STRIP=$ac_ct_STRIP
6406   fi
6407 else
6408   STRIP="$ac_cv_prog_STRIP"
6409 fi
6410
6411
6412 old_CC="$CC"
6413 old_CFLAGS="$CFLAGS"
6414
6415 # Set sane defaults for various variables
6416 test -z "$AR" && AR=ar
6417 test -z "$AR_FLAGS" && AR_FLAGS=cru
6418 test -z "$AS" && AS=as
6419 test -z "$CC" && CC=cc
6420 test -z "$LTCC" && LTCC=$CC
6421 test -z "$DLLTOOL" && DLLTOOL=dlltool
6422 test -z "$LD" && LD=ld
6423 test -z "$LN_S" && LN_S="ln -s"
6424 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6425 test -z "$NM" && NM=nm
6426 test -z "$SED" && SED=sed
6427 test -z "$OBJDUMP" && OBJDUMP=objdump
6428 test -z "$RANLIB" && RANLIB=:
6429 test -z "$STRIP" && STRIP=:
6430 test -z "$ac_objext" && ac_objext=o
6431
6432 # Determine commands to create old-style static archives.
6433 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6434 old_postinstall_cmds='chmod 644 $oldlib'
6435 old_postuninstall_cmds=
6436
6437 if test -n "$RANLIB"; then
6438   case $host_os in
6439   openbsd*)
6440     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6441     ;;
6442   *)
6443     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6444     ;;
6445   esac
6446   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6447 fi
6448
6449 # Only perform the check for file, if the check method requires it
6450 case $deplibs_check_method in
6451 file_magic*)
6452   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6454 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6455 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458   case $MAGIC_CMD in
6459 [\\/*] |  ?:[\\/]*)
6460   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6461   ;;
6462 *)
6463   lt_save_MAGIC_CMD="$MAGIC_CMD"
6464   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6465   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6466   for ac_dir in $ac_dummy; do
6467     IFS="$lt_save_ifs"
6468     test -z "$ac_dir" && ac_dir=.
6469     if test -f $ac_dir/${ac_tool_prefix}file; then
6470       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6471       if test -n "$file_magic_test_file"; then
6472         case $deplibs_check_method in
6473         "file_magic "*)
6474           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6475           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6476           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6477             $EGREP "$file_magic_regex" > /dev/null; then
6478             :
6479           else
6480             cat <<EOF 1>&2
6481
6482 *** Warning: the command libtool uses to detect shared libraries,
6483 *** $file_magic_cmd, produces output that libtool cannot recognize.
6484 *** The result is that libtool may fail to recognize shared libraries
6485 *** as such.  This will affect the creation of libtool libraries that
6486 *** depend on shared libraries, but programs linked with such libtool
6487 *** libraries will work regardless of this problem.  Nevertheless, you
6488 *** may want to report the problem to your system manager and/or to
6489 *** bug-libtool@gnu.org
6490
6491 EOF
6492           fi ;;
6493         esac
6494       fi
6495       break
6496     fi
6497   done
6498   IFS="$lt_save_ifs"
6499   MAGIC_CMD="$lt_save_MAGIC_CMD"
6500   ;;
6501 esac
6502 fi
6503
6504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6505 if test -n "$MAGIC_CMD"; then
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6507 $as_echo "$MAGIC_CMD" >&6; }
6508 else
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513 if test -z "$lt_cv_path_MAGIC_CMD"; then
6514   if test -n "$ac_tool_prefix"; then
6515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6516 $as_echo_n "checking for file... " >&6; }
6517 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520   case $MAGIC_CMD in
6521 [\\/*] |  ?:[\\/]*)
6522   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6523   ;;
6524 *)
6525   lt_save_MAGIC_CMD="$MAGIC_CMD"
6526   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6527   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6528   for ac_dir in $ac_dummy; do
6529     IFS="$lt_save_ifs"
6530     test -z "$ac_dir" && ac_dir=.
6531     if test -f $ac_dir/file; then
6532       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6533       if test -n "$file_magic_test_file"; then
6534         case $deplibs_check_method in
6535         "file_magic "*)
6536           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6537           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6538           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6539             $EGREP "$file_magic_regex" > /dev/null; then
6540             :
6541           else
6542             cat <<EOF 1>&2
6543
6544 *** Warning: the command libtool uses to detect shared libraries,
6545 *** $file_magic_cmd, produces output that libtool cannot recognize.
6546 *** The result is that libtool may fail to recognize shared libraries
6547 *** as such.  This will affect the creation of libtool libraries that
6548 *** depend on shared libraries, but programs linked with such libtool
6549 *** libraries will work regardless of this problem.  Nevertheless, you
6550 *** may want to report the problem to your system manager and/or to
6551 *** bug-libtool@gnu.org
6552
6553 EOF
6554           fi ;;
6555         esac
6556       fi
6557       break
6558     fi
6559   done
6560   IFS="$lt_save_ifs"
6561   MAGIC_CMD="$lt_save_MAGIC_CMD"
6562   ;;
6563 esac
6564 fi
6565
6566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6567 if test -n "$MAGIC_CMD"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6569 $as_echo "$MAGIC_CMD" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575   else
6576     MAGIC_CMD=:
6577   fi
6578 fi
6579
6580   fi
6581   ;;
6582 esac
6583
6584 enable_dlopen=no
6585 enable_win32_dll=no
6586
6587 # Check whether --enable-libtool-lock was given.
6588 if test "${enable_libtool_lock+set}" = set; then :
6589   enableval=$enable_libtool_lock;
6590 fi
6591
6592 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6593
6594
6595 # Check whether --with-pic was given.
6596 if test "${with_pic+set}" = set; then :
6597   withval=$with_pic; pic_mode="$withval"
6598 else
6599   pic_mode=default
6600 fi
6601
6602 test -z "$pic_mode" && pic_mode=default
6603
6604 # Use C for the default configuration in the libtool script
6605 tagname=
6606 lt_save_CC="$CC"
6607 ac_ext=c
6608 ac_cpp='$CPP $CPPFLAGS'
6609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6612
6613
6614 # Source file extension for C test sources.
6615 ac_ext=c
6616
6617 # Object file extension for compiled C test sources.
6618 objext=o
6619 objext=$objext
6620
6621 # Code to be used in simple compile tests
6622 lt_simple_compile_test_code="int some_variable = 0;\n"
6623
6624 # Code to be used in simple link tests
6625 lt_simple_link_test_code='int main(){return(0);}\n'
6626
6627
6628 # If no C compiler was specified, use CC.
6629 LTCC=${LTCC-"$CC"}
6630
6631 # Allow CC to be a program name with arguments.
6632 compiler=$CC
6633
6634
6635 #
6636 # Check for any special shared library compilation flags.
6637 #
6638 lt_prog_cc_shlib=
6639 if test "$GCC" = no; then
6640   case $host_os in
6641   sco3.2v5*)
6642     lt_prog_cc_shlib='-belf'
6643     ;;
6644   esac
6645 fi
6646 if test -n "$lt_prog_cc_shlib"; then
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6648 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6649   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6650   else
6651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6652 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6653     lt_cv_prog_cc_can_build_shared=no
6654   fi
6655 fi
6656
6657
6658 #
6659 # Check to make sure the static flag actually works.
6660 #
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6662 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
6663 if test "${lt_prog_compiler_static_works+set}" = set; then :
6664   $as_echo_n "(cached) " >&6
6665 else
6666   lt_prog_compiler_static_works=no
6667    save_LDFLAGS="$LDFLAGS"
6668    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6669    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6670    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6671      # The compiler can only warn and ignore the option if not recognized
6672      # So say no if there are warnings
6673      if test -s conftest.err; then
6674        # Append any errors to the config.log.
6675        cat conftest.err 1>&5
6676      else
6677        lt_prog_compiler_static_works=yes
6678      fi
6679    fi
6680    $rm conftest*
6681    LDFLAGS="$save_LDFLAGS"
6682
6683 fi
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
6685 $as_echo "$lt_prog_compiler_static_works" >&6; }
6686
6687 if test x"$lt_prog_compiler_static_works" = xyes; then
6688     :
6689 else
6690     lt_prog_compiler_static=
6691 fi
6692
6693
6694
6695
6696 lt_prog_compiler_no_builtin_flag=
6697
6698 if test "$GCC" = yes; then
6699   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6700
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6703 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6704 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   lt_cv_prog_compiler_rtti_exceptions=no
6708   ac_outfile=conftest.$ac_objext
6709    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6710    lt_compiler_flag="-fno-rtti -fno-exceptions"
6711    # Insert the option either (1) after the last *FLAGS variable, or
6712    # (2) before a word containing "conftest.", or (3) at the end.
6713    # Note that $ac_compile itself does not contain backslashes and begins
6714    # with a dollar sign (not a hyphen), so the echo should work correctly.
6715    # The option is referenced via a variable to avoid confusing sed.
6716    lt_compile=`echo "$ac_compile" | $SED \
6717    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6719    -e 's:$: $lt_compiler_flag:'`
6720    (eval echo "\"\$as_me:6720: $lt_compile\"" >&5)
6721    (eval "$lt_compile" 2>conftest.err)
6722    ac_status=$?
6723    cat conftest.err >&5
6724    echo "$as_me:6724: \$? = $ac_status" >&5
6725    if (exit $ac_status) && test -s "$ac_outfile"; then
6726      # The compiler can only warn and ignore the option if not recognized
6727      # So say no if there are warnings
6728      if test ! -s conftest.err; then
6729        lt_cv_prog_compiler_rtti_exceptions=yes
6730      fi
6731    fi
6732    $rm conftest*
6733
6734 fi
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6736 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6737
6738 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6739     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6740 else
6741     :
6742 fi
6743
6744 fi
6745
6746 lt_prog_compiler_wl=
6747 lt_prog_compiler_pic=
6748 lt_prog_compiler_static=
6749
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6751 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6752
6753   if test "$GCC" = yes; then
6754     lt_prog_compiler_wl='-Wl,'
6755     lt_prog_compiler_static='-static'
6756
6757     case $host_os in
6758       aix*)
6759       # All AIX code is PIC.
6760       if test "$host_cpu" = ia64; then
6761         # AIX 5 now supports IA64 processor
6762         lt_prog_compiler_static='-Bstatic'
6763       fi
6764       ;;
6765
6766     amigaos*)
6767       # FIXME: we need at least 68020 code to build shared libraries, but
6768       # adding the `-m68020' flag to GCC prevents building anything better,
6769       # like `-m68040'.
6770       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6771       ;;
6772
6773     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6774       # PIC is the default for these OSes.
6775       ;;
6776
6777     mingw* | pw32* | os2*)
6778       # This hack is so that the source file can tell whether it is being
6779       # built for inclusion in a dll (and should export symbols for example).
6780       lt_prog_compiler_pic='-DDLL_EXPORT'
6781       ;;
6782
6783     darwin* | rhapsody*)
6784       # PIC is the default on this platform
6785       # Common symbols not allowed in MH_DYLIB files
6786       lt_prog_compiler_pic='-fno-common'
6787       ;;
6788
6789     msdosdjgpp*)
6790       # Just because we use GCC doesn't mean we suddenly get shared libraries
6791       # on systems that don't support them.
6792       lt_prog_compiler_can_build_shared=no
6793       enable_shared=no
6794       ;;
6795
6796     sysv4*MP*)
6797       if test -d /usr/nec; then
6798         lt_prog_compiler_pic=-Kconform_pic
6799       fi
6800       ;;
6801
6802     hpux*)
6803       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6804       # not for PA HP-UX.
6805       case "$host_cpu" in
6806       hppa*64*|ia64*)
6807         # +Z the default
6808         ;;
6809       *)
6810         lt_prog_compiler_pic='-fPIC'
6811         ;;
6812       esac
6813       ;;
6814
6815     *)
6816       lt_prog_compiler_pic='-fPIC'
6817       ;;
6818     esac
6819   else
6820     # PORTME Check for flag to pass linker flags through the system compiler.
6821     case $host_os in
6822     aix*)
6823       lt_prog_compiler_wl='-Wl,'
6824       if test "$host_cpu" = ia64; then
6825         # AIX 5 now supports IA64 processor
6826         lt_prog_compiler_static='-Bstatic'
6827       else
6828         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6829       fi
6830       ;;
6831
6832     mingw* | pw32* | os2*)
6833       # This hack is so that the source file can tell whether it is being
6834       # built for inclusion in a dll (and should export symbols for example).
6835       lt_prog_compiler_pic='-DDLL_EXPORT'
6836       ;;
6837
6838     hpux9* | hpux10* | hpux11*)
6839       lt_prog_compiler_wl='-Wl,'
6840       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6841       # not for PA HP-UX.
6842       case "$host_cpu" in
6843       hppa*64*|ia64*)
6844         # +Z the default
6845         ;;
6846       *)
6847         lt_prog_compiler_pic='+Z'
6848         ;;
6849       esac
6850       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6851       lt_prog_compiler_static='${wl}-a ${wl}archive'
6852       ;;
6853
6854     irix5* | irix6* | nonstopux*)
6855       lt_prog_compiler_wl='-Wl,'
6856       # PIC (with -KPIC) is the default.
6857       lt_prog_compiler_static='-non_shared'
6858       ;;
6859
6860     newsos6)
6861       lt_prog_compiler_pic='-KPIC'
6862       lt_prog_compiler_static='-Bstatic'
6863       ;;
6864
6865     linux*)
6866       case $CC in
6867       icc* | ecc*)
6868         lt_prog_compiler_wl='-Wl,'
6869         lt_prog_compiler_pic='-KPIC'
6870         lt_prog_compiler_static='-static'
6871         ;;
6872       ccc*)
6873         lt_prog_compiler_wl='-Wl,'
6874         # All Alpha code is PIC.
6875         lt_prog_compiler_static='-non_shared'
6876         ;;
6877       esac
6878       ;;
6879
6880     osf3* | osf4* | osf5*)
6881       lt_prog_compiler_wl='-Wl,'
6882       # All OSF/1 code is PIC.
6883       lt_prog_compiler_static='-non_shared'
6884       ;;
6885
6886     sco3.2v5*)
6887       lt_prog_compiler_pic='-Kpic'
6888       lt_prog_compiler_static='-dn'
6889       ;;
6890
6891     solaris*)
6892       lt_prog_compiler_wl='-Wl,'
6893       lt_prog_compiler_pic='-KPIC'
6894       lt_prog_compiler_static='-Bstatic'
6895       ;;
6896
6897     sunos4*)
6898       lt_prog_compiler_wl='-Qoption ld '
6899       lt_prog_compiler_pic='-PIC'
6900       lt_prog_compiler_static='-Bstatic'
6901       ;;
6902
6903     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6904       lt_prog_compiler_wl='-Wl,'
6905       lt_prog_compiler_pic='-KPIC'
6906       lt_prog_compiler_static='-Bstatic'
6907       ;;
6908
6909     sysv4*MP*)
6910       if test -d /usr/nec ;then
6911         lt_prog_compiler_pic='-Kconform_pic'
6912         lt_prog_compiler_static='-Bstatic'
6913       fi
6914       ;;
6915
6916     uts4*)
6917       lt_prog_compiler_pic='-pic'
6918       lt_prog_compiler_static='-Bstatic'
6919       ;;
6920
6921     *)
6922       lt_prog_compiler_can_build_shared=no
6923       ;;
6924     esac
6925   fi
6926
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6928 $as_echo "$lt_prog_compiler_pic" >&6; }
6929
6930 #
6931 # Check to make sure the PIC flag actually works.
6932 #
6933 if test -n "$lt_prog_compiler_pic"; then
6934
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6936 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6937 if test "${lt_prog_compiler_pic_works+set}" = set; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   lt_prog_compiler_pic_works=no
6941   ac_outfile=conftest.$ac_objext
6942    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6943    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6944    # Insert the option either (1) after the last *FLAGS variable, or
6945    # (2) before a word containing "conftest.", or (3) at the end.
6946    # Note that $ac_compile itself does not contain backslashes and begins
6947    # with a dollar sign (not a hyphen), so the echo should work correctly.
6948    # The option is referenced via a variable to avoid confusing sed.
6949    lt_compile=`echo "$ac_compile" | $SED \
6950    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6952    -e 's:$: $lt_compiler_flag:'`
6953    (eval echo "\"\$as_me:6953: $lt_compile\"" >&5)
6954    (eval "$lt_compile" 2>conftest.err)
6955    ac_status=$?
6956    cat conftest.err >&5
6957    echo "$as_me:6957: \$? = $ac_status" >&5
6958    if (exit $ac_status) && test -s "$ac_outfile"; then
6959      # The compiler can only warn and ignore the option if not recognized
6960      # So say no if there are warnings
6961      if test ! -s conftest.err; then
6962        lt_prog_compiler_pic_works=yes
6963      fi
6964    fi
6965    $rm conftest*
6966
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
6969 $as_echo "$lt_prog_compiler_pic_works" >&6; }
6970
6971 if test x"$lt_prog_compiler_pic_works" = xyes; then
6972     case $lt_prog_compiler_pic in
6973      "" | " "*) ;;
6974      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6975      esac
6976 else
6977     lt_prog_compiler_pic=
6978      lt_prog_compiler_can_build_shared=no
6979 fi
6980
6981 fi
6982 case "$host_os" in
6983   # For platforms which do not support PIC, -DPIC is meaningless:
6984   *djgpp*)
6985     lt_prog_compiler_pic=
6986     ;;
6987   *)
6988     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6989     ;;
6990 esac
6991
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
6993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
6994 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   lt_cv_prog_compiler_c_o=no
6998    $rm -r conftest 2>/dev/null
6999    mkdir conftest
7000    cd conftest
7001    mkdir out
7002    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7003
7004    lt_compiler_flag="-o out/conftest2.$ac_objext"
7005    # Insert the option either (1) after the last *FLAGS variable, or
7006    # (2) before a word containing "conftest.", or (3) at the end.
7007    # Note that $ac_compile itself does not contain backslashes and begins
7008    # with a dollar sign (not a hyphen), so the echo should work correctly.
7009    lt_compile=`echo "$ac_compile" | $SED \
7010    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7011    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7012    -e 's:$: $lt_compiler_flag:'`
7013    (eval echo "\"\$as_me:7013: $lt_compile\"" >&5)
7014    (eval "$lt_compile" 2>out/conftest.err)
7015    ac_status=$?
7016    cat out/conftest.err >&5
7017    echo "$as_me:7017: \$? = $ac_status" >&5
7018    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7019    then
7020      # The compiler can only warn and ignore the option if not recognized
7021      # So say no if there are warnings
7022      if test ! -s out/conftest.err; then
7023        lt_cv_prog_compiler_c_o=yes
7024      fi
7025    fi
7026    chmod u+w .
7027    $rm conftest*
7028    # SGI C++ compiler will create directory out/ii_files/ for
7029    # template instantiation
7030    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7031    $rm out/* && rmdir out
7032    cd ..
7033    rmdir conftest
7034    $rm conftest*
7035
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7038 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7039
7040
7041 hard_links="nottested"
7042 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7043   # do not overwrite the value of need_locks provided by the user
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7045 $as_echo_n "checking if we can lock with hard links... " >&6; }
7046   hard_links=yes
7047   $rm conftest*
7048   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7049   touch conftest.a
7050   ln conftest.a conftest.b 2>&5 || hard_links=no
7051   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7053 $as_echo "$hard_links" >&6; }
7054   if test "$hard_links" = no; then
7055     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7056 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7057     need_locks=warn
7058   fi
7059 else
7060   need_locks=no
7061 fi
7062
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7065
7066   runpath_var=
7067   allow_undefined_flag=
7068   enable_shared_with_static_runtimes=no
7069   archive_cmds=
7070   archive_expsym_cmds=
7071   old_archive_From_new_cmds=
7072   old_archive_from_expsyms_cmds=
7073   export_dynamic_flag_spec=
7074   whole_archive_flag_spec=
7075   thread_safe_flag_spec=
7076   hardcode_libdir_flag_spec=
7077   hardcode_libdir_flag_spec_ld=
7078   hardcode_libdir_separator=
7079   hardcode_direct=no
7080   hardcode_minus_L=no
7081   hardcode_shlibpath_var=unsupported
7082   link_all_deplibs=unknown
7083   hardcode_automatic=no
7084   module_cmds=
7085   module_expsym_cmds=
7086   always_export_symbols=no
7087   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7088   # include_expsyms should be a list of space-separated symbols to be *always*
7089   # included in the symbol list
7090   include_expsyms=
7091   # exclude_expsyms can be an extended regexp of symbols to exclude
7092   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7093   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7094   # as well as any symbol that contains `d'.
7095   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7096   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7097   # platforms (ab)use it in PIC code, but their linkers get confused if
7098   # the symbol is explicitly referenced.  Since portable code cannot
7099   # rely on this symbol name, it's probably fine to never include it in
7100   # preloaded symbol tables.
7101   extract_expsyms_cmds=
7102
7103   case $host_os in
7104   cygwin* | mingw* | pw32*)
7105     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7106     # When not using gcc, we currently assume that we are using
7107     # Microsoft Visual C++.
7108     if test "$GCC" != yes; then
7109       with_gnu_ld=no
7110     fi
7111     ;;
7112   openbsd*)
7113     with_gnu_ld=no
7114     ;;
7115   esac
7116
7117   ld_shlibs=yes
7118   if test "$with_gnu_ld" = yes; then
7119     # If archive_cmds runs LD, not CC, wlarc should be empty
7120     wlarc='${wl}'
7121
7122     # See if GNU ld supports shared libraries.
7123     case $host_os in
7124     aix3* | aix4* | aix5*)
7125       # On AIX/PPC, the GNU linker is very broken
7126       if test "$host_cpu" != ia64; then
7127         ld_shlibs=no
7128         cat <<EOF 1>&2
7129
7130 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7131 *** to be unable to reliably create shared libraries on AIX.
7132 *** Therefore, libtool is disabling shared libraries support.  If you
7133 *** really care for shared libraries, you may want to modify your PATH
7134 *** so that a non-GNU linker is found, and then restart.
7135
7136 EOF
7137       fi
7138       ;;
7139
7140     amigaos*)
7141       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)'
7142       hardcode_libdir_flag_spec='-L$libdir'
7143       hardcode_minus_L=yes
7144
7145       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7146       # that the semantics of dynamic libraries on AmigaOS, at least up
7147       # to version 4, is to share data among multiple programs linked
7148       # with the same dynamic library.  Since this doesn't match the
7149       # behavior of shared libraries on other platforms, we can't use
7150       # them.
7151       ld_shlibs=no
7152       ;;
7153
7154     beos*)
7155       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7156         allow_undefined_flag=unsupported
7157         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7158         # support --undefined.  This deserves some investigation.  FIXME
7159         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7160       else
7161         ld_shlibs=no
7162       fi
7163       ;;
7164
7165     cygwin* | mingw* | pw32*)
7166       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7167       # as there is no search path for DLLs.
7168       hardcode_libdir_flag_spec='-L$libdir'
7169       allow_undefined_flag=unsupported
7170       always_export_symbols=no
7171       enable_shared_with_static_runtimes=yes
7172       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7173
7174       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7175         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7176         # If the export-symbols file already is a .def file (1st line
7177         # is EXPORTS), use it as is; otherwise, prepend...
7178         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7179           cp $export_symbols $output_objdir/$soname.def;
7180         else
7181           echo EXPORTS > $output_objdir/$soname.def;
7182           cat $export_symbols >> $output_objdir/$soname.def;
7183         fi~
7184         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7185       else
7186         ld_shlibs=no
7187       fi
7188       ;;
7189
7190     netbsd* | knetbsd*-gnu)
7191       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7192         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7193         wlarc=
7194       else
7195         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7196         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7197       fi
7198       ;;
7199
7200     solaris* | sysv5*)
7201       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7202         ld_shlibs=no
7203         cat <<EOF 1>&2
7204
7205 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7206 *** create shared libraries on Solaris systems.  Therefore, libtool
7207 *** is disabling shared libraries support.  We urge you to upgrade GNU
7208 *** binutils to release 2.9.1 or newer.  Another option is to modify
7209 *** your PATH or compiler configuration so that the native linker is
7210 *** used, and then restart.
7211
7212 EOF
7213       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7214         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7215         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7216       else
7217         ld_shlibs=no
7218       fi
7219       ;;
7220
7221     sunos4*)
7222       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7223       wlarc=
7224       hardcode_direct=yes
7225       hardcode_shlibpath_var=no
7226       ;;
7227
7228   linux*)
7229     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7230         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7231         archive_cmds="$tmp_archive_cmds"
7232       supports_anon_versioning=no
7233       case `$LD -v 2>/dev/null` in
7234         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7235         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7236         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7237         *\ 2.11.*) ;; # other 2.11 versions
7238         *) supports_anon_versioning=yes ;;
7239       esac
7240       if test $supports_anon_versioning = yes; then
7241         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7242 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7243 $echo "local: *; };" >> $output_objdir/$libname.ver~
7244         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7245       else
7246         archive_expsym_cmds="$tmp_archive_cmds"
7247       fi
7248     else
7249       ld_shlibs=no
7250     fi
7251     ;;
7252
7253     *)
7254       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7255         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7256         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7257       else
7258         ld_shlibs=no
7259       fi
7260       ;;
7261     esac
7262
7263     if test "$ld_shlibs" = yes; then
7264       runpath_var=LD_RUN_PATH
7265       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7266       export_dynamic_flag_spec='${wl}--export-dynamic'
7267       # ancient GNU ld didn't support --whole-archive et. al.
7268       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7269         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7270       else
7271         whole_archive_flag_spec=
7272       fi
7273     fi
7274   else
7275     # PORTME fill in a description of your system's linker (not GNU ld)
7276     case $host_os in
7277     aix3*)
7278       allow_undefined_flag=unsupported
7279       always_export_symbols=yes
7280       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'
7281       # Note: this linker hardcodes the directories in LIBPATH if there
7282       # are no directories specified by -L.
7283       hardcode_minus_L=yes
7284       if test "$GCC" = yes && test -z "$link_static_flag"; then
7285         # Neither direct hardcoding nor static linking is supported with a
7286         # broken collect2.
7287         hardcode_direct=unsupported
7288       fi
7289       ;;
7290
7291     aix4* | aix5*)
7292       if test "$host_cpu" = ia64; then
7293         # On IA64, the linker does run time linking by default, so we don't
7294         # have to do anything special.
7295         aix_use_runtimelinking=no
7296         exp_sym_flag='-Bexport'
7297         no_entry_flag=""
7298       else
7299         # If we're using GNU nm, then we don't want the "-C" option.
7300         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7301         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7302           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'
7303         else
7304           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'
7305         fi
7306         aix_use_runtimelinking=no
7307
7308         # Test if we are trying to use run time linking or normal
7309         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7310         # need to do runtime linking.
7311         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7312           for ld_flag in $LDFLAGS; do
7313           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7314             aix_use_runtimelinking=yes
7315             break
7316           fi
7317           done
7318         esac
7319
7320         exp_sym_flag='-bexport'
7321         no_entry_flag='-bnoentry'
7322       fi
7323
7324       # When large executables or shared objects are built, AIX ld can
7325       # have problems creating the table of contents.  If linking a library
7326       # or program results in "error TOC overflow" add -mminimal-toc to
7327       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7328       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7329
7330       archive_cmds=''
7331       hardcode_direct=yes
7332       hardcode_libdir_separator=':'
7333       link_all_deplibs=yes
7334
7335       if test "$GCC" = yes; then
7336         case $host_os in aix4.012|aix4.012.*)
7337         # We only want to do this on AIX 4.2 and lower, the check
7338         # below for broken collect2 doesn't work under 4.3+
7339           collect2name=`${CC} -print-prog-name=collect2`
7340           if test -f "$collect2name" && \
7341            strings "$collect2name" | grep resolve_lib_name >/dev/null
7342           then
7343           # We have reworked collect2
7344           hardcode_direct=yes
7345           else
7346           # We have old collect2
7347           hardcode_direct=unsupported
7348           # It fails to find uninstalled libraries when the uninstalled
7349           # path is not listed in the libpath.  Setting hardcode_minus_L
7350           # to unsupported forces relinking
7351           hardcode_minus_L=yes
7352           hardcode_libdir_flag_spec='-L$libdir'
7353           hardcode_libdir_separator=
7354           fi
7355         esac
7356         shared_flag='-shared'
7357       else
7358         # not using gcc
7359         if test "$host_cpu" = ia64; then
7360         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7361         # chokes on -Wl,-G. The following line is correct:
7362           shared_flag='-G'
7363         else
7364         if test "$aix_use_runtimelinking" = yes; then
7365             shared_flag='${wl}-G'
7366           else
7367             shared_flag='${wl}-bM:SRE'
7368         fi
7369         fi
7370       fi
7371
7372       # It seems that -bexpall does not export symbols beginning with
7373       # underscore (_), so it is better to generate a list of symbols to export.
7374       always_export_symbols=yes
7375       if test "$aix_use_runtimelinking" = yes; then
7376         # Warning - without using the other runtime loading flags (-brtl),
7377         # -berok will link without error, but may produce a broken library.
7378         allow_undefined_flag='-berok'
7379        # Determine the default libpath from the value encoded in an empty executable.
7380        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h.  */
7382
7383 int
7384 main ()
7385 {
7386
7387   ;
7388   return 0;
7389 }
7390 _ACEOF
7391 if ac_fn_c_try_link "$LINENO"; then :
7392
7393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7394 }'`
7395 # Check for a 64-bit object if we didn't find anything.
7396 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7397 }'`; fi
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext \
7400     conftest$ac_exeext conftest.$ac_ext
7401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7402
7403        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7404         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7405        else
7406         if test "$host_cpu" = ia64; then
7407           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7408           allow_undefined_flag="-z nodefs"
7409           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7410         else
7411          # Determine the default libpath from the value encoded in an empty executable.
7412          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h.  */
7414
7415 int
7416 main ()
7417 {
7418
7419   ;
7420   return 0;
7421 }
7422 _ACEOF
7423 if ac_fn_c_try_link "$LINENO"; then :
7424
7425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7426 }'`
7427 # Check for a 64-bit object if we didn't find anything.
7428 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7429 }'`; fi
7430 fi
7431 rm -f core conftest.err conftest.$ac_objext \
7432     conftest$ac_exeext conftest.$ac_ext
7433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7434
7435          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7436           # Warning - without using the other run time loading flags,
7437           # -berok will link without error, but may produce a broken library.
7438           no_undefined_flag=' ${wl}-bernotok'
7439           allow_undefined_flag=' ${wl}-berok'
7440           # -bexpall does not export symbols beginning with underscore (_)
7441           always_export_symbols=yes
7442           # Exported symbols can be pulled into shared objects from archives
7443           whole_archive_flag_spec=' '
7444           archive_cmds_need_lc=yes
7445           # This is similar to how AIX traditionally builds it's shared libraries.
7446           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7447         fi
7448       fi
7449       ;;
7450
7451     amigaos*)
7452       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)'
7453       hardcode_libdir_flag_spec='-L$libdir'
7454       hardcode_minus_L=yes
7455       # see comment about different semantics on the GNU ld section
7456       ld_shlibs=no
7457       ;;
7458
7459     bsdi4*)
7460       export_dynamic_flag_spec=-rdynamic
7461       ;;
7462
7463     cygwin* | mingw* | pw32*)
7464       # When not using gcc, we currently assume that we are using
7465       # Microsoft Visual C++.
7466       # hardcode_libdir_flag_spec is actually meaningless, as there is
7467       # no search path for DLLs.
7468       hardcode_libdir_flag_spec=' '
7469       allow_undefined_flag=unsupported
7470       # Tell ltmain to make .lib files, not .a files.
7471       libext=lib
7472       # Tell ltmain to make .dll files, not .so files.
7473       shrext=".dll"
7474       # FIXME: Setting linknames here is a bad hack.
7475       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7476       # The linker will automatically build a .lib file if we build a DLL.
7477       old_archive_From_new_cmds='true'
7478       # FIXME: Should let the user specify the lib program.
7479       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7480       fix_srcfile_path='`cygpath -w "$srcfile"`'
7481       enable_shared_with_static_runtimes=yes
7482       ;;
7483
7484     darwin* | rhapsody*)
7485     if test "$GXX" = yes ; then
7486       archive_cmds_need_lc=no
7487       case "$host_os" in
7488       rhapsody* | darwin1.[012])
7489         allow_undefined_flag='-undefined suppress'
7490         ;;
7491       *) # Darwin 1.3 on
7492       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7493         allow_undefined_flag='-flat_namespace -undefined suppress'
7494       else
7495         case ${MACOSX_DEPLOYMENT_TARGET} in
7496           10.[012])
7497             allow_undefined_flag='-flat_namespace -undefined suppress'
7498             ;;
7499           10.*)
7500             allow_undefined_flag='-undefined dynamic_lookup'
7501             ;;
7502         esac
7503       fi
7504         ;;
7505       esac
7506         lt_int_apple_cc_single_mod=no
7507         output_verbose_link_cmd='echo'
7508         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7509           lt_int_apple_cc_single_mod=yes
7510         fi
7511         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7512           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7513         else
7514         archive_cmds='$CC -r ${wl}-bind_at_load -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'
7515       fi
7516       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7517       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7518         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7519           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7520         else
7521           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7522         fi
7523           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7524       hardcode_direct=no
7525       hardcode_automatic=yes
7526       hardcode_shlibpath_var=unsupported
7527       whole_archive_flag_spec='-all_load $convenience'
7528       link_all_deplibs=yes
7529     else
7530       ld_shlibs=no
7531     fi
7532       ;;
7533
7534     dgux*)
7535       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7536       hardcode_libdir_flag_spec='-L$libdir'
7537       hardcode_shlibpath_var=no
7538       ;;
7539
7540     freebsd1*)
7541       ld_shlibs=no
7542       ;;
7543
7544     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7545     # support.  Future versions do this automatically, but an explicit c++rt0.o
7546     # does not break anything, and helps significantly (at the cost of a little
7547     # extra space).
7548     freebsd2.2*)
7549       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7550       hardcode_libdir_flag_spec='-R$libdir'
7551       hardcode_direct=yes
7552       hardcode_shlibpath_var=no
7553       ;;
7554
7555     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7556     freebsd2*)
7557       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7558       hardcode_direct=yes
7559       hardcode_minus_L=yes
7560       hardcode_shlibpath_var=no
7561       ;;
7562
7563     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7564     freebsd* | kfreebsd*-gnu)
7565       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7566       hardcode_libdir_flag_spec='-R$libdir'
7567       hardcode_direct=yes
7568       hardcode_shlibpath_var=no
7569       ;;
7570
7571     hpux9*)
7572       if test "$GCC" = yes; then
7573         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'
7574       else
7575         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'
7576       fi
7577       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7578       hardcode_libdir_separator=:
7579       hardcode_direct=yes
7580
7581       # hardcode_minus_L: Not really in the search PATH,
7582       # but as the default location of the library.
7583       hardcode_minus_L=yes
7584       export_dynamic_flag_spec='${wl}-E'
7585       ;;
7586
7587     hpux10* | hpux11*)
7588       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7589         case "$host_cpu" in
7590         hppa*64*|ia64*)
7591           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7592           ;;
7593         *)
7594           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7595           ;;
7596         esac
7597       else
7598         case "$host_cpu" in
7599         hppa*64*|ia64*)
7600           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7601           ;;
7602         *)
7603           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7604           ;;
7605         esac
7606       fi
7607       if test "$with_gnu_ld" = no; then
7608         case "$host_cpu" in
7609         hppa*64*)
7610           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7611           hardcode_libdir_flag_spec_ld='+b $libdir'
7612           hardcode_libdir_separator=:
7613           hardcode_direct=no
7614           hardcode_shlibpath_var=no
7615           ;;
7616         ia64*)
7617           hardcode_libdir_flag_spec='-L$libdir'
7618           hardcode_direct=no
7619           hardcode_shlibpath_var=no
7620
7621           # hardcode_minus_L: Not really in the search PATH,
7622           # but as the default location of the library.
7623           hardcode_minus_L=yes
7624           ;;
7625         *)
7626           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7627           hardcode_libdir_separator=:
7628           hardcode_direct=yes
7629           export_dynamic_flag_spec='${wl}-E'
7630
7631           # hardcode_minus_L: Not really in the search PATH,
7632           # but as the default location of the library.
7633           hardcode_minus_L=yes
7634           ;;
7635         esac
7636       fi
7637       ;;
7638
7639     irix5* | irix6* | nonstopux*)
7640       if test "$GCC" = yes; then
7641         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7642       else
7643         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7644         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7645       fi
7646       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7647       hardcode_libdir_separator=:
7648       link_all_deplibs=yes
7649       ;;
7650
7651     netbsd* | knetbsd*-gnu)
7652       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7653         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7654       else
7655         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7656       fi
7657       hardcode_libdir_flag_spec='-R$libdir'
7658       hardcode_direct=yes
7659       hardcode_shlibpath_var=no
7660       ;;
7661
7662     newsos6)
7663       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664       hardcode_direct=yes
7665       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7666       hardcode_libdir_separator=:
7667       hardcode_shlibpath_var=no
7668       ;;
7669
7670     openbsd*)
7671       hardcode_direct=yes
7672       hardcode_shlibpath_var=no
7673       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7674         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7675         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7676         export_dynamic_flag_spec='${wl}-E'
7677       else
7678        case $host_os in
7679          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7680            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7681            hardcode_libdir_flag_spec='-R$libdir'
7682            ;;
7683          *)
7684            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7685            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7686            ;;
7687        esac
7688       fi
7689       ;;
7690
7691     os2*)
7692       hardcode_libdir_flag_spec='-L$libdir'
7693       hardcode_minus_L=yes
7694       allow_undefined_flag=unsupported
7695       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'
7696       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7697       ;;
7698
7699     osf3*)
7700       if test "$GCC" = yes; then
7701         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7702         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7703       else
7704         allow_undefined_flag=' -expect_unresolved \*'
7705         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7706       fi
7707       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7708       hardcode_libdir_separator=:
7709       ;;
7710
7711     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7712       if test "$GCC" = yes; then
7713         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7714         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7715         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7716       else
7717         allow_undefined_flag=' -expect_unresolved \*'
7718         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7719         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7720         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7721
7722         # Both c and cxx compiler support -rpath directly
7723         hardcode_libdir_flag_spec='-rpath $libdir'
7724       fi
7725       hardcode_libdir_separator=:
7726       ;;
7727
7728     sco3.2v5*)
7729       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7730       hardcode_shlibpath_var=no
7731       export_dynamic_flag_spec='${wl}-Bexport'
7732       runpath_var=LD_RUN_PATH
7733       hardcode_runpath_var=yes
7734       ;;
7735
7736     solaris*)
7737       no_undefined_flag=' -z text'
7738       if test "$GCC" = yes; then
7739         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7741           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7742       else
7743         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7744         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7745         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7746       fi
7747       hardcode_libdir_flag_spec='-R$libdir'
7748       hardcode_shlibpath_var=no
7749       case $host_os in
7750       solaris2.[0-5] | solaris2.[0-5].*) ;;
7751       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7752         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7753       esac
7754       link_all_deplibs=yes
7755       ;;
7756
7757     sunos4*)
7758       if test "x$host_vendor" = xsequent; then
7759         # Use $CC to link under sequent, because it throws in some extra .o
7760         # files that make .init and .fini sections work.
7761         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7762       else
7763         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7764       fi
7765       hardcode_libdir_flag_spec='-L$libdir'
7766       hardcode_direct=yes
7767       hardcode_minus_L=yes
7768       hardcode_shlibpath_var=no
7769       ;;
7770
7771     sysv4)
7772       case $host_vendor in
7773         sni)
7774           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7775           hardcode_direct=yes # is this really true???
7776         ;;
7777         siemens)
7778           ## LD is ld it makes a PLAMLIB
7779           ## CC just makes a GrossModule.
7780           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7781           reload_cmds='$CC -r -o $output$reload_objs'
7782           hardcode_direct=no
7783         ;;
7784         motorola)
7785           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7786           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7787         ;;
7788       esac
7789       runpath_var='LD_RUN_PATH'
7790       hardcode_shlibpath_var=no
7791       ;;
7792
7793     sysv4.3*)
7794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7795       hardcode_shlibpath_var=no
7796       export_dynamic_flag_spec='-Bexport'
7797       ;;
7798
7799     sysv4*MP*)
7800       if test -d /usr/nec; then
7801         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7802         hardcode_shlibpath_var=no
7803         runpath_var=LD_RUN_PATH
7804         hardcode_runpath_var=yes
7805         ld_shlibs=yes
7806       fi
7807       ;;
7808
7809     sysv4.2uw2*)
7810       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7811       hardcode_direct=yes
7812       hardcode_minus_L=no
7813       hardcode_shlibpath_var=no
7814       hardcode_runpath_var=yes
7815       runpath_var=LD_RUN_PATH
7816       ;;
7817
7818    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7819       no_undefined_flag='${wl}-z ${wl}text'
7820       if test "$GCC" = yes; then
7821         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7822       else
7823         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7824       fi
7825       runpath_var='LD_RUN_PATH'
7826       hardcode_shlibpath_var=no
7827       ;;
7828
7829     sysv5*)
7830       no_undefined_flag=' -z text'
7831       # $CC -shared without GNU ld will not create a library from C++
7832       # object files and a static libstdc++, better avoid it by now
7833       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7834       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7835                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7836       hardcode_libdir_flag_spec=
7837       hardcode_shlibpath_var=no
7838       runpath_var='LD_RUN_PATH'
7839       ;;
7840
7841     uts4*)
7842       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7843       hardcode_libdir_flag_spec='-L$libdir'
7844       hardcode_shlibpath_var=no
7845       ;;
7846
7847     *)
7848       ld_shlibs=no
7849       ;;
7850     esac
7851   fi
7852
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
7854 $as_echo "$ld_shlibs" >&6; }
7855 test "$ld_shlibs" = no && can_build_shared=no
7856
7857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7858 if test "$GCC" = yes; then
7859   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7860 fi
7861
7862 #
7863 # Do we need to explicitly link libc?
7864 #
7865 case "x$archive_cmds_need_lc" in
7866 x|xyes)
7867   # Assume -lc should be added
7868   archive_cmds_need_lc=yes
7869
7870   if test "$enable_shared" = yes && test "$GCC" = yes; then
7871     case $archive_cmds in
7872     *'~'*)
7873       # FIXME: we may have to deal with multi-command sequences.
7874       ;;
7875     '$CC '*)
7876       # Test whether the compiler implicitly links with -lc since on some
7877       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7878       # to ld, don't add -lc before -lgcc.
7879       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
7880 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7881       $rm conftest*
7882       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7883
7884       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7885   (eval $ac_compile) 2>&5
7886   ac_status=$?
7887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888   test $ac_status = 0; } 2>conftest.err; then
7889         soname=conftest
7890         lib=conftest
7891         libobjs=conftest.$ac_objext
7892         deplibs=
7893         wl=$lt_prog_compiler_wl
7894         compiler_flags=-v
7895         linker_flags=-v
7896         verstring=
7897         output_objdir=.
7898         libname=conftest
7899         lt_save_allow_undefined_flag=$allow_undefined_flag
7900         allow_undefined_flag=
7901         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
7902   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7903   ac_status=$?
7904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7905   test $ac_status = 0; }
7906         then
7907           archive_cmds_need_lc=no
7908         else
7909           archive_cmds_need_lc=yes
7910         fi
7911         allow_undefined_flag=$lt_save_allow_undefined_flag
7912       else
7913         cat conftest.err 1>&5
7914       fi
7915       $rm conftest*
7916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
7917 $as_echo "$archive_cmds_need_lc" >&6; }
7918       ;;
7919     esac
7920   fi
7921   ;;
7922 esac
7923
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
7925 $as_echo_n "checking dynamic linker characteristics... " >&6; }
7926 library_names_spec=
7927 libname_spec='lib$name'
7928 soname_spec=
7929 shrext=".so"
7930 postinstall_cmds=
7931 postuninstall_cmds=
7932 finish_cmds=
7933 finish_eval=
7934 shlibpath_var=
7935 shlibpath_overrides_runpath=unknown
7936 version_type=none
7937 dynamic_linker="$host_os ld.so"
7938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7939 if test "$GCC" = yes; then
7940   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7941   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7942     # if the path contains ";" then we assume it to be the separator
7943     # otherwise default to the standard path separator (i.e. ":") - it is
7944     # assumed that no part of a normal pathname contains ";" but that should
7945     # okay in the real world where ";" in dirpaths is itself problematic.
7946     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7947   else
7948     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7949   fi
7950 else
7951   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7952 fi
7953 need_lib_prefix=unknown
7954 hardcode_into_libs=no
7955
7956 # when you set need_version to no, make sure it does not cause -set_version
7957 # flags to be left without arguments
7958 need_version=unknown
7959
7960 case $host_os in
7961 aix3*)
7962   version_type=linux
7963   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7964   shlibpath_var=LIBPATH
7965
7966   # AIX 3 has no versioning support, so we append a major version to the name.
7967   soname_spec='${libname}${release}${shared_ext}$major'
7968   ;;
7969
7970 aix4* | aix5*)
7971   version_type=linux
7972   need_lib_prefix=no
7973   need_version=no
7974   hardcode_into_libs=yes
7975   if test "$host_cpu" = ia64; then
7976     # AIX 5 supports IA64
7977     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7978     shlibpath_var=LD_LIBRARY_PATH
7979   else
7980     # With GCC up to 2.95.x, collect2 would create an import file
7981     # for dependence libraries.  The import file would start with
7982     # the line `#! .'.  This would cause the generated library to
7983     # depend on `.', always an invalid library.  This was fixed in
7984     # development snapshots of GCC prior to 3.0.
7985     case $host_os in
7986       aix4 | aix4.[01] | aix4.[01].*)
7987       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7988            echo ' yes '
7989            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7990         :
7991       else
7992         can_build_shared=no
7993       fi
7994       ;;
7995     esac
7996     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7997     # soname into executable. Probably we can add versioning support to
7998     # collect2, so additional links can be useful in future.
7999     if test "$aix_use_runtimelinking" = yes; then
8000       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8001       # instead of lib<name>.a to let people know that these are not
8002       # typical AIX shared libraries.
8003       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004     else
8005       # We preserve .a as extension for shared libraries through AIX4.2
8006       # and later when we are not doing run time linking.
8007       library_names_spec='${libname}${release}.a $libname.a'
8008       soname_spec='${libname}${release}${shared_ext}$major'
8009     fi
8010     shlibpath_var=LIBPATH
8011   fi
8012   ;;
8013
8014 amigaos*)
8015   library_names_spec='$libname.ixlibrary $libname.a'
8016   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8017   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'
8018   ;;
8019
8020 beos*)
8021   library_names_spec='${libname}${shared_ext}'
8022   dynamic_linker="$host_os ld.so"
8023   shlibpath_var=LIBRARY_PATH
8024   ;;
8025
8026 bsdi4*)
8027   version_type=linux
8028   need_version=no
8029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030   soname_spec='${libname}${release}${shared_ext}$major'
8031   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8032   shlibpath_var=LD_LIBRARY_PATH
8033   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8034   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8035   # the default ld.so.conf also contains /usr/contrib/lib and
8036   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8037   # libtool to hard-code these into programs
8038   ;;
8039
8040 cygwin* | mingw* | pw32*)
8041   version_type=windows
8042   shrext=".dll"
8043   need_version=no
8044   need_lib_prefix=no
8045
8046   case $GCC,$host_os in
8047   yes,cygwin* | yes,mingw* | yes,pw32*)
8048     library_names_spec='$libname.dll.a'
8049     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8050     postinstall_cmds='base_file=`basename \${file}`~
8051       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8052       dldir=$destdir/`dirname \$dlpath`~
8053       test -d \$dldir || mkdir -p \$dldir~
8054       $install_prog $dir/$dlname \$dldir/$dlname'
8055     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8056       dlpath=$dir/\$dldll~
8057        $rm \$dlpath'
8058     shlibpath_overrides_runpath=yes
8059
8060     case $host_os in
8061     cygwin*)
8062       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8063       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8064       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8065       ;;
8066     mingw*)
8067       # MinGW DLLs use traditional 'lib' prefix
8068       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8069       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8070       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8071         # It is most probably a Windows format PATH printed by
8072         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8073         # path with ; separators, and with drive letters. We can handle the
8074         # drive letters (cygwin fileutils understands them), so leave them,
8075         # especially as we might pass files found there to a mingw objdump,
8076         # which wouldn't understand a cygwinified path. Ahh.
8077         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8078       else
8079         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8080       fi
8081       ;;
8082     pw32*)
8083       # pw32 DLLs use 'pw' prefix rather than 'lib'
8084       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8085       ;;
8086     esac
8087     ;;
8088
8089   *)
8090     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8091     ;;
8092   esac
8093   dynamic_linker='Win32 ld.exe'
8094   # FIXME: first we should search . and the directory the executable is in
8095   shlibpath_var=PATH
8096   ;;
8097
8098 darwin* | rhapsody*)
8099   dynamic_linker="$host_os dyld"
8100   version_type=darwin
8101   need_lib_prefix=no
8102   need_version=no
8103   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8104   soname_spec='${libname}${release}${major}$shared_ext'
8105   shlibpath_overrides_runpath=yes
8106   shlibpath_var=DYLD_LIBRARY_PATH
8107   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8108   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8109   if test "$GCC" = yes; then
8110     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8111   else
8112     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8113   fi
8114   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8115   ;;
8116
8117 dgux*)
8118   version_type=linux
8119   need_lib_prefix=no
8120   need_version=no
8121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8122   soname_spec='${libname}${release}${shared_ext}$major'
8123   shlibpath_var=LD_LIBRARY_PATH
8124   ;;
8125
8126 freebsd1*)
8127   dynamic_linker=no
8128   ;;
8129
8130 kfreebsd*-gnu)
8131   version_type=linux
8132   need_lib_prefix=no
8133   need_version=no
8134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8135   soname_spec='${libname}${release}${shared_ext}$major'
8136   shlibpath_var=LD_LIBRARY_PATH
8137   shlibpath_overrides_runpath=no
8138   hardcode_into_libs=yes
8139   dynamic_linker='GNU ld.so'
8140   ;;
8141
8142 freebsd*)
8143   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8144   version_type=freebsd-$objformat
8145   case $version_type in
8146     freebsd-elf*)
8147       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8148       need_version=no
8149       need_lib_prefix=no
8150       ;;
8151     freebsd-*)
8152       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8153       need_version=yes
8154       ;;
8155   esac
8156   shlibpath_var=LD_LIBRARY_PATH
8157   case $host_os in
8158   freebsd2*)
8159     shlibpath_overrides_runpath=yes
8160     ;;
8161   freebsd3.01* | freebsdelf3.01*)
8162     shlibpath_overrides_runpath=yes
8163     hardcode_into_libs=yes
8164     ;;
8165   *) # from 3.2 on
8166     shlibpath_overrides_runpath=no
8167     hardcode_into_libs=yes
8168     ;;
8169   esac
8170   ;;
8171
8172 gnu*)
8173   version_type=linux
8174   need_lib_prefix=no
8175   need_version=no
8176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8177   soname_spec='${libname}${release}${shared_ext}$major'
8178   shlibpath_var=LD_LIBRARY_PATH
8179   hardcode_into_libs=yes
8180   ;;
8181
8182 hpux9* | hpux10* | hpux11*)
8183   # Give a soname corresponding to the major version so that dld.sl refuses to
8184   # link against other versions.
8185   version_type=sunos
8186   need_lib_prefix=no
8187   need_version=no
8188   case "$host_cpu" in
8189   ia64*)
8190     shrext='.so'
8191     hardcode_into_libs=yes
8192     dynamic_linker="$host_os dld.so"
8193     shlibpath_var=LD_LIBRARY_PATH
8194     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8196     soname_spec='${libname}${release}${shared_ext}$major'
8197     if test "X$HPUX_IA64_MODE" = X32; then
8198       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8199     else
8200       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8201     fi
8202     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8203     ;;
8204    hppa*64*)
8205      shrext='.sl'
8206      hardcode_into_libs=yes
8207      dynamic_linker="$host_os dld.sl"
8208      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8209      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8211      soname_spec='${libname}${release}${shared_ext}$major'
8212      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8213      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8214      ;;
8215    *)
8216     shrext='.sl'
8217     dynamic_linker="$host_os dld.sl"
8218     shlibpath_var=SHLIB_PATH
8219     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8221     soname_spec='${libname}${release}${shared_ext}$major'
8222     ;;
8223   esac
8224   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8225   postinstall_cmds='chmod 555 $lib'
8226   ;;
8227
8228 irix5* | irix6* | nonstopux*)
8229   case $host_os in
8230     nonstopux*) version_type=nonstopux ;;
8231     *)
8232         if test "$lt_cv_prog_gnu_ld" = yes; then
8233                 version_type=linux
8234         else
8235                 version_type=irix
8236         fi ;;
8237   esac
8238   need_lib_prefix=no
8239   need_version=no
8240   soname_spec='${libname}${release}${shared_ext}$major'
8241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8242   case $host_os in
8243   irix5* | nonstopux*)
8244     libsuff= shlibsuff=
8245     ;;
8246   *)
8247     case $LD in # libtool.m4 will add one of these switches to LD
8248     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8249       libsuff= shlibsuff= libmagic=32-bit;;
8250     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8251       libsuff=32 shlibsuff=N32 libmagic=N32;;
8252     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8253       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8254     *) libsuff= shlibsuff= libmagic=never-match;;
8255     esac
8256     ;;
8257   esac
8258   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8259   shlibpath_overrides_runpath=no
8260   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8261   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8262   hardcode_into_libs=yes
8263   ;;
8264
8265 # No shared lib support for Linux oldld, aout, or coff.
8266 linux*oldld* | linux*aout* | linux*coff*)
8267   dynamic_linker=no
8268   ;;
8269
8270 # This must be Linux ELF.
8271 linux*)
8272   version_type=linux
8273   need_lib_prefix=no
8274   need_version=no
8275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8276   soname_spec='${libname}${release}${shared_ext}$major'
8277   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8278   shlibpath_var=LD_LIBRARY_PATH
8279   shlibpath_overrides_runpath=no
8280   # This implies no fast_install, which is unacceptable.
8281   # Some rework will be needed to allow for fast_install
8282   # before this can be enabled.
8283   hardcode_into_libs=yes
8284
8285   # Append ld.so.conf contents to the search path
8286   if test -f /etc/ld.so.conf; then
8287     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8288     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8289   fi
8290
8291   # We used to test for /lib/ld.so.1 and disable shared libraries on
8292   # powerpc, because MkLinux only supported shared libraries with the
8293   # GNU dynamic linker.  Since this was broken with cross compilers,
8294   # most powerpc-linux boxes support dynamic linking these days and
8295   # people can always --disable-shared, the test was removed, and we
8296   # assume the GNU/Linux dynamic linker is in use.
8297   dynamic_linker='GNU/Linux ld.so'
8298   ;;
8299
8300 knetbsd*-gnu)
8301   version_type=linux
8302   need_lib_prefix=no
8303   need_version=no
8304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8305   soname_spec='${libname}${release}${shared_ext}$major'
8306   shlibpath_var=LD_LIBRARY_PATH
8307   shlibpath_overrides_runpath=no
8308   hardcode_into_libs=yes
8309   dynamic_linker='GNU ld.so'
8310   ;;
8311
8312 netbsd*)
8313   version_type=sunos
8314   need_lib_prefix=no
8315   need_version=no
8316   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8318     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8319     dynamic_linker='NetBSD (a.out) ld.so'
8320   else
8321     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8322     soname_spec='${libname}${release}${shared_ext}$major'
8323     dynamic_linker='NetBSD ld.elf_so'
8324   fi
8325   shlibpath_var=LD_LIBRARY_PATH
8326   shlibpath_overrides_runpath=yes
8327   hardcode_into_libs=yes
8328   ;;
8329
8330 newsos6)
8331   version_type=linux
8332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8333   shlibpath_var=LD_LIBRARY_PATH
8334   shlibpath_overrides_runpath=yes
8335   ;;
8336
8337 nto-qnx*)
8338   version_type=linux
8339   need_lib_prefix=no
8340   need_version=no
8341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8342   soname_spec='${libname}${release}${shared_ext}$major'
8343   shlibpath_var=LD_LIBRARY_PATH
8344   shlibpath_overrides_runpath=yes
8345   ;;
8346
8347 openbsd*)
8348   version_type=sunos
8349   need_lib_prefix=no
8350   need_version=yes
8351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8352   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8353   shlibpath_var=LD_LIBRARY_PATH
8354   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8355     case $host_os in
8356       openbsd2.[89] | openbsd2.[89].*)
8357         shlibpath_overrides_runpath=no
8358         ;;
8359       *)
8360         shlibpath_overrides_runpath=yes
8361         ;;
8362       esac
8363   else
8364     shlibpath_overrides_runpath=yes
8365   fi
8366   ;;
8367
8368 os2*)
8369   libname_spec='$name'
8370   shrext=".dll"
8371   need_lib_prefix=no
8372   library_names_spec='$libname${shared_ext} $libname.a'
8373   dynamic_linker='OS/2 ld.exe'
8374   shlibpath_var=LIBPATH
8375   ;;
8376
8377 osf3* | osf4* | osf5*)
8378   version_type=osf
8379   need_lib_prefix=no
8380   need_version=no
8381   soname_spec='${libname}${release}${shared_ext}$major'
8382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8383   shlibpath_var=LD_LIBRARY_PATH
8384   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8385   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8386   ;;
8387
8388 sco3.2v5*)
8389   version_type=osf
8390   soname_spec='${libname}${release}${shared_ext}$major'
8391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392   shlibpath_var=LD_LIBRARY_PATH
8393   ;;
8394
8395 solaris*)
8396   version_type=linux
8397   need_lib_prefix=no
8398   need_version=no
8399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8400   soname_spec='${libname}${release}${shared_ext}$major'
8401   shlibpath_var=LD_LIBRARY_PATH
8402   shlibpath_overrides_runpath=yes
8403   hardcode_into_libs=yes
8404   # ldd complains unless libraries are executable
8405   postinstall_cmds='chmod +x $lib'
8406   ;;
8407
8408 sunos4*)
8409   version_type=sunos
8410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8411   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8412   shlibpath_var=LD_LIBRARY_PATH
8413   shlibpath_overrides_runpath=yes
8414   if test "$with_gnu_ld" = yes; then
8415     need_lib_prefix=no
8416   fi
8417   need_version=yes
8418   ;;
8419
8420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8421   version_type=linux
8422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8423   soname_spec='${libname}${release}${shared_ext}$major'
8424   shlibpath_var=LD_LIBRARY_PATH
8425   case $host_vendor in
8426     sni)
8427       shlibpath_overrides_runpath=no
8428       need_lib_prefix=no
8429       export_dynamic_flag_spec='${wl}-Blargedynsym'
8430       runpath_var=LD_RUN_PATH
8431       ;;
8432     siemens)
8433       need_lib_prefix=no
8434       ;;
8435     motorola)
8436       need_lib_prefix=no
8437       need_version=no
8438       shlibpath_overrides_runpath=no
8439       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8440       ;;
8441   esac
8442   ;;
8443
8444 sysv4*MP*)
8445   if test -d /usr/nec ;then
8446     version_type=linux
8447     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8448     soname_spec='$libname${shared_ext}.$major'
8449     shlibpath_var=LD_LIBRARY_PATH
8450   fi
8451   ;;
8452
8453 uts4*)
8454   version_type=linux
8455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456   soname_spec='${libname}${release}${shared_ext}$major'
8457   shlibpath_var=LD_LIBRARY_PATH
8458   ;;
8459
8460 *)
8461   dynamic_linker=no
8462   ;;
8463 esac
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8465 $as_echo "$dynamic_linker" >&6; }
8466 test "$dynamic_linker" = no && can_build_shared=no
8467
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8469 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8470 hardcode_action=
8471 if test -n "$hardcode_libdir_flag_spec" || \
8472    test -n "$runpath_var " || \
8473    test "X$hardcode_automatic"="Xyes" ; then
8474
8475   # We can hardcode non-existant directories.
8476   if test "$hardcode_direct" != no &&
8477      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8478      # have to relink, otherwise we might link with an installed library
8479      # when we should be linking with a yet-to-be-installed one
8480      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8481      test "$hardcode_minus_L" != no; then
8482     # Linking always hardcodes the temporary library directory.
8483     hardcode_action=relink
8484   else
8485     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8486     hardcode_action=immediate
8487   fi
8488 else
8489   # We cannot hardcode anything, or else we can only hardcode existing
8490   # directories.
8491   hardcode_action=unsupported
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8494 $as_echo "$hardcode_action" >&6; }
8495
8496 if test "$hardcode_action" = relink; then
8497   # Fast installation is not supported
8498   enable_fast_install=no
8499 elif test "$shlibpath_overrides_runpath" = yes ||
8500      test "$enable_shared" = no; then
8501   # Fast installation is not necessary
8502   enable_fast_install=needless
8503 fi
8504
8505 striplib=
8506 old_striplib=
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
8508 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
8509 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8510   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8511   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8513 $as_echo "yes" >&6; }
8514 else
8515 # FIXME - insert some real tests, host_os isn't really good enough
8516   case $host_os in
8517    darwin*)
8518        if test -n "$STRIP" ; then
8519          striplib="$STRIP -x"
8520          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8521 $as_echo "yes" >&6; }
8522        else
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8525 fi
8526        ;;
8527    *)
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8530     ;;
8531   esac
8532 fi
8533
8534 if test "x$enable_dlopen" != xyes; then
8535   enable_dlopen=unknown
8536   enable_dlopen_self=unknown
8537   enable_dlopen_self_static=unknown
8538 else
8539   lt_cv_dlopen=no
8540   lt_cv_dlopen_libs=
8541
8542   case $host_os in
8543   beos*)
8544     lt_cv_dlopen="load_add_on"
8545     lt_cv_dlopen_libs=
8546     lt_cv_dlopen_self=yes
8547     ;;
8548
8549   mingw* | pw32*)
8550     lt_cv_dlopen="LoadLibrary"
8551     lt_cv_dlopen_libs=
8552    ;;
8553
8554   cygwin*)
8555     lt_cv_dlopen="dlopen"
8556     lt_cv_dlopen_libs=
8557    ;;
8558
8559   darwin*)
8560   # if libdl is installed we need to link against it
8561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8562 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8563 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566   ac_check_lib_save_LIBS=$LIBS
8567 LIBS="-ldl  $LIBS"
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h.  */
8570
8571 /* Override any GCC internal prototype to avoid an error.
8572    Use char because int might match the return type of a GCC
8573    builtin and then its argument prototype would still apply.  */
8574 #ifdef __cplusplus
8575 extern "C"
8576 #endif
8577 char dlopen ();
8578 int
8579 main ()
8580 {
8581 return dlopen ();
8582   ;
8583   return 0;
8584 }
8585 _ACEOF
8586 if ac_fn_c_try_link "$LINENO"; then :
8587   ac_cv_lib_dl_dlopen=yes
8588 else
8589   ac_cv_lib_dl_dlopen=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext \
8592     conftest$ac_exeext conftest.$ac_ext
8593 LIBS=$ac_check_lib_save_LIBS
8594 fi
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8597 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8598   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8599 else
8600
8601     lt_cv_dlopen="dyld"
8602     lt_cv_dlopen_libs=
8603     lt_cv_dlopen_self=yes
8604
8605 fi
8606
8607    ;;
8608
8609   *)
8610     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
8611 if test "x$ac_cv_func_shl_load" = x""yes; then :
8612   lt_cv_dlopen="shl_load"
8613 else
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8615 $as_echo_n "checking for shl_load in -ldld... " >&6; }
8616 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
8617   $as_echo_n "(cached) " >&6
8618 else
8619   ac_check_lib_save_LIBS=$LIBS
8620 LIBS="-ldld  $LIBS"
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h.  */
8623
8624 /* Override any GCC internal prototype to avoid an error.
8625    Use char because int might match the return type of a GCC
8626    builtin and then its argument prototype would still apply.  */
8627 #ifdef __cplusplus
8628 extern "C"
8629 #endif
8630 char shl_load ();
8631 int
8632 main ()
8633 {
8634 return shl_load ();
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 if ac_fn_c_try_link "$LINENO"; then :
8640   ac_cv_lib_dld_shl_load=yes
8641 else
8642   ac_cv_lib_dld_shl_load=no
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext \
8645     conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8649 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
8650 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
8651   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8652 else
8653   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8654 if test "x$ac_cv_func_dlopen" = x""yes; then :
8655   lt_cv_dlopen="dlopen"
8656 else
8657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8658 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8660   $as_echo_n "(cached) " >&6
8661 else
8662   ac_check_lib_save_LIBS=$LIBS
8663 LIBS="-ldl  $LIBS"
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h.  */
8666
8667 /* Override any GCC internal prototype to avoid an error.
8668    Use char because int might match the return type of a GCC
8669    builtin and then its argument prototype would still apply.  */
8670 #ifdef __cplusplus
8671 extern "C"
8672 #endif
8673 char dlopen ();
8674 int
8675 main ()
8676 {
8677 return dlopen ();
8678   ;
8679   return 0;
8680 }
8681 _ACEOF
8682 if ac_fn_c_try_link "$LINENO"; then :
8683   ac_cv_lib_dl_dlopen=yes
8684 else
8685   ac_cv_lib_dl_dlopen=no
8686 fi
8687 rm -f core conftest.err conftest.$ac_objext \
8688     conftest$ac_exeext conftest.$ac_ext
8689 LIBS=$ac_check_lib_save_LIBS
8690 fi
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8692 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8693 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8694   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8695 else
8696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
8697 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
8698 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
8699   $as_echo_n "(cached) " >&6
8700 else
8701   ac_check_lib_save_LIBS=$LIBS
8702 LIBS="-lsvld  $LIBS"
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h.  */
8705
8706 /* Override any GCC internal prototype to avoid an error.
8707    Use char because int might match the return type of a GCC
8708    builtin and then its argument prototype would still apply.  */
8709 #ifdef __cplusplus
8710 extern "C"
8711 #endif
8712 char dlopen ();
8713 int
8714 main ()
8715 {
8716 return dlopen ();
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 if ac_fn_c_try_link "$LINENO"; then :
8722   ac_cv_lib_svld_dlopen=yes
8723 else
8724   ac_cv_lib_svld_dlopen=no
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext \
8727     conftest$ac_exeext conftest.$ac_ext
8728 LIBS=$ac_check_lib_save_LIBS
8729 fi
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
8731 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
8732 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
8733   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8734 else
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
8736 $as_echo_n "checking for dld_link in -ldld... " >&6; }
8737 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
8738   $as_echo_n "(cached) " >&6
8739 else
8740   ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-ldld  $LIBS"
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h.  */
8744
8745 /* Override any GCC internal prototype to avoid an error.
8746    Use char because int might match the return type of a GCC
8747    builtin and then its argument prototype would still apply.  */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 char dld_link ();
8752 int
8753 main ()
8754 {
8755 return dld_link ();
8756   ;
8757   return 0;
8758 }
8759 _ACEOF
8760 if ac_fn_c_try_link "$LINENO"; then :
8761   ac_cv_lib_dld_dld_link=yes
8762 else
8763   ac_cv_lib_dld_dld_link=no
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext \
8766     conftest$ac_exeext conftest.$ac_ext
8767 LIBS=$ac_check_lib_save_LIBS
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
8770 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
8771 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
8772   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8773 fi
8774
8775
8776 fi
8777
8778
8779 fi
8780
8781
8782 fi
8783
8784
8785 fi
8786
8787
8788 fi
8789
8790     ;;
8791   esac
8792
8793   if test "x$lt_cv_dlopen" != xno; then
8794     enable_dlopen=yes
8795   else
8796     enable_dlopen=no
8797   fi
8798
8799   case $lt_cv_dlopen in
8800   dlopen)
8801     save_CPPFLAGS="$CPPFLAGS"
8802     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8803
8804     save_LDFLAGS="$LDFLAGS"
8805     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8806
8807     save_LIBS="$LIBS"
8808     LIBS="$lt_cv_dlopen_libs $LIBS"
8809
8810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
8811 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
8812 if test "${lt_cv_dlopen_self+set}" = set; then :
8813   $as_echo_n "(cached) " >&6
8814 else
8815           if test "$cross_compiling" = yes; then :
8816   lt_cv_dlopen_self=cross
8817 else
8818   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8819   lt_status=$lt_dlunknown
8820   cat > conftest.$ac_ext <<EOF
8821 #line 8821 "configure"
8822 #include "confdefs.h"
8823
8824 #if HAVE_DLFCN_H
8825 #include <dlfcn.h>
8826 #endif
8827
8828 #include <stdio.h>
8829
8830 #ifdef RTLD_GLOBAL
8831 #  define LT_DLGLOBAL           RTLD_GLOBAL
8832 #else
8833 #  ifdef DL_GLOBAL
8834 #    define LT_DLGLOBAL         DL_GLOBAL
8835 #  else
8836 #    define LT_DLGLOBAL         0
8837 #  endif
8838 #endif
8839
8840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8841    find out it does not work in some platform. */
8842 #ifndef LT_DLLAZY_OR_NOW
8843 #  ifdef RTLD_LAZY
8844 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8845 #  else
8846 #    ifdef DL_LAZY
8847 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8848 #    else
8849 #      ifdef RTLD_NOW
8850 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8851 #      else
8852 #        ifdef DL_NOW
8853 #          define LT_DLLAZY_OR_NOW      DL_NOW
8854 #        else
8855 #          define LT_DLLAZY_OR_NOW      0
8856 #        endif
8857 #      endif
8858 #    endif
8859 #  endif
8860 #endif
8861
8862 #ifdef __cplusplus
8863 extern "C" void exit (int);
8864 #endif
8865
8866 void fnord() { int i=42;}
8867 int main ()
8868 {
8869   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8870   int status = $lt_dlunknown;
8871
8872   if (self)
8873     {
8874       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8875       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8876       /* dlclose (self); */
8877     }
8878
8879     exit (status);
8880 }
8881 EOF
8882   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8883   (eval $ac_link) 2>&5
8884   ac_status=$?
8885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8886   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8887     (./conftest; exit; ) 2>/dev/null
8888     lt_status=$?
8889     case x$lt_status in
8890       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8891       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8892       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8893     esac
8894   else :
8895     # compilation failed
8896     lt_cv_dlopen_self=no
8897   fi
8898 fi
8899 rm -fr conftest*
8900
8901
8902 fi
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
8904 $as_echo "$lt_cv_dlopen_self" >&6; }
8905
8906     if test "x$lt_cv_dlopen_self" = xyes; then
8907       LDFLAGS="$LDFLAGS $link_static_flag"
8908       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
8909 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
8910 if test "${lt_cv_dlopen_self_static+set}" = set; then :
8911   $as_echo_n "(cached) " >&6
8912 else
8913           if test "$cross_compiling" = yes; then :
8914   lt_cv_dlopen_self_static=cross
8915 else
8916   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8917   lt_status=$lt_dlunknown
8918   cat > conftest.$ac_ext <<EOF
8919 #line 8919 "configure"
8920 #include "confdefs.h"
8921
8922 #if HAVE_DLFCN_H
8923 #include <dlfcn.h>
8924 #endif
8925
8926 #include <stdio.h>
8927
8928 #ifdef RTLD_GLOBAL
8929 #  define LT_DLGLOBAL           RTLD_GLOBAL
8930 #else
8931 #  ifdef DL_GLOBAL
8932 #    define LT_DLGLOBAL         DL_GLOBAL
8933 #  else
8934 #    define LT_DLGLOBAL         0
8935 #  endif
8936 #endif
8937
8938 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8939    find out it does not work in some platform. */
8940 #ifndef LT_DLLAZY_OR_NOW
8941 #  ifdef RTLD_LAZY
8942 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8943 #  else
8944 #    ifdef DL_LAZY
8945 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8946 #    else
8947 #      ifdef RTLD_NOW
8948 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8949 #      else
8950 #        ifdef DL_NOW
8951 #          define LT_DLLAZY_OR_NOW      DL_NOW
8952 #        else
8953 #          define LT_DLLAZY_OR_NOW      0
8954 #        endif
8955 #      endif
8956 #    endif
8957 #  endif
8958 #endif
8959
8960 #ifdef __cplusplus
8961 extern "C" void exit (int);
8962 #endif
8963
8964 void fnord() { int i=42;}
8965 int main ()
8966 {
8967   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8968   int status = $lt_dlunknown;
8969
8970   if (self)
8971     {
8972       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8973       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8974       /* dlclose (self); */
8975     }
8976
8977     exit (status);
8978 }
8979 EOF
8980   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8981   (eval $ac_link) 2>&5
8982   ac_status=$?
8983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8984   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
8985     (./conftest; exit; ) 2>/dev/null
8986     lt_status=$?
8987     case x$lt_status in
8988       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8989       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8990       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8991     esac
8992   else :
8993     # compilation failed
8994     lt_cv_dlopen_self_static=no
8995   fi
8996 fi
8997 rm -fr conftest*
8998
8999
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9002 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9003     fi
9004
9005     CPPFLAGS="$save_CPPFLAGS"
9006     LDFLAGS="$save_LDFLAGS"
9007     LIBS="$save_LIBS"
9008     ;;
9009   esac
9010
9011   case $lt_cv_dlopen_self in
9012   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9013   *) enable_dlopen_self=unknown ;;
9014   esac
9015
9016   case $lt_cv_dlopen_self_static in
9017   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9018   *) enable_dlopen_self_static=unknown ;;
9019   esac
9020 fi
9021
9022
9023 # Report which librarie types wil actually be built
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9025 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9027 $as_echo "$can_build_shared" >&6; }
9028
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9030 $as_echo_n "checking whether to build shared libraries... " >&6; }
9031 test "$can_build_shared" = "no" && enable_shared=no
9032
9033 # On AIX, shared libraries and static libraries use the same namespace, and
9034 # are all built from PIC.
9035 case "$host_os" in
9036 aix3*)
9037   test "$enable_shared" = yes && enable_static=no
9038   if test -n "$RANLIB"; then
9039     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9040     postinstall_cmds='$RANLIB $lib'
9041   fi
9042   ;;
9043
9044 aix4*)
9045   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9046     test "$enable_shared" = yes && enable_static=no
9047   fi
9048   ;;
9049   darwin* | rhapsody*)
9050   if test "$GCC" = yes; then
9051     archive_cmds_need_lc=no
9052     case "$host_os" in
9053     rhapsody* | darwin1.[012])
9054       allow_undefined_flag='-undefined suppress'
9055       ;;
9056     *) # Darwin 1.3 on
9057       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9058         allow_undefined_flag='-flat_namespace -undefined suppress'
9059       else
9060         case ${MACOSX_DEPLOYMENT_TARGET} in
9061           10.[012])
9062             allow_undefined_flag='-flat_namespace -undefined suppress'
9063             ;;
9064           10.*)
9065             allow_undefined_flag='-undefined dynamic_lookup'
9066             ;;
9067         esac
9068       fi
9069       ;;
9070     esac
9071     output_verbose_link_cmd='echo'
9072     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9073     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9074     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9075     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9076     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9077     hardcode_direct=no
9078     hardcode_automatic=yes
9079     hardcode_shlibpath_var=unsupported
9080     whole_archive_flag_spec='-all_load $convenience'
9081     link_all_deplibs=yes
9082   else
9083     ld_shlibs=no
9084   fi
9085     ;;
9086 esac
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9088 $as_echo "$enable_shared" >&6; }
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9091 $as_echo_n "checking whether to build static libraries... " >&6; }
9092 # Make sure either enable_shared or enable_static is yes.
9093 test "$enable_shared" = yes || enable_static=yes
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9095 $as_echo "$enable_static" >&6; }
9096
9097 # The else clause should only fire when bootstrapping the
9098 # libtool distribution, otherwise you forgot to ship ltmain.sh
9099 # with your package, and you will get complaints that there are
9100 # no rules to generate ltmain.sh.
9101 if test -f "$ltmain"; then
9102   # See if we are running on zsh, and set the options which allow our commands through
9103   # without removal of \ escapes.
9104   if test -n "${ZSH_VERSION+set}" ; then
9105     setopt NO_GLOB_SUBST
9106   fi
9107   # Now quote all the things that may contain metacharacters while being
9108   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9109   # variables and quote the copies for generation of the libtool script.
9110   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9111     SED SHELL STRIP \
9112     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9113     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9114     deplibs_check_method reload_flag reload_cmds need_locks \
9115     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9116     lt_cv_sys_global_symbol_to_c_name_address \
9117     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9118     old_postinstall_cmds old_postuninstall_cmds \
9119     compiler \
9120     CC \
9121     LD \
9122     lt_prog_compiler_wl \
9123     lt_prog_compiler_pic \
9124     lt_prog_compiler_static \
9125     lt_prog_compiler_no_builtin_flag \
9126     export_dynamic_flag_spec \
9127     thread_safe_flag_spec \
9128     whole_archive_flag_spec \
9129     enable_shared_with_static_runtimes \
9130     old_archive_cmds \
9131     old_archive_from_new_cmds \
9132     predep_objects \
9133     postdep_objects \
9134     predeps \
9135     postdeps \
9136     compiler_lib_search_path \
9137     archive_cmds \
9138     archive_expsym_cmds \
9139     postinstall_cmds \
9140     postuninstall_cmds \
9141     old_archive_from_expsyms_cmds \
9142     allow_undefined_flag \
9143     no_undefined_flag \
9144     export_symbols_cmds \
9145     hardcode_libdir_flag_spec \
9146     hardcode_libdir_flag_spec_ld \
9147     hardcode_libdir_separator \
9148     hardcode_automatic \
9149     module_cmds \
9150     module_expsym_cmds \
9151     lt_cv_prog_compiler_c_o \
9152     exclude_expsyms \
9153     include_expsyms; do
9154
9155     case $var in
9156     old_archive_cmds | \
9157     old_archive_from_new_cmds | \
9158     archive_cmds | \
9159     archive_expsym_cmds | \
9160     module_cmds | \
9161     module_expsym_cmds | \
9162     old_archive_from_expsyms_cmds | \
9163     export_symbols_cmds | \
9164     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9165     postinstall_cmds | postuninstall_cmds | \
9166     old_postinstall_cmds | old_postuninstall_cmds | \
9167     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9168       # Double-quote double-evaled strings.
9169       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9170       ;;
9171     *)
9172       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9173       ;;
9174     esac
9175   done
9176
9177   case $lt_echo in
9178   *'\$0 --fallback-echo"')
9179     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9180     ;;
9181   esac
9182
9183 cfgfile="${ofile}T"
9184   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9185   $rm -f "$cfgfile"
9186   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9187 $as_echo "$as_me: creating $ofile" >&6;}
9188
9189   cat <<__EOF__ >> "$cfgfile"
9190 #! $SHELL
9191
9192 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9193 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9194 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9195 #
9196 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9197 # Free Software Foundation, Inc.
9198 #
9199 # This file is part of GNU Libtool:
9200 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9201 #
9202 # This program is free software; you can redistribute it and/or modify
9203 # it under the terms of the GNU General Public License as published by
9204 # the Free Software Foundation; either version 2 of the License, or
9205 # (at your option) any later version.
9206 #
9207 # This program is distributed in the hope that it will be useful, but
9208 # WITHOUT ANY WARRANTY; without even the implied warranty of
9209 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9210 # General Public License for more details.
9211 #
9212 # You should have received a copy of the GNU General Public License
9213 # along with this program; if not, write to the Free Software
9214 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9215 #
9216 # As a special exception to the GNU General Public License, if you
9217 # distribute this file as part of a program that contains a
9218 # configuration script generated by Autoconf, you may include it under
9219 # the same distribution terms that you use for the rest of that program.
9220
9221 # A sed program that does not truncate output.
9222 SED=$lt_SED
9223
9224 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9225 Xsed="$SED -e s/^X//"
9226
9227 # The HP-UX ksh and POSIX shell print the target directory to stdout
9228 # if CDPATH is set.
9229 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9230
9231 # The names of the tagged configurations supported by this script.
9232 available_tags=
9233
9234 # ### BEGIN LIBTOOL CONFIG
9235
9236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9237
9238 # Shell to use when invoking shell scripts.
9239 SHELL=$lt_SHELL
9240
9241 # Whether or not to build shared libraries.
9242 build_libtool_libs=$enable_shared
9243
9244 # Whether or not to build static libraries.
9245 build_old_libs=$enable_static
9246
9247 # Whether or not to add -lc for building shared libraries.
9248 build_libtool_need_lc=$archive_cmds_need_lc
9249
9250 # Whether or not to disallow shared libs when runtime libs are static
9251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9252
9253 # Whether or not to optimize for fast installation.
9254 fast_install=$enable_fast_install
9255
9256 # The host system.
9257 host_alias=$host_alias
9258 host=$host
9259
9260 # An echo program that does not interpret backslashes.
9261 echo=$lt_echo
9262
9263 # The archiver.
9264 AR=$lt_AR
9265 AR_FLAGS=$lt_AR_FLAGS
9266
9267 # A C compiler.
9268 LTCC=$lt_LTCC
9269
9270 # A language-specific compiler.
9271 CC=$lt_compiler
9272
9273 # Is the compiler the GNU C compiler?
9274 with_gcc=$GCC
9275
9276 # An ERE matcher.
9277 EGREP=$lt_EGREP
9278
9279 # The linker used to build libraries.
9280 LD=$lt_LD
9281
9282 # Whether we need hard or soft links.
9283 LN_S=$lt_LN_S
9284
9285 # A BSD-compatible nm program.
9286 NM=$lt_NM
9287
9288 # A symbol stripping program
9289 STRIP=$lt_STRIP
9290
9291 # Used to examine libraries when file_magic_cmd begins "file"
9292 MAGIC_CMD=$MAGIC_CMD
9293
9294 # Used on cygwin: DLL creation program.
9295 DLLTOOL="$DLLTOOL"
9296
9297 # Used on cygwin: object dumper.
9298 OBJDUMP="$OBJDUMP"
9299
9300 # Used on cygwin: assembler.
9301 AS="$AS"
9302
9303 # The name of the directory that contains temporary libtool files.
9304 objdir=$objdir
9305
9306 # How to create reloadable object files.
9307 reload_flag=$lt_reload_flag
9308 reload_cmds=$lt_reload_cmds
9309
9310 # How to pass a linker flag through the compiler.
9311 wl=$lt_lt_prog_compiler_wl
9312
9313 # Object file suffix (normally "o").
9314 objext="$ac_objext"
9315
9316 # Old archive suffix (normally "a").
9317 libext="$libext"
9318
9319 # Shared library suffix (normally ".so").
9320 shrext='$shrext'
9321
9322 # Executable file suffix (normally "").
9323 exeext="$exeext"
9324
9325 # Additional compiler flags for building library objects.
9326 pic_flag=$lt_lt_prog_compiler_pic
9327 pic_mode=$pic_mode
9328
9329 # What is the maximum length of a command?
9330 max_cmd_len=$lt_cv_sys_max_cmd_len
9331
9332 # Does compiler simultaneously support -c and -o options?
9333 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9334
9335 # Must we lock files when doing compilation ?
9336 need_locks=$lt_need_locks
9337
9338 # Do we need the lib prefix for modules?
9339 need_lib_prefix=$need_lib_prefix
9340
9341 # Do we need a version for libraries?
9342 need_version=$need_version
9343
9344 # Whether dlopen is supported.
9345 dlopen_support=$enable_dlopen
9346
9347 # Whether dlopen of programs is supported.
9348 dlopen_self=$enable_dlopen_self
9349
9350 # Whether dlopen of statically linked programs is supported.
9351 dlopen_self_static=$enable_dlopen_self_static
9352
9353 # Compiler flag to prevent dynamic linking.
9354 link_static_flag=$lt_lt_prog_compiler_static
9355
9356 # Compiler flag to turn off builtin functions.
9357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9358
9359 # Compiler flag to allow reflexive dlopens.
9360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9361
9362 # Compiler flag to generate shared objects directly from archives.
9363 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9364
9365 # Compiler flag to generate thread-safe objects.
9366 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9367
9368 # Library versioning type.
9369 version_type=$version_type
9370
9371 # Format of library name prefix.
9372 libname_spec=$lt_libname_spec
9373
9374 # List of archive names.  First name is the real one, the rest are links.
9375 # The last name is the one that the linker finds with -lNAME.
9376 library_names_spec=$lt_library_names_spec
9377
9378 # The coded name of the library, if different from the real name.
9379 soname_spec=$lt_soname_spec
9380
9381 # Commands used to build and install an old-style archive.
9382 RANLIB=$lt_RANLIB
9383 old_archive_cmds=$lt_old_archive_cmds
9384 old_postinstall_cmds=$lt_old_postinstall_cmds
9385 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9386
9387 # Create an old-style archive from a shared archive.
9388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9389
9390 # Create a temporary old-style archive to link instead of a shared archive.
9391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9392
9393 # Commands used to build and install a shared archive.
9394 archive_cmds=$lt_archive_cmds
9395 archive_expsym_cmds=$lt_archive_expsym_cmds
9396 postinstall_cmds=$lt_postinstall_cmds
9397 postuninstall_cmds=$lt_postuninstall_cmds
9398
9399 # Commands used to build a loadable module (assumed same as above if empty)
9400 module_cmds=$lt_module_cmds
9401 module_expsym_cmds=$lt_module_expsym_cmds
9402
9403 # Commands to strip libraries.
9404 old_striplib=$lt_old_striplib
9405 striplib=$lt_striplib
9406
9407 # Dependencies to place before the objects being linked to create a
9408 # shared library.
9409 predep_objects=$lt_predep_objects
9410
9411 # Dependencies to place after the objects being linked to create a
9412 # shared library.
9413 postdep_objects=$lt_postdep_objects
9414
9415 # Dependencies to place before the objects being linked to create a
9416 # shared library.
9417 predeps=$lt_predeps
9418
9419 # Dependencies to place after the objects being linked to create a
9420 # shared library.
9421 postdeps=$lt_postdeps
9422
9423 # The library search path used internally by the compiler when linking
9424 # a shared library.
9425 compiler_lib_search_path=$lt_compiler_lib_search_path
9426
9427 # Method to check whether dependent libraries are shared objects.
9428 deplibs_check_method=$lt_deplibs_check_method
9429
9430 # Command to use when deplibs_check_method == file_magic.
9431 file_magic_cmd=$lt_file_magic_cmd
9432
9433 # Flag that allows shared libraries with undefined symbols to be built.
9434 allow_undefined_flag=$lt_allow_undefined_flag
9435
9436 # Flag that forces no undefined symbols.
9437 no_undefined_flag=$lt_no_undefined_flag
9438
9439 # Commands used to finish a libtool library installation in a directory.
9440 finish_cmds=$lt_finish_cmds
9441
9442 # Same as above, but a single script fragment to be evaled but not shown.
9443 finish_eval=$lt_finish_eval
9444
9445 # Take the output of nm and produce a listing of raw symbols and C names.
9446 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9447
9448 # Transform the output of nm in a proper C declaration
9449 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9450
9451 # Transform the output of nm in a C name address pair
9452 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9453
9454 # This is the shared library runtime path variable.
9455 runpath_var=$runpath_var
9456
9457 # This is the shared library path variable.
9458 shlibpath_var=$shlibpath_var
9459
9460 # Is shlibpath searched before the hard-coded library search path?
9461 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9462
9463 # How to hardcode a shared library path into an executable.
9464 hardcode_action=$hardcode_action
9465
9466 # Whether we should hardcode library paths into libraries.
9467 hardcode_into_libs=$hardcode_into_libs
9468
9469 # Flag to hardcode \$libdir into a binary during linking.
9470 # This must work even if \$libdir does not exist.
9471 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9472
9473 # If ld is used when linking, flag to hardcode \$libdir into
9474 # a binary during linking. This must work even if \$libdir does
9475 # not exist.
9476 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9477
9478 # Whether we need a single -rpath flag with a separated argument.
9479 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9480
9481 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9482 # resulting binary.
9483 hardcode_direct=$hardcode_direct
9484
9485 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9486 # resulting binary.
9487 hardcode_minus_L=$hardcode_minus_L
9488
9489 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9490 # the resulting binary.
9491 hardcode_shlibpath_var=$hardcode_shlibpath_var
9492
9493 # Set to yes if building a shared library automatically hardcodes DIR into the library
9494 # and all subsequent libraries and executables linked against it.
9495 hardcode_automatic=$hardcode_automatic
9496
9497 # Variables whose values should be saved in libtool wrapper scripts and
9498 # restored at relink time.
9499 variables_saved_for_relink="$variables_saved_for_relink"
9500
9501 # Whether libtool must link a program against all its dependency libraries.
9502 link_all_deplibs=$link_all_deplibs
9503
9504 # Compile-time system search path for libraries
9505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9506
9507 # Run-time system search path for libraries
9508 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9509
9510 # Fix the shell variable \$srcfile for the compiler.
9511 fix_srcfile_path="$fix_srcfile_path"
9512
9513 # Set to yes if exported symbols are required.
9514 always_export_symbols=$always_export_symbols
9515
9516 # The commands to list exported symbols.
9517 export_symbols_cmds=$lt_export_symbols_cmds
9518
9519 # The commands to extract the exported symbol list from a shared archive.
9520 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9521
9522 # Symbols that should not be listed in the preloaded symbols.
9523 exclude_expsyms=$lt_exclude_expsyms
9524
9525 # Symbols that must always be exported.
9526 include_expsyms=$lt_include_expsyms
9527
9528 # ### END LIBTOOL CONFIG
9529
9530 __EOF__
9531
9532
9533   case $host_os in
9534   aix3*)
9535     cat <<\EOF >> "$cfgfile"
9536
9537 # AIX sometimes has problems with the GCC collect2 program.  For some
9538 # reason, if we set the COLLECT_NAMES environment variable, the problems
9539 # vanish in a puff of smoke.
9540 if test "X${COLLECT_NAMES+set}" != Xset; then
9541   COLLECT_NAMES=
9542   export COLLECT_NAMES
9543 fi
9544 EOF
9545     ;;
9546   esac
9547
9548   # We use sed instead of cat because bash on DJGPP gets confused if
9549   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9550   # text mode, it properly converts lines to CR/LF.  This bash problem
9551   # is reportedly fixed, but why not run on old versions too?
9552   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9553
9554   mv -f "$cfgfile" "$ofile" || \
9555     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9556   chmod +x "$ofile"
9557
9558 else
9559   # If there is no Makefile yet, we rely on a make rule to execute
9560   # `config.status --recheck' to rerun these tests and create the
9561   # libtool script then.
9562   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9563   if test -f "$ltmain_in"; then
9564     test -f Makefile && make "$ltmain"
9565   fi
9566 fi
9567
9568
9569 ac_ext=c
9570 ac_cpp='$CPP $CPPFLAGS'
9571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9574
9575 CC="$lt_save_CC"
9576
9577
9578 # Check whether --with-tags was given.
9579 if test "${with_tags+set}" = set; then :
9580   withval=$with_tags; tagnames="$withval"
9581 fi
9582
9583
9584 if test -f "$ltmain" && test -n "$tagnames"; then
9585   if test ! -f "${ofile}"; then
9586     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
9587 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9588   fi
9589
9590   if test -z "$LTCC"; then
9591     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9592     if test -z "$LTCC"; then
9593       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9594 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9595     else
9596       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9597 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9598     fi
9599   fi
9600
9601   # Extract list of available tagged configurations in $ofile.
9602   # Note that this assumes the entire list is on one line.
9603   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9604
9605   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9606   for tagname in $tagnames; do
9607     IFS="$lt_save_ifs"
9608     # Check whether tagname contains only valid characters
9609     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9610     "") ;;
9611     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
9612         ;;
9613     esac
9614
9615     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9616     then
9617       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
9618     fi
9619
9620     # Update the list of available tags.
9621     if test -n "$tagname"; then
9622       echo appending configuration tag \"$tagname\" to $ofile
9623
9624       case $tagname in
9625       CXX)
9626         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9627           ac_ext=cpp
9628 ac_cpp='$CXXCPP $CPPFLAGS'
9629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9632
9633
9634
9635
9636 archive_cmds_need_lc_CXX=no
9637 allow_undefined_flag_CXX=
9638 always_export_symbols_CXX=no
9639 archive_expsym_cmds_CXX=
9640 export_dynamic_flag_spec_CXX=
9641 hardcode_direct_CXX=no
9642 hardcode_libdir_flag_spec_CXX=
9643 hardcode_libdir_flag_spec_ld_CXX=
9644 hardcode_libdir_separator_CXX=
9645 hardcode_minus_L_CXX=no
9646 hardcode_automatic_CXX=no
9647 module_cmds_CXX=
9648 module_expsym_cmds_CXX=
9649 link_all_deplibs_CXX=unknown
9650 old_archive_cmds_CXX=$old_archive_cmds
9651 no_undefined_flag_CXX=
9652 whole_archive_flag_spec_CXX=
9653 enable_shared_with_static_runtimes_CXX=no
9654
9655 # Dependencies to place before and after the object being linked:
9656 predep_objects_CXX=
9657 postdep_objects_CXX=
9658 predeps_CXX=
9659 postdeps_CXX=
9660 compiler_lib_search_path_CXX=
9661
9662 # Source file extension for C++ test sources.
9663 ac_ext=cc
9664
9665 # Object file extension for compiled C++ test sources.
9666 objext=o
9667 objext_CXX=$objext
9668
9669 # Code to be used in simple compile tests
9670 lt_simple_compile_test_code="int some_variable = 0;\n"
9671
9672 # Code to be used in simple link tests
9673 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9674
9675 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9676
9677 # If no C compiler was specified, use CC.
9678 LTCC=${LTCC-"$CC"}
9679
9680 # Allow CC to be a program name with arguments.
9681 compiler=$CC
9682
9683
9684 # Allow CC to be a program name with arguments.
9685 lt_save_CC=$CC
9686 lt_save_LD=$LD
9687 lt_save_GCC=$GCC
9688 GCC=$GXX
9689 lt_save_with_gnu_ld=$with_gnu_ld
9690 lt_save_path_LD=$lt_cv_path_LD
9691 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9692   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9693 else
9694   unset lt_cv_prog_gnu_ld
9695 fi
9696 if test -n "${lt_cv_path_LDCXX+set}"; then
9697   lt_cv_path_LD=$lt_cv_path_LDCXX
9698 else
9699   unset lt_cv_path_LD
9700 fi
9701 test -z "${LDCXX+set}" || LD=$LDCXX
9702 CC=${CXX-"c++"}
9703 compiler=$CC
9704 compiler_CXX=$CC
9705 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9706
9707 # We don't want -fno-exception wen compiling C++ code, so set the
9708 # no_builtin_flag separately
9709 if test "$GXX" = yes; then
9710   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9711 else
9712   lt_prog_compiler_no_builtin_flag_CXX=
9713 fi
9714
9715 if test "$GXX" = yes; then
9716   # Set up default GNU C++ configuration
9717
9718
9719 # Check whether --with-gnu-ld was given.
9720 if test "${with_gnu_ld+set}" = set; then :
9721   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9722 else
9723   with_gnu_ld=no
9724 fi
9725
9726 ac_prog=ld
9727 if test "$GCC" = yes; then
9728   # Check if gcc -print-prog-name=ld gives a path.
9729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9730 $as_echo_n "checking for ld used by $CC... " >&6; }
9731   case $host in
9732   *-*-mingw*)
9733     # gcc leaves a trailing carriage return which upsets mingw
9734     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9735   *)
9736     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9737   esac
9738   case $ac_prog in
9739     # Accept absolute paths.
9740     [\\/]* | ?:[\\/]*)
9741       re_direlt='/[^/][^/]*/\.\./'
9742       # Canonicalize the pathname of ld
9743       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9744       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9745         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9746       done
9747       test -z "$LD" && LD="$ac_prog"
9748       ;;
9749   "")
9750     # If it fails, then pretend we aren't using GCC.
9751     ac_prog=ld
9752     ;;
9753   *)
9754     # If it is relative, then search for the first ld in PATH.
9755     with_gnu_ld=unknown
9756     ;;
9757   esac
9758 elif test "$with_gnu_ld" = yes; then
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9760 $as_echo_n "checking for GNU ld... " >&6; }
9761 else
9762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9763 $as_echo_n "checking for non-GNU ld... " >&6; }
9764 fi
9765 if test "${lt_cv_path_LD+set}" = set; then :
9766   $as_echo_n "(cached) " >&6
9767 else
9768   if test -z "$LD"; then
9769   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9770   for ac_dir in $PATH; do
9771     IFS="$lt_save_ifs"
9772     test -z "$ac_dir" && ac_dir=.
9773     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9774       lt_cv_path_LD="$ac_dir/$ac_prog"
9775       # Check to see if the program is GNU ld.  I'd rather use --version,
9776       # but apparently some GNU ld's only accept -v.
9777       # Break only if it was the GNU/non-GNU ld that we prefer.
9778       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9779       *GNU* | *'with BFD'*)
9780         test "$with_gnu_ld" != no && break
9781         ;;
9782       *)
9783         test "$with_gnu_ld" != yes && break
9784         ;;
9785       esac
9786     fi
9787   done
9788   IFS="$lt_save_ifs"
9789 else
9790   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9791 fi
9792 fi
9793
9794 LD="$lt_cv_path_LD"
9795 if test -n "$LD"; then
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9797 $as_echo "$LD" >&6; }
9798 else
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9801 fi
9802 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9805 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9809 case `$LD -v 2>&1 </dev/null` in
9810 *GNU* | *'with BFD'*)
9811   lt_cv_prog_gnu_ld=yes
9812   ;;
9813 *)
9814   lt_cv_prog_gnu_ld=no
9815   ;;
9816 esac
9817 fi
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9820 with_gnu_ld=$lt_cv_prog_gnu_ld
9821
9822
9823
9824   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9825   # archiving commands below assume that GNU ld is being used.
9826   if test "$with_gnu_ld" = yes; then
9827     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828     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'
9829
9830     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9831     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9832
9833     # If archive_cmds runs LD, not CC, wlarc should be empty
9834     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9835     #     investigate it a little bit more. (MM)
9836     wlarc='${wl}'
9837
9838     # ancient GNU ld didn't support --whole-archive et. al.
9839     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9840         grep 'no-whole-archive' > /dev/null; then
9841       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9842     else
9843       whole_archive_flag_spec_CXX=
9844     fi
9845   else
9846     with_gnu_ld=no
9847     wlarc=
9848
9849     # A generic and very simple default shared library creation
9850     # command for GNU C++ for the case where it uses the native
9851     # linker, instead of GNU ld.  If possible, this setting should
9852     # overridden to take advantage of the native linker features on
9853     # the platform it is being used on.
9854     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9855   fi
9856
9857   # Commands to make compiler produce verbose output that lists
9858   # what "hidden" libraries, object files and flags are used when
9859   # linking a shared library.
9860   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9861
9862 else
9863   GXX=no
9864   with_gnu_ld=no
9865   wlarc=
9866 fi
9867
9868 # PORTME: fill in a description of your system's C++ link characteristics
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9870 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9871 ld_shlibs_CXX=yes
9872 case $host_os in
9873   aix3*)
9874     # FIXME: insert proper C++ library support
9875     ld_shlibs_CXX=no
9876     ;;
9877   aix4* | aix5*)
9878     if test "$host_cpu" = ia64; then
9879       # On IA64, the linker does run time linking by default, so we don't
9880       # have to do anything special.
9881       aix_use_runtimelinking=no
9882       exp_sym_flag='-Bexport'
9883       no_entry_flag=""
9884     else
9885       aix_use_runtimelinking=no
9886
9887       # Test if we are trying to use run time linking or normal
9888       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9889       # need to do runtime linking.
9890       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9891         for ld_flag in $LDFLAGS; do
9892           case $ld_flag in
9893           *-brtl*)
9894             aix_use_runtimelinking=yes
9895             break
9896             ;;
9897           esac
9898         done
9899       esac
9900
9901       exp_sym_flag='-bexport'
9902       no_entry_flag='-bnoentry'
9903     fi
9904
9905     # When large executables or shared objects are built, AIX ld can
9906     # have problems creating the table of contents.  If linking a library
9907     # or program results in "error TOC overflow" add -mminimal-toc to
9908     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9909     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9910
9911     archive_cmds_CXX=''
9912     hardcode_direct_CXX=yes
9913     hardcode_libdir_separator_CXX=':'
9914     link_all_deplibs_CXX=yes
9915
9916     if test "$GXX" = yes; then
9917       case $host_os in aix4.012|aix4.012.*)
9918       # We only want to do this on AIX 4.2 and lower, the check
9919       # below for broken collect2 doesn't work under 4.3+
9920         collect2name=`${CC} -print-prog-name=collect2`
9921         if test -f "$collect2name" && \
9922            strings "$collect2name" | grep resolve_lib_name >/dev/null
9923         then
9924           # We have reworked collect2
9925           hardcode_direct_CXX=yes
9926         else
9927           # We have old collect2
9928           hardcode_direct_CXX=unsupported
9929           # It fails to find uninstalled libraries when the uninstalled
9930           # path is not listed in the libpath.  Setting hardcode_minus_L
9931           # to unsupported forces relinking
9932           hardcode_minus_L_CXX=yes
9933           hardcode_libdir_flag_spec_CXX='-L$libdir'
9934           hardcode_libdir_separator_CXX=
9935         fi
9936       esac
9937       shared_flag='-shared'
9938     else
9939       # not using gcc
9940       if test "$host_cpu" = ia64; then
9941         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9942         # chokes on -Wl,-G. The following line is correct:
9943         shared_flag='-G'
9944       else
9945         if test "$aix_use_runtimelinking" = yes; then
9946           shared_flag='${wl}-G'
9947         else
9948           shared_flag='${wl}-bM:SRE'
9949         fi
9950       fi
9951     fi
9952
9953     # It seems that -bexpall does not export symbols beginning with
9954     # underscore (_), so it is better to generate a list of symbols to export.
9955     always_export_symbols_CXX=yes
9956     if test "$aix_use_runtimelinking" = yes; then
9957       # Warning - without using the other runtime loading flags (-brtl),
9958       # -berok will link without error, but may produce a broken library.
9959       allow_undefined_flag_CXX='-berok'
9960       # Determine the default libpath from the value encoded in an empty executable.
9961       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h.  */
9963
9964 int
9965 main ()
9966 {
9967
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_cxx_try_link "$LINENO"; then :
9973
9974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9975 }'`
9976 # Check for a 64-bit object if we didn't find anything.
9977 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9978 }'`; fi
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext \
9981     conftest$ac_exeext conftest.$ac_ext
9982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9983
9984       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9985
9986       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9987      else
9988       if test "$host_cpu" = ia64; then
9989         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9990         allow_undefined_flag_CXX="-z nodefs"
9991         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9992       else
9993         # Determine the default libpath from the value encoded in an empty executable.
9994         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h.  */
9996
9997 int
9998 main ()
9999 {
10000
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 if ac_fn_cxx_try_link "$LINENO"; then :
10006
10007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10008 }'`
10009 # Check for a 64-bit object if we didn't find anything.
10010 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10011 }'`; fi
10012 fi
10013 rm -f core conftest.err conftest.$ac_objext \
10014     conftest$ac_exeext conftest.$ac_ext
10015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10016
10017         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10018         # Warning - without using the other run time loading flags,
10019         # -berok will link without error, but may produce a broken library.
10020         no_undefined_flag_CXX=' ${wl}-bernotok'
10021         allow_undefined_flag_CXX=' ${wl}-berok'
10022         # -bexpall does not export symbols beginning with underscore (_)
10023         always_export_symbols_CXX=yes
10024         # Exported symbols can be pulled into shared objects from archives
10025         whole_archive_flag_spec_CXX=' '
10026         archive_cmds_need_lc_CXX=yes
10027         # This is similar to how AIX traditionally builds it's shared libraries.
10028         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10029       fi
10030     fi
10031     ;;
10032   chorus*)
10033     case $cc_basename in
10034       *)
10035         # FIXME: insert proper C++ library support
10036         ld_shlibs_CXX=no
10037         ;;
10038     esac
10039     ;;
10040
10041   cygwin* | mingw* | pw32*)
10042     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10043     # as there is no search path for DLLs.
10044     hardcode_libdir_flag_spec_CXX='-L$libdir'
10045     allow_undefined_flag_CXX=unsupported
10046     always_export_symbols_CXX=no
10047     enable_shared_with_static_runtimes_CXX=yes
10048
10049     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10050       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10051       # If the export-symbols file already is a .def file (1st line
10052       # is EXPORTS), use it as is; otherwise, prepend...
10053       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10054         cp $export_symbols $output_objdir/$soname.def;
10055       else
10056         echo EXPORTS > $output_objdir/$soname.def;
10057         cat $export_symbols >> $output_objdir/$soname.def;
10058       fi~
10059       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10060     else
10061       ld_shlibs_CXX=no
10062     fi
10063   ;;
10064
10065   darwin* | rhapsody*)
10066   if test "$GXX" = yes; then
10067     archive_cmds_need_lc_CXX=no
10068     case "$host_os" in
10069     rhapsody* | darwin1.[012])
10070       allow_undefined_flag_CXX='-undefined suppress'
10071       ;;
10072     *) # Darwin 1.3 on
10073       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10074         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10075       else
10076         case ${MACOSX_DEPLOYMENT_TARGET} in
10077           10.[012])
10078             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10079             ;;
10080           10.*)
10081             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10082             ;;
10083         esac
10084       fi
10085       ;;
10086     esac
10087     lt_int_apple_cc_single_mod=no
10088     output_verbose_link_cmd='echo'
10089     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10090       lt_int_apple_cc_single_mod=yes
10091     fi
10092     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10093       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10094     else
10095       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10096     fi
10097     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10098
10099     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10100     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10101       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10102     else
10103       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10104     fi
10105     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10106     hardcode_direct_CXX=no
10107     hardcode_automatic_CXX=yes
10108     hardcode_shlibpath_var_CXX=unsupported
10109     whole_archive_flag_spec_CXX='-all_load $convenience'
10110     link_all_deplibs_CXX=yes
10111   else
10112     ld_shlibs_CXX=no
10113   fi
10114     ;;
10115
10116   dgux*)
10117     case $cc_basename in
10118       ec++)
10119         # FIXME: insert proper C++ library support
10120         ld_shlibs_CXX=no
10121         ;;
10122       ghcx)
10123         # Green Hills C++ Compiler
10124         # FIXME: insert proper C++ library support
10125         ld_shlibs_CXX=no
10126         ;;
10127       *)
10128         # FIXME: insert proper C++ library support
10129         ld_shlibs_CXX=no
10130         ;;
10131     esac
10132     ;;
10133   freebsd12*)
10134     # C++ shared libraries reported to be fairly broken before switch to ELF
10135     ld_shlibs_CXX=no
10136     ;;
10137   freebsd-elf*)
10138     archive_cmds_need_lc_CXX=no
10139     ;;
10140   freebsd* | kfreebsd*-gnu)
10141     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10142     # conventions
10143     ld_shlibs_CXX=yes
10144     ;;
10145   gnu*)
10146     ;;
10147   hpux9*)
10148     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10149     hardcode_libdir_separator_CXX=:
10150     export_dynamic_flag_spec_CXX='${wl}-E'
10151     hardcode_direct_CXX=yes
10152     hardcode_minus_L_CXX=yes # Not in the search PATH,
10153                                 # but as the default
10154                                 # location of the library.
10155
10156     case $cc_basename in
10157     CC)
10158       # FIXME: insert proper C++ library support
10159       ld_shlibs_CXX=no
10160       ;;
10161     aCC)
10162       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'
10163       # Commands to make compiler produce verbose output that lists
10164       # what "hidden" libraries, object files and flags are used when
10165       # linking a shared library.
10166       #
10167       # There doesn't appear to be a way to prevent this compiler from
10168       # explicitly linking system object files so we need to strip them
10169       # from the output so that they don't get included in the library
10170       # dependencies.
10171       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 $list'
10172       ;;
10173     *)
10174       if test "$GXX" = yes; then
10175         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'
10176       else
10177         # FIXME: insert proper C++ library support
10178         ld_shlibs_CXX=no
10179       fi
10180       ;;
10181     esac
10182     ;;
10183   hpux10*|hpux11*)
10184     if test $with_gnu_ld = no; then
10185       case "$host_cpu" in
10186       hppa*64*)
10187         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10188         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10189         hardcode_libdir_separator_CXX=:
10190         ;;
10191       ia64*)
10192         hardcode_libdir_flag_spec_CXX='-L$libdir'
10193         ;;
10194       *)
10195         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10196         hardcode_libdir_separator_CXX=:
10197         export_dynamic_flag_spec_CXX='${wl}-E'
10198         ;;
10199       esac
10200     fi
10201     case "$host_cpu" in
10202     hppa*64*)
10203       hardcode_direct_CXX=no
10204       hardcode_shlibpath_var_CXX=no
10205       ;;
10206     ia64*)
10207       hardcode_direct_CXX=no
10208       hardcode_shlibpath_var_CXX=no
10209       hardcode_minus_L_CXX=yes # Not in the search PATH,
10210                                               # but as the default
10211                                               # location of the library.
10212       ;;
10213     *)
10214       hardcode_direct_CXX=yes
10215       hardcode_minus_L_CXX=yes # Not in the search PATH,
10216                                               # but as the default
10217                                               # location of the library.
10218       ;;
10219     esac
10220
10221     case $cc_basename in
10222       CC)
10223         # FIXME: insert proper C++ library support
10224         ld_shlibs_CXX=no
10225         ;;
10226       aCC)
10227         case "$host_cpu" in
10228         hppa*64*|ia64*)
10229           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10230           ;;
10231         *)
10232           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10233           ;;
10234         esac
10235         # Commands to make compiler produce verbose output that lists
10236         # what "hidden" libraries, object files and flags are used when
10237         # linking a shared library.
10238         #
10239         # There doesn't appear to be a way to prevent this compiler from
10240         # explicitly linking system object files so we need to strip them
10241         # from the output so that they don't get included in the library
10242         # dependencies.
10243         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 $list'
10244         ;;
10245       *)
10246         if test "$GXX" = yes; then
10247           if test $with_gnu_ld = no; then
10248             case "$host_cpu" in
10249             ia64*|hppa*64*)
10250               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10251               ;;
10252             *)
10253               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'
10254               ;;
10255             esac
10256           fi
10257         else
10258           # FIXME: insert proper C++ library support
10259           ld_shlibs_CXX=no
10260         fi
10261         ;;
10262     esac
10263     ;;
10264   irix5* | irix6*)
10265     case $cc_basename in
10266       CC)
10267         # SGI C++
10268         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10269
10270         # Archives containing C++ object files must be created using
10271         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10272         # necessary to make sure instantiated templates are included
10273         # in the archive.
10274         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10275         ;;
10276       *)
10277         if test "$GXX" = yes; then
10278           if test "$with_gnu_ld" = no; then
10279             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10280           else
10281             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10282           fi
10283         fi
10284         link_all_deplibs_CXX=yes
10285         ;;
10286     esac
10287     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10288     hardcode_libdir_separator_CXX=:
10289     ;;
10290   linux*)
10291     case $cc_basename in
10292       KCC)
10293         # Kuck and Associates, Inc. (KAI) C++ Compiler
10294
10295         # KCC will only create a shared library if the output file
10296         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10297         # to its proper name (with version) after linking.
10298         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'
10299         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'
10300         # Commands to make compiler produce verbose output that lists
10301         # what "hidden" libraries, object files and flags are used when
10302         # linking a shared library.
10303         #
10304         # There doesn't appear to be a way to prevent this compiler from
10305         # explicitly linking system object files so we need to strip them
10306         # from the output so that they don't get included in the library
10307         # dependencies.
10308         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 $list'
10309
10310         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10311         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10312
10313         # Archives containing C++ object files must be created using
10314         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10315         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10316         ;;
10317       icpc)
10318         # Intel C++
10319         with_gnu_ld=yes
10320         archive_cmds_need_lc_CXX=no
10321         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10322         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'
10323         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10324         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10325         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10326         ;;
10327       cxx)
10328         # Compaq C++
10329         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10330         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'
10331
10332         runpath_var=LD_RUN_PATH
10333         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10334         hardcode_libdir_separator_CXX=:
10335
10336         # Commands to make compiler produce verbose output that lists
10337         # what "hidden" libraries, object files and flags are used when
10338         # linking a shared library.
10339         #
10340         # There doesn't appear to be a way to prevent this compiler from
10341         # explicitly linking system object files so we need to strip them
10342         # from the output so that they don't get included in the library
10343         # dependencies.
10344         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
10345         ;;
10346     esac
10347     ;;
10348   lynxos*)
10349     # FIXME: insert proper C++ library support
10350     ld_shlibs_CXX=no
10351     ;;
10352   m88k*)
10353     # FIXME: insert proper C++ library support
10354     ld_shlibs_CXX=no
10355     ;;
10356   mvs*)
10357     case $cc_basename in
10358       cxx)
10359         # FIXME: insert proper C++ library support
10360         ld_shlibs_CXX=no
10361         ;;
10362       *)
10363         # FIXME: insert proper C++ library support
10364         ld_shlibs_CXX=no
10365         ;;
10366     esac
10367     ;;
10368   netbsd* | knetbsd*-gnu)
10369     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10370       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10371       wlarc=
10372       hardcode_libdir_flag_spec_CXX='-R$libdir'
10373       hardcode_direct_CXX=yes
10374       hardcode_shlibpath_var_CXX=no
10375     fi
10376     # Workaround some broken pre-1.5 toolchains
10377     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10378     ;;
10379   osf3*)
10380     case $cc_basename in
10381       KCC)
10382         # Kuck and Associates, Inc. (KAI) C++ Compiler
10383
10384         # KCC will only create a shared library if the output file
10385         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10386         # to its proper name (with version) after linking.
10387         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'
10388
10389         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10390         hardcode_libdir_separator_CXX=:
10391
10392         # Archives containing C++ object files must be created using
10393         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10394         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10395
10396         ;;
10397       RCC)
10398         # Rational C++ 2.4.1
10399         # FIXME: insert proper C++ library support
10400         ld_shlibs_CXX=no
10401         ;;
10402       cxx)
10403         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10404         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10405
10406         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10407         hardcode_libdir_separator_CXX=:
10408
10409         # Commands to make compiler produce verbose output that lists
10410         # what "hidden" libraries, object files and flags are used when
10411         # linking a shared library.
10412         #
10413         # There doesn't appear to be a way to prevent this compiler from
10414         # explicitly linking system object files so we need to strip them
10415         # from the output so that they don't get included in the library
10416         # dependencies.
10417         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
10418         ;;
10419       *)
10420         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10421           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10422           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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10423
10424           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10425           hardcode_libdir_separator_CXX=:
10426
10427           # Commands to make compiler produce verbose output that lists
10428           # what "hidden" libraries, object files and flags are used when
10429           # linking a shared library.
10430           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10431
10432         else
10433           # FIXME: insert proper C++ library support
10434           ld_shlibs_CXX=no
10435         fi
10436         ;;
10437     esac
10438     ;;
10439   osf4* | osf5*)
10440     case $cc_basename in
10441       KCC)
10442         # Kuck and Associates, Inc. (KAI) C++ Compiler
10443
10444         # KCC will only create a shared library if the output file
10445         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10446         # to its proper name (with version) after linking.
10447         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'
10448
10449         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10450         hardcode_libdir_separator_CXX=:
10451
10452         # Archives containing C++ object files must be created using
10453         # the KAI C++ compiler.
10454         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10455         ;;
10456       RCC)
10457         # Rational C++ 2.4.1
10458         # FIXME: insert proper C++ library support
10459         ld_shlibs_CXX=no
10460         ;;
10461       cxx)
10462         allow_undefined_flag_CXX=' -expect_unresolved \*'
10463         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10464         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10465           echo "-hidden">> $lib.exp~
10466           $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 -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10467           $rm $lib.exp'
10468
10469         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10470         hardcode_libdir_separator_CXX=:
10471
10472         # Commands to make compiler produce verbose output that lists
10473         # what "hidden" libraries, object files and flags are used when
10474         # linking a shared library.
10475         #
10476         # There doesn't appear to be a way to prevent this compiler from
10477         # explicitly linking system object files so we need to strip them
10478         # from the output so that they don't get included in the library
10479         # dependencies.
10480         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
10481         ;;
10482       *)
10483         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10484           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10485          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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10486
10487           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10488           hardcode_libdir_separator_CXX=:
10489
10490           # Commands to make compiler produce verbose output that lists
10491           # what "hidden" libraries, object files and flags are used when
10492           # linking a shared library.
10493           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10494
10495         else
10496           # FIXME: insert proper C++ library support
10497           ld_shlibs_CXX=no
10498         fi
10499         ;;
10500     esac
10501     ;;
10502   psos*)
10503     # FIXME: insert proper C++ library support
10504     ld_shlibs_CXX=no
10505     ;;
10506   sco*)
10507     archive_cmds_need_lc_CXX=no
10508     case $cc_basename in
10509       CC)
10510         # FIXME: insert proper C++ library support
10511         ld_shlibs_CXX=no
10512         ;;
10513       *)
10514         # FIXME: insert proper C++ library support
10515         ld_shlibs_CXX=no
10516         ;;
10517     esac
10518     ;;
10519   sunos4*)
10520     case $cc_basename in
10521       CC)
10522         # Sun C++ 4.x
10523         # FIXME: insert proper C++ library support
10524         ld_shlibs_CXX=no
10525         ;;
10526       lcc)
10527         # Lucid
10528         # FIXME: insert proper C++ library support
10529         ld_shlibs_CXX=no
10530         ;;
10531       *)
10532         # FIXME: insert proper C++ library support
10533         ld_shlibs_CXX=no
10534         ;;
10535     esac
10536     ;;
10537   solaris*)
10538     case $cc_basename in
10539       CC)
10540         # Sun C++ 4.2, 5.x and Centerline C++
10541         no_undefined_flag_CXX=' -zdefs'
10542         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10543         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10544         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10545
10546         hardcode_libdir_flag_spec_CXX='-R$libdir'
10547         hardcode_shlibpath_var_CXX=no
10548         case $host_os in
10549           solaris2.0-5 | solaris2.0-5.*) ;;
10550           *)
10551             # The C++ compiler is used as linker so we must use $wl
10552             # flag to pass the commands to the underlying system
10553             # linker.
10554             # Supported since Solaris 2.6 (maybe 2.5.1?)
10555             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10556             ;;
10557         esac
10558         link_all_deplibs_CXX=yes
10559
10560         # Commands to make compiler produce verbose output that lists
10561         # what "hidden" libraries, object files and flags are used when
10562         # linking a shared library.
10563         #
10564         # There doesn't appear to be a way to prevent this compiler from
10565         # explicitly linking system object files so we need to strip them
10566         # from the output so that they don't get included in the library
10567         # dependencies.
10568         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10569
10570         # Archives containing C++ object files must be created using
10571         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10572         # necessary to make sure instantiated templates are included
10573         # in the archive.
10574         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10575         ;;
10576       gcx)
10577         # Green Hills C++ Compiler
10578         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10579
10580         # The C++ compiler must be used to create the archive.
10581         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10582         ;;
10583       *)
10584         # GNU C++ compiler with Solaris linker
10585         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10586           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10587           if $CC --version | grep -v '^2\.7' > /dev/null; then
10588             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10589             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10590                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10591
10592             # Commands to make compiler produce verbose output that lists
10593             # what "hidden" libraries, object files and flags are used when
10594             # linking a shared library.
10595             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10596           else
10597             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10598             # platform.
10599             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10600             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10601                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10602
10603             # Commands to make compiler produce verbose output that lists
10604             # what "hidden" libraries, object files and flags are used when
10605             # linking a shared library.
10606             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10607           fi
10608
10609           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10610         fi
10611         ;;
10612     esac
10613     ;;
10614   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10615     archive_cmds_need_lc_CXX=no
10616     ;;
10617   tandem*)
10618     case $cc_basename in
10619       NCC)
10620         # NonStop-UX NCC 3.20
10621         # FIXME: insert proper C++ library support
10622         ld_shlibs_CXX=no
10623         ;;
10624       *)
10625         # FIXME: insert proper C++ library support
10626         ld_shlibs_CXX=no
10627         ;;
10628     esac
10629     ;;
10630   vxworks*)
10631     # FIXME: insert proper C++ library support
10632     ld_shlibs_CXX=no
10633     ;;
10634   *)
10635     # FIXME: insert proper C++ library support
10636     ld_shlibs_CXX=no
10637     ;;
10638 esac
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
10640 $as_echo "$ld_shlibs_CXX" >&6; }
10641 test "$ld_shlibs_CXX" = no && can_build_shared=no
10642
10643 GCC_CXX="$GXX"
10644 LD_CXX="$LD"
10645
10646
10647 cat > conftest.$ac_ext <<EOF
10648 class Foo
10649 {
10650 public:
10651   Foo (void) { a = 0; }
10652 private:
10653   int a;
10654 };
10655 EOF
10656
10657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10658   (eval $ac_compile) 2>&5
10659   ac_status=$?
10660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10661   test $ac_status = 0; }; then
10662   # Parse the compiler output and extract the necessary
10663   # objects, libraries and library flags.
10664
10665   # Sentinel used to keep track of whether or not we are before
10666   # the conftest object file.
10667   pre_test_object_deps_done=no
10668
10669   # The `*' in the case matches for architectures that use `case' in
10670   # $output_verbose_cmd can trigger glob expansion during the loop
10671   # eval without this substitution.
10672   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10673
10674   for p in `eval $output_verbose_link_cmd`; do
10675     case $p in
10676
10677     -L* | -R* | -l*)
10678        # Some compilers place space between "-{L,R}" and the path.
10679        # Remove the space.
10680        if test $p = "-L" \
10681           || test $p = "-R"; then
10682          prev=$p
10683          continue
10684        else
10685          prev=
10686        fi
10687
10688        if test "$pre_test_object_deps_done" = no; then
10689          case $p in
10690          -L* | -R*)
10691            # Internal compiler library paths should come after those
10692            # provided the user.  The postdeps already come after the
10693            # user supplied libs so there is no need to process them.
10694            if test -z "$compiler_lib_search_path_CXX"; then
10695              compiler_lib_search_path_CXX="${prev}${p}"
10696            else
10697              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10698            fi
10699            ;;
10700          # The "-l" case would never come before the object being
10701          # linked, so don't bother handling this case.
10702          esac
10703        else
10704          if test -z "$postdeps_CXX"; then
10705            postdeps_CXX="${prev}${p}"
10706          else
10707            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10708          fi
10709        fi
10710        ;;
10711
10712     *.$objext)
10713        # This assumes that the test object file only shows up
10714        # once in the compiler output.
10715        if test "$p" = "conftest.$objext"; then
10716          pre_test_object_deps_done=yes
10717          continue
10718        fi
10719
10720        if test "$pre_test_object_deps_done" = no; then
10721          if test -z "$predep_objects_CXX"; then
10722            predep_objects_CXX="$p"
10723          else
10724            predep_objects_CXX="$predep_objects_CXX $p"
10725          fi
10726        else
10727          if test -z "$postdep_objects_CXX"; then
10728            postdep_objects_CXX="$p"
10729          else
10730            postdep_objects_CXX="$postdep_objects_CXX $p"
10731          fi
10732        fi
10733        ;;
10734
10735     *) ;; # Ignore the rest.
10736
10737     esac
10738   done
10739
10740   # Clean up.
10741   rm -f a.out a.exe
10742 else
10743   echo "libtool.m4: error: problem compiling CXX test program"
10744 fi
10745
10746 $rm -f confest.$objext
10747
10748 case " $postdeps_CXX " in
10749 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10750 esac
10751
10752 lt_prog_compiler_wl_CXX=
10753 lt_prog_compiler_pic_CXX=
10754 lt_prog_compiler_static_CXX=
10755
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10757 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10758
10759   # C++ specific cases for pic, static, wl, etc.
10760   if test "$GXX" = yes; then
10761     lt_prog_compiler_wl_CXX='-Wl,'
10762     lt_prog_compiler_static_CXX='-static'
10763
10764     case $host_os in
10765     aix*)
10766       # All AIX code is PIC.
10767       if test "$host_cpu" = ia64; then
10768         # AIX 5 now supports IA64 processor
10769         lt_prog_compiler_static_CXX='-Bstatic'
10770       fi
10771       ;;
10772     amigaos*)
10773       # FIXME: we need at least 68020 code to build shared libraries, but
10774       # adding the `-m68020' flag to GCC prevents building anything better,
10775       # like `-m68040'.
10776       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10777       ;;
10778     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10779       # PIC is the default for these OSes.
10780       ;;
10781     mingw* | os2* | pw32*)
10782       # This hack is so that the source file can tell whether it is being
10783       # built for inclusion in a dll (and should export symbols for example).
10784       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10785       ;;
10786     darwin* | rhapsody*)
10787       # PIC is the default on this platform
10788       # Common symbols not allowed in MH_DYLIB files
10789       lt_prog_compiler_pic_CXX='-fno-common'
10790       ;;
10791     *djgpp*)
10792       # DJGPP does not support shared libraries at all
10793       lt_prog_compiler_pic_CXX=
10794       ;;
10795     sysv4*MP*)
10796       if test -d /usr/nec; then
10797         lt_prog_compiler_pic_CXX=-Kconform_pic
10798       fi
10799       ;;
10800     hpux*)
10801       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10802       # not for PA HP-UX.
10803       case "$host_cpu" in
10804       hppa*64*|ia64*)
10805         ;;
10806       *)
10807         lt_prog_compiler_pic_CXX='-fPIC'
10808         ;;
10809       esac
10810       ;;
10811     *)
10812       lt_prog_compiler_pic_CXX='-fPIC'
10813       ;;
10814     esac
10815   else
10816     case $host_os in
10817       aix4* | aix5*)
10818         # All AIX code is PIC.
10819         if test "$host_cpu" = ia64; then
10820           # AIX 5 now supports IA64 processor
10821           lt_prog_compiler_static_CXX='-Bstatic'
10822         else
10823           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10824         fi
10825         ;;
10826       chorus*)
10827         case $cc_basename in
10828         cxch68)
10829           # Green Hills C++ Compiler
10830           # _LT_AC_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"
10831           ;;
10832         esac
10833         ;;
10834       dgux*)
10835         case $cc_basename in
10836           ec++)
10837             lt_prog_compiler_pic_CXX='-KPIC'
10838             ;;
10839           ghcx)
10840             # Green Hills C++ Compiler
10841             lt_prog_compiler_pic_CXX='-pic'
10842             ;;
10843           *)
10844             ;;
10845         esac
10846         ;;
10847       freebsd* | kfreebsd*-gnu)
10848         # FreeBSD uses GNU C++
10849         ;;
10850       hpux9* | hpux10* | hpux11*)
10851         case $cc_basename in
10852           CC)
10853             lt_prog_compiler_wl_CXX='-Wl,'
10854             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10855             if test "$host_cpu" != ia64; then
10856               lt_prog_compiler_pic_CXX='+Z'
10857             fi
10858             ;;
10859           aCC)
10860             lt_prog_compiler_wl_CXX='-Wl,'
10861             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10862             case "$host_cpu" in
10863             hppa*64*|ia64*)
10864               # +Z the default
10865               ;;
10866             *)
10867               lt_prog_compiler_pic_CXX='+Z'
10868               ;;
10869             esac
10870             ;;
10871           *)
10872             ;;
10873         esac
10874         ;;
10875       irix5* | irix6* | nonstopux*)
10876         case $cc_basename in
10877           CC)
10878             lt_prog_compiler_wl_CXX='-Wl,'
10879             lt_prog_compiler_static_CXX='-non_shared'
10880             # CC pic flag -KPIC is the default.
10881             ;;
10882           *)
10883             ;;
10884         esac
10885         ;;
10886       linux*)
10887         case $cc_basename in
10888           KCC)
10889             # KAI C++ Compiler
10890             lt_prog_compiler_wl_CXX='--backend -Wl,'
10891             lt_prog_compiler_pic_CXX='-fPIC'
10892             ;;
10893           icpc)
10894             # Intel C++
10895             lt_prog_compiler_wl_CXX='-Wl,'
10896             lt_prog_compiler_pic_CXX='-KPIC'
10897             lt_prog_compiler_static_CXX='-static'
10898             ;;
10899           cxx)
10900             # Compaq C++
10901             # Make sure the PIC flag is empty.  It appears that all Alpha
10902             # Linux and Compaq Tru64 Unix objects are PIC.
10903             lt_prog_compiler_pic_CXX=
10904             lt_prog_compiler_static_CXX='-non_shared'
10905             ;;
10906           *)
10907             ;;
10908         esac
10909         ;;
10910       lynxos*)
10911         ;;
10912       m88k*)
10913         ;;
10914       mvs*)
10915         case $cc_basename in
10916           cxx)
10917             lt_prog_compiler_pic_CXX='-W c,exportall'
10918             ;;
10919           *)
10920             ;;
10921         esac
10922         ;;
10923       netbsd* | knetbsd*-gnu)
10924         ;;
10925       osf3* | osf4* | osf5*)
10926         case $cc_basename in
10927           KCC)
10928             lt_prog_compiler_wl_CXX='--backend -Wl,'
10929             ;;
10930           RCC)
10931             # Rational C++ 2.4.1
10932             lt_prog_compiler_pic_CXX='-pic'
10933             ;;
10934           cxx)
10935             # Digital/Compaq C++
10936             lt_prog_compiler_wl_CXX='-Wl,'
10937             # Make sure the PIC flag is empty.  It appears that all Alpha
10938             # Linux and Compaq Tru64 Unix objects are PIC.
10939             lt_prog_compiler_pic_CXX=
10940             lt_prog_compiler_static_CXX='-non_shared'
10941             ;;
10942           *)
10943             ;;
10944         esac
10945         ;;
10946       psos*)
10947         ;;
10948       sco*)
10949         case $cc_basename in
10950           CC)
10951             lt_prog_compiler_pic_CXX='-fPIC'
10952             ;;
10953           *)
10954             ;;
10955         esac
10956         ;;
10957       solaris*)
10958         case $cc_basename in
10959           CC)
10960             # Sun C++ 4.2, 5.x and Centerline C++
10961             lt_prog_compiler_pic_CXX='-KPIC'
10962             lt_prog_compiler_static_CXX='-Bstatic'
10963             lt_prog_compiler_wl_CXX='-Qoption ld '
10964             ;;
10965           gcx)
10966             # Green Hills C++ Compiler
10967             lt_prog_compiler_pic_CXX='-PIC'
10968             ;;
10969           *)
10970             ;;
10971         esac
10972         ;;
10973       sunos4*)
10974         case $cc_basename in
10975           CC)
10976             # Sun C++ 4.x
10977             lt_prog_compiler_pic_CXX='-pic'
10978             lt_prog_compiler_static_CXX='-Bstatic'
10979             ;;
10980           lcc)
10981             # Lucid
10982             lt_prog_compiler_pic_CXX='-pic'
10983             ;;
10984           *)
10985             ;;
10986         esac
10987         ;;
10988       tandem*)
10989         case $cc_basename in
10990           NCC)
10991             # NonStop-UX NCC 3.20
10992             lt_prog_compiler_pic_CXX='-KPIC'
10993             ;;
10994           *)
10995             ;;
10996         esac
10997         ;;
10998       unixware*)
10999         ;;
11000       vxworks*)
11001         ;;
11002       *)
11003         lt_prog_compiler_can_build_shared_CXX=no
11004         ;;
11005     esac
11006   fi
11007
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11009 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11010
11011 #
11012 # Check to make sure the PIC flag actually works.
11013 #
11014 if test -n "$lt_prog_compiler_pic_CXX"; then
11015
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11017 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11018 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   lt_prog_compiler_pic_works_CXX=no
11022   ac_outfile=conftest.$ac_objext
11023    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11024    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11025    # Insert the option either (1) after the last *FLAGS variable, or
11026    # (2) before a word containing "conftest.", or (3) at the end.
11027    # Note that $ac_compile itself does not contain backslashes and begins
11028    # with a dollar sign (not a hyphen), so the echo should work correctly.
11029    # The option is referenced via a variable to avoid confusing sed.
11030    lt_compile=`echo "$ac_compile" | $SED \
11031    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11032    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11033    -e 's:$: $lt_compiler_flag:'`
11034    (eval echo "\"\$as_me:11034: $lt_compile\"" >&5)
11035    (eval "$lt_compile" 2>conftest.err)
11036    ac_status=$?
11037    cat conftest.err >&5
11038    echo "$as_me:11038: \$? = $ac_status" >&5
11039    if (exit $ac_status) && test -s "$ac_outfile"; then
11040      # The compiler can only warn and ignore the option if not recognized
11041      # So say no if there are warnings
11042      if test ! -s conftest.err; then
11043        lt_prog_compiler_pic_works_CXX=yes
11044      fi
11045    fi
11046    $rm conftest*
11047
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11050 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11051
11052 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11053     case $lt_prog_compiler_pic_CXX in
11054      "" | " "*) ;;
11055      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11056      esac
11057 else
11058     lt_prog_compiler_pic_CXX=
11059      lt_prog_compiler_can_build_shared_CXX=no
11060 fi
11061
11062 fi
11063 case "$host_os" in
11064   # For platforms which do not support PIC, -DPIC is meaningless:
11065   *djgpp*)
11066     lt_prog_compiler_pic_CXX=
11067     ;;
11068   *)
11069     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11070     ;;
11071 esac
11072
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11074 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11075 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078   lt_cv_prog_compiler_c_o_CXX=no
11079    $rm -r conftest 2>/dev/null
11080    mkdir conftest
11081    cd conftest
11082    mkdir out
11083    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11084
11085    lt_compiler_flag="-o out/conftest2.$ac_objext"
11086    # Insert the option either (1) after the last *FLAGS variable, or
11087    # (2) before a word containing "conftest.", or (3) at the end.
11088    # Note that $ac_compile itself does not contain backslashes and begins
11089    # with a dollar sign (not a hyphen), so the echo should work correctly.
11090    lt_compile=`echo "$ac_compile" | $SED \
11091    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11093    -e 's:$: $lt_compiler_flag:'`
11094    (eval echo "\"\$as_me:11094: $lt_compile\"" >&5)
11095    (eval "$lt_compile" 2>out/conftest.err)
11096    ac_status=$?
11097    cat out/conftest.err >&5
11098    echo "$as_me:11098: \$? = $ac_status" >&5
11099    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11100    then
11101      # The compiler can only warn and ignore the option if not recognized
11102      # So say no if there are warnings
11103      if test ! -s out/conftest.err; then
11104        lt_cv_prog_compiler_c_o_CXX=yes
11105      fi
11106    fi
11107    chmod u+w .
11108    $rm conftest*
11109    # SGI C++ compiler will create directory out/ii_files/ for
11110    # template instantiation
11111    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11112    $rm out/* && rmdir out
11113    cd ..
11114    rmdir conftest
11115    $rm conftest*
11116
11117 fi
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11119 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11120
11121
11122 hard_links="nottested"
11123 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11124   # do not overwrite the value of need_locks provided by the user
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11126 $as_echo_n "checking if we can lock with hard links... " >&6; }
11127   hard_links=yes
11128   $rm conftest*
11129   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11130   touch conftest.a
11131   ln conftest.a conftest.b 2>&5 || hard_links=no
11132   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11134 $as_echo "$hard_links" >&6; }
11135   if test "$hard_links" = no; then
11136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11137 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11138     need_locks=warn
11139   fi
11140 else
11141   need_locks=no
11142 fi
11143
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11145 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11146
11147   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11148   case $host_os in
11149   aix4* | aix5*)
11150     # If we're using GNU nm, then we don't want the "-C" option.
11151     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11152     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11153       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'
11154     else
11155       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'
11156     fi
11157     ;;
11158   pw32*)
11159     export_symbols_cmds_CXX="$ltdll_cmds"
11160   ;;
11161   cygwin* | mingw*)
11162     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11163   ;;
11164   *)
11165     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11166   ;;
11167   esac
11168
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11170 $as_echo "$ld_shlibs_CXX" >&6; }
11171 test "$ld_shlibs_CXX" = no && can_build_shared=no
11172
11173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11174 if test "$GCC" = yes; then
11175   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11176 fi
11177
11178 #
11179 # Do we need to explicitly link libc?
11180 #
11181 case "x$archive_cmds_need_lc_CXX" in
11182 x|xyes)
11183   # Assume -lc should be added
11184   archive_cmds_need_lc_CXX=yes
11185
11186   if test "$enable_shared" = yes && test "$GCC" = yes; then
11187     case $archive_cmds_CXX in
11188     *'~'*)
11189       # FIXME: we may have to deal with multi-command sequences.
11190       ;;
11191     '$CC '*)
11192       # Test whether the compiler implicitly links with -lc since on some
11193       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11194       # to ld, don't add -lc before -lgcc.
11195       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11196 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11197       $rm conftest*
11198       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11199
11200       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11201   (eval $ac_compile) 2>&5
11202   ac_status=$?
11203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204   test $ac_status = 0; } 2>conftest.err; then
11205         soname=conftest
11206         lib=conftest
11207         libobjs=conftest.$ac_objext
11208         deplibs=
11209         wl=$lt_prog_compiler_wl_CXX
11210         compiler_flags=-v
11211         linker_flags=-v
11212         verstring=
11213         output_objdir=.
11214         libname=conftest
11215         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11216         allow_undefined_flag_CXX=
11217         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11218   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11219   ac_status=$?
11220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221   test $ac_status = 0; }
11222         then
11223           archive_cmds_need_lc_CXX=no
11224         else
11225           archive_cmds_need_lc_CXX=yes
11226         fi
11227         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11228       else
11229         cat conftest.err 1>&5
11230       fi
11231       $rm conftest*
11232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
11233 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11234       ;;
11235     esac
11236   fi
11237   ;;
11238 esac
11239
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11241 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11242 library_names_spec=
11243 libname_spec='lib$name'
11244 soname_spec=
11245 shrext=".so"
11246 postinstall_cmds=
11247 postuninstall_cmds=
11248 finish_cmds=
11249 finish_eval=
11250 shlibpath_var=
11251 shlibpath_overrides_runpath=unknown
11252 version_type=none
11253 dynamic_linker="$host_os ld.so"
11254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11255 if test "$GCC" = yes; then
11256   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11257   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11258     # if the path contains ";" then we assume it to be the separator
11259     # otherwise default to the standard path separator (i.e. ":") - it is
11260     # assumed that no part of a normal pathname contains ";" but that should
11261     # okay in the real world where ";" in dirpaths is itself problematic.
11262     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11263   else
11264     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11265   fi
11266 else
11267   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11268 fi
11269 need_lib_prefix=unknown
11270 hardcode_into_libs=no
11271
11272 # when you set need_version to no, make sure it does not cause -set_version
11273 # flags to be left without arguments
11274 need_version=unknown
11275
11276 case $host_os in
11277 aix3*)
11278   version_type=linux
11279   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11280   shlibpath_var=LIBPATH
11281
11282   # AIX 3 has no versioning support, so we append a major version to the name.
11283   soname_spec='${libname}${release}${shared_ext}$major'
11284   ;;
11285
11286 aix4* | aix5*)
11287   version_type=linux
11288   need_lib_prefix=no
11289   need_version=no
11290   hardcode_into_libs=yes
11291   if test "$host_cpu" = ia64; then
11292     # AIX 5 supports IA64
11293     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11294     shlibpath_var=LD_LIBRARY_PATH
11295   else
11296     # With GCC up to 2.95.x, collect2 would create an import file
11297     # for dependence libraries.  The import file would start with
11298     # the line `#! .'.  This would cause the generated library to
11299     # depend on `.', always an invalid library.  This was fixed in
11300     # development snapshots of GCC prior to 3.0.
11301     case $host_os in
11302       aix4 | aix4.[01] | aix4.[01].*)
11303       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11304            echo ' yes '
11305            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11306         :
11307       else
11308         can_build_shared=no
11309       fi
11310       ;;
11311     esac
11312     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11313     # soname into executable. Probably we can add versioning support to
11314     # collect2, so additional links can be useful in future.
11315     if test "$aix_use_runtimelinking" = yes; then
11316       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11317       # instead of lib<name>.a to let people know that these are not
11318       # typical AIX shared libraries.
11319       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320     else
11321       # We preserve .a as extension for shared libraries through AIX4.2
11322       # and later when we are not doing run time linking.
11323       library_names_spec='${libname}${release}.a $libname.a'
11324       soname_spec='${libname}${release}${shared_ext}$major'
11325     fi
11326     shlibpath_var=LIBPATH
11327   fi
11328   ;;
11329
11330 amigaos*)
11331   library_names_spec='$libname.ixlibrary $libname.a'
11332   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11333   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'
11334   ;;
11335
11336 beos*)
11337   library_names_spec='${libname}${shared_ext}'
11338   dynamic_linker="$host_os ld.so"
11339   shlibpath_var=LIBRARY_PATH
11340   ;;
11341
11342 bsdi4*)
11343   version_type=linux
11344   need_version=no
11345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346   soname_spec='${libname}${release}${shared_ext}$major'
11347   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11350   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11351   # the default ld.so.conf also contains /usr/contrib/lib and
11352   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11353   # libtool to hard-code these into programs
11354   ;;
11355
11356 cygwin* | mingw* | pw32*)
11357   version_type=windows
11358   shrext=".dll"
11359   need_version=no
11360   need_lib_prefix=no
11361
11362   case $GCC,$host_os in
11363   yes,cygwin* | yes,mingw* | yes,pw32*)
11364     library_names_spec='$libname.dll.a'
11365     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366     postinstall_cmds='base_file=`basename \${file}`~
11367       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11368       dldir=$destdir/`dirname \$dlpath`~
11369       test -d \$dldir || mkdir -p \$dldir~
11370       $install_prog $dir/$dlname \$dldir/$dlname'
11371     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11372       dlpath=$dir/\$dldll~
11373        $rm \$dlpath'
11374     shlibpath_overrides_runpath=yes
11375
11376     case $host_os in
11377     cygwin*)
11378       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11379       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11380       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11381       ;;
11382     mingw*)
11383       # MinGW DLLs use traditional 'lib' prefix
11384       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11385       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11386       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11387         # It is most probably a Windows format PATH printed by
11388         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11389         # path with ; separators, and with drive letters. We can handle the
11390         # drive letters (cygwin fileutils understands them), so leave them,
11391         # especially as we might pass files found there to a mingw objdump,
11392         # which wouldn't understand a cygwinified path. Ahh.
11393         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11394       else
11395         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11396       fi
11397       ;;
11398     pw32*)
11399       # pw32 DLLs use 'pw' prefix rather than 'lib'
11400       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11401       ;;
11402     esac
11403     ;;
11404
11405   *)
11406     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11407     ;;
11408   esac
11409   dynamic_linker='Win32 ld.exe'
11410   # FIXME: first we should search . and the directory the executable is in
11411   shlibpath_var=PATH
11412   ;;
11413
11414 darwin* | rhapsody*)
11415   dynamic_linker="$host_os dyld"
11416   version_type=darwin
11417   need_lib_prefix=no
11418   need_version=no
11419   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11420   soname_spec='${libname}${release}${major}$shared_ext'
11421   shlibpath_overrides_runpath=yes
11422   shlibpath_var=DYLD_LIBRARY_PATH
11423   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11424   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11425   if test "$GCC" = yes; then
11426     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11427   else
11428     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11429   fi
11430   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11431   ;;
11432
11433 dgux*)
11434   version_type=linux
11435   need_lib_prefix=no
11436   need_version=no
11437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11438   soname_spec='${libname}${release}${shared_ext}$major'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   ;;
11441
11442 freebsd1*)
11443   dynamic_linker=no
11444   ;;
11445
11446 kfreebsd*-gnu)
11447   version_type=linux
11448   need_lib_prefix=no
11449   need_version=no
11450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11451   soname_spec='${libname}${release}${shared_ext}$major'
11452   shlibpath_var=LD_LIBRARY_PATH
11453   shlibpath_overrides_runpath=no
11454   hardcode_into_libs=yes
11455   dynamic_linker='GNU ld.so'
11456   ;;
11457
11458 freebsd*)
11459   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11460   version_type=freebsd-$objformat
11461   case $version_type in
11462     freebsd-elf*)
11463       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11464       need_version=no
11465       need_lib_prefix=no
11466       ;;
11467     freebsd-*)
11468       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11469       need_version=yes
11470       ;;
11471   esac
11472   shlibpath_var=LD_LIBRARY_PATH
11473   case $host_os in
11474   freebsd2*)
11475     shlibpath_overrides_runpath=yes
11476     ;;
11477   freebsd3.01* | freebsdelf3.01*)
11478     shlibpath_overrides_runpath=yes
11479     hardcode_into_libs=yes
11480     ;;
11481   *) # from 3.2 on
11482     shlibpath_overrides_runpath=no
11483     hardcode_into_libs=yes
11484     ;;
11485   esac
11486   ;;
11487
11488 gnu*)
11489   version_type=linux
11490   need_lib_prefix=no
11491   need_version=no
11492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11493   soname_spec='${libname}${release}${shared_ext}$major'
11494   shlibpath_var=LD_LIBRARY_PATH
11495   hardcode_into_libs=yes
11496   ;;
11497
11498 hpux9* | hpux10* | hpux11*)
11499   # Give a soname corresponding to the major version so that dld.sl refuses to
11500   # link against other versions.
11501   version_type=sunos
11502   need_lib_prefix=no
11503   need_version=no
11504   case "$host_cpu" in
11505   ia64*)
11506     shrext='.so'
11507     hardcode_into_libs=yes
11508     dynamic_linker="$host_os dld.so"
11509     shlibpath_var=LD_LIBRARY_PATH
11510     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512     soname_spec='${libname}${release}${shared_ext}$major'
11513     if test "X$HPUX_IA64_MODE" = X32; then
11514       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11515     else
11516       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11517     fi
11518     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11519     ;;
11520    hppa*64*)
11521      shrext='.sl'
11522      hardcode_into_libs=yes
11523      dynamic_linker="$host_os dld.sl"
11524      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11525      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11526      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527      soname_spec='${libname}${release}${shared_ext}$major'
11528      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11529      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11530      ;;
11531    *)
11532     shrext='.sl'
11533     dynamic_linker="$host_os dld.sl"
11534     shlibpath_var=SHLIB_PATH
11535     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537     soname_spec='${libname}${release}${shared_ext}$major'
11538     ;;
11539   esac
11540   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11541   postinstall_cmds='chmod 555 $lib'
11542   ;;
11543
11544 irix5* | irix6* | nonstopux*)
11545   case $host_os in
11546     nonstopux*) version_type=nonstopux ;;
11547     *)
11548         if test "$lt_cv_prog_gnu_ld" = yes; then
11549                 version_type=linux
11550         else
11551                 version_type=irix
11552         fi ;;
11553   esac
11554   need_lib_prefix=no
11555   need_version=no
11556   soname_spec='${libname}${release}${shared_ext}$major'
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11558   case $host_os in
11559   irix5* | nonstopux*)
11560     libsuff= shlibsuff=
11561     ;;
11562   *)
11563     case $LD in # libtool.m4 will add one of these switches to LD
11564     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11565       libsuff= shlibsuff= libmagic=32-bit;;
11566     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11567       libsuff=32 shlibsuff=N32 libmagic=N32;;
11568     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11569       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11570     *) libsuff= shlibsuff= libmagic=never-match;;
11571     esac
11572     ;;
11573   esac
11574   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11575   shlibpath_overrides_runpath=no
11576   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11577   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11578   hardcode_into_libs=yes
11579   ;;
11580
11581 # No shared lib support for Linux oldld, aout, or coff.
11582 linux*oldld* | linux*aout* | linux*coff*)
11583   dynamic_linker=no
11584   ;;
11585
11586 # This must be Linux ELF.
11587 linux*)
11588   version_type=linux
11589   need_lib_prefix=no
11590   need_version=no
11591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592   soname_spec='${libname}${release}${shared_ext}$major'
11593   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11594   shlibpath_var=LD_LIBRARY_PATH
11595   shlibpath_overrides_runpath=no
11596   # This implies no fast_install, which is unacceptable.
11597   # Some rework will be needed to allow for fast_install
11598   # before this can be enabled.
11599   hardcode_into_libs=yes
11600
11601   # Append ld.so.conf contents to the search path
11602   if test -f /etc/ld.so.conf; then
11603     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11604     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11605   fi
11606
11607   # We used to test for /lib/ld.so.1 and disable shared libraries on
11608   # powerpc, because MkLinux only supported shared libraries with the
11609   # GNU dynamic linker.  Since this was broken with cross compilers,
11610   # most powerpc-linux boxes support dynamic linking these days and
11611   # people can always --disable-shared, the test was removed, and we
11612   # assume the GNU/Linux dynamic linker is in use.
11613   dynamic_linker='GNU/Linux ld.so'
11614   ;;
11615
11616 knetbsd*-gnu)
11617   version_type=linux
11618   need_lib_prefix=no
11619   need_version=no
11620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11621   soname_spec='${libname}${release}${shared_ext}$major'
11622   shlibpath_var=LD_LIBRARY_PATH
11623   shlibpath_overrides_runpath=no
11624   hardcode_into_libs=yes
11625   dynamic_linker='GNU ld.so'
11626   ;;
11627
11628 netbsd*)
11629   version_type=sunos
11630   need_lib_prefix=no
11631   need_version=no
11632   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11634     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11635     dynamic_linker='NetBSD (a.out) ld.so'
11636   else
11637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11638     soname_spec='${libname}${release}${shared_ext}$major'
11639     dynamic_linker='NetBSD ld.elf_so'
11640   fi
11641   shlibpath_var=LD_LIBRARY_PATH
11642   shlibpath_overrides_runpath=yes
11643   hardcode_into_libs=yes
11644   ;;
11645
11646 newsos6)
11647   version_type=linux
11648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649   shlibpath_var=LD_LIBRARY_PATH
11650   shlibpath_overrides_runpath=yes
11651   ;;
11652
11653 nto-qnx*)
11654   version_type=linux
11655   need_lib_prefix=no
11656   need_version=no
11657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658   soname_spec='${libname}${release}${shared_ext}$major'
11659   shlibpath_var=LD_LIBRARY_PATH
11660   shlibpath_overrides_runpath=yes
11661   ;;
11662
11663 openbsd*)
11664   version_type=sunos
11665   need_lib_prefix=no
11666   need_version=yes
11667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11669   shlibpath_var=LD_LIBRARY_PATH
11670   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11671     case $host_os in
11672       openbsd2.[89] | openbsd2.[89].*)
11673         shlibpath_overrides_runpath=no
11674         ;;
11675       *)
11676         shlibpath_overrides_runpath=yes
11677         ;;
11678       esac
11679   else
11680     shlibpath_overrides_runpath=yes
11681   fi
11682   ;;
11683
11684 os2*)
11685   libname_spec='$name'
11686   shrext=".dll"
11687   need_lib_prefix=no
11688   library_names_spec='$libname${shared_ext} $libname.a'
11689   dynamic_linker='OS/2 ld.exe'
11690   shlibpath_var=LIBPATH
11691   ;;
11692
11693 osf3* | osf4* | osf5*)
11694   version_type=osf
11695   need_lib_prefix=no
11696   need_version=no
11697   soname_spec='${libname}${release}${shared_ext}$major'
11698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11699   shlibpath_var=LD_LIBRARY_PATH
11700   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11701   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11702   ;;
11703
11704 sco3.2v5*)
11705   version_type=osf
11706   soname_spec='${libname}${release}${shared_ext}$major'
11707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708   shlibpath_var=LD_LIBRARY_PATH
11709   ;;
11710
11711 solaris*)
11712   version_type=linux
11713   need_lib_prefix=no
11714   need_version=no
11715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716   soname_spec='${libname}${release}${shared_ext}$major'
11717   shlibpath_var=LD_LIBRARY_PATH
11718   shlibpath_overrides_runpath=yes
11719   hardcode_into_libs=yes
11720   # ldd complains unless libraries are executable
11721   postinstall_cmds='chmod +x $lib'
11722   ;;
11723
11724 sunos4*)
11725   version_type=sunos
11726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11728   shlibpath_var=LD_LIBRARY_PATH
11729   shlibpath_overrides_runpath=yes
11730   if test "$with_gnu_ld" = yes; then
11731     need_lib_prefix=no
11732   fi
11733   need_version=yes
11734   ;;
11735
11736 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11737   version_type=linux
11738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739   soname_spec='${libname}${release}${shared_ext}$major'
11740   shlibpath_var=LD_LIBRARY_PATH
11741   case $host_vendor in
11742     sni)
11743       shlibpath_overrides_runpath=no
11744       need_lib_prefix=no
11745       export_dynamic_flag_spec='${wl}-Blargedynsym'
11746       runpath_var=LD_RUN_PATH
11747       ;;
11748     siemens)
11749       need_lib_prefix=no
11750       ;;
11751     motorola)
11752       need_lib_prefix=no
11753       need_version=no
11754       shlibpath_overrides_runpath=no
11755       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11756       ;;
11757   esac
11758   ;;
11759
11760 sysv4*MP*)
11761   if test -d /usr/nec ;then
11762     version_type=linux
11763     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11764     soname_spec='$libname${shared_ext}.$major'
11765     shlibpath_var=LD_LIBRARY_PATH
11766   fi
11767   ;;
11768
11769 uts4*)
11770   version_type=linux
11771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772   soname_spec='${libname}${release}${shared_ext}$major'
11773   shlibpath_var=LD_LIBRARY_PATH
11774   ;;
11775
11776 *)
11777   dynamic_linker=no
11778   ;;
11779 esac
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11781 $as_echo "$dynamic_linker" >&6; }
11782 test "$dynamic_linker" = no && can_build_shared=no
11783
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11786 hardcode_action_CXX=
11787 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11788    test -n "$runpath_var CXX" || \
11789    test "X$hardcode_automatic_CXX"="Xyes" ; then
11790
11791   # We can hardcode non-existant directories.
11792   if test "$hardcode_direct_CXX" != no &&
11793      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11794      # have to relink, otherwise we might link with an installed library
11795      # when we should be linking with a yet-to-be-installed one
11796      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11797      test "$hardcode_minus_L_CXX" != no; then
11798     # Linking always hardcodes the temporary library directory.
11799     hardcode_action_CXX=relink
11800   else
11801     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11802     hardcode_action_CXX=immediate
11803   fi
11804 else
11805   # We cannot hardcode anything, or else we can only hardcode existing
11806   # directories.
11807   hardcode_action_CXX=unsupported
11808 fi
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
11810 $as_echo "$hardcode_action_CXX" >&6; }
11811
11812 if test "$hardcode_action_CXX" = relink; then
11813   # Fast installation is not supported
11814   enable_fast_install=no
11815 elif test "$shlibpath_overrides_runpath" = yes ||
11816      test "$enable_shared" = no; then
11817   # Fast installation is not necessary
11818   enable_fast_install=needless
11819 fi
11820
11821 striplib=
11822 old_striplib=
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11824 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11825 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11826   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11827   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11829 $as_echo "yes" >&6; }
11830 else
11831 # FIXME - insert some real tests, host_os isn't really good enough
11832   case $host_os in
11833    darwin*)
11834        if test -n "$STRIP" ; then
11835          striplib="$STRIP -x"
11836          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11838        else
11839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 fi
11842        ;;
11843    *)
11844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846     ;;
11847   esac
11848 fi
11849
11850 if test "x$enable_dlopen" != xyes; then
11851   enable_dlopen=unknown
11852   enable_dlopen_self=unknown
11853   enable_dlopen_self_static=unknown
11854 else
11855   lt_cv_dlopen=no
11856   lt_cv_dlopen_libs=
11857
11858   case $host_os in
11859   beos*)
11860     lt_cv_dlopen="load_add_on"
11861     lt_cv_dlopen_libs=
11862     lt_cv_dlopen_self=yes
11863     ;;
11864
11865   mingw* | pw32*)
11866     lt_cv_dlopen="LoadLibrary"
11867     lt_cv_dlopen_libs=
11868    ;;
11869
11870   cygwin*)
11871     lt_cv_dlopen="dlopen"
11872     lt_cv_dlopen_libs=
11873    ;;
11874
11875   darwin*)
11876   # if libdl is installed we need to link against it
11877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11878 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11879 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11880   $as_echo_n "(cached) " >&6
11881 else
11882   ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-ldl  $LIBS"
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h.  */
11886
11887 /* Override any GCC internal prototype to avoid an error.
11888    Use char because int might match the return type of a GCC
11889    builtin and then its argument prototype would still apply.  */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 char dlopen ();
11894 int
11895 main ()
11896 {
11897 return dlopen ();
11898   ;
11899   return 0;
11900 }
11901 _ACEOF
11902 if ac_fn_cxx_try_link "$LINENO"; then :
11903   ac_cv_lib_dl_dlopen=yes
11904 else
11905   ac_cv_lib_dl_dlopen=no
11906 fi
11907 rm -f core conftest.err conftest.$ac_objext \
11908     conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11912 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11913 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11914   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11915 else
11916
11917     lt_cv_dlopen="dyld"
11918     lt_cv_dlopen_libs=
11919     lt_cv_dlopen_self=yes
11920
11921 fi
11922
11923    ;;
11924
11925   *)
11926     ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11927 if test "x$ac_cv_func_shl_load" = x""yes; then :
11928   lt_cv_dlopen="shl_load"
11929 else
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11931 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11932 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11933   $as_echo_n "(cached) " >&6
11934 else
11935   ac_check_lib_save_LIBS=$LIBS
11936 LIBS="-ldld  $LIBS"
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h.  */
11939
11940 /* Override any GCC internal prototype to avoid an error.
11941    Use char because int might match the return type of a GCC
11942    builtin and then its argument prototype would still apply.  */
11943 #ifdef __cplusplus
11944 extern "C"
11945 #endif
11946 char shl_load ();
11947 int
11948 main ()
11949 {
11950 return shl_load ();
11951   ;
11952   return 0;
11953 }
11954 _ACEOF
11955 if ac_fn_cxx_try_link "$LINENO"; then :
11956   ac_cv_lib_dld_shl_load=yes
11957 else
11958   ac_cv_lib_dld_shl_load=no
11959 fi
11960 rm -f core conftest.err conftest.$ac_objext \
11961     conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_lib_save_LIBS
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11965 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11966 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11967   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11968 else
11969   ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11970 if test "x$ac_cv_func_dlopen" = x""yes; then :
11971   lt_cv_dlopen="dlopen"
11972 else
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11974 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11976   $as_echo_n "(cached) " >&6
11977 else
11978   ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-ldl  $LIBS"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h.  */
11982
11983 /* Override any GCC internal prototype to avoid an error.
11984    Use char because int might match the return type of a GCC
11985    builtin and then its argument prototype would still apply.  */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char dlopen ();
11990 int
11991 main ()
11992 {
11993 return dlopen ();
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_cxx_try_link "$LINENO"; then :
11999   ac_cv_lib_dl_dlopen=yes
12000 else
12001   ac_cv_lib_dl_dlopen=no
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext \
12004     conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12008 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12009 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12010   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12011 else
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12013 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12014 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   ac_check_lib_save_LIBS=$LIBS
12018 LIBS="-lsvld  $LIBS"
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h.  */
12021
12022 /* Override any GCC internal prototype to avoid an error.
12023    Use char because int might match the return type of a GCC
12024    builtin and then its argument prototype would still apply.  */
12025 #ifdef __cplusplus
12026 extern "C"
12027 #endif
12028 char dlopen ();
12029 int
12030 main ()
12031 {
12032 return dlopen ();
12033   ;
12034   return 0;
12035 }
12036 _ACEOF
12037 if ac_fn_cxx_try_link "$LINENO"; then :
12038   ac_cv_lib_svld_dlopen=yes
12039 else
12040   ac_cv_lib_svld_dlopen=no
12041 fi
12042 rm -f core conftest.err conftest.$ac_objext \
12043     conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12045 fi
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12047 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12048 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12049   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12050 else
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12052 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12053 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056   ac_check_lib_save_LIBS=$LIBS
12057 LIBS="-ldld  $LIBS"
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h.  */
12060
12061 /* Override any GCC internal prototype to avoid an error.
12062    Use char because int might match the return type of a GCC
12063    builtin and then its argument prototype would still apply.  */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 char dld_link ();
12068 int
12069 main ()
12070 {
12071 return dld_link ();
12072   ;
12073   return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_cxx_try_link "$LINENO"; then :
12077   ac_cv_lib_dld_dld_link=yes
12078 else
12079   ac_cv_lib_dld_dld_link=no
12080 fi
12081 rm -f core conftest.err conftest.$ac_objext \
12082     conftest$ac_exeext conftest.$ac_ext
12083 LIBS=$ac_check_lib_save_LIBS
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12086 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12087 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12088   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12089 fi
12090
12091
12092 fi
12093
12094
12095 fi
12096
12097
12098 fi
12099
12100
12101 fi
12102
12103
12104 fi
12105
12106     ;;
12107   esac
12108
12109   if test "x$lt_cv_dlopen" != xno; then
12110     enable_dlopen=yes
12111   else
12112     enable_dlopen=no
12113   fi
12114
12115   case $lt_cv_dlopen in
12116   dlopen)
12117     save_CPPFLAGS="$CPPFLAGS"
12118     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12119
12120     save_LDFLAGS="$LDFLAGS"
12121     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12122
12123     save_LIBS="$LIBS"
12124     LIBS="$lt_cv_dlopen_libs $LIBS"
12125
12126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12127 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12128 if test "${lt_cv_dlopen_self+set}" = set; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131           if test "$cross_compiling" = yes; then :
12132   lt_cv_dlopen_self=cross
12133 else
12134   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12135   lt_status=$lt_dlunknown
12136   cat > conftest.$ac_ext <<EOF
12137 #line 12137 "configure"
12138 #include "confdefs.h"
12139
12140 #if HAVE_DLFCN_H
12141 #include <dlfcn.h>
12142 #endif
12143
12144 #include <stdio.h>
12145
12146 #ifdef RTLD_GLOBAL
12147 #  define LT_DLGLOBAL           RTLD_GLOBAL
12148 #else
12149 #  ifdef DL_GLOBAL
12150 #    define LT_DLGLOBAL         DL_GLOBAL
12151 #  else
12152 #    define LT_DLGLOBAL         0
12153 #  endif
12154 #endif
12155
12156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12157    find out it does not work in some platform. */
12158 #ifndef LT_DLLAZY_OR_NOW
12159 #  ifdef RTLD_LAZY
12160 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12161 #  else
12162 #    ifdef DL_LAZY
12163 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12164 #    else
12165 #      ifdef RTLD_NOW
12166 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12167 #      else
12168 #        ifdef DL_NOW
12169 #          define LT_DLLAZY_OR_NOW      DL_NOW
12170 #        else
12171 #          define LT_DLLAZY_OR_NOW      0
12172 #        endif
12173 #      endif
12174 #    endif
12175 #  endif
12176 #endif
12177
12178 #ifdef __cplusplus
12179 extern "C" void exit (int);
12180 #endif
12181
12182 void fnord() { int i=42;}
12183 int main ()
12184 {
12185   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12186   int status = $lt_dlunknown;
12187
12188   if (self)
12189     {
12190       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12191       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12192       /* dlclose (self); */
12193     }
12194
12195     exit (status);
12196 }
12197 EOF
12198   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12199   (eval $ac_link) 2>&5
12200   ac_status=$?
12201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12203     (./conftest; exit; ) 2>/dev/null
12204     lt_status=$?
12205     case x$lt_status in
12206       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12207       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12208       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12209     esac
12210   else :
12211     # compilation failed
12212     lt_cv_dlopen_self=no
12213   fi
12214 fi
12215 rm -fr conftest*
12216
12217
12218 fi
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12220 $as_echo "$lt_cv_dlopen_self" >&6; }
12221
12222     if test "x$lt_cv_dlopen_self" = xyes; then
12223       LDFLAGS="$LDFLAGS $link_static_flag"
12224       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12225 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12226 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12227   $as_echo_n "(cached) " >&6
12228 else
12229           if test "$cross_compiling" = yes; then :
12230   lt_cv_dlopen_self_static=cross
12231 else
12232   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233   lt_status=$lt_dlunknown
12234   cat > conftest.$ac_ext <<EOF
12235 #line 12235 "configure"
12236 #include "confdefs.h"
12237
12238 #if HAVE_DLFCN_H
12239 #include <dlfcn.h>
12240 #endif
12241
12242 #include <stdio.h>
12243
12244 #ifdef RTLD_GLOBAL
12245 #  define LT_DLGLOBAL           RTLD_GLOBAL
12246 #else
12247 #  ifdef DL_GLOBAL
12248 #    define LT_DLGLOBAL         DL_GLOBAL
12249 #  else
12250 #    define LT_DLGLOBAL         0
12251 #  endif
12252 #endif
12253
12254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255    find out it does not work in some platform. */
12256 #ifndef LT_DLLAZY_OR_NOW
12257 #  ifdef RTLD_LAZY
12258 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12259 #  else
12260 #    ifdef DL_LAZY
12261 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12262 #    else
12263 #      ifdef RTLD_NOW
12264 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12265 #      else
12266 #        ifdef DL_NOW
12267 #          define LT_DLLAZY_OR_NOW      DL_NOW
12268 #        else
12269 #          define LT_DLLAZY_OR_NOW      0
12270 #        endif
12271 #      endif
12272 #    endif
12273 #  endif
12274 #endif
12275
12276 #ifdef __cplusplus
12277 extern "C" void exit (int);
12278 #endif
12279
12280 void fnord() { int i=42;}
12281 int main ()
12282 {
12283   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12284   int status = $lt_dlunknown;
12285
12286   if (self)
12287     {
12288       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12289       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12290       /* dlclose (self); */
12291     }
12292
12293     exit (status);
12294 }
12295 EOF
12296   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12297   (eval $ac_link) 2>&5
12298   ac_status=$?
12299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12300   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12301     (./conftest; exit; ) 2>/dev/null
12302     lt_status=$?
12303     case x$lt_status in
12304       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12305       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12306       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12307     esac
12308   else :
12309     # compilation failed
12310     lt_cv_dlopen_self_static=no
12311   fi
12312 fi
12313 rm -fr conftest*
12314
12315
12316 fi
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12318 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12319     fi
12320
12321     CPPFLAGS="$save_CPPFLAGS"
12322     LDFLAGS="$save_LDFLAGS"
12323     LIBS="$save_LIBS"
12324     ;;
12325   esac
12326
12327   case $lt_cv_dlopen_self in
12328   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12329   *) enable_dlopen_self=unknown ;;
12330   esac
12331
12332   case $lt_cv_dlopen_self_static in
12333   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12334   *) enable_dlopen_self_static=unknown ;;
12335   esac
12336 fi
12337
12338
12339 # The else clause should only fire when bootstrapping the
12340 # libtool distribution, otherwise you forgot to ship ltmain.sh
12341 # with your package, and you will get complaints that there are
12342 # no rules to generate ltmain.sh.
12343 if test -f "$ltmain"; then
12344   # See if we are running on zsh, and set the options which allow our commands through
12345   # without removal of \ escapes.
12346   if test -n "${ZSH_VERSION+set}" ; then
12347     setopt NO_GLOB_SUBST
12348   fi
12349   # Now quote all the things that may contain metacharacters while being
12350   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12351   # variables and quote the copies for generation of the libtool script.
12352   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12353     SED SHELL STRIP \
12354     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12355     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12356     deplibs_check_method reload_flag reload_cmds need_locks \
12357     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12358     lt_cv_sys_global_symbol_to_c_name_address \
12359     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12360     old_postinstall_cmds old_postuninstall_cmds \
12361     compiler_CXX \
12362     CC_CXX \
12363     LD_CXX \
12364     lt_prog_compiler_wl_CXX \
12365     lt_prog_compiler_pic_CXX \
12366     lt_prog_compiler_static_CXX \
12367     lt_prog_compiler_no_builtin_flag_CXX \
12368     export_dynamic_flag_spec_CXX \
12369     thread_safe_flag_spec_CXX \
12370     whole_archive_flag_spec_CXX \
12371     enable_shared_with_static_runtimes_CXX \
12372     old_archive_cmds_CXX \
12373     old_archive_from_new_cmds_CXX \
12374     predep_objects_CXX \
12375     postdep_objects_CXX \
12376     predeps_CXX \
12377     postdeps_CXX \
12378     compiler_lib_search_path_CXX \
12379     archive_cmds_CXX \
12380     archive_expsym_cmds_CXX \
12381     postinstall_cmds_CXX \
12382     postuninstall_cmds_CXX \
12383     old_archive_from_expsyms_cmds_CXX \
12384     allow_undefined_flag_CXX \
12385     no_undefined_flag_CXX \
12386     export_symbols_cmds_CXX \
12387     hardcode_libdir_flag_spec_CXX \
12388     hardcode_libdir_flag_spec_ld_CXX \
12389     hardcode_libdir_separator_CXX \
12390     hardcode_automatic_CXX \
12391     module_cmds_CXX \
12392     module_expsym_cmds_CXX \
12393     lt_cv_prog_compiler_c_o_CXX \
12394     exclude_expsyms_CXX \
12395     include_expsyms_CXX; do
12396
12397     case $var in
12398     old_archive_cmds_CXX | \
12399     old_archive_from_new_cmds_CXX | \
12400     archive_cmds_CXX | \
12401     archive_expsym_cmds_CXX | \
12402     module_cmds_CXX | \
12403     module_expsym_cmds_CXX | \
12404     old_archive_from_expsyms_cmds_CXX | \
12405     export_symbols_cmds_CXX | \
12406     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12407     postinstall_cmds | postuninstall_cmds | \
12408     old_postinstall_cmds | old_postuninstall_cmds | \
12409     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12410       # Double-quote double-evaled strings.
12411       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12412       ;;
12413     *)
12414       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12415       ;;
12416     esac
12417   done
12418
12419   case $lt_echo in
12420   *'\$0 --fallback-echo"')
12421     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12422     ;;
12423   esac
12424
12425 cfgfile="$ofile"
12426
12427   cat <<__EOF__ >> "$cfgfile"
12428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12429
12430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12431
12432 # Shell to use when invoking shell scripts.
12433 SHELL=$lt_SHELL
12434
12435 # Whether or not to build shared libraries.
12436 build_libtool_libs=$enable_shared
12437
12438 # Whether or not to build static libraries.
12439 build_old_libs=$enable_static
12440
12441 # Whether or not to add -lc for building shared libraries.
12442 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12443
12444 # Whether or not to disallow shared libs when runtime libs are static
12445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12446
12447 # Whether or not to optimize for fast installation.
12448 fast_install=$enable_fast_install
12449
12450 # The host system.
12451 host_alias=$host_alias
12452 host=$host
12453
12454 # An echo program that does not interpret backslashes.
12455 echo=$lt_echo
12456
12457 # The archiver.
12458 AR=$lt_AR
12459 AR_FLAGS=$lt_AR_FLAGS
12460
12461 # A C compiler.
12462 LTCC=$lt_LTCC
12463
12464 # A language-specific compiler.
12465 CC=$lt_compiler_CXX
12466
12467 # Is the compiler the GNU C compiler?
12468 with_gcc=$GCC_CXX
12469
12470 # An ERE matcher.
12471 EGREP=$lt_EGREP
12472
12473 # The linker used to build libraries.
12474 LD=$lt_LD_CXX
12475
12476 # Whether we need hard or soft links.
12477 LN_S=$lt_LN_S
12478
12479 # A BSD-compatible nm program.
12480 NM=$lt_NM
12481
12482 # A symbol stripping program
12483 STRIP=$lt_STRIP
12484
12485 # Used to examine libraries when file_magic_cmd begins "file"
12486 MAGIC_CMD=$MAGIC_CMD
12487
12488 # Used on cygwin: DLL creation program.
12489 DLLTOOL="$DLLTOOL"
12490
12491 # Used on cygwin: object dumper.
12492 OBJDUMP="$OBJDUMP"
12493
12494 # Used on cygwin: assembler.
12495 AS="$AS"
12496
12497 # The name of the directory that contains temporary libtool files.
12498 objdir=$objdir
12499
12500 # How to create reloadable object files.
12501 reload_flag=$lt_reload_flag
12502 reload_cmds=$lt_reload_cmds
12503
12504 # How to pass a linker flag through the compiler.
12505 wl=$lt_lt_prog_compiler_wl_CXX
12506
12507 # Object file suffix (normally "o").
12508 objext="$ac_objext"
12509
12510 # Old archive suffix (normally "a").
12511 libext="$libext"
12512
12513 # Shared library suffix (normally ".so").
12514 shrext='$shrext'
12515
12516 # Executable file suffix (normally "").
12517 exeext="$exeext"
12518
12519 # Additional compiler flags for building library objects.
12520 pic_flag=$lt_lt_prog_compiler_pic_CXX
12521 pic_mode=$pic_mode
12522
12523 # What is the maximum length of a command?
12524 max_cmd_len=$lt_cv_sys_max_cmd_len
12525
12526 # Does compiler simultaneously support -c and -o options?
12527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12528
12529 # Must we lock files when doing compilation ?
12530 need_locks=$lt_need_locks
12531
12532 # Do we need the lib prefix for modules?
12533 need_lib_prefix=$need_lib_prefix
12534
12535 # Do we need a version for libraries?
12536 need_version=$need_version
12537
12538 # Whether dlopen is supported.
12539 dlopen_support=$enable_dlopen
12540
12541 # Whether dlopen of programs is supported.
12542 dlopen_self=$enable_dlopen_self
12543
12544 # Whether dlopen of statically linked programs is supported.
12545 dlopen_self_static=$enable_dlopen_self_static
12546
12547 # Compiler flag to prevent dynamic linking.
12548 link_static_flag=$lt_lt_prog_compiler_static_CXX
12549
12550 # Compiler flag to turn off builtin functions.
12551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12552
12553 # Compiler flag to allow reflexive dlopens.
12554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12555
12556 # Compiler flag to generate shared objects directly from archives.
12557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12558
12559 # Compiler flag to generate thread-safe objects.
12560 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12561
12562 # Library versioning type.
12563 version_type=$version_type
12564
12565 # Format of library name prefix.
12566 libname_spec=$lt_libname_spec
12567
12568 # List of archive names.  First name is the real one, the rest are links.
12569 # The last name is the one that the linker finds with -lNAME.
12570 library_names_spec=$lt_library_names_spec
12571
12572 # The coded name of the library, if different from the real name.
12573 soname_spec=$lt_soname_spec
12574
12575 # Commands used to build and install an old-style archive.
12576 RANLIB=$lt_RANLIB
12577 old_archive_cmds=$lt_old_archive_cmds_CXX
12578 old_postinstall_cmds=$lt_old_postinstall_cmds
12579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12580
12581 # Create an old-style archive from a shared archive.
12582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12583
12584 # Create a temporary old-style archive to link instead of a shared archive.
12585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12586
12587 # Commands used to build and install a shared archive.
12588 archive_cmds=$lt_archive_cmds_CXX
12589 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12590 postinstall_cmds=$lt_postinstall_cmds
12591 postuninstall_cmds=$lt_postuninstall_cmds
12592
12593 # Commands used to build a loadable module (assumed same as above if empty)
12594 module_cmds=$lt_module_cmds_CXX
12595 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12596
12597 # Commands to strip libraries.
12598 old_striplib=$lt_old_striplib
12599 striplib=$lt_striplib
12600
12601 # Dependencies to place before the objects being linked to create a
12602 # shared library.
12603 predep_objects=$lt_predep_objects_CXX
12604
12605 # Dependencies to place after the objects being linked to create a
12606 # shared library.
12607 postdep_objects=$lt_postdep_objects_CXX
12608
12609 # Dependencies to place before the objects being linked to create a
12610 # shared library.
12611 predeps=$lt_predeps_CXX
12612
12613 # Dependencies to place after the objects being linked to create a
12614 # shared library.
12615 postdeps=$lt_postdeps_CXX
12616
12617 # The library search path used internally by the compiler when linking
12618 # a shared library.
12619 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12620
12621 # Method to check whether dependent libraries are shared objects.
12622 deplibs_check_method=$lt_deplibs_check_method
12623
12624 # Command to use when deplibs_check_method == file_magic.
12625 file_magic_cmd=$lt_file_magic_cmd
12626
12627 # Flag that allows shared libraries with undefined symbols to be built.
12628 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12629
12630 # Flag that forces no undefined symbols.
12631 no_undefined_flag=$lt_no_undefined_flag_CXX
12632
12633 # Commands used to finish a libtool library installation in a directory.
12634 finish_cmds=$lt_finish_cmds
12635
12636 # Same as above, but a single script fragment to be evaled but not shown.
12637 finish_eval=$lt_finish_eval
12638
12639 # Take the output of nm and produce a listing of raw symbols and C names.
12640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12641
12642 # Transform the output of nm in a proper C declaration
12643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12644
12645 # Transform the output of nm in a C name address pair
12646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12647
12648 # This is the shared library runtime path variable.
12649 runpath_var=$runpath_var
12650
12651 # This is the shared library path variable.
12652 shlibpath_var=$shlibpath_var
12653
12654 # Is shlibpath searched before the hard-coded library search path?
12655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12656
12657 # How to hardcode a shared library path into an executable.
12658 hardcode_action=$hardcode_action_CXX
12659
12660 # Whether we should hardcode library paths into libraries.
12661 hardcode_into_libs=$hardcode_into_libs
12662
12663 # Flag to hardcode \$libdir into a binary during linking.
12664 # This must work even if \$libdir does not exist.
12665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12666
12667 # If ld is used when linking, flag to hardcode \$libdir into
12668 # a binary during linking. This must work even if \$libdir does
12669 # not exist.
12670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12671
12672 # Whether we need a single -rpath flag with a separated argument.
12673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12674
12675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12676 # resulting binary.
12677 hardcode_direct=$hardcode_direct_CXX
12678
12679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12680 # resulting binary.
12681 hardcode_minus_L=$hardcode_minus_L_CXX
12682
12683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12684 # the resulting binary.
12685 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12686
12687 # Set to yes if building a shared library automatically hardcodes DIR into the library
12688 # and all subsequent libraries and executables linked against it.
12689 hardcode_automatic=$hardcode_automatic_CXX
12690
12691 # Variables whose values should be saved in libtool wrapper scripts and
12692 # restored at relink time.
12693 variables_saved_for_relink="$variables_saved_for_relink"
12694
12695 # Whether libtool must link a program against all its dependency libraries.
12696 link_all_deplibs=$link_all_deplibs_CXX
12697
12698 # Compile-time system search path for libraries
12699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12700
12701 # Run-time system search path for libraries
12702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12703
12704 # Fix the shell variable \$srcfile for the compiler.
12705 fix_srcfile_path="$fix_srcfile_path_CXX"
12706
12707 # Set to yes if exported symbols are required.
12708 always_export_symbols=$always_export_symbols_CXX
12709
12710 # The commands to list exported symbols.
12711 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12712
12713 # The commands to extract the exported symbol list from a shared archive.
12714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12715
12716 # Symbols that should not be listed in the preloaded symbols.
12717 exclude_expsyms=$lt_exclude_expsyms_CXX
12718
12719 # Symbols that must always be exported.
12720 include_expsyms=$lt_include_expsyms_CXX
12721
12722 # ### END LIBTOOL TAG CONFIG: $tagname
12723
12724 __EOF__
12725
12726
12727 else
12728   # If there is no Makefile yet, we rely on a make rule to execute
12729   # `config.status --recheck' to rerun these tests and create the
12730   # libtool script then.
12731   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12732   if test -f "$ltmain_in"; then
12733     test -f Makefile && make "$ltmain"
12734   fi
12735 fi
12736
12737
12738 ac_ext=c
12739 ac_cpp='$CPP $CPPFLAGS'
12740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12743
12744 CC=$lt_save_CC
12745 LDCXX=$LD
12746 LD=$lt_save_LD
12747 GCC=$lt_save_GCC
12748 with_gnu_ldcxx=$with_gnu_ld
12749 with_gnu_ld=$lt_save_with_gnu_ld
12750 lt_cv_path_LDCXX=$lt_cv_path_LD
12751 lt_cv_path_LD=$lt_save_path_LD
12752 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12753 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12754
12755         else
12756           tagname=""
12757         fi
12758         ;;
12759
12760       F77)
12761         if test -n "$F77" && test "X$F77" != "Xno"; then
12762
12763 ac_ext=f
12764 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12765 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12766 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12767
12768
12769 archive_cmds_need_lc_F77=no
12770 allow_undefined_flag_F77=
12771 always_export_symbols_F77=no
12772 archive_expsym_cmds_F77=
12773 export_dynamic_flag_spec_F77=
12774 hardcode_direct_F77=no
12775 hardcode_libdir_flag_spec_F77=
12776 hardcode_libdir_flag_spec_ld_F77=
12777 hardcode_libdir_separator_F77=
12778 hardcode_minus_L_F77=no
12779 hardcode_automatic_F77=no
12780 module_cmds_F77=
12781 module_expsym_cmds_F77=
12782 link_all_deplibs_F77=unknown
12783 old_archive_cmds_F77=$old_archive_cmds
12784 no_undefined_flag_F77=
12785 whole_archive_flag_spec_F77=
12786 enable_shared_with_static_runtimes_F77=no
12787
12788 # Source file extension for f77 test sources.
12789 ac_ext=f
12790
12791 # Object file extension for compiled f77 test sources.
12792 objext=o
12793 objext_F77=$objext
12794
12795 # Code to be used in simple compile tests
12796 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12797
12798 # Code to be used in simple link tests
12799 lt_simple_link_test_code="      program t\n      end\n"
12800
12801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12802
12803 # If no C compiler was specified, use CC.
12804 LTCC=${LTCC-"$CC"}
12805
12806 # Allow CC to be a program name with arguments.
12807 compiler=$CC
12808
12809
12810 # Allow CC to be a program name with arguments.
12811 lt_save_CC="$CC"
12812 CC=${F77-"f77"}
12813 compiler=$CC
12814 compiler_F77=$CC
12815 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12816
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12818 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12820 $as_echo "$can_build_shared" >&6; }
12821
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12823 $as_echo_n "checking whether to build shared libraries... " >&6; }
12824 test "$can_build_shared" = "no" && enable_shared=no
12825
12826 # On AIX, shared libraries and static libraries use the same namespace, and
12827 # are all built from PIC.
12828 case "$host_os" in
12829 aix3*)
12830   test "$enable_shared" = yes && enable_static=no
12831   if test -n "$RANLIB"; then
12832     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12833     postinstall_cmds='$RANLIB $lib'
12834   fi
12835   ;;
12836 aix4*)
12837   test "$enable_shared" = yes && enable_static=no
12838   ;;
12839 esac
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12841 $as_echo "$enable_shared" >&6; }
12842
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12844 $as_echo_n "checking whether to build static libraries... " >&6; }
12845 # Make sure either enable_shared or enable_static is yes.
12846 test "$enable_shared" = yes || enable_static=yes
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12848 $as_echo "$enable_static" >&6; }
12849
12850 test "$ld_shlibs_F77" = no && can_build_shared=no
12851
12852 GCC_F77="$G77"
12853 LD_F77="$LD"
12854
12855 lt_prog_compiler_wl_F77=
12856 lt_prog_compiler_pic_F77=
12857 lt_prog_compiler_static_F77=
12858
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12860 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12861
12862   if test "$GCC" = yes; then
12863     lt_prog_compiler_wl_F77='-Wl,'
12864     lt_prog_compiler_static_F77='-static'
12865
12866     case $host_os in
12867       aix*)
12868       # All AIX code is PIC.
12869       if test "$host_cpu" = ia64; then
12870         # AIX 5 now supports IA64 processor
12871         lt_prog_compiler_static_F77='-Bstatic'
12872       fi
12873       ;;
12874
12875     amigaos*)
12876       # FIXME: we need at least 68020 code to build shared libraries, but
12877       # adding the `-m68020' flag to GCC prevents building anything better,
12878       # like `-m68040'.
12879       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12880       ;;
12881
12882     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12883       # PIC is the default for these OSes.
12884       ;;
12885
12886     mingw* | pw32* | os2*)
12887       # This hack is so that the source file can tell whether it is being
12888       # built for inclusion in a dll (and should export symbols for example).
12889       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12890       ;;
12891
12892     darwin* | rhapsody*)
12893       # PIC is the default on this platform
12894       # Common symbols not allowed in MH_DYLIB files
12895       lt_prog_compiler_pic_F77='-fno-common'
12896       ;;
12897
12898     msdosdjgpp*)
12899       # Just because we use GCC doesn't mean we suddenly get shared libraries
12900       # on systems that don't support them.
12901       lt_prog_compiler_can_build_shared_F77=no
12902       enable_shared=no
12903       ;;
12904
12905     sysv4*MP*)
12906       if test -d /usr/nec; then
12907         lt_prog_compiler_pic_F77=-Kconform_pic
12908       fi
12909       ;;
12910
12911     hpux*)
12912       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12913       # not for PA HP-UX.
12914       case "$host_cpu" in
12915       hppa*64*|ia64*)
12916         # +Z the default
12917         ;;
12918       *)
12919         lt_prog_compiler_pic_F77='-fPIC'
12920         ;;
12921       esac
12922       ;;
12923
12924     *)
12925       lt_prog_compiler_pic_F77='-fPIC'
12926       ;;
12927     esac
12928   else
12929     # PORTME Check for flag to pass linker flags through the system compiler.
12930     case $host_os in
12931     aix*)
12932       lt_prog_compiler_wl_F77='-Wl,'
12933       if test "$host_cpu" = ia64; then
12934         # AIX 5 now supports IA64 processor
12935         lt_prog_compiler_static_F77='-Bstatic'
12936       else
12937         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12938       fi
12939       ;;
12940
12941     mingw* | pw32* | os2*)
12942       # This hack is so that the source file can tell whether it is being
12943       # built for inclusion in a dll (and should export symbols for example).
12944       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12945       ;;
12946
12947     hpux9* | hpux10* | hpux11*)
12948       lt_prog_compiler_wl_F77='-Wl,'
12949       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12950       # not for PA HP-UX.
12951       case "$host_cpu" in
12952       hppa*64*|ia64*)
12953         # +Z the default
12954         ;;
12955       *)
12956         lt_prog_compiler_pic_F77='+Z'
12957         ;;
12958       esac
12959       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12960       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12961       ;;
12962
12963     irix5* | irix6* | nonstopux*)
12964       lt_prog_compiler_wl_F77='-Wl,'
12965       # PIC (with -KPIC) is the default.
12966       lt_prog_compiler_static_F77='-non_shared'
12967       ;;
12968
12969     newsos6)
12970       lt_prog_compiler_pic_F77='-KPIC'
12971       lt_prog_compiler_static_F77='-Bstatic'
12972       ;;
12973
12974     linux*)
12975       case $CC in
12976       icc* | ecc*)
12977         lt_prog_compiler_wl_F77='-Wl,'
12978         lt_prog_compiler_pic_F77='-KPIC'
12979         lt_prog_compiler_static_F77='-static'
12980         ;;
12981       ccc*)
12982         lt_prog_compiler_wl_F77='-Wl,'
12983         # All Alpha code is PIC.
12984         lt_prog_compiler_static_F77='-non_shared'
12985         ;;
12986       esac
12987       ;;
12988
12989     osf3* | osf4* | osf5*)
12990       lt_prog_compiler_wl_F77='-Wl,'
12991       # All OSF/1 code is PIC.
12992       lt_prog_compiler_static_F77='-non_shared'
12993       ;;
12994
12995     sco3.2v5*)
12996       lt_prog_compiler_pic_F77='-Kpic'
12997       lt_prog_compiler_static_F77='-dn'
12998       ;;
12999
13000     solaris*)
13001       lt_prog_compiler_wl_F77='-Wl,'
13002       lt_prog_compiler_pic_F77='-KPIC'
13003       lt_prog_compiler_static_F77='-Bstatic'
13004       ;;
13005
13006     sunos4*)
13007       lt_prog_compiler_wl_F77='-Qoption ld '
13008       lt_prog_compiler_pic_F77='-PIC'
13009       lt_prog_compiler_static_F77='-Bstatic'
13010       ;;
13011
13012     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13013       lt_prog_compiler_wl_F77='-Wl,'
13014       lt_prog_compiler_pic_F77='-KPIC'
13015       lt_prog_compiler_static_F77='-Bstatic'
13016       ;;
13017
13018     sysv4*MP*)
13019       if test -d /usr/nec ;then
13020         lt_prog_compiler_pic_F77='-Kconform_pic'
13021         lt_prog_compiler_static_F77='-Bstatic'
13022       fi
13023       ;;
13024
13025     uts4*)
13026       lt_prog_compiler_pic_F77='-pic'
13027       lt_prog_compiler_static_F77='-Bstatic'
13028       ;;
13029
13030     *)
13031       lt_prog_compiler_can_build_shared_F77=no
13032       ;;
13033     esac
13034   fi
13035
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13037 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13038
13039 #
13040 # Check to make sure the PIC flag actually works.
13041 #
13042 if test -n "$lt_prog_compiler_pic_F77"; then
13043
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13045 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13046 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then :
13047   $as_echo_n "(cached) " >&6
13048 else
13049   lt_prog_compiler_pic_works_F77=no
13050   ac_outfile=conftest.$ac_objext
13051    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13052    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13053    # Insert the option either (1) after the last *FLAGS variable, or
13054    # (2) before a word containing "conftest.", or (3) at the end.
13055    # Note that $ac_compile itself does not contain backslashes and begins
13056    # with a dollar sign (not a hyphen), so the echo should work correctly.
13057    # The option is referenced via a variable to avoid confusing sed.
13058    lt_compile=`echo "$ac_compile" | $SED \
13059    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13061    -e 's:$: $lt_compiler_flag:'`
13062    (eval echo "\"\$as_me:13062: $lt_compile\"" >&5)
13063    (eval "$lt_compile" 2>conftest.err)
13064    ac_status=$?
13065    cat conftest.err >&5
13066    echo "$as_me:13066: \$? = $ac_status" >&5
13067    if (exit $ac_status) && test -s "$ac_outfile"; then
13068      # The compiler can only warn and ignore the option if not recognized
13069      # So say no if there are warnings
13070      if test ! -s conftest.err; then
13071        lt_prog_compiler_pic_works_F77=yes
13072      fi
13073    fi
13074    $rm conftest*
13075
13076 fi
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13078 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13079
13080 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13081     case $lt_prog_compiler_pic_F77 in
13082      "" | " "*) ;;
13083      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13084      esac
13085 else
13086     lt_prog_compiler_pic_F77=
13087      lt_prog_compiler_can_build_shared_F77=no
13088 fi
13089
13090 fi
13091 case "$host_os" in
13092   # For platforms which do not support PIC, -DPIC is meaningless:
13093   *djgpp*)
13094     lt_prog_compiler_pic_F77=
13095     ;;
13096   *)
13097     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13098     ;;
13099 esac
13100
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13102 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13103 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13104   $as_echo_n "(cached) " >&6
13105 else
13106   lt_cv_prog_compiler_c_o_F77=no
13107    $rm -r conftest 2>/dev/null
13108    mkdir conftest
13109    cd conftest
13110    mkdir out
13111    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13112
13113    lt_compiler_flag="-o out/conftest2.$ac_objext"
13114    # Insert the option either (1) after the last *FLAGS variable, or
13115    # (2) before a word containing "conftest.", or (3) at the end.
13116    # Note that $ac_compile itself does not contain backslashes and begins
13117    # with a dollar sign (not a hyphen), so the echo should work correctly.
13118    lt_compile=`echo "$ac_compile" | $SED \
13119    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13121    -e 's:$: $lt_compiler_flag:'`
13122    (eval echo "\"\$as_me:13122: $lt_compile\"" >&5)
13123    (eval "$lt_compile" 2>out/conftest.err)
13124    ac_status=$?
13125    cat out/conftest.err >&5
13126    echo "$as_me:13126: \$? = $ac_status" >&5
13127    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13128    then
13129      # The compiler can only warn and ignore the option if not recognized
13130      # So say no if there are warnings
13131      if test ! -s out/conftest.err; then
13132        lt_cv_prog_compiler_c_o_F77=yes
13133      fi
13134    fi
13135    chmod u+w .
13136    $rm conftest*
13137    # SGI C++ compiler will create directory out/ii_files/ for
13138    # template instantiation
13139    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13140    $rm out/* && rmdir out
13141    cd ..
13142    rmdir conftest
13143    $rm conftest*
13144
13145 fi
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13147 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13148
13149
13150 hard_links="nottested"
13151 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13152   # do not overwrite the value of need_locks provided by the user
13153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13154 $as_echo_n "checking if we can lock with hard links... " >&6; }
13155   hard_links=yes
13156   $rm conftest*
13157   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13158   touch conftest.a
13159   ln conftest.a conftest.b 2>&5 || hard_links=no
13160   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13162 $as_echo "$hard_links" >&6; }
13163   if test "$hard_links" = no; then
13164     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13165 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13166     need_locks=warn
13167   fi
13168 else
13169   need_locks=no
13170 fi
13171
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13173 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13174
13175   runpath_var=
13176   allow_undefined_flag_F77=
13177   enable_shared_with_static_runtimes_F77=no
13178   archive_cmds_F77=
13179   archive_expsym_cmds_F77=
13180   old_archive_From_new_cmds_F77=
13181   old_archive_from_expsyms_cmds_F77=
13182   export_dynamic_flag_spec_F77=
13183   whole_archive_flag_spec_F77=
13184   thread_safe_flag_spec_F77=
13185   hardcode_libdir_flag_spec_F77=
13186   hardcode_libdir_flag_spec_ld_F77=
13187   hardcode_libdir_separator_F77=
13188   hardcode_direct_F77=no
13189   hardcode_minus_L_F77=no
13190   hardcode_shlibpath_var_F77=unsupported
13191   link_all_deplibs_F77=unknown
13192   hardcode_automatic_F77=no
13193   module_cmds_F77=
13194   module_expsym_cmds_F77=
13195   always_export_symbols_F77=no
13196   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13197   # include_expsyms should be a list of space-separated symbols to be *always*
13198   # included in the symbol list
13199   include_expsyms_F77=
13200   # exclude_expsyms can be an extended regexp of symbols to exclude
13201   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13202   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13203   # as well as any symbol that contains `d'.
13204   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13205   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13206   # platforms (ab)use it in PIC code, but their linkers get confused if
13207   # the symbol is explicitly referenced.  Since portable code cannot
13208   # rely on this symbol name, it's probably fine to never include it in
13209   # preloaded symbol tables.
13210   extract_expsyms_cmds=
13211
13212   case $host_os in
13213   cygwin* | mingw* | pw32*)
13214     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13215     # When not using gcc, we currently assume that we are using
13216     # Microsoft Visual C++.
13217     if test "$GCC" != yes; then
13218       with_gnu_ld=no
13219     fi
13220     ;;
13221   openbsd*)
13222     with_gnu_ld=no
13223     ;;
13224   esac
13225
13226   ld_shlibs_F77=yes
13227   if test "$with_gnu_ld" = yes; then
13228     # If archive_cmds runs LD, not CC, wlarc should be empty
13229     wlarc='${wl}'
13230
13231     # See if GNU ld supports shared libraries.
13232     case $host_os in
13233     aix3* | aix4* | aix5*)
13234       # On AIX/PPC, the GNU linker is very broken
13235       if test "$host_cpu" != ia64; then
13236         ld_shlibs_F77=no
13237         cat <<EOF 1>&2
13238
13239 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13240 *** to be unable to reliably create shared libraries on AIX.
13241 *** Therefore, libtool is disabling shared libraries support.  If you
13242 *** really care for shared libraries, you may want to modify your PATH
13243 *** so that a non-GNU linker is found, and then restart.
13244
13245 EOF
13246       fi
13247       ;;
13248
13249     amigaos*)
13250       archive_cmds_F77='$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)'
13251       hardcode_libdir_flag_spec_F77='-L$libdir'
13252       hardcode_minus_L_F77=yes
13253
13254       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13255       # that the semantics of dynamic libraries on AmigaOS, at least up
13256       # to version 4, is to share data among multiple programs linked
13257       # with the same dynamic library.  Since this doesn't match the
13258       # behavior of shared libraries on other platforms, we can't use
13259       # them.
13260       ld_shlibs_F77=no
13261       ;;
13262
13263     beos*)
13264       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13265         allow_undefined_flag_F77=unsupported
13266         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13267         # support --undefined.  This deserves some investigation.  FIXME
13268         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13269       else
13270         ld_shlibs_F77=no
13271       fi
13272       ;;
13273
13274     cygwin* | mingw* | pw32*)
13275       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13276       # as there is no search path for DLLs.
13277       hardcode_libdir_flag_spec_F77='-L$libdir'
13278       allow_undefined_flag_F77=unsupported
13279       always_export_symbols_F77=no
13280       enable_shared_with_static_runtimes_F77=yes
13281       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13282
13283       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13284         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13285         # If the export-symbols file already is a .def file (1st line
13286         # is EXPORTS), use it as is; otherwise, prepend...
13287         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13288           cp $export_symbols $output_objdir/$soname.def;
13289         else
13290           echo EXPORTS > $output_objdir/$soname.def;
13291           cat $export_symbols >> $output_objdir/$soname.def;
13292         fi~
13293         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13294       else
13295         ld_shlibs=no
13296       fi
13297       ;;
13298
13299     netbsd* | knetbsd*-gnu)
13300       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13301         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13302         wlarc=
13303       else
13304         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13305         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13306       fi
13307       ;;
13308
13309     solaris* | sysv5*)
13310       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13311         ld_shlibs_F77=no
13312         cat <<EOF 1>&2
13313
13314 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13315 *** create shared libraries on Solaris systems.  Therefore, libtool
13316 *** is disabling shared libraries support.  We urge you to upgrade GNU
13317 *** binutils to release 2.9.1 or newer.  Another option is to modify
13318 *** your PATH or compiler configuration so that the native linker is
13319 *** used, and then restart.
13320
13321 EOF
13322       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13323         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13324         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13325       else
13326         ld_shlibs_F77=no
13327       fi
13328       ;;
13329
13330     sunos4*)
13331       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13332       wlarc=
13333       hardcode_direct_F77=yes
13334       hardcode_shlibpath_var_F77=no
13335       ;;
13336
13337   linux*)
13338     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13339         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13340         archive_cmds_F77="$tmp_archive_cmds"
13341       supports_anon_versioning=no
13342       case `$LD -v 2>/dev/null` in
13343         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13344         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13345         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13346         *\ 2.11.*) ;; # other 2.11 versions
13347         *) supports_anon_versioning=yes ;;
13348       esac
13349       if test $supports_anon_versioning = yes; then
13350         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13351 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13352 $echo "local: *; };" >> $output_objdir/$libname.ver~
13353         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13354       else
13355         archive_expsym_cmds_F77="$tmp_archive_cmds"
13356       fi
13357     else
13358       ld_shlibs_F77=no
13359     fi
13360     ;;
13361
13362     *)
13363       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13364         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13366       else
13367         ld_shlibs_F77=no
13368       fi
13369       ;;
13370     esac
13371
13372     if test "$ld_shlibs_F77" = yes; then
13373       runpath_var=LD_RUN_PATH
13374       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13375       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13376       # ancient GNU ld didn't support --whole-archive et. al.
13377       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13378         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13379       else
13380         whole_archive_flag_spec_F77=
13381       fi
13382     fi
13383   else
13384     # PORTME fill in a description of your system's linker (not GNU ld)
13385     case $host_os in
13386     aix3*)
13387       allow_undefined_flag_F77=unsupported
13388       always_export_symbols_F77=yes
13389       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13390       # Note: this linker hardcodes the directories in LIBPATH if there
13391       # are no directories specified by -L.
13392       hardcode_minus_L_F77=yes
13393       if test "$GCC" = yes && test -z "$link_static_flag"; then
13394         # Neither direct hardcoding nor static linking is supported with a
13395         # broken collect2.
13396         hardcode_direct_F77=unsupported
13397       fi
13398       ;;
13399
13400     aix4* | aix5*)
13401       if test "$host_cpu" = ia64; then
13402         # On IA64, the linker does run time linking by default, so we don't
13403         # have to do anything special.
13404         aix_use_runtimelinking=no
13405         exp_sym_flag='-Bexport'
13406         no_entry_flag=""
13407       else
13408         # If we're using GNU nm, then we don't want the "-C" option.
13409         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13410         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13411           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13412         else
13413           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13414         fi
13415         aix_use_runtimelinking=no
13416
13417         # Test if we are trying to use run time linking or normal
13418         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13419         # need to do runtime linking.
13420         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13421           for ld_flag in $LDFLAGS; do
13422           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13423             aix_use_runtimelinking=yes
13424             break
13425           fi
13426           done
13427         esac
13428
13429         exp_sym_flag='-bexport'
13430         no_entry_flag='-bnoentry'
13431       fi
13432
13433       # When large executables or shared objects are built, AIX ld can
13434       # have problems creating the table of contents.  If linking a library
13435       # or program results in "error TOC overflow" add -mminimal-toc to
13436       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13437       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13438
13439       archive_cmds_F77=''
13440       hardcode_direct_F77=yes
13441       hardcode_libdir_separator_F77=':'
13442       link_all_deplibs_F77=yes
13443
13444       if test "$GCC" = yes; then
13445         case $host_os in aix4.012|aix4.012.*)
13446         # We only want to do this on AIX 4.2 and lower, the check
13447         # below for broken collect2 doesn't work under 4.3+
13448           collect2name=`${CC} -print-prog-name=collect2`
13449           if test -f "$collect2name" && \
13450            strings "$collect2name" | grep resolve_lib_name >/dev/null
13451           then
13452           # We have reworked collect2
13453           hardcode_direct_F77=yes
13454           else
13455           # We have old collect2
13456           hardcode_direct_F77=unsupported
13457           # It fails to find uninstalled libraries when the uninstalled
13458           # path is not listed in the libpath.  Setting hardcode_minus_L
13459           # to unsupported forces relinking
13460           hardcode_minus_L_F77=yes
13461           hardcode_libdir_flag_spec_F77='-L$libdir'
13462           hardcode_libdir_separator_F77=
13463           fi
13464         esac
13465         shared_flag='-shared'
13466       else
13467         # not using gcc
13468         if test "$host_cpu" = ia64; then
13469         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13470         # chokes on -Wl,-G. The following line is correct:
13471           shared_flag='-G'
13472         else
13473         if test "$aix_use_runtimelinking" = yes; then
13474             shared_flag='${wl}-G'
13475           else
13476             shared_flag='${wl}-bM:SRE'
13477         fi
13478         fi
13479       fi
13480
13481       # It seems that -bexpall does not export symbols beginning with
13482       # underscore (_), so it is better to generate a list of symbols to export.
13483       always_export_symbols_F77=yes
13484       if test "$aix_use_runtimelinking" = yes; then
13485         # Warning - without using the other runtime loading flags (-brtl),
13486         # -berok will link without error, but may produce a broken library.
13487         allow_undefined_flag_F77='-berok'
13488        # Determine the default libpath from the value encoded in an empty executable.
13489        cat > conftest.$ac_ext <<_ACEOF
13490       program main
13491
13492       end
13493 _ACEOF
13494 if ac_fn_f77_try_link "$LINENO"; then :
13495
13496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13497 }'`
13498 # Check for a 64-bit object if we didn't find anything.
13499 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13500 }'`; fi
13501 fi
13502 rm -f core conftest.err conftest.$ac_objext \
13503     conftest$ac_exeext conftest.$ac_ext
13504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13505
13506        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13507         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13508        else
13509         if test "$host_cpu" = ia64; then
13510           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13511           allow_undefined_flag_F77="-z nodefs"
13512           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13513         else
13514          # Determine the default libpath from the value encoded in an empty executable.
13515          cat > conftest.$ac_ext <<_ACEOF
13516       program main
13517
13518       end
13519 _ACEOF
13520 if ac_fn_f77_try_link "$LINENO"; then :
13521
13522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13523 }'`
13524 # Check for a 64-bit object if we didn't find anything.
13525 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13526 }'`; fi
13527 fi
13528 rm -f core conftest.err conftest.$ac_objext \
13529     conftest$ac_exeext conftest.$ac_ext
13530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13531
13532          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13533           # Warning - without using the other run time loading flags,
13534           # -berok will link without error, but may produce a broken library.
13535           no_undefined_flag_F77=' ${wl}-bernotok'
13536           allow_undefined_flag_F77=' ${wl}-berok'
13537           # -bexpall does not export symbols beginning with underscore (_)
13538           always_export_symbols_F77=yes
13539           # Exported symbols can be pulled into shared objects from archives
13540           whole_archive_flag_spec_F77=' '
13541           archive_cmds_need_lc_F77=yes
13542           # This is similar to how AIX traditionally builds it's shared libraries.
13543           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13544         fi
13545       fi
13546       ;;
13547
13548     amigaos*)
13549       archive_cmds_F77='$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)'
13550       hardcode_libdir_flag_spec_F77='-L$libdir'
13551       hardcode_minus_L_F77=yes
13552       # see comment about different semantics on the GNU ld section
13553       ld_shlibs_F77=no
13554       ;;
13555
13556     bsdi4*)
13557       export_dynamic_flag_spec_F77=-rdynamic
13558       ;;
13559
13560     cygwin* | mingw* | pw32*)
13561       # When not using gcc, we currently assume that we are using
13562       # Microsoft Visual C++.
13563       # hardcode_libdir_flag_spec is actually meaningless, as there is
13564       # no search path for DLLs.
13565       hardcode_libdir_flag_spec_F77=' '
13566       allow_undefined_flag_F77=unsupported
13567       # Tell ltmain to make .lib files, not .a files.
13568       libext=lib
13569       # Tell ltmain to make .dll files, not .so files.
13570       shrext=".dll"
13571       # FIXME: Setting linknames here is a bad hack.
13572       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13573       # The linker will automatically build a .lib file if we build a DLL.
13574       old_archive_From_new_cmds_F77='true'
13575       # FIXME: Should let the user specify the lib program.
13576       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13577       fix_srcfile_path='`cygpath -w "$srcfile"`'
13578       enable_shared_with_static_runtimes_F77=yes
13579       ;;
13580
13581     darwin* | rhapsody*)
13582     if test "$GXX" = yes ; then
13583       archive_cmds_need_lc_F77=no
13584       case "$host_os" in
13585       rhapsody* | darwin1.[012])
13586         allow_undefined_flag_F77='-undefined suppress'
13587         ;;
13588       *) # Darwin 1.3 on
13589       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13590         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13591       else
13592         case ${MACOSX_DEPLOYMENT_TARGET} in
13593           10.[012])
13594             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13595             ;;
13596           10.*)
13597             allow_undefined_flag_F77='-undefined dynamic_lookup'
13598             ;;
13599         esac
13600       fi
13601         ;;
13602       esac
13603         lt_int_apple_cc_single_mod=no
13604         output_verbose_link_cmd='echo'
13605         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13606           lt_int_apple_cc_single_mod=yes
13607         fi
13608         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13609           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13610         else
13611         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13612       fi
13613       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13614       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13615         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13616           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13617         else
13618           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13619         fi
13620           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13621       hardcode_direct_F77=no
13622       hardcode_automatic_F77=yes
13623       hardcode_shlibpath_var_F77=unsupported
13624       whole_archive_flag_spec_F77='-all_load $convenience'
13625       link_all_deplibs_F77=yes
13626     else
13627       ld_shlibs_F77=no
13628     fi
13629       ;;
13630
13631     dgux*)
13632       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13633       hardcode_libdir_flag_spec_F77='-L$libdir'
13634       hardcode_shlibpath_var_F77=no
13635       ;;
13636
13637     freebsd1*)
13638       ld_shlibs_F77=no
13639       ;;
13640
13641     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13642     # support.  Future versions do this automatically, but an explicit c++rt0.o
13643     # does not break anything, and helps significantly (at the cost of a little
13644     # extra space).
13645     freebsd2.2*)
13646       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13647       hardcode_libdir_flag_spec_F77='-R$libdir'
13648       hardcode_direct_F77=yes
13649       hardcode_shlibpath_var_F77=no
13650       ;;
13651
13652     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13653     freebsd2*)
13654       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13655       hardcode_direct_F77=yes
13656       hardcode_minus_L_F77=yes
13657       hardcode_shlibpath_var_F77=no
13658       ;;
13659
13660     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13661     freebsd* | kfreebsd*-gnu)
13662       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13663       hardcode_libdir_flag_spec_F77='-R$libdir'
13664       hardcode_direct_F77=yes
13665       hardcode_shlibpath_var_F77=no
13666       ;;
13667
13668     hpux9*)
13669       if test "$GCC" = yes; then
13670         archive_cmds_F77='$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'
13671       else
13672         archive_cmds_F77='$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'
13673       fi
13674       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13675       hardcode_libdir_separator_F77=:
13676       hardcode_direct_F77=yes
13677
13678       # hardcode_minus_L: Not really in the search PATH,
13679       # but as the default location of the library.
13680       hardcode_minus_L_F77=yes
13681       export_dynamic_flag_spec_F77='${wl}-E'
13682       ;;
13683
13684     hpux10* | hpux11*)
13685       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13686         case "$host_cpu" in
13687         hppa*64*|ia64*)
13688           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13689           ;;
13690         *)
13691           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13692           ;;
13693         esac
13694       else
13695         case "$host_cpu" in
13696         hppa*64*|ia64*)
13697           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13698           ;;
13699         *)
13700           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13701           ;;
13702         esac
13703       fi
13704       if test "$with_gnu_ld" = no; then
13705         case "$host_cpu" in
13706         hppa*64*)
13707           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13708           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13709           hardcode_libdir_separator_F77=:
13710           hardcode_direct_F77=no
13711           hardcode_shlibpath_var_F77=no
13712           ;;
13713         ia64*)
13714           hardcode_libdir_flag_spec_F77='-L$libdir'
13715           hardcode_direct_F77=no
13716           hardcode_shlibpath_var_F77=no
13717
13718           # hardcode_minus_L: Not really in the search PATH,
13719           # but as the default location of the library.
13720           hardcode_minus_L_F77=yes
13721           ;;
13722         *)
13723           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13724           hardcode_libdir_separator_F77=:
13725           hardcode_direct_F77=yes
13726           export_dynamic_flag_spec_F77='${wl}-E'
13727
13728           # hardcode_minus_L: Not really in the search PATH,
13729           # but as the default location of the library.
13730           hardcode_minus_L_F77=yes
13731           ;;
13732         esac
13733       fi
13734       ;;
13735
13736     irix5* | irix6* | nonstopux*)
13737       if test "$GCC" = yes; then
13738         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13739       else
13740         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13741         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13742       fi
13743       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13744       hardcode_libdir_separator_F77=:
13745       link_all_deplibs_F77=yes
13746       ;;
13747
13748     netbsd* | knetbsd*-gnu)
13749       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13750         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13751       else
13752         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13753       fi
13754       hardcode_libdir_flag_spec_F77='-R$libdir'
13755       hardcode_direct_F77=yes
13756       hardcode_shlibpath_var_F77=no
13757       ;;
13758
13759     newsos6)
13760       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13761       hardcode_direct_F77=yes
13762       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13763       hardcode_libdir_separator_F77=:
13764       hardcode_shlibpath_var_F77=no
13765       ;;
13766
13767     openbsd*)
13768       hardcode_direct_F77=yes
13769       hardcode_shlibpath_var_F77=no
13770       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13771         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13772         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13773         export_dynamic_flag_spec_F77='${wl}-E'
13774       else
13775        case $host_os in
13776          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13777            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13778            hardcode_libdir_flag_spec_F77='-R$libdir'
13779            ;;
13780          *)
13781            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13782            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13783            ;;
13784        esac
13785       fi
13786       ;;
13787
13788     os2*)
13789       hardcode_libdir_flag_spec_F77='-L$libdir'
13790       hardcode_minus_L_F77=yes
13791       allow_undefined_flag_F77=unsupported
13792       archive_cmds_F77='$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'
13793       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13794       ;;
13795
13796     osf3*)
13797       if test "$GCC" = yes; then
13798         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13799         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13800       else
13801         allow_undefined_flag_F77=' -expect_unresolved \*'
13802         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13803       fi
13804       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13805       hardcode_libdir_separator_F77=:
13806       ;;
13807
13808     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13809       if test "$GCC" = yes; then
13810         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13811         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13812         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13813       else
13814         allow_undefined_flag_F77=' -expect_unresolved \*'
13815         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13816         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13817         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13818
13819         # Both c and cxx compiler support -rpath directly
13820         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13821       fi
13822       hardcode_libdir_separator_F77=:
13823       ;;
13824
13825     sco3.2v5*)
13826       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827       hardcode_shlibpath_var_F77=no
13828       export_dynamic_flag_spec_F77='${wl}-Bexport'
13829       runpath_var=LD_RUN_PATH
13830       hardcode_runpath_var=yes
13831       ;;
13832
13833     solaris*)
13834       no_undefined_flag_F77=' -z text'
13835       if test "$GCC" = yes; then
13836         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13837         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13838           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13839       else
13840         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13841         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13842         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13843       fi
13844       hardcode_libdir_flag_spec_F77='-R$libdir'
13845       hardcode_shlibpath_var_F77=no
13846       case $host_os in
13847       solaris2.[0-5] | solaris2.[0-5].*) ;;
13848       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13849         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13850       esac
13851       link_all_deplibs_F77=yes
13852       ;;
13853
13854     sunos4*)
13855       if test "x$host_vendor" = xsequent; then
13856         # Use $CC to link under sequent, because it throws in some extra .o
13857         # files that make .init and .fini sections work.
13858         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13859       else
13860         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13861       fi
13862       hardcode_libdir_flag_spec_F77='-L$libdir'
13863       hardcode_direct_F77=yes
13864       hardcode_minus_L_F77=yes
13865       hardcode_shlibpath_var_F77=no
13866       ;;
13867
13868     sysv4)
13869       case $host_vendor in
13870         sni)
13871           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13872           hardcode_direct_F77=yes # is this really true???
13873         ;;
13874         siemens)
13875           ## LD is ld it makes a PLAMLIB
13876           ## CC just makes a GrossModule.
13877           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13878           reload_cmds_F77='$CC -r -o $output$reload_objs'
13879           hardcode_direct_F77=no
13880         ;;
13881         motorola)
13882           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13884         ;;
13885       esac
13886       runpath_var='LD_RUN_PATH'
13887       hardcode_shlibpath_var_F77=no
13888       ;;
13889
13890     sysv4.3*)
13891       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13892       hardcode_shlibpath_var_F77=no
13893       export_dynamic_flag_spec_F77='-Bexport'
13894       ;;
13895
13896     sysv4*MP*)
13897       if test -d /usr/nec; then
13898         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899         hardcode_shlibpath_var_F77=no
13900         runpath_var=LD_RUN_PATH
13901         hardcode_runpath_var=yes
13902         ld_shlibs_F77=yes
13903       fi
13904       ;;
13905
13906     sysv4.2uw2*)
13907       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13908       hardcode_direct_F77=yes
13909       hardcode_minus_L_F77=no
13910       hardcode_shlibpath_var_F77=no
13911       hardcode_runpath_var=yes
13912       runpath_var=LD_RUN_PATH
13913       ;;
13914
13915    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13916       no_undefined_flag_F77='${wl}-z ${wl}text'
13917       if test "$GCC" = yes; then
13918         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13919       else
13920         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13921       fi
13922       runpath_var='LD_RUN_PATH'
13923       hardcode_shlibpath_var_F77=no
13924       ;;
13925
13926     sysv5*)
13927       no_undefined_flag_F77=' -z text'
13928       # $CC -shared without GNU ld will not create a library from C++
13929       # object files and a static libstdc++, better avoid it by now
13930       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13931       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13932                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13933       hardcode_libdir_flag_spec_F77=
13934       hardcode_shlibpath_var_F77=no
13935       runpath_var='LD_RUN_PATH'
13936       ;;
13937
13938     uts4*)
13939       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13940       hardcode_libdir_flag_spec_F77='-L$libdir'
13941       hardcode_shlibpath_var_F77=no
13942       ;;
13943
13944     *)
13945       ld_shlibs_F77=no
13946       ;;
13947     esac
13948   fi
13949
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
13951 $as_echo "$ld_shlibs_F77" >&6; }
13952 test "$ld_shlibs_F77" = no && can_build_shared=no
13953
13954 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13955 if test "$GCC" = yes; then
13956   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13957 fi
13958
13959 #
13960 # Do we need to explicitly link libc?
13961 #
13962 case "x$archive_cmds_need_lc_F77" in
13963 x|xyes)
13964   # Assume -lc should be added
13965   archive_cmds_need_lc_F77=yes
13966
13967   if test "$enable_shared" = yes && test "$GCC" = yes; then
13968     case $archive_cmds_F77 in
13969     *'~'*)
13970       # FIXME: we may have to deal with multi-command sequences.
13971       ;;
13972     '$CC '*)
13973       # Test whether the compiler implicitly links with -lc since on some
13974       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13975       # to ld, don't add -lc before -lgcc.
13976       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13977 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13978       $rm conftest*
13979       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13980
13981       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13982   (eval $ac_compile) 2>&5
13983   ac_status=$?
13984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13985   test $ac_status = 0; } 2>conftest.err; then
13986         soname=conftest
13987         lib=conftest
13988         libobjs=conftest.$ac_objext
13989         deplibs=
13990         wl=$lt_prog_compiler_wl_F77
13991         compiler_flags=-v
13992         linker_flags=-v
13993         verstring=
13994         output_objdir=.
13995         libname=conftest
13996         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13997         allow_undefined_flag_F77=
13998         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13999   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14000   ac_status=$?
14001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002   test $ac_status = 0; }
14003         then
14004           archive_cmds_need_lc_F77=no
14005         else
14006           archive_cmds_need_lc_F77=yes
14007         fi
14008         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14009       else
14010         cat conftest.err 1>&5
14011       fi
14012       $rm conftest*
14013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14014 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14015       ;;
14016     esac
14017   fi
14018   ;;
14019 esac
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14022 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14023 library_names_spec=
14024 libname_spec='lib$name'
14025 soname_spec=
14026 shrext=".so"
14027 postinstall_cmds=
14028 postuninstall_cmds=
14029 finish_cmds=
14030 finish_eval=
14031 shlibpath_var=
14032 shlibpath_overrides_runpath=unknown
14033 version_type=none
14034 dynamic_linker="$host_os ld.so"
14035 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14036 if test "$GCC" = yes; then
14037   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14038   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14039     # if the path contains ";" then we assume it to be the separator
14040     # otherwise default to the standard path separator (i.e. ":") - it is
14041     # assumed that no part of a normal pathname contains ";" but that should
14042     # okay in the real world where ";" in dirpaths is itself problematic.
14043     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14044   else
14045     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14046   fi
14047 else
14048   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14049 fi
14050 need_lib_prefix=unknown
14051 hardcode_into_libs=no
14052
14053 # when you set need_version to no, make sure it does not cause -set_version
14054 # flags to be left without arguments
14055 need_version=unknown
14056
14057 case $host_os in
14058 aix3*)
14059   version_type=linux
14060   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14061   shlibpath_var=LIBPATH
14062
14063   # AIX 3 has no versioning support, so we append a major version to the name.
14064   soname_spec='${libname}${release}${shared_ext}$major'
14065   ;;
14066
14067 aix4* | aix5*)
14068   version_type=linux
14069   need_lib_prefix=no
14070   need_version=no
14071   hardcode_into_libs=yes
14072   if test "$host_cpu" = ia64; then
14073     # AIX 5 supports IA64
14074     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14075     shlibpath_var=LD_LIBRARY_PATH
14076   else
14077     # With GCC up to 2.95.x, collect2 would create an import file
14078     # for dependence libraries.  The import file would start with
14079     # the line `#! .'.  This would cause the generated library to
14080     # depend on `.', always an invalid library.  This was fixed in
14081     # development snapshots of GCC prior to 3.0.
14082     case $host_os in
14083       aix4 | aix4.[01] | aix4.[01].*)
14084       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14085            echo ' yes '
14086            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14087         :
14088       else
14089         can_build_shared=no
14090       fi
14091       ;;
14092     esac
14093     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14094     # soname into executable. Probably we can add versioning support to
14095     # collect2, so additional links can be useful in future.
14096     if test "$aix_use_runtimelinking" = yes; then
14097       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14098       # instead of lib<name>.a to let people know that these are not
14099       # typical AIX shared libraries.
14100       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14101     else
14102       # We preserve .a as extension for shared libraries through AIX4.2
14103       # and later when we are not doing run time linking.
14104       library_names_spec='${libname}${release}.a $libname.a'
14105       soname_spec='${libname}${release}${shared_ext}$major'
14106     fi
14107     shlibpath_var=LIBPATH
14108   fi
14109   ;;
14110
14111 amigaos*)
14112   library_names_spec='$libname.ixlibrary $libname.a'
14113   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14114   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'
14115   ;;
14116
14117 beos*)
14118   library_names_spec='${libname}${shared_ext}'
14119   dynamic_linker="$host_os ld.so"
14120   shlibpath_var=LIBRARY_PATH
14121   ;;
14122
14123 bsdi4*)
14124   version_type=linux
14125   need_version=no
14126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127   soname_spec='${libname}${release}${shared_ext}$major'
14128   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14129   shlibpath_var=LD_LIBRARY_PATH
14130   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14131   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14132   # the default ld.so.conf also contains /usr/contrib/lib and
14133   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14134   # libtool to hard-code these into programs
14135   ;;
14136
14137 cygwin* | mingw* | pw32*)
14138   version_type=windows
14139   shrext=".dll"
14140   need_version=no
14141   need_lib_prefix=no
14142
14143   case $GCC,$host_os in
14144   yes,cygwin* | yes,mingw* | yes,pw32*)
14145     library_names_spec='$libname.dll.a'
14146     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14147     postinstall_cmds='base_file=`basename \${file}`~
14148       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14149       dldir=$destdir/`dirname \$dlpath`~
14150       test -d \$dldir || mkdir -p \$dldir~
14151       $install_prog $dir/$dlname \$dldir/$dlname'
14152     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14153       dlpath=$dir/\$dldll~
14154        $rm \$dlpath'
14155     shlibpath_overrides_runpath=yes
14156
14157     case $host_os in
14158     cygwin*)
14159       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14160       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14161       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14162       ;;
14163     mingw*)
14164       # MinGW DLLs use traditional 'lib' prefix
14165       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14166       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14167       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14168         # It is most probably a Windows format PATH printed by
14169         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14170         # path with ; separators, and with drive letters. We can handle the
14171         # drive letters (cygwin fileutils understands them), so leave them,
14172         # especially as we might pass files found there to a mingw objdump,
14173         # which wouldn't understand a cygwinified path. Ahh.
14174         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14175       else
14176         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14177       fi
14178       ;;
14179     pw32*)
14180       # pw32 DLLs use 'pw' prefix rather than 'lib'
14181       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14182       ;;
14183     esac
14184     ;;
14185
14186   *)
14187     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14188     ;;
14189   esac
14190   dynamic_linker='Win32 ld.exe'
14191   # FIXME: first we should search . and the directory the executable is in
14192   shlibpath_var=PATH
14193   ;;
14194
14195 darwin* | rhapsody*)
14196   dynamic_linker="$host_os dyld"
14197   version_type=darwin
14198   need_lib_prefix=no
14199   need_version=no
14200   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14201   soname_spec='${libname}${release}${major}$shared_ext'
14202   shlibpath_overrides_runpath=yes
14203   shlibpath_var=DYLD_LIBRARY_PATH
14204   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14205   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14206   if test "$GCC" = yes; then
14207     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14208   else
14209     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14210   fi
14211   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14212   ;;
14213
14214 dgux*)
14215   version_type=linux
14216   need_lib_prefix=no
14217   need_version=no
14218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14219   soname_spec='${libname}${release}${shared_ext}$major'
14220   shlibpath_var=LD_LIBRARY_PATH
14221   ;;
14222
14223 freebsd1*)
14224   dynamic_linker=no
14225   ;;
14226
14227 kfreebsd*-gnu)
14228   version_type=linux
14229   need_lib_prefix=no
14230   need_version=no
14231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14232   soname_spec='${libname}${release}${shared_ext}$major'
14233   shlibpath_var=LD_LIBRARY_PATH
14234   shlibpath_overrides_runpath=no
14235   hardcode_into_libs=yes
14236   dynamic_linker='GNU ld.so'
14237   ;;
14238
14239 freebsd*)
14240   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14241   version_type=freebsd-$objformat
14242   case $version_type in
14243     freebsd-elf*)
14244       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14245       need_version=no
14246       need_lib_prefix=no
14247       ;;
14248     freebsd-*)
14249       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14250       need_version=yes
14251       ;;
14252   esac
14253   shlibpath_var=LD_LIBRARY_PATH
14254   case $host_os in
14255   freebsd2*)
14256     shlibpath_overrides_runpath=yes
14257     ;;
14258   freebsd3.01* | freebsdelf3.01*)
14259     shlibpath_overrides_runpath=yes
14260     hardcode_into_libs=yes
14261     ;;
14262   *) # from 3.2 on
14263     shlibpath_overrides_runpath=no
14264     hardcode_into_libs=yes
14265     ;;
14266   esac
14267   ;;
14268
14269 gnu*)
14270   version_type=linux
14271   need_lib_prefix=no
14272   need_version=no
14273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14274   soname_spec='${libname}${release}${shared_ext}$major'
14275   shlibpath_var=LD_LIBRARY_PATH
14276   hardcode_into_libs=yes
14277   ;;
14278
14279 hpux9* | hpux10* | hpux11*)
14280   # Give a soname corresponding to the major version so that dld.sl refuses to
14281   # link against other versions.
14282   version_type=sunos
14283   need_lib_prefix=no
14284   need_version=no
14285   case "$host_cpu" in
14286   ia64*)
14287     shrext='.so'
14288     hardcode_into_libs=yes
14289     dynamic_linker="$host_os dld.so"
14290     shlibpath_var=LD_LIBRARY_PATH
14291     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293     soname_spec='${libname}${release}${shared_ext}$major'
14294     if test "X$HPUX_IA64_MODE" = X32; then
14295       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14296     else
14297       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14298     fi
14299     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14300     ;;
14301    hppa*64*)
14302      shrext='.sl'
14303      hardcode_into_libs=yes
14304      dynamic_linker="$host_os dld.sl"
14305      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14306      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14307      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308      soname_spec='${libname}${release}${shared_ext}$major'
14309      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14310      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14311      ;;
14312    *)
14313     shrext='.sl'
14314     dynamic_linker="$host_os dld.sl"
14315     shlibpath_var=SHLIB_PATH
14316     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318     soname_spec='${libname}${release}${shared_ext}$major'
14319     ;;
14320   esac
14321   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14322   postinstall_cmds='chmod 555 $lib'
14323   ;;
14324
14325 irix5* | irix6* | nonstopux*)
14326   case $host_os in
14327     nonstopux*) version_type=nonstopux ;;
14328     *)
14329         if test "$lt_cv_prog_gnu_ld" = yes; then
14330                 version_type=linux
14331         else
14332                 version_type=irix
14333         fi ;;
14334   esac
14335   need_lib_prefix=no
14336   need_version=no
14337   soname_spec='${libname}${release}${shared_ext}$major'
14338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14339   case $host_os in
14340   irix5* | nonstopux*)
14341     libsuff= shlibsuff=
14342     ;;
14343   *)
14344     case $LD in # libtool.m4 will add one of these switches to LD
14345     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14346       libsuff= shlibsuff= libmagic=32-bit;;
14347     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14348       libsuff=32 shlibsuff=N32 libmagic=N32;;
14349     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14350       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14351     *) libsuff= shlibsuff= libmagic=never-match;;
14352     esac
14353     ;;
14354   esac
14355   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14356   shlibpath_overrides_runpath=no
14357   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14358   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14359   hardcode_into_libs=yes
14360   ;;
14361
14362 # No shared lib support for Linux oldld, aout, or coff.
14363 linux*oldld* | linux*aout* | linux*coff*)
14364   dynamic_linker=no
14365   ;;
14366
14367 # This must be Linux ELF.
14368 linux*)
14369   version_type=linux
14370   need_lib_prefix=no
14371   need_version=no
14372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373   soname_spec='${libname}${release}${shared_ext}$major'
14374   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14375   shlibpath_var=LD_LIBRARY_PATH
14376   shlibpath_overrides_runpath=no
14377   # This implies no fast_install, which is unacceptable.
14378   # Some rework will be needed to allow for fast_install
14379   # before this can be enabled.
14380   hardcode_into_libs=yes
14381
14382   # Append ld.so.conf contents to the search path
14383   if test -f /etc/ld.so.conf; then
14384     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14385     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14386   fi
14387
14388   # We used to test for /lib/ld.so.1 and disable shared libraries on
14389   # powerpc, because MkLinux only supported shared libraries with the
14390   # GNU dynamic linker.  Since this was broken with cross compilers,
14391   # most powerpc-linux boxes support dynamic linking these days and
14392   # people can always --disable-shared, the test was removed, and we
14393   # assume the GNU/Linux dynamic linker is in use.
14394   dynamic_linker='GNU/Linux ld.so'
14395   ;;
14396
14397 knetbsd*-gnu)
14398   version_type=linux
14399   need_lib_prefix=no
14400   need_version=no
14401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14402   soname_spec='${libname}${release}${shared_ext}$major'
14403   shlibpath_var=LD_LIBRARY_PATH
14404   shlibpath_overrides_runpath=no
14405   hardcode_into_libs=yes
14406   dynamic_linker='GNU ld.so'
14407   ;;
14408
14409 netbsd*)
14410   version_type=sunos
14411   need_lib_prefix=no
14412   need_version=no
14413   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14415     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14416     dynamic_linker='NetBSD (a.out) ld.so'
14417   else
14418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14419     soname_spec='${libname}${release}${shared_ext}$major'
14420     dynamic_linker='NetBSD ld.elf_so'
14421   fi
14422   shlibpath_var=LD_LIBRARY_PATH
14423   shlibpath_overrides_runpath=yes
14424   hardcode_into_libs=yes
14425   ;;
14426
14427 newsos6)
14428   version_type=linux
14429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430   shlibpath_var=LD_LIBRARY_PATH
14431   shlibpath_overrides_runpath=yes
14432   ;;
14433
14434 nto-qnx*)
14435   version_type=linux
14436   need_lib_prefix=no
14437   need_version=no
14438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439   soname_spec='${libname}${release}${shared_ext}$major'
14440   shlibpath_var=LD_LIBRARY_PATH
14441   shlibpath_overrides_runpath=yes
14442   ;;
14443
14444 openbsd*)
14445   version_type=sunos
14446   need_lib_prefix=no
14447   need_version=yes
14448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14449   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14450   shlibpath_var=LD_LIBRARY_PATH
14451   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14452     case $host_os in
14453       openbsd2.[89] | openbsd2.[89].*)
14454         shlibpath_overrides_runpath=no
14455         ;;
14456       *)
14457         shlibpath_overrides_runpath=yes
14458         ;;
14459       esac
14460   else
14461     shlibpath_overrides_runpath=yes
14462   fi
14463   ;;
14464
14465 os2*)
14466   libname_spec='$name'
14467   shrext=".dll"
14468   need_lib_prefix=no
14469   library_names_spec='$libname${shared_ext} $libname.a'
14470   dynamic_linker='OS/2 ld.exe'
14471   shlibpath_var=LIBPATH
14472   ;;
14473
14474 osf3* | osf4* | osf5*)
14475   version_type=osf
14476   need_lib_prefix=no
14477   need_version=no
14478   soname_spec='${libname}${release}${shared_ext}$major'
14479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480   shlibpath_var=LD_LIBRARY_PATH
14481   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14482   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14483   ;;
14484
14485 sco3.2v5*)
14486   version_type=osf
14487   soname_spec='${libname}${release}${shared_ext}$major'
14488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   ;;
14491
14492 solaris*)
14493   version_type=linux
14494   need_lib_prefix=no
14495   need_version=no
14496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497   soname_spec='${libname}${release}${shared_ext}$major'
14498   shlibpath_var=LD_LIBRARY_PATH
14499   shlibpath_overrides_runpath=yes
14500   hardcode_into_libs=yes
14501   # ldd complains unless libraries are executable
14502   postinstall_cmds='chmod +x $lib'
14503   ;;
14504
14505 sunos4*)
14506   version_type=sunos
14507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14508   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14509   shlibpath_var=LD_LIBRARY_PATH
14510   shlibpath_overrides_runpath=yes
14511   if test "$with_gnu_ld" = yes; then
14512     need_lib_prefix=no
14513   fi
14514   need_version=yes
14515   ;;
14516
14517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14518   version_type=linux
14519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520   soname_spec='${libname}${release}${shared_ext}$major'
14521   shlibpath_var=LD_LIBRARY_PATH
14522   case $host_vendor in
14523     sni)
14524       shlibpath_overrides_runpath=no
14525       need_lib_prefix=no
14526       export_dynamic_flag_spec='${wl}-Blargedynsym'
14527       runpath_var=LD_RUN_PATH
14528       ;;
14529     siemens)
14530       need_lib_prefix=no
14531       ;;
14532     motorola)
14533       need_lib_prefix=no
14534       need_version=no
14535       shlibpath_overrides_runpath=no
14536       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14537       ;;
14538   esac
14539   ;;
14540
14541 sysv4*MP*)
14542   if test -d /usr/nec ;then
14543     version_type=linux
14544     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14545     soname_spec='$libname${shared_ext}.$major'
14546     shlibpath_var=LD_LIBRARY_PATH
14547   fi
14548   ;;
14549
14550 uts4*)
14551   version_type=linux
14552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553   soname_spec='${libname}${release}${shared_ext}$major'
14554   shlibpath_var=LD_LIBRARY_PATH
14555   ;;
14556
14557 *)
14558   dynamic_linker=no
14559   ;;
14560 esac
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14562 $as_echo "$dynamic_linker" >&6; }
14563 test "$dynamic_linker" = no && can_build_shared=no
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14566 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14567 hardcode_action_F77=
14568 if test -n "$hardcode_libdir_flag_spec_F77" || \
14569    test -n "$runpath_var F77" || \
14570    test "X$hardcode_automatic_F77"="Xyes" ; then
14571
14572   # We can hardcode non-existant directories.
14573   if test "$hardcode_direct_F77" != no &&
14574      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14575      # have to relink, otherwise we might link with an installed library
14576      # when we should be linking with a yet-to-be-installed one
14577      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14578      test "$hardcode_minus_L_F77" != no; then
14579     # Linking always hardcodes the temporary library directory.
14580     hardcode_action_F77=relink
14581   else
14582     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14583     hardcode_action_F77=immediate
14584   fi
14585 else
14586   # We cannot hardcode anything, or else we can only hardcode existing
14587   # directories.
14588   hardcode_action_F77=unsupported
14589 fi
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14591 $as_echo "$hardcode_action_F77" >&6; }
14592
14593 if test "$hardcode_action_F77" = relink; then
14594   # Fast installation is not supported
14595   enable_fast_install=no
14596 elif test "$shlibpath_overrides_runpath" = yes ||
14597      test "$enable_shared" = no; then
14598   # Fast installation is not necessary
14599   enable_fast_install=needless
14600 fi
14601
14602 striplib=
14603 old_striplib=
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14605 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14606 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14607   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14608   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14610 $as_echo "yes" >&6; }
14611 else
14612 # FIXME - insert some real tests, host_os isn't really good enough
14613   case $host_os in
14614    darwin*)
14615        if test -n "$STRIP" ; then
14616          striplib="$STRIP -x"
14617          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14618 $as_echo "yes" >&6; }
14619        else
14620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 $as_echo "no" >&6; }
14622 fi
14623        ;;
14624    *)
14625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 $as_echo "no" >&6; }
14627     ;;
14628   esac
14629 fi
14630
14631
14632
14633 # The else clause should only fire when bootstrapping the
14634 # libtool distribution, otherwise you forgot to ship ltmain.sh
14635 # with your package, and you will get complaints that there are
14636 # no rules to generate ltmain.sh.
14637 if test -f "$ltmain"; then
14638   # See if we are running on zsh, and set the options which allow our commands through
14639   # without removal of \ escapes.
14640   if test -n "${ZSH_VERSION+set}" ; then
14641     setopt NO_GLOB_SUBST
14642   fi
14643   # Now quote all the things that may contain metacharacters while being
14644   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14645   # variables and quote the copies for generation of the libtool script.
14646   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14647     SED SHELL STRIP \
14648     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14649     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14650     deplibs_check_method reload_flag reload_cmds need_locks \
14651     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14652     lt_cv_sys_global_symbol_to_c_name_address \
14653     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14654     old_postinstall_cmds old_postuninstall_cmds \
14655     compiler_F77 \
14656     CC_F77 \
14657     LD_F77 \
14658     lt_prog_compiler_wl_F77 \
14659     lt_prog_compiler_pic_F77 \
14660     lt_prog_compiler_static_F77 \
14661     lt_prog_compiler_no_builtin_flag_F77 \
14662     export_dynamic_flag_spec_F77 \
14663     thread_safe_flag_spec_F77 \
14664     whole_archive_flag_spec_F77 \
14665     enable_shared_with_static_runtimes_F77 \
14666     old_archive_cmds_F77 \
14667     old_archive_from_new_cmds_F77 \
14668     predep_objects_F77 \
14669     postdep_objects_F77 \
14670     predeps_F77 \
14671     postdeps_F77 \
14672     compiler_lib_search_path_F77 \
14673     archive_cmds_F77 \
14674     archive_expsym_cmds_F77 \
14675     postinstall_cmds_F77 \
14676     postuninstall_cmds_F77 \
14677     old_archive_from_expsyms_cmds_F77 \
14678     allow_undefined_flag_F77 \
14679     no_undefined_flag_F77 \
14680     export_symbols_cmds_F77 \
14681     hardcode_libdir_flag_spec_F77 \
14682     hardcode_libdir_flag_spec_ld_F77 \
14683     hardcode_libdir_separator_F77 \
14684     hardcode_automatic_F77 \
14685     module_cmds_F77 \
14686     module_expsym_cmds_F77 \
14687     lt_cv_prog_compiler_c_o_F77 \
14688     exclude_expsyms_F77 \
14689     include_expsyms_F77; do
14690
14691     case $var in
14692     old_archive_cmds_F77 | \
14693     old_archive_from_new_cmds_F77 | \
14694     archive_cmds_F77 | \
14695     archive_expsym_cmds_F77 | \
14696     module_cmds_F77 | \
14697     module_expsym_cmds_F77 | \
14698     old_archive_from_expsyms_cmds_F77 | \
14699     export_symbols_cmds_F77 | \
14700     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14701     postinstall_cmds | postuninstall_cmds | \
14702     old_postinstall_cmds | old_postuninstall_cmds | \
14703     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14704       # Double-quote double-evaled strings.
14705       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14706       ;;
14707     *)
14708       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14709       ;;
14710     esac
14711   done
14712
14713   case $lt_echo in
14714   *'\$0 --fallback-echo"')
14715     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14716     ;;
14717   esac
14718
14719 cfgfile="$ofile"
14720
14721   cat <<__EOF__ >> "$cfgfile"
14722 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14723
14724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14725
14726 # Shell to use when invoking shell scripts.
14727 SHELL=$lt_SHELL
14728
14729 # Whether or not to build shared libraries.
14730 build_libtool_libs=$enable_shared
14731
14732 # Whether or not to build static libraries.
14733 build_old_libs=$enable_static
14734
14735 # Whether or not to add -lc for building shared libraries.
14736 build_libtool_need_lc=$archive_cmds_need_lc_F77
14737
14738 # Whether or not to disallow shared libs when runtime libs are static
14739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14740
14741 # Whether or not to optimize for fast installation.
14742 fast_install=$enable_fast_install
14743
14744 # The host system.
14745 host_alias=$host_alias
14746 host=$host
14747
14748 # An echo program that does not interpret backslashes.
14749 echo=$lt_echo
14750
14751 # The archiver.
14752 AR=$lt_AR
14753 AR_FLAGS=$lt_AR_FLAGS
14754
14755 # A C compiler.
14756 LTCC=$lt_LTCC
14757
14758 # A language-specific compiler.
14759 CC=$lt_compiler_F77
14760
14761 # Is the compiler the GNU C compiler?
14762 with_gcc=$GCC_F77
14763
14764 # An ERE matcher.
14765 EGREP=$lt_EGREP
14766
14767 # The linker used to build libraries.
14768 LD=$lt_LD_F77
14769
14770 # Whether we need hard or soft links.
14771 LN_S=$lt_LN_S
14772
14773 # A BSD-compatible nm program.
14774 NM=$lt_NM
14775
14776 # A symbol stripping program
14777 STRIP=$lt_STRIP
14778
14779 # Used to examine libraries when file_magic_cmd begins "file"
14780 MAGIC_CMD=$MAGIC_CMD
14781
14782 # Used on cygwin: DLL creation program.
14783 DLLTOOL="$DLLTOOL"
14784
14785 # Used on cygwin: object dumper.
14786 OBJDUMP="$OBJDUMP"
14787
14788 # Used on cygwin: assembler.
14789 AS="$AS"
14790
14791 # The name of the directory that contains temporary libtool files.
14792 objdir=$objdir
14793
14794 # How to create reloadable object files.
14795 reload_flag=$lt_reload_flag
14796 reload_cmds=$lt_reload_cmds
14797
14798 # How to pass a linker flag through the compiler.
14799 wl=$lt_lt_prog_compiler_wl_F77
14800
14801 # Object file suffix (normally "o").
14802 objext="$ac_objext"
14803
14804 # Old archive suffix (normally "a").
14805 libext="$libext"
14806
14807 # Shared library suffix (normally ".so").
14808 shrext='$shrext'
14809
14810 # Executable file suffix (normally "").
14811 exeext="$exeext"
14812
14813 # Additional compiler flags for building library objects.
14814 pic_flag=$lt_lt_prog_compiler_pic_F77
14815 pic_mode=$pic_mode
14816
14817 # What is the maximum length of a command?
14818 max_cmd_len=$lt_cv_sys_max_cmd_len
14819
14820 # Does compiler simultaneously support -c and -o options?
14821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14822
14823 # Must we lock files when doing compilation ?
14824 need_locks=$lt_need_locks
14825
14826 # Do we need the lib prefix for modules?
14827 need_lib_prefix=$need_lib_prefix
14828
14829 # Do we need a version for libraries?
14830 need_version=$need_version
14831
14832 # Whether dlopen is supported.
14833 dlopen_support=$enable_dlopen
14834
14835 # Whether dlopen of programs is supported.
14836 dlopen_self=$enable_dlopen_self
14837
14838 # Whether dlopen of statically linked programs is supported.
14839 dlopen_self_static=$enable_dlopen_self_static
14840
14841 # Compiler flag to prevent dynamic linking.
14842 link_static_flag=$lt_lt_prog_compiler_static_F77
14843
14844 # Compiler flag to turn off builtin functions.
14845 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14846
14847 # Compiler flag to allow reflexive dlopens.
14848 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14849
14850 # Compiler flag to generate shared objects directly from archives.
14851 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14852
14853 # Compiler flag to generate thread-safe objects.
14854 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14855
14856 # Library versioning type.
14857 version_type=$version_type
14858
14859 # Format of library name prefix.
14860 libname_spec=$lt_libname_spec
14861
14862 # List of archive names.  First name is the real one, the rest are links.
14863 # The last name is the one that the linker finds with -lNAME.
14864 library_names_spec=$lt_library_names_spec
14865
14866 # The coded name of the library, if different from the real name.
14867 soname_spec=$lt_soname_spec
14868
14869 # Commands used to build and install an old-style archive.
14870 RANLIB=$lt_RANLIB
14871 old_archive_cmds=$lt_old_archive_cmds_F77
14872 old_postinstall_cmds=$lt_old_postinstall_cmds
14873 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14874
14875 # Create an old-style archive from a shared archive.
14876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14877
14878 # Create a temporary old-style archive to link instead of a shared archive.
14879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14880
14881 # Commands used to build and install a shared archive.
14882 archive_cmds=$lt_archive_cmds_F77
14883 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14884 postinstall_cmds=$lt_postinstall_cmds
14885 postuninstall_cmds=$lt_postuninstall_cmds
14886
14887 # Commands used to build a loadable module (assumed same as above if empty)
14888 module_cmds=$lt_module_cmds_F77
14889 module_expsym_cmds=$lt_module_expsym_cmds_F77
14890
14891 # Commands to strip libraries.
14892 old_striplib=$lt_old_striplib
14893 striplib=$lt_striplib
14894
14895 # Dependencies to place before the objects being linked to create a
14896 # shared library.
14897 predep_objects=$lt_predep_objects_F77
14898
14899 # Dependencies to place after the objects being linked to create a
14900 # shared library.
14901 postdep_objects=$lt_postdep_objects_F77
14902
14903 # Dependencies to place before the objects being linked to create a
14904 # shared library.
14905 predeps=$lt_predeps_F77
14906
14907 # Dependencies to place after the objects being linked to create a
14908 # shared library.
14909 postdeps=$lt_postdeps_F77
14910
14911 # The library search path used internally by the compiler when linking
14912 # a shared library.
14913 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14914
14915 # Method to check whether dependent libraries are shared objects.
14916 deplibs_check_method=$lt_deplibs_check_method
14917
14918 # Command to use when deplibs_check_method == file_magic.
14919 file_magic_cmd=$lt_file_magic_cmd
14920
14921 # Flag that allows shared libraries with undefined symbols to be built.
14922 allow_undefined_flag=$lt_allow_undefined_flag_F77
14923
14924 # Flag that forces no undefined symbols.
14925 no_undefined_flag=$lt_no_undefined_flag_F77
14926
14927 # Commands used to finish a libtool library installation in a directory.
14928 finish_cmds=$lt_finish_cmds
14929
14930 # Same as above, but a single script fragment to be evaled but not shown.
14931 finish_eval=$lt_finish_eval
14932
14933 # Take the output of nm and produce a listing of raw symbols and C names.
14934 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14935
14936 # Transform the output of nm in a proper C declaration
14937 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14938
14939 # Transform the output of nm in a C name address pair
14940 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14941
14942 # This is the shared library runtime path variable.
14943 runpath_var=$runpath_var
14944
14945 # This is the shared library path variable.
14946 shlibpath_var=$shlibpath_var
14947
14948 # Is shlibpath searched before the hard-coded library search path?
14949 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14950
14951 # How to hardcode a shared library path into an executable.
14952 hardcode_action=$hardcode_action_F77
14953
14954 # Whether we should hardcode library paths into libraries.
14955 hardcode_into_libs=$hardcode_into_libs
14956
14957 # Flag to hardcode \$libdir into a binary during linking.
14958 # This must work even if \$libdir does not exist.
14959 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14960
14961 # If ld is used when linking, flag to hardcode \$libdir into
14962 # a binary during linking. This must work even if \$libdir does
14963 # not exist.
14964 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14965
14966 # Whether we need a single -rpath flag with a separated argument.
14967 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14968
14969 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14970 # resulting binary.
14971 hardcode_direct=$hardcode_direct_F77
14972
14973 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14974 # resulting binary.
14975 hardcode_minus_L=$hardcode_minus_L_F77
14976
14977 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14978 # the resulting binary.
14979 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14980
14981 # Set to yes if building a shared library automatically hardcodes DIR into the library
14982 # and all subsequent libraries and executables linked against it.
14983 hardcode_automatic=$hardcode_automatic_F77
14984
14985 # Variables whose values should be saved in libtool wrapper scripts and
14986 # restored at relink time.
14987 variables_saved_for_relink="$variables_saved_for_relink"
14988
14989 # Whether libtool must link a program against all its dependency libraries.
14990 link_all_deplibs=$link_all_deplibs_F77
14991
14992 # Compile-time system search path for libraries
14993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14994
14995 # Run-time system search path for libraries
14996 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14997
14998 # Fix the shell variable \$srcfile for the compiler.
14999 fix_srcfile_path="$fix_srcfile_path_F77"
15000
15001 # Set to yes if exported symbols are required.
15002 always_export_symbols=$always_export_symbols_F77
15003
15004 # The commands to list exported symbols.
15005 export_symbols_cmds=$lt_export_symbols_cmds_F77
15006
15007 # The commands to extract the exported symbol list from a shared archive.
15008 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15009
15010 # Symbols that should not be listed in the preloaded symbols.
15011 exclude_expsyms=$lt_exclude_expsyms_F77
15012
15013 # Symbols that must always be exported.
15014 include_expsyms=$lt_include_expsyms_F77
15015
15016 # ### END LIBTOOL TAG CONFIG: $tagname
15017
15018 __EOF__
15019
15020
15021 else
15022   # If there is no Makefile yet, we rely on a make rule to execute
15023   # `config.status --recheck' to rerun these tests and create the
15024   # libtool script then.
15025   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15026   if test -f "$ltmain_in"; then
15027     test -f Makefile && make "$ltmain"
15028   fi
15029 fi
15030
15031
15032 ac_ext=c
15033 ac_cpp='$CPP $CPPFLAGS'
15034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15037
15038 CC="$lt_save_CC"
15039
15040         else
15041           tagname=""
15042         fi
15043         ;;
15044
15045       GCJ)
15046         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15047
15048
15049 # Source file extension for Java test sources.
15050 ac_ext=java
15051
15052 # Object file extension for compiled Java test sources.
15053 objext=o
15054 objext_GCJ=$objext
15055
15056 # Code to be used in simple compile tests
15057 lt_simple_compile_test_code="class foo {}\n"
15058
15059 # Code to be used in simple link tests
15060 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15061
15062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15063
15064 # If no C compiler was specified, use CC.
15065 LTCC=${LTCC-"$CC"}
15066
15067 # Allow CC to be a program name with arguments.
15068 compiler=$CC
15069
15070
15071 # Allow CC to be a program name with arguments.
15072 lt_save_CC="$CC"
15073 CC=${GCJ-"gcj"}
15074 compiler=$CC
15075 compiler_GCJ=$CC
15076
15077 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15078 archive_cmds_need_lc_GCJ=no
15079
15080
15081 lt_prog_compiler_no_builtin_flag_GCJ=
15082
15083 if test "$GCC" = yes; then
15084   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15085
15086
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15088 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15090   $as_echo_n "(cached) " >&6
15091 else
15092   lt_cv_prog_compiler_rtti_exceptions=no
15093   ac_outfile=conftest.$ac_objext
15094    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15095    lt_compiler_flag="-fno-rtti -fno-exceptions"
15096    # Insert the option either (1) after the last *FLAGS variable, or
15097    # (2) before a word containing "conftest.", or (3) at the end.
15098    # Note that $ac_compile itself does not contain backslashes and begins
15099    # with a dollar sign (not a hyphen), so the echo should work correctly.
15100    # The option is referenced via a variable to avoid confusing sed.
15101    lt_compile=`echo "$ac_compile" | $SED \
15102    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104    -e 's:$: $lt_compiler_flag:'`
15105    (eval echo "\"\$as_me:15105: $lt_compile\"" >&5)
15106    (eval "$lt_compile" 2>conftest.err)
15107    ac_status=$?
15108    cat conftest.err >&5
15109    echo "$as_me:15109: \$? = $ac_status" >&5
15110    if (exit $ac_status) && test -s "$ac_outfile"; then
15111      # The compiler can only warn and ignore the option if not recognized
15112      # So say no if there are warnings
15113      if test ! -s conftest.err; then
15114        lt_cv_prog_compiler_rtti_exceptions=yes
15115      fi
15116    fi
15117    $rm conftest*
15118
15119 fi
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15121 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15122
15123 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15124     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15125 else
15126     :
15127 fi
15128
15129 fi
15130
15131 lt_prog_compiler_wl_GCJ=
15132 lt_prog_compiler_pic_GCJ=
15133 lt_prog_compiler_static_GCJ=
15134
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15136 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15137
15138   if test "$GCC" = yes; then
15139     lt_prog_compiler_wl_GCJ='-Wl,'
15140     lt_prog_compiler_static_GCJ='-static'
15141
15142     case $host_os in
15143       aix*)
15144       # All AIX code is PIC.
15145       if test "$host_cpu" = ia64; then
15146         # AIX 5 now supports IA64 processor
15147         lt_prog_compiler_static_GCJ='-Bstatic'
15148       fi
15149       ;;
15150
15151     amigaos*)
15152       # FIXME: we need at least 68020 code to build shared libraries, but
15153       # adding the `-m68020' flag to GCC prevents building anything better,
15154       # like `-m68040'.
15155       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15156       ;;
15157
15158     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15159       # PIC is the default for these OSes.
15160       ;;
15161
15162     mingw* | pw32* | os2*)
15163       # This hack is so that the source file can tell whether it is being
15164       # built for inclusion in a dll (and should export symbols for example).
15165       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15166       ;;
15167
15168     darwin* | rhapsody*)
15169       # PIC is the default on this platform
15170       # Common symbols not allowed in MH_DYLIB files
15171       lt_prog_compiler_pic_GCJ='-fno-common'
15172       ;;
15173
15174     msdosdjgpp*)
15175       # Just because we use GCC doesn't mean we suddenly get shared libraries
15176       # on systems that don't support them.
15177       lt_prog_compiler_can_build_shared_GCJ=no
15178       enable_shared=no
15179       ;;
15180
15181     sysv4*MP*)
15182       if test -d /usr/nec; then
15183         lt_prog_compiler_pic_GCJ=-Kconform_pic
15184       fi
15185       ;;
15186
15187     hpux*)
15188       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15189       # not for PA HP-UX.
15190       case "$host_cpu" in
15191       hppa*64*|ia64*)
15192         # +Z the default
15193         ;;
15194       *)
15195         lt_prog_compiler_pic_GCJ='-fPIC'
15196         ;;
15197       esac
15198       ;;
15199
15200     *)
15201       lt_prog_compiler_pic_GCJ='-fPIC'
15202       ;;
15203     esac
15204   else
15205     # PORTME Check for flag to pass linker flags through the system compiler.
15206     case $host_os in
15207     aix*)
15208       lt_prog_compiler_wl_GCJ='-Wl,'
15209       if test "$host_cpu" = ia64; then
15210         # AIX 5 now supports IA64 processor
15211         lt_prog_compiler_static_GCJ='-Bstatic'
15212       else
15213         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15214       fi
15215       ;;
15216
15217     mingw* | pw32* | os2*)
15218       # This hack is so that the source file can tell whether it is being
15219       # built for inclusion in a dll (and should export symbols for example).
15220       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15221       ;;
15222
15223     hpux9* | hpux10* | hpux11*)
15224       lt_prog_compiler_wl_GCJ='-Wl,'
15225       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15226       # not for PA HP-UX.
15227       case "$host_cpu" in
15228       hppa*64*|ia64*)
15229         # +Z the default
15230         ;;
15231       *)
15232         lt_prog_compiler_pic_GCJ='+Z'
15233         ;;
15234       esac
15235       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15236       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15237       ;;
15238
15239     irix5* | irix6* | nonstopux*)
15240       lt_prog_compiler_wl_GCJ='-Wl,'
15241       # PIC (with -KPIC) is the default.
15242       lt_prog_compiler_static_GCJ='-non_shared'
15243       ;;
15244
15245     newsos6)
15246       lt_prog_compiler_pic_GCJ='-KPIC'
15247       lt_prog_compiler_static_GCJ='-Bstatic'
15248       ;;
15249
15250     linux*)
15251       case $CC in
15252       icc* | ecc*)
15253         lt_prog_compiler_wl_GCJ='-Wl,'
15254         lt_prog_compiler_pic_GCJ='-KPIC'
15255         lt_prog_compiler_static_GCJ='-static'
15256         ;;
15257       ccc*)
15258         lt_prog_compiler_wl_GCJ='-Wl,'
15259         # All Alpha code is PIC.
15260         lt_prog_compiler_static_GCJ='-non_shared'
15261         ;;
15262       esac
15263       ;;
15264
15265     osf3* | osf4* | osf5*)
15266       lt_prog_compiler_wl_GCJ='-Wl,'
15267       # All OSF/1 code is PIC.
15268       lt_prog_compiler_static_GCJ='-non_shared'
15269       ;;
15270
15271     sco3.2v5*)
15272       lt_prog_compiler_pic_GCJ='-Kpic'
15273       lt_prog_compiler_static_GCJ='-dn'
15274       ;;
15275
15276     solaris*)
15277       lt_prog_compiler_wl_GCJ='-Wl,'
15278       lt_prog_compiler_pic_GCJ='-KPIC'
15279       lt_prog_compiler_static_GCJ='-Bstatic'
15280       ;;
15281
15282     sunos4*)
15283       lt_prog_compiler_wl_GCJ='-Qoption ld '
15284       lt_prog_compiler_pic_GCJ='-PIC'
15285       lt_prog_compiler_static_GCJ='-Bstatic'
15286       ;;
15287
15288     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15289       lt_prog_compiler_wl_GCJ='-Wl,'
15290       lt_prog_compiler_pic_GCJ='-KPIC'
15291       lt_prog_compiler_static_GCJ='-Bstatic'
15292       ;;
15293
15294     sysv4*MP*)
15295       if test -d /usr/nec ;then
15296         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15297         lt_prog_compiler_static_GCJ='-Bstatic'
15298       fi
15299       ;;
15300
15301     uts4*)
15302       lt_prog_compiler_pic_GCJ='-pic'
15303       lt_prog_compiler_static_GCJ='-Bstatic'
15304       ;;
15305
15306     *)
15307       lt_prog_compiler_can_build_shared_GCJ=no
15308       ;;
15309     esac
15310   fi
15311
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
15313 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15314
15315 #
15316 # Check to make sure the PIC flag actually works.
15317 #
15318 if test -n "$lt_prog_compiler_pic_GCJ"; then
15319
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15321 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15322 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
15323   $as_echo_n "(cached) " >&6
15324 else
15325   lt_prog_compiler_pic_works_GCJ=no
15326   ac_outfile=conftest.$ac_objext
15327    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15328    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15329    # Insert the option either (1) after the last *FLAGS variable, or
15330    # (2) before a word containing "conftest.", or (3) at the end.
15331    # Note that $ac_compile itself does not contain backslashes and begins
15332    # with a dollar sign (not a hyphen), so the echo should work correctly.
15333    # The option is referenced via a variable to avoid confusing sed.
15334    lt_compile=`echo "$ac_compile" | $SED \
15335    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15336    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15337    -e 's:$: $lt_compiler_flag:'`
15338    (eval echo "\"\$as_me:15338: $lt_compile\"" >&5)
15339    (eval "$lt_compile" 2>conftest.err)
15340    ac_status=$?
15341    cat conftest.err >&5
15342    echo "$as_me:15342: \$? = $ac_status" >&5
15343    if (exit $ac_status) && test -s "$ac_outfile"; then
15344      # The compiler can only warn and ignore the option if not recognized
15345      # So say no if there are warnings
15346      if test ! -s conftest.err; then
15347        lt_prog_compiler_pic_works_GCJ=yes
15348      fi
15349    fi
15350    $rm conftest*
15351
15352 fi
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
15354 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15355
15356 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15357     case $lt_prog_compiler_pic_GCJ in
15358      "" | " "*) ;;
15359      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15360      esac
15361 else
15362     lt_prog_compiler_pic_GCJ=
15363      lt_prog_compiler_can_build_shared_GCJ=no
15364 fi
15365
15366 fi
15367 case "$host_os" in
15368   # For platforms which do not support PIC, -DPIC is meaningless:
15369   *djgpp*)
15370     lt_prog_compiler_pic_GCJ=
15371     ;;
15372   *)
15373     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15374     ;;
15375 esac
15376
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15379 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
15380   $as_echo_n "(cached) " >&6
15381 else
15382   lt_cv_prog_compiler_c_o_GCJ=no
15383    $rm -r conftest 2>/dev/null
15384    mkdir conftest
15385    cd conftest
15386    mkdir out
15387    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15388
15389    lt_compiler_flag="-o out/conftest2.$ac_objext"
15390    # Insert the option either (1) after the last *FLAGS variable, or
15391    # (2) before a word containing "conftest.", or (3) at the end.
15392    # Note that $ac_compile itself does not contain backslashes and begins
15393    # with a dollar sign (not a hyphen), so the echo should work correctly.
15394    lt_compile=`echo "$ac_compile" | $SED \
15395    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15396    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15397    -e 's:$: $lt_compiler_flag:'`
15398    (eval echo "\"\$as_me:15398: $lt_compile\"" >&5)
15399    (eval "$lt_compile" 2>out/conftest.err)
15400    ac_status=$?
15401    cat out/conftest.err >&5
15402    echo "$as_me:15402: \$? = $ac_status" >&5
15403    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15404    then
15405      # The compiler can only warn and ignore the option if not recognized
15406      # So say no if there are warnings
15407      if test ! -s out/conftest.err; then
15408        lt_cv_prog_compiler_c_o_GCJ=yes
15409      fi
15410    fi
15411    chmod u+w .
15412    $rm conftest*
15413    # SGI C++ compiler will create directory out/ii_files/ for
15414    # template instantiation
15415    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15416    $rm out/* && rmdir out
15417    cd ..
15418    rmdir conftest
15419    $rm conftest*
15420
15421 fi
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15423 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15424
15425
15426 hard_links="nottested"
15427 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15428   # do not overwrite the value of need_locks provided by the user
15429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15430 $as_echo_n "checking if we can lock with hard links... " >&6; }
15431   hard_links=yes
15432   $rm conftest*
15433   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15434   touch conftest.a
15435   ln conftest.a conftest.b 2>&5 || hard_links=no
15436   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15438 $as_echo "$hard_links" >&6; }
15439   if test "$hard_links" = no; then
15440     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15441 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15442     need_locks=warn
15443   fi
15444 else
15445   need_locks=no
15446 fi
15447
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15450
15451   runpath_var=
15452   allow_undefined_flag_GCJ=
15453   enable_shared_with_static_runtimes_GCJ=no
15454   archive_cmds_GCJ=
15455   archive_expsym_cmds_GCJ=
15456   old_archive_From_new_cmds_GCJ=
15457   old_archive_from_expsyms_cmds_GCJ=
15458   export_dynamic_flag_spec_GCJ=
15459   whole_archive_flag_spec_GCJ=
15460   thread_safe_flag_spec_GCJ=
15461   hardcode_libdir_flag_spec_GCJ=
15462   hardcode_libdir_flag_spec_ld_GCJ=
15463   hardcode_libdir_separator_GCJ=
15464   hardcode_direct_GCJ=no
15465   hardcode_minus_L_GCJ=no
15466   hardcode_shlibpath_var_GCJ=unsupported
15467   link_all_deplibs_GCJ=unknown
15468   hardcode_automatic_GCJ=no
15469   module_cmds_GCJ=
15470   module_expsym_cmds_GCJ=
15471   always_export_symbols_GCJ=no
15472   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15473   # include_expsyms should be a list of space-separated symbols to be *always*
15474   # included in the symbol list
15475   include_expsyms_GCJ=
15476   # exclude_expsyms can be an extended regexp of symbols to exclude
15477   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15478   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15479   # as well as any symbol that contains `d'.
15480   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15481   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15482   # platforms (ab)use it in PIC code, but their linkers get confused if
15483   # the symbol is explicitly referenced.  Since portable code cannot
15484   # rely on this symbol name, it's probably fine to never include it in
15485   # preloaded symbol tables.
15486   extract_expsyms_cmds=
15487
15488   case $host_os in
15489   cygwin* | mingw* | pw32*)
15490     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15491     # When not using gcc, we currently assume that we are using
15492     # Microsoft Visual C++.
15493     if test "$GCC" != yes; then
15494       with_gnu_ld=no
15495     fi
15496     ;;
15497   openbsd*)
15498     with_gnu_ld=no
15499     ;;
15500   esac
15501
15502   ld_shlibs_GCJ=yes
15503   if test "$with_gnu_ld" = yes; then
15504     # If archive_cmds runs LD, not CC, wlarc should be empty
15505     wlarc='${wl}'
15506
15507     # See if GNU ld supports shared libraries.
15508     case $host_os in
15509     aix3* | aix4* | aix5*)
15510       # On AIX/PPC, the GNU linker is very broken
15511       if test "$host_cpu" != ia64; then
15512         ld_shlibs_GCJ=no
15513         cat <<EOF 1>&2
15514
15515 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15516 *** to be unable to reliably create shared libraries on AIX.
15517 *** Therefore, libtool is disabling shared libraries support.  If you
15518 *** really care for shared libraries, you may want to modify your PATH
15519 *** so that a non-GNU linker is found, and then restart.
15520
15521 EOF
15522       fi
15523       ;;
15524
15525     amigaos*)
15526       archive_cmds_GCJ='$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)'
15527       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15528       hardcode_minus_L_GCJ=yes
15529
15530       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15531       # that the semantics of dynamic libraries on AmigaOS, at least up
15532       # to version 4, is to share data among multiple programs linked
15533       # with the same dynamic library.  Since this doesn't match the
15534       # behavior of shared libraries on other platforms, we can't use
15535       # them.
15536       ld_shlibs_GCJ=no
15537       ;;
15538
15539     beos*)
15540       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15541         allow_undefined_flag_GCJ=unsupported
15542         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15543         # support --undefined.  This deserves some investigation.  FIXME
15544         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15545       else
15546         ld_shlibs_GCJ=no
15547       fi
15548       ;;
15549
15550     cygwin* | mingw* | pw32*)
15551       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15552       # as there is no search path for DLLs.
15553       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15554       allow_undefined_flag_GCJ=unsupported
15555       always_export_symbols_GCJ=no
15556       enable_shared_with_static_runtimes_GCJ=yes
15557       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15558
15559       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15560         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15561         # If the export-symbols file already is a .def file (1st line
15562         # is EXPORTS), use it as is; otherwise, prepend...
15563         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15564           cp $export_symbols $output_objdir/$soname.def;
15565         else
15566           echo EXPORTS > $output_objdir/$soname.def;
15567           cat $export_symbols >> $output_objdir/$soname.def;
15568         fi~
15569         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15570       else
15571         ld_shlibs=no
15572       fi
15573       ;;
15574
15575     netbsd* | knetbsd*-gnu)
15576       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15577         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15578         wlarc=
15579       else
15580         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15581         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15582       fi
15583       ;;
15584
15585     solaris* | sysv5*)
15586       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15587         ld_shlibs_GCJ=no
15588         cat <<EOF 1>&2
15589
15590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15591 *** create shared libraries on Solaris systems.  Therefore, libtool
15592 *** is disabling shared libraries support.  We urge you to upgrade GNU
15593 *** binutils to release 2.9.1 or newer.  Another option is to modify
15594 *** your PATH or compiler configuration so that the native linker is
15595 *** used, and then restart.
15596
15597 EOF
15598       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15599         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15600         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15601       else
15602         ld_shlibs_GCJ=no
15603       fi
15604       ;;
15605
15606     sunos4*)
15607       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15608       wlarc=
15609       hardcode_direct_GCJ=yes
15610       hardcode_shlibpath_var_GCJ=no
15611       ;;
15612
15613   linux*)
15614     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15615         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15616         archive_cmds_GCJ="$tmp_archive_cmds"
15617       supports_anon_versioning=no
15618       case `$LD -v 2>/dev/null` in
15619         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15620         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15621         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15622         *\ 2.11.*) ;; # other 2.11 versions
15623         *) supports_anon_versioning=yes ;;
15624       esac
15625       if test $supports_anon_versioning = yes; then
15626         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15627 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15628 $echo "local: *; };" >> $output_objdir/$libname.ver~
15629         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15630       else
15631         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15632       fi
15633     else
15634       ld_shlibs_GCJ=no
15635     fi
15636     ;;
15637
15638     *)
15639       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15640         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15641         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15642       else
15643         ld_shlibs_GCJ=no
15644       fi
15645       ;;
15646     esac
15647
15648     if test "$ld_shlibs_GCJ" = yes; then
15649       runpath_var=LD_RUN_PATH
15650       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15651       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15652       # ancient GNU ld didn't support --whole-archive et. al.
15653       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15654         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15655       else
15656         whole_archive_flag_spec_GCJ=
15657       fi
15658     fi
15659   else
15660     # PORTME fill in a description of your system's linker (not GNU ld)
15661     case $host_os in
15662     aix3*)
15663       allow_undefined_flag_GCJ=unsupported
15664       always_export_symbols_GCJ=yes
15665       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15666       # Note: this linker hardcodes the directories in LIBPATH if there
15667       # are no directories specified by -L.
15668       hardcode_minus_L_GCJ=yes
15669       if test "$GCC" = yes && test -z "$link_static_flag"; then
15670         # Neither direct hardcoding nor static linking is supported with a
15671         # broken collect2.
15672         hardcode_direct_GCJ=unsupported
15673       fi
15674       ;;
15675
15676     aix4* | aix5*)
15677       if test "$host_cpu" = ia64; then
15678         # On IA64, the linker does run time linking by default, so we don't
15679         # have to do anything special.
15680         aix_use_runtimelinking=no
15681         exp_sym_flag='-Bexport'
15682         no_entry_flag=""
15683       else
15684         # If we're using GNU nm, then we don't want the "-C" option.
15685         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15686         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15687           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15688         else
15689           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15690         fi
15691         aix_use_runtimelinking=no
15692
15693         # Test if we are trying to use run time linking or normal
15694         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15695         # need to do runtime linking.
15696         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15697           for ld_flag in $LDFLAGS; do
15698           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15699             aix_use_runtimelinking=yes
15700             break
15701           fi
15702           done
15703         esac
15704
15705         exp_sym_flag='-bexport'
15706         no_entry_flag='-bnoentry'
15707       fi
15708
15709       # When large executables or shared objects are built, AIX ld can
15710       # have problems creating the table of contents.  If linking a library
15711       # or program results in "error TOC overflow" add -mminimal-toc to
15712       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15713       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15714
15715       archive_cmds_GCJ=''
15716       hardcode_direct_GCJ=yes
15717       hardcode_libdir_separator_GCJ=':'
15718       link_all_deplibs_GCJ=yes
15719
15720       if test "$GCC" = yes; then
15721         case $host_os in aix4.012|aix4.012.*)
15722         # We only want to do this on AIX 4.2 and lower, the check
15723         # below for broken collect2 doesn't work under 4.3+
15724           collect2name=`${CC} -print-prog-name=collect2`
15725           if test -f "$collect2name" && \
15726            strings "$collect2name" | grep resolve_lib_name >/dev/null
15727           then
15728           # We have reworked collect2
15729           hardcode_direct_GCJ=yes
15730           else
15731           # We have old collect2
15732           hardcode_direct_GCJ=unsupported
15733           # It fails to find uninstalled libraries when the uninstalled
15734           # path is not listed in the libpath.  Setting hardcode_minus_L
15735           # to unsupported forces relinking
15736           hardcode_minus_L_GCJ=yes
15737           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15738           hardcode_libdir_separator_GCJ=
15739           fi
15740         esac
15741         shared_flag='-shared'
15742       else
15743         # not using gcc
15744         if test "$host_cpu" = ia64; then
15745         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15746         # chokes on -Wl,-G. The following line is correct:
15747           shared_flag='-G'
15748         else
15749         if test "$aix_use_runtimelinking" = yes; then
15750             shared_flag='${wl}-G'
15751           else
15752             shared_flag='${wl}-bM:SRE'
15753         fi
15754         fi
15755       fi
15756
15757       # It seems that -bexpall does not export symbols beginning with
15758       # underscore (_), so it is better to generate a list of symbols to export.
15759       always_export_symbols_GCJ=yes
15760       if test "$aix_use_runtimelinking" = yes; then
15761         # Warning - without using the other runtime loading flags (-brtl),
15762         # -berok will link without error, but may produce a broken library.
15763         allow_undefined_flag_GCJ='-berok'
15764        # Determine the default libpath from the value encoded in an empty executable.
15765        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h.  */
15767
15768 int
15769 main ()
15770 {
15771
15772   ;
15773   return 0;
15774 }
15775 _ACEOF
15776 if ac_fn_c_try_link "$LINENO"; then :
15777
15778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15779 }'`
15780 # Check for a 64-bit object if we didn't find anything.
15781 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15782 }'`; fi
15783 fi
15784 rm -f core conftest.err conftest.$ac_objext \
15785     conftest$ac_exeext conftest.$ac_ext
15786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15787
15788        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15789         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15790        else
15791         if test "$host_cpu" = ia64; then
15792           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15793           allow_undefined_flag_GCJ="-z nodefs"
15794           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15795         else
15796          # Determine the default libpath from the value encoded in an empty executable.
15797          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h.  */
15799
15800 int
15801 main ()
15802 {
15803
15804   ;
15805   return 0;
15806 }
15807 _ACEOF
15808 if ac_fn_c_try_link "$LINENO"; then :
15809
15810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15811 }'`
15812 # Check for a 64-bit object if we didn't find anything.
15813 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15814 }'`; fi
15815 fi
15816 rm -f core conftest.err conftest.$ac_objext \
15817     conftest$ac_exeext conftest.$ac_ext
15818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15819
15820          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15821           # Warning - without using the other run time loading flags,
15822           # -berok will link without error, but may produce a broken library.
15823           no_undefined_flag_GCJ=' ${wl}-bernotok'
15824           allow_undefined_flag_GCJ=' ${wl}-berok'
15825           # -bexpall does not export symbols beginning with underscore (_)
15826           always_export_symbols_GCJ=yes
15827           # Exported symbols can be pulled into shared objects from archives
15828           whole_archive_flag_spec_GCJ=' '
15829           archive_cmds_need_lc_GCJ=yes
15830           # This is similar to how AIX traditionally builds it's shared libraries.
15831           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15832         fi
15833       fi
15834       ;;
15835
15836     amigaos*)
15837       archive_cmds_GCJ='$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)'
15838       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15839       hardcode_minus_L_GCJ=yes
15840       # see comment about different semantics on the GNU ld section
15841       ld_shlibs_GCJ=no
15842       ;;
15843
15844     bsdi4*)
15845       export_dynamic_flag_spec_GCJ=-rdynamic
15846       ;;
15847
15848     cygwin* | mingw* | pw32*)
15849       # When not using gcc, we currently assume that we are using
15850       # Microsoft Visual C++.
15851       # hardcode_libdir_flag_spec is actually meaningless, as there is
15852       # no search path for DLLs.
15853       hardcode_libdir_flag_spec_GCJ=' '
15854       allow_undefined_flag_GCJ=unsupported
15855       # Tell ltmain to make .lib files, not .a files.
15856       libext=lib
15857       # Tell ltmain to make .dll files, not .so files.
15858       shrext=".dll"
15859       # FIXME: Setting linknames here is a bad hack.
15860       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15861       # The linker will automatically build a .lib file if we build a DLL.
15862       old_archive_From_new_cmds_GCJ='true'
15863       # FIXME: Should let the user specify the lib program.
15864       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15865       fix_srcfile_path='`cygpath -w "$srcfile"`'
15866       enable_shared_with_static_runtimes_GCJ=yes
15867       ;;
15868
15869     darwin* | rhapsody*)
15870     if test "$GXX" = yes ; then
15871       archive_cmds_need_lc_GCJ=no
15872       case "$host_os" in
15873       rhapsody* | darwin1.[012])
15874         allow_undefined_flag_GCJ='-undefined suppress'
15875         ;;
15876       *) # Darwin 1.3 on
15877       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15878         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15879       else
15880         case ${MACOSX_DEPLOYMENT_TARGET} in
15881           10.[012])
15882             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15883             ;;
15884           10.*)
15885             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15886             ;;
15887         esac
15888       fi
15889         ;;
15890       esac
15891         lt_int_apple_cc_single_mod=no
15892         output_verbose_link_cmd='echo'
15893         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15894           lt_int_apple_cc_single_mod=yes
15895         fi
15896         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15897           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15898         else
15899         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15900       fi
15901       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15902       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15903         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15904           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15905         else
15906           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15907         fi
15908           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15909       hardcode_direct_GCJ=no
15910       hardcode_automatic_GCJ=yes
15911       hardcode_shlibpath_var_GCJ=unsupported
15912       whole_archive_flag_spec_GCJ='-all_load $convenience'
15913       link_all_deplibs_GCJ=yes
15914     else
15915       ld_shlibs_GCJ=no
15916     fi
15917       ;;
15918
15919     dgux*)
15920       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15921       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15922       hardcode_shlibpath_var_GCJ=no
15923       ;;
15924
15925     freebsd1*)
15926       ld_shlibs_GCJ=no
15927       ;;
15928
15929     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15930     # support.  Future versions do this automatically, but an explicit c++rt0.o
15931     # does not break anything, and helps significantly (at the cost of a little
15932     # extra space).
15933     freebsd2.2*)
15934       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15935       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15936       hardcode_direct_GCJ=yes
15937       hardcode_shlibpath_var_GCJ=no
15938       ;;
15939
15940     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15941     freebsd2*)
15942       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15943       hardcode_direct_GCJ=yes
15944       hardcode_minus_L_GCJ=yes
15945       hardcode_shlibpath_var_GCJ=no
15946       ;;
15947
15948     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15949     freebsd* | kfreebsd*-gnu)
15950       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15951       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15952       hardcode_direct_GCJ=yes
15953       hardcode_shlibpath_var_GCJ=no
15954       ;;
15955
15956     hpux9*)
15957       if test "$GCC" = yes; then
15958         archive_cmds_GCJ='$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'
15959       else
15960         archive_cmds_GCJ='$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'
15961       fi
15962       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15963       hardcode_libdir_separator_GCJ=:
15964       hardcode_direct_GCJ=yes
15965
15966       # hardcode_minus_L: Not really in the search PATH,
15967       # but as the default location of the library.
15968       hardcode_minus_L_GCJ=yes
15969       export_dynamic_flag_spec_GCJ='${wl}-E'
15970       ;;
15971
15972     hpux10* | hpux11*)
15973       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15974         case "$host_cpu" in
15975         hppa*64*|ia64*)
15976           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15977           ;;
15978         *)
15979           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15980           ;;
15981         esac
15982       else
15983         case "$host_cpu" in
15984         hppa*64*|ia64*)
15985           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15986           ;;
15987         *)
15988           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15989           ;;
15990         esac
15991       fi
15992       if test "$with_gnu_ld" = no; then
15993         case "$host_cpu" in
15994         hppa*64*)
15995           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15996           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15997           hardcode_libdir_separator_GCJ=:
15998           hardcode_direct_GCJ=no
15999           hardcode_shlibpath_var_GCJ=no
16000           ;;
16001         ia64*)
16002           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16003           hardcode_direct_GCJ=no
16004           hardcode_shlibpath_var_GCJ=no
16005
16006           # hardcode_minus_L: Not really in the search PATH,
16007           # but as the default location of the library.
16008           hardcode_minus_L_GCJ=yes
16009           ;;
16010         *)
16011           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16012           hardcode_libdir_separator_GCJ=:
16013           hardcode_direct_GCJ=yes
16014           export_dynamic_flag_spec_GCJ='${wl}-E'
16015
16016           # hardcode_minus_L: Not really in the search PATH,
16017           # but as the default location of the library.
16018           hardcode_minus_L_GCJ=yes
16019           ;;
16020         esac
16021       fi
16022       ;;
16023
16024     irix5* | irix6* | nonstopux*)
16025       if test "$GCC" = yes; then
16026         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16027       else
16028         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16029         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16030       fi
16031       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16032       hardcode_libdir_separator_GCJ=:
16033       link_all_deplibs_GCJ=yes
16034       ;;
16035
16036     netbsd* | knetbsd*-gnu)
16037       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16038         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16039       else
16040         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16041       fi
16042       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16043       hardcode_direct_GCJ=yes
16044       hardcode_shlibpath_var_GCJ=no
16045       ;;
16046
16047     newsos6)
16048       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049       hardcode_direct_GCJ=yes
16050       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16051       hardcode_libdir_separator_GCJ=:
16052       hardcode_shlibpath_var_GCJ=no
16053       ;;
16054
16055     openbsd*)
16056       hardcode_direct_GCJ=yes
16057       hardcode_shlibpath_var_GCJ=no
16058       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16059         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16060         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16061         export_dynamic_flag_spec_GCJ='${wl}-E'
16062       else
16063        case $host_os in
16064          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16065            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16066            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16067            ;;
16068          *)
16069            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16070            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16071            ;;
16072        esac
16073       fi
16074       ;;
16075
16076     os2*)
16077       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16078       hardcode_minus_L_GCJ=yes
16079       allow_undefined_flag_GCJ=unsupported
16080       archive_cmds_GCJ='$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'
16081       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16082       ;;
16083
16084     osf3*)
16085       if test "$GCC" = yes; then
16086         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16087         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16088       else
16089         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16090         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16091       fi
16092       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16093       hardcode_libdir_separator_GCJ=:
16094       ;;
16095
16096     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16097       if test "$GCC" = yes; then
16098         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16099         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16100         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16101       else
16102         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16103         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16104         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16105         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16106
16107         # Both c and cxx compiler support -rpath directly
16108         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16109       fi
16110       hardcode_libdir_separator_GCJ=:
16111       ;;
16112
16113     sco3.2v5*)
16114       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115       hardcode_shlibpath_var_GCJ=no
16116       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16117       runpath_var=LD_RUN_PATH
16118       hardcode_runpath_var=yes
16119       ;;
16120
16121     solaris*)
16122       no_undefined_flag_GCJ=' -z text'
16123       if test "$GCC" = yes; then
16124         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16125         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16126           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16127       else
16128         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16130         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16131       fi
16132       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16133       hardcode_shlibpath_var_GCJ=no
16134       case $host_os in
16135       solaris2.[0-5] | solaris2.[0-5].*) ;;
16136       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16137         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16138       esac
16139       link_all_deplibs_GCJ=yes
16140       ;;
16141
16142     sunos4*)
16143       if test "x$host_vendor" = xsequent; then
16144         # Use $CC to link under sequent, because it throws in some extra .o
16145         # files that make .init and .fini sections work.
16146         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16147       else
16148         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16149       fi
16150       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16151       hardcode_direct_GCJ=yes
16152       hardcode_minus_L_GCJ=yes
16153       hardcode_shlibpath_var_GCJ=no
16154       ;;
16155
16156     sysv4)
16157       case $host_vendor in
16158         sni)
16159           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160           hardcode_direct_GCJ=yes # is this really true???
16161         ;;
16162         siemens)
16163           ## LD is ld it makes a PLAMLIB
16164           ## CC just makes a GrossModule.
16165           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16166           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16167           hardcode_direct_GCJ=no
16168         ;;
16169         motorola)
16170           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16172         ;;
16173       esac
16174       runpath_var='LD_RUN_PATH'
16175       hardcode_shlibpath_var_GCJ=no
16176       ;;
16177
16178     sysv4.3*)
16179       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180       hardcode_shlibpath_var_GCJ=no
16181       export_dynamic_flag_spec_GCJ='-Bexport'
16182       ;;
16183
16184     sysv4*MP*)
16185       if test -d /usr/nec; then
16186         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187         hardcode_shlibpath_var_GCJ=no
16188         runpath_var=LD_RUN_PATH
16189         hardcode_runpath_var=yes
16190         ld_shlibs_GCJ=yes
16191       fi
16192       ;;
16193
16194     sysv4.2uw2*)
16195       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16196       hardcode_direct_GCJ=yes
16197       hardcode_minus_L_GCJ=no
16198       hardcode_shlibpath_var_GCJ=no
16199       hardcode_runpath_var=yes
16200       runpath_var=LD_RUN_PATH
16201       ;;
16202
16203    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16204       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16205       if test "$GCC" = yes; then
16206         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16207       else
16208         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16209       fi
16210       runpath_var='LD_RUN_PATH'
16211       hardcode_shlibpath_var_GCJ=no
16212       ;;
16213
16214     sysv5*)
16215       no_undefined_flag_GCJ=' -z text'
16216       # $CC -shared without GNU ld will not create a library from C++
16217       # object files and a static libstdc++, better avoid it by now
16218       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16219       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16220                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16221       hardcode_libdir_flag_spec_GCJ=
16222       hardcode_shlibpath_var_GCJ=no
16223       runpath_var='LD_RUN_PATH'
16224       ;;
16225
16226     uts4*)
16227       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16228       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16229       hardcode_shlibpath_var_GCJ=no
16230       ;;
16231
16232     *)
16233       ld_shlibs_GCJ=no
16234       ;;
16235     esac
16236   fi
16237
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
16239 $as_echo "$ld_shlibs_GCJ" >&6; }
16240 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16241
16242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16243 if test "$GCC" = yes; then
16244   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16245 fi
16246
16247 #
16248 # Do we need to explicitly link libc?
16249 #
16250 case "x$archive_cmds_need_lc_GCJ" in
16251 x|xyes)
16252   # Assume -lc should be added
16253   archive_cmds_need_lc_GCJ=yes
16254
16255   if test "$enable_shared" = yes && test "$GCC" = yes; then
16256     case $archive_cmds_GCJ in
16257     *'~'*)
16258       # FIXME: we may have to deal with multi-command sequences.
16259       ;;
16260     '$CC '*)
16261       # Test whether the compiler implicitly links with -lc since on some
16262       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16263       # to ld, don't add -lc before -lgcc.
16264       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16265 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16266       $rm conftest*
16267       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16268
16269       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16270   (eval $ac_compile) 2>&5
16271   ac_status=$?
16272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16273   test $ac_status = 0; } 2>conftest.err; then
16274         soname=conftest
16275         lib=conftest
16276         libobjs=conftest.$ac_objext
16277         deplibs=
16278         wl=$lt_prog_compiler_wl_GCJ
16279         compiler_flags=-v
16280         linker_flags=-v
16281         verstring=
16282         output_objdir=.
16283         libname=conftest
16284         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16285         allow_undefined_flag_GCJ=
16286         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16287   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16288   ac_status=$?
16289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16290   test $ac_status = 0; }
16291         then
16292           archive_cmds_need_lc_GCJ=no
16293         else
16294           archive_cmds_need_lc_GCJ=yes
16295         fi
16296         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16297       else
16298         cat conftest.err 1>&5
16299       fi
16300       $rm conftest*
16301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
16302 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
16303       ;;
16304     esac
16305   fi
16306   ;;
16307 esac
16308
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16310 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16311 library_names_spec=
16312 libname_spec='lib$name'
16313 soname_spec=
16314 shrext=".so"
16315 postinstall_cmds=
16316 postuninstall_cmds=
16317 finish_cmds=
16318 finish_eval=
16319 shlibpath_var=
16320 shlibpath_overrides_runpath=unknown
16321 version_type=none
16322 dynamic_linker="$host_os ld.so"
16323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16324 if test "$GCC" = yes; then
16325   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16326   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16327     # if the path contains ";" then we assume it to be the separator
16328     # otherwise default to the standard path separator (i.e. ":") - it is
16329     # assumed that no part of a normal pathname contains ";" but that should
16330     # okay in the real world where ";" in dirpaths is itself problematic.
16331     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16332   else
16333     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16334   fi
16335 else
16336   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16337 fi
16338 need_lib_prefix=unknown
16339 hardcode_into_libs=no
16340
16341 # when you set need_version to no, make sure it does not cause -set_version
16342 # flags to be left without arguments
16343 need_version=unknown
16344
16345 case $host_os in
16346 aix3*)
16347   version_type=linux
16348   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16349   shlibpath_var=LIBPATH
16350
16351   # AIX 3 has no versioning support, so we append a major version to the name.
16352   soname_spec='${libname}${release}${shared_ext}$major'
16353   ;;
16354
16355 aix4* | aix5*)
16356   version_type=linux
16357   need_lib_prefix=no
16358   need_version=no
16359   hardcode_into_libs=yes
16360   if test "$host_cpu" = ia64; then
16361     # AIX 5 supports IA64
16362     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16363     shlibpath_var=LD_LIBRARY_PATH
16364   else
16365     # With GCC up to 2.95.x, collect2 would create an import file
16366     # for dependence libraries.  The import file would start with
16367     # the line `#! .'.  This would cause the generated library to
16368     # depend on `.', always an invalid library.  This was fixed in
16369     # development snapshots of GCC prior to 3.0.
16370     case $host_os in
16371       aix4 | aix4.[01] | aix4.[01].*)
16372       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16373            echo ' yes '
16374            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16375         :
16376       else
16377         can_build_shared=no
16378       fi
16379       ;;
16380     esac
16381     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16382     # soname into executable. Probably we can add versioning support to
16383     # collect2, so additional links can be useful in future.
16384     if test "$aix_use_runtimelinking" = yes; then
16385       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16386       # instead of lib<name>.a to let people know that these are not
16387       # typical AIX shared libraries.
16388       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389     else
16390       # We preserve .a as extension for shared libraries through AIX4.2
16391       # and later when we are not doing run time linking.
16392       library_names_spec='${libname}${release}.a $libname.a'
16393       soname_spec='${libname}${release}${shared_ext}$major'
16394     fi
16395     shlibpath_var=LIBPATH
16396   fi
16397   ;;
16398
16399 amigaos*)
16400   library_names_spec='$libname.ixlibrary $libname.a'
16401   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16402   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'
16403   ;;
16404
16405 beos*)
16406   library_names_spec='${libname}${shared_ext}'
16407   dynamic_linker="$host_os ld.so"
16408   shlibpath_var=LIBRARY_PATH
16409   ;;
16410
16411 bsdi4*)
16412   version_type=linux
16413   need_version=no
16414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415   soname_spec='${libname}${release}${shared_ext}$major'
16416   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16419   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16420   # the default ld.so.conf also contains /usr/contrib/lib and
16421   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16422   # libtool to hard-code these into programs
16423   ;;
16424
16425 cygwin* | mingw* | pw32*)
16426   version_type=windows
16427   shrext=".dll"
16428   need_version=no
16429   need_lib_prefix=no
16430
16431   case $GCC,$host_os in
16432   yes,cygwin* | yes,mingw* | yes,pw32*)
16433     library_names_spec='$libname.dll.a'
16434     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16435     postinstall_cmds='base_file=`basename \${file}`~
16436       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16437       dldir=$destdir/`dirname \$dlpath`~
16438       test -d \$dldir || mkdir -p \$dldir~
16439       $install_prog $dir/$dlname \$dldir/$dlname'
16440     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16441       dlpath=$dir/\$dldll~
16442        $rm \$dlpath'
16443     shlibpath_overrides_runpath=yes
16444
16445     case $host_os in
16446     cygwin*)
16447       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16448       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16449       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16450       ;;
16451     mingw*)
16452       # MinGW DLLs use traditional 'lib' prefix
16453       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16454       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16455       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16456         # It is most probably a Windows format PATH printed by
16457         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16458         # path with ; separators, and with drive letters. We can handle the
16459         # drive letters (cygwin fileutils understands them), so leave them,
16460         # especially as we might pass files found there to a mingw objdump,
16461         # which wouldn't understand a cygwinified path. Ahh.
16462         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16463       else
16464         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16465       fi
16466       ;;
16467     pw32*)
16468       # pw32 DLLs use 'pw' prefix rather than 'lib'
16469       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16470       ;;
16471     esac
16472     ;;
16473
16474   *)
16475     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16476     ;;
16477   esac
16478   dynamic_linker='Win32 ld.exe'
16479   # FIXME: first we should search . and the directory the executable is in
16480   shlibpath_var=PATH
16481   ;;
16482
16483 darwin* | rhapsody*)
16484   dynamic_linker="$host_os dyld"
16485   version_type=darwin
16486   need_lib_prefix=no
16487   need_version=no
16488   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16489   soname_spec='${libname}${release}${major}$shared_ext'
16490   shlibpath_overrides_runpath=yes
16491   shlibpath_var=DYLD_LIBRARY_PATH
16492   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16493   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16494   if test "$GCC" = yes; then
16495     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16496   else
16497     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16498   fi
16499   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16500   ;;
16501
16502 dgux*)
16503   version_type=linux
16504   need_lib_prefix=no
16505   need_version=no
16506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16507   soname_spec='${libname}${release}${shared_ext}$major'
16508   shlibpath_var=LD_LIBRARY_PATH
16509   ;;
16510
16511 freebsd1*)
16512   dynamic_linker=no
16513   ;;
16514
16515 kfreebsd*-gnu)
16516   version_type=linux
16517   need_lib_prefix=no
16518   need_version=no
16519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16520   soname_spec='${libname}${release}${shared_ext}$major'
16521   shlibpath_var=LD_LIBRARY_PATH
16522   shlibpath_overrides_runpath=no
16523   hardcode_into_libs=yes
16524   dynamic_linker='GNU ld.so'
16525   ;;
16526
16527 freebsd*)
16528   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16529   version_type=freebsd-$objformat
16530   case $version_type in
16531     freebsd-elf*)
16532       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16533       need_version=no
16534       need_lib_prefix=no
16535       ;;
16536     freebsd-*)
16537       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16538       need_version=yes
16539       ;;
16540   esac
16541   shlibpath_var=LD_LIBRARY_PATH
16542   case $host_os in
16543   freebsd2*)
16544     shlibpath_overrides_runpath=yes
16545     ;;
16546   freebsd3.01* | freebsdelf3.01*)
16547     shlibpath_overrides_runpath=yes
16548     hardcode_into_libs=yes
16549     ;;
16550   *) # from 3.2 on
16551     shlibpath_overrides_runpath=no
16552     hardcode_into_libs=yes
16553     ;;
16554   esac
16555   ;;
16556
16557 gnu*)
16558   version_type=linux
16559   need_lib_prefix=no
16560   need_version=no
16561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16562   soname_spec='${libname}${release}${shared_ext}$major'
16563   shlibpath_var=LD_LIBRARY_PATH
16564   hardcode_into_libs=yes
16565   ;;
16566
16567 hpux9* | hpux10* | hpux11*)
16568   # Give a soname corresponding to the major version so that dld.sl refuses to
16569   # link against other versions.
16570   version_type=sunos
16571   need_lib_prefix=no
16572   need_version=no
16573   case "$host_cpu" in
16574   ia64*)
16575     shrext='.so'
16576     hardcode_into_libs=yes
16577     dynamic_linker="$host_os dld.so"
16578     shlibpath_var=LD_LIBRARY_PATH
16579     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581     soname_spec='${libname}${release}${shared_ext}$major'
16582     if test "X$HPUX_IA64_MODE" = X32; then
16583       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16584     else
16585       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16586     fi
16587     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16588     ;;
16589    hppa*64*)
16590      shrext='.sl'
16591      hardcode_into_libs=yes
16592      dynamic_linker="$host_os dld.sl"
16593      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16594      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16595      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596      soname_spec='${libname}${release}${shared_ext}$major'
16597      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16598      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16599      ;;
16600    *)
16601     shrext='.sl'
16602     dynamic_linker="$host_os dld.sl"
16603     shlibpath_var=SHLIB_PATH
16604     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606     soname_spec='${libname}${release}${shared_ext}$major'
16607     ;;
16608   esac
16609   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16610   postinstall_cmds='chmod 555 $lib'
16611   ;;
16612
16613 irix5* | irix6* | nonstopux*)
16614   case $host_os in
16615     nonstopux*) version_type=nonstopux ;;
16616     *)
16617         if test "$lt_cv_prog_gnu_ld" = yes; then
16618                 version_type=linux
16619         else
16620                 version_type=irix
16621         fi ;;
16622   esac
16623   need_lib_prefix=no
16624   need_version=no
16625   soname_spec='${libname}${release}${shared_ext}$major'
16626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16627   case $host_os in
16628   irix5* | nonstopux*)
16629     libsuff= shlibsuff=
16630     ;;
16631   *)
16632     case $LD in # libtool.m4 will add one of these switches to LD
16633     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16634       libsuff= shlibsuff= libmagic=32-bit;;
16635     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16636       libsuff=32 shlibsuff=N32 libmagic=N32;;
16637     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16638       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16639     *) libsuff= shlibsuff= libmagic=never-match;;
16640     esac
16641     ;;
16642   esac
16643   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16644   shlibpath_overrides_runpath=no
16645   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16646   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16647   hardcode_into_libs=yes
16648   ;;
16649
16650 # No shared lib support for Linux oldld, aout, or coff.
16651 linux*oldld* | linux*aout* | linux*coff*)
16652   dynamic_linker=no
16653   ;;
16654
16655 # This must be Linux ELF.
16656 linux*)
16657   version_type=linux
16658   need_lib_prefix=no
16659   need_version=no
16660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661   soname_spec='${libname}${release}${shared_ext}$major'
16662   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16663   shlibpath_var=LD_LIBRARY_PATH
16664   shlibpath_overrides_runpath=no
16665   # This implies no fast_install, which is unacceptable.
16666   # Some rework will be needed to allow for fast_install
16667   # before this can be enabled.
16668   hardcode_into_libs=yes
16669
16670   # Append ld.so.conf contents to the search path
16671   if test -f /etc/ld.so.conf; then
16672     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16673     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16674   fi
16675
16676   # We used to test for /lib/ld.so.1 and disable shared libraries on
16677   # powerpc, because MkLinux only supported shared libraries with the
16678   # GNU dynamic linker.  Since this was broken with cross compilers,
16679   # most powerpc-linux boxes support dynamic linking these days and
16680   # people can always --disable-shared, the test was removed, and we
16681   # assume the GNU/Linux dynamic linker is in use.
16682   dynamic_linker='GNU/Linux ld.so'
16683   ;;
16684
16685 knetbsd*-gnu)
16686   version_type=linux
16687   need_lib_prefix=no
16688   need_version=no
16689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16690   soname_spec='${libname}${release}${shared_ext}$major'
16691   shlibpath_var=LD_LIBRARY_PATH
16692   shlibpath_overrides_runpath=no
16693   hardcode_into_libs=yes
16694   dynamic_linker='GNU ld.so'
16695   ;;
16696
16697 netbsd*)
16698   version_type=sunos
16699   need_lib_prefix=no
16700   need_version=no
16701   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16703     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16704     dynamic_linker='NetBSD (a.out) ld.so'
16705   else
16706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16707     soname_spec='${libname}${release}${shared_ext}$major'
16708     dynamic_linker='NetBSD ld.elf_so'
16709   fi
16710   shlibpath_var=LD_LIBRARY_PATH
16711   shlibpath_overrides_runpath=yes
16712   hardcode_into_libs=yes
16713   ;;
16714
16715 newsos6)
16716   version_type=linux
16717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718   shlibpath_var=LD_LIBRARY_PATH
16719   shlibpath_overrides_runpath=yes
16720   ;;
16721
16722 nto-qnx*)
16723   version_type=linux
16724   need_lib_prefix=no
16725   need_version=no
16726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727   soname_spec='${libname}${release}${shared_ext}$major'
16728   shlibpath_var=LD_LIBRARY_PATH
16729   shlibpath_overrides_runpath=yes
16730   ;;
16731
16732 openbsd*)
16733   version_type=sunos
16734   need_lib_prefix=no
16735   need_version=yes
16736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16737   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16738   shlibpath_var=LD_LIBRARY_PATH
16739   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16740     case $host_os in
16741       openbsd2.[89] | openbsd2.[89].*)
16742         shlibpath_overrides_runpath=no
16743         ;;
16744       *)
16745         shlibpath_overrides_runpath=yes
16746         ;;
16747       esac
16748   else
16749     shlibpath_overrides_runpath=yes
16750   fi
16751   ;;
16752
16753 os2*)
16754   libname_spec='$name'
16755   shrext=".dll"
16756   need_lib_prefix=no
16757   library_names_spec='$libname${shared_ext} $libname.a'
16758   dynamic_linker='OS/2 ld.exe'
16759   shlibpath_var=LIBPATH
16760   ;;
16761
16762 osf3* | osf4* | osf5*)
16763   version_type=osf
16764   need_lib_prefix=no
16765   need_version=no
16766   soname_spec='${libname}${release}${shared_ext}$major'
16767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768   shlibpath_var=LD_LIBRARY_PATH
16769   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16770   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16771   ;;
16772
16773 sco3.2v5*)
16774   version_type=osf
16775   soname_spec='${libname}${release}${shared_ext}$major'
16776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777   shlibpath_var=LD_LIBRARY_PATH
16778   ;;
16779
16780 solaris*)
16781   version_type=linux
16782   need_lib_prefix=no
16783   need_version=no
16784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785   soname_spec='${libname}${release}${shared_ext}$major'
16786   shlibpath_var=LD_LIBRARY_PATH
16787   shlibpath_overrides_runpath=yes
16788   hardcode_into_libs=yes
16789   # ldd complains unless libraries are executable
16790   postinstall_cmds='chmod +x $lib'
16791   ;;
16792
16793 sunos4*)
16794   version_type=sunos
16795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16796   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16797   shlibpath_var=LD_LIBRARY_PATH
16798   shlibpath_overrides_runpath=yes
16799   if test "$with_gnu_ld" = yes; then
16800     need_lib_prefix=no
16801   fi
16802   need_version=yes
16803   ;;
16804
16805 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16806   version_type=linux
16807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808   soname_spec='${libname}${release}${shared_ext}$major'
16809   shlibpath_var=LD_LIBRARY_PATH
16810   case $host_vendor in
16811     sni)
16812       shlibpath_overrides_runpath=no
16813       need_lib_prefix=no
16814       export_dynamic_flag_spec='${wl}-Blargedynsym'
16815       runpath_var=LD_RUN_PATH
16816       ;;
16817     siemens)
16818       need_lib_prefix=no
16819       ;;
16820     motorola)
16821       need_lib_prefix=no
16822       need_version=no
16823       shlibpath_overrides_runpath=no
16824       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16825       ;;
16826   esac
16827   ;;
16828
16829 sysv4*MP*)
16830   if test -d /usr/nec ;then
16831     version_type=linux
16832     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16833     soname_spec='$libname${shared_ext}.$major'
16834     shlibpath_var=LD_LIBRARY_PATH
16835   fi
16836   ;;
16837
16838 uts4*)
16839   version_type=linux
16840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841   soname_spec='${libname}${release}${shared_ext}$major'
16842   shlibpath_var=LD_LIBRARY_PATH
16843   ;;
16844
16845 *)
16846   dynamic_linker=no
16847   ;;
16848 esac
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16850 $as_echo "$dynamic_linker" >&6; }
16851 test "$dynamic_linker" = no && can_build_shared=no
16852
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16854 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16855 hardcode_action_GCJ=
16856 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16857    test -n "$runpath_var GCJ" || \
16858    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16859
16860   # We can hardcode non-existant directories.
16861   if test "$hardcode_direct_GCJ" != no &&
16862      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16863      # have to relink, otherwise we might link with an installed library
16864      # when we should be linking with a yet-to-be-installed one
16865      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16866      test "$hardcode_minus_L_GCJ" != no; then
16867     # Linking always hardcodes the temporary library directory.
16868     hardcode_action_GCJ=relink
16869   else
16870     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16871     hardcode_action_GCJ=immediate
16872   fi
16873 else
16874   # We cannot hardcode anything, or else we can only hardcode existing
16875   # directories.
16876   hardcode_action_GCJ=unsupported
16877 fi
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
16879 $as_echo "$hardcode_action_GCJ" >&6; }
16880
16881 if test "$hardcode_action_GCJ" = relink; then
16882   # Fast installation is not supported
16883   enable_fast_install=no
16884 elif test "$shlibpath_overrides_runpath" = yes ||
16885      test "$enable_shared" = no; then
16886   # Fast installation is not necessary
16887   enable_fast_install=needless
16888 fi
16889
16890 striplib=
16891 old_striplib=
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16893 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16894 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16895   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16896   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16898 $as_echo "yes" >&6; }
16899 else
16900 # FIXME - insert some real tests, host_os isn't really good enough
16901   case $host_os in
16902    darwin*)
16903        if test -n "$STRIP" ; then
16904          striplib="$STRIP -x"
16905          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16906 $as_echo "yes" >&6; }
16907        else
16908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16909 $as_echo "no" >&6; }
16910 fi
16911        ;;
16912    *)
16913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914 $as_echo "no" >&6; }
16915     ;;
16916   esac
16917 fi
16918
16919 if test "x$enable_dlopen" != xyes; then
16920   enable_dlopen=unknown
16921   enable_dlopen_self=unknown
16922   enable_dlopen_self_static=unknown
16923 else
16924   lt_cv_dlopen=no
16925   lt_cv_dlopen_libs=
16926
16927   case $host_os in
16928   beos*)
16929     lt_cv_dlopen="load_add_on"
16930     lt_cv_dlopen_libs=
16931     lt_cv_dlopen_self=yes
16932     ;;
16933
16934   mingw* | pw32*)
16935     lt_cv_dlopen="LoadLibrary"
16936     lt_cv_dlopen_libs=
16937    ;;
16938
16939   cygwin*)
16940     lt_cv_dlopen="dlopen"
16941     lt_cv_dlopen_libs=
16942    ;;
16943
16944   darwin*)
16945   # if libdl is installed we need to link against it
16946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16947 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16949   $as_echo_n "(cached) " >&6
16950 else
16951   ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-ldl  $LIBS"
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h.  */
16955
16956 /* Override any GCC internal prototype to avoid an error.
16957    Use char because int might match the return type of a GCC
16958    builtin and then its argument prototype would still apply.  */
16959 #ifdef __cplusplus
16960 extern "C"
16961 #endif
16962 char dlopen ();
16963 int
16964 main ()
16965 {
16966 return dlopen ();
16967   ;
16968   return 0;
16969 }
16970 _ACEOF
16971 if ac_fn_c_try_link "$LINENO"; then :
16972   ac_cv_lib_dl_dlopen=yes
16973 else
16974   ac_cv_lib_dl_dlopen=no
16975 fi
16976 rm -f core conftest.err conftest.$ac_objext \
16977     conftest$ac_exeext conftest.$ac_ext
16978 LIBS=$ac_check_lib_save_LIBS
16979 fi
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16981 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16982 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16983   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16984 else
16985
16986     lt_cv_dlopen="dyld"
16987     lt_cv_dlopen_libs=
16988     lt_cv_dlopen_self=yes
16989
16990 fi
16991
16992    ;;
16993
16994   *)
16995     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16996 if test "x$ac_cv_func_shl_load" = x""yes; then :
16997   lt_cv_dlopen="shl_load"
16998 else
16999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17000 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17001 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17002   $as_echo_n "(cached) " >&6
17003 else
17004   ac_check_lib_save_LIBS=$LIBS
17005 LIBS="-ldld  $LIBS"
17006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007 /* end confdefs.h.  */
17008
17009 /* Override any GCC internal prototype to avoid an error.
17010    Use char because int might match the return type of a GCC
17011    builtin and then its argument prototype would still apply.  */
17012 #ifdef __cplusplus
17013 extern "C"
17014 #endif
17015 char shl_load ();
17016 int
17017 main ()
17018 {
17019 return shl_load ();
17020   ;
17021   return 0;
17022 }
17023 _ACEOF
17024 if ac_fn_c_try_link "$LINENO"; then :
17025   ac_cv_lib_dld_shl_load=yes
17026 else
17027   ac_cv_lib_dld_shl_load=no
17028 fi
17029 rm -f core conftest.err conftest.$ac_objext \
17030     conftest$ac_exeext conftest.$ac_ext
17031 LIBS=$ac_check_lib_save_LIBS
17032 fi
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17034 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17035 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17036   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17037 else
17038   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17039 if test "x$ac_cv_func_dlopen" = x""yes; then :
17040   lt_cv_dlopen="dlopen"
17041 else
17042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17043 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17045   $as_echo_n "(cached) " >&6
17046 else
17047   ac_check_lib_save_LIBS=$LIBS
17048 LIBS="-ldl  $LIBS"
17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050 /* end confdefs.h.  */
17051
17052 /* Override any GCC internal prototype to avoid an error.
17053    Use char because int might match the return type of a GCC
17054    builtin and then its argument prototype would still apply.  */
17055 #ifdef __cplusplus
17056 extern "C"
17057 #endif
17058 char dlopen ();
17059 int
17060 main ()
17061 {
17062 return dlopen ();
17063   ;
17064   return 0;
17065 }
17066 _ACEOF
17067 if ac_fn_c_try_link "$LINENO"; then :
17068   ac_cv_lib_dl_dlopen=yes
17069 else
17070   ac_cv_lib_dl_dlopen=no
17071 fi
17072 rm -f core conftest.err conftest.$ac_objext \
17073     conftest$ac_exeext conftest.$ac_ext
17074 LIBS=$ac_check_lib_save_LIBS
17075 fi
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17077 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17078 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17079   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17080 else
17081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17082 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17083 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17084   $as_echo_n "(cached) " >&6
17085 else
17086   ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lsvld  $LIBS"
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h.  */
17090
17091 /* Override any GCC internal prototype to avoid an error.
17092    Use char because int might match the return type of a GCC
17093    builtin and then its argument prototype would still apply.  */
17094 #ifdef __cplusplus
17095 extern "C"
17096 #endif
17097 char dlopen ();
17098 int
17099 main ()
17100 {
17101 return dlopen ();
17102   ;
17103   return 0;
17104 }
17105 _ACEOF
17106 if ac_fn_c_try_link "$LINENO"; then :
17107   ac_cv_lib_svld_dlopen=yes
17108 else
17109   ac_cv_lib_svld_dlopen=no
17110 fi
17111 rm -f core conftest.err conftest.$ac_objext \
17112     conftest$ac_exeext conftest.$ac_ext
17113 LIBS=$ac_check_lib_save_LIBS
17114 fi
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17116 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17117 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17118   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17119 else
17120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17121 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17122 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17123   $as_echo_n "(cached) " >&6
17124 else
17125   ac_check_lib_save_LIBS=$LIBS
17126 LIBS="-ldld  $LIBS"
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h.  */
17129
17130 /* Override any GCC internal prototype to avoid an error.
17131    Use char because int might match the return type of a GCC
17132    builtin and then its argument prototype would still apply.  */
17133 #ifdef __cplusplus
17134 extern "C"
17135 #endif
17136 char dld_link ();
17137 int
17138 main ()
17139 {
17140 return dld_link ();
17141   ;
17142   return 0;
17143 }
17144 _ACEOF
17145 if ac_fn_c_try_link "$LINENO"; then :
17146   ac_cv_lib_dld_dld_link=yes
17147 else
17148   ac_cv_lib_dld_dld_link=no
17149 fi
17150 rm -f core conftest.err conftest.$ac_objext \
17151     conftest$ac_exeext conftest.$ac_ext
17152 LIBS=$ac_check_lib_save_LIBS
17153 fi
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17155 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17156 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17157   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17158 fi
17159
17160
17161 fi
17162
17163
17164 fi
17165
17166
17167 fi
17168
17169
17170 fi
17171
17172
17173 fi
17174
17175     ;;
17176   esac
17177
17178   if test "x$lt_cv_dlopen" != xno; then
17179     enable_dlopen=yes
17180   else
17181     enable_dlopen=no
17182   fi
17183
17184   case $lt_cv_dlopen in
17185   dlopen)
17186     save_CPPFLAGS="$CPPFLAGS"
17187     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17188
17189     save_LDFLAGS="$LDFLAGS"
17190     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17191
17192     save_LIBS="$LIBS"
17193     LIBS="$lt_cv_dlopen_libs $LIBS"
17194
17195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17196 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17197 if test "${lt_cv_dlopen_self+set}" = set; then :
17198   $as_echo_n "(cached) " >&6
17199 else
17200           if test "$cross_compiling" = yes; then :
17201   lt_cv_dlopen_self=cross
17202 else
17203   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17204   lt_status=$lt_dlunknown
17205   cat > conftest.$ac_ext <<EOF
17206 #line 17206 "configure"
17207 #include "confdefs.h"
17208
17209 #if HAVE_DLFCN_H
17210 #include <dlfcn.h>
17211 #endif
17212
17213 #include <stdio.h>
17214
17215 #ifdef RTLD_GLOBAL
17216 #  define LT_DLGLOBAL           RTLD_GLOBAL
17217 #else
17218 #  ifdef DL_GLOBAL
17219 #    define LT_DLGLOBAL         DL_GLOBAL
17220 #  else
17221 #    define LT_DLGLOBAL         0
17222 #  endif
17223 #endif
17224
17225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17226    find out it does not work in some platform. */
17227 #ifndef LT_DLLAZY_OR_NOW
17228 #  ifdef RTLD_LAZY
17229 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17230 #  else
17231 #    ifdef DL_LAZY
17232 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17233 #    else
17234 #      ifdef RTLD_NOW
17235 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17236 #      else
17237 #        ifdef DL_NOW
17238 #          define LT_DLLAZY_OR_NOW      DL_NOW
17239 #        else
17240 #          define LT_DLLAZY_OR_NOW      0
17241 #        endif
17242 #      endif
17243 #    endif
17244 #  endif
17245 #endif
17246
17247 #ifdef __cplusplus
17248 extern "C" void exit (int);
17249 #endif
17250
17251 void fnord() { int i=42;}
17252 int main ()
17253 {
17254   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17255   int status = $lt_dlunknown;
17256
17257   if (self)
17258     {
17259       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17260       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17261       /* dlclose (self); */
17262     }
17263
17264     exit (status);
17265 }
17266 EOF
17267   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17268   (eval $ac_link) 2>&5
17269   ac_status=$?
17270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17271   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17272     (./conftest; exit; ) 2>/dev/null
17273     lt_status=$?
17274     case x$lt_status in
17275       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17276       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17277       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17278     esac
17279   else :
17280     # compilation failed
17281     lt_cv_dlopen_self=no
17282   fi
17283 fi
17284 rm -fr conftest*
17285
17286
17287 fi
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17289 $as_echo "$lt_cv_dlopen_self" >&6; }
17290
17291     if test "x$lt_cv_dlopen_self" = xyes; then
17292       LDFLAGS="$LDFLAGS $link_static_flag"
17293       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17294 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17295 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17296   $as_echo_n "(cached) " >&6
17297 else
17298           if test "$cross_compiling" = yes; then :
17299   lt_cv_dlopen_self_static=cross
17300 else
17301   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17302   lt_status=$lt_dlunknown
17303   cat > conftest.$ac_ext <<EOF
17304 #line 17304 "configure"
17305 #include "confdefs.h"
17306
17307 #if HAVE_DLFCN_H
17308 #include <dlfcn.h>
17309 #endif
17310
17311 #include <stdio.h>
17312
17313 #ifdef RTLD_GLOBAL
17314 #  define LT_DLGLOBAL           RTLD_GLOBAL
17315 #else
17316 #  ifdef DL_GLOBAL
17317 #    define LT_DLGLOBAL         DL_GLOBAL
17318 #  else
17319 #    define LT_DLGLOBAL         0
17320 #  endif
17321 #endif
17322
17323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17324    find out it does not work in some platform. */
17325 #ifndef LT_DLLAZY_OR_NOW
17326 #  ifdef RTLD_LAZY
17327 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17328 #  else
17329 #    ifdef DL_LAZY
17330 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17331 #    else
17332 #      ifdef RTLD_NOW
17333 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17334 #      else
17335 #        ifdef DL_NOW
17336 #          define LT_DLLAZY_OR_NOW      DL_NOW
17337 #        else
17338 #          define LT_DLLAZY_OR_NOW      0
17339 #        endif
17340 #      endif
17341 #    endif
17342 #  endif
17343 #endif
17344
17345 #ifdef __cplusplus
17346 extern "C" void exit (int);
17347 #endif
17348
17349 void fnord() { int i=42;}
17350 int main ()
17351 {
17352   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17353   int status = $lt_dlunknown;
17354
17355   if (self)
17356     {
17357       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17358       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17359       /* dlclose (self); */
17360     }
17361
17362     exit (status);
17363 }
17364 EOF
17365   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17366   (eval $ac_link) 2>&5
17367   ac_status=$?
17368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17369   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17370     (./conftest; exit; ) 2>/dev/null
17371     lt_status=$?
17372     case x$lt_status in
17373       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17374       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17375       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17376     esac
17377   else :
17378     # compilation failed
17379     lt_cv_dlopen_self_static=no
17380   fi
17381 fi
17382 rm -fr conftest*
17383
17384
17385 fi
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17387 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17388     fi
17389
17390     CPPFLAGS="$save_CPPFLAGS"
17391     LDFLAGS="$save_LDFLAGS"
17392     LIBS="$save_LIBS"
17393     ;;
17394   esac
17395
17396   case $lt_cv_dlopen_self in
17397   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17398   *) enable_dlopen_self=unknown ;;
17399   esac
17400
17401   case $lt_cv_dlopen_self_static in
17402   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17403   *) enable_dlopen_self_static=unknown ;;
17404   esac
17405 fi
17406
17407
17408 # The else clause should only fire when bootstrapping the
17409 # libtool distribution, otherwise you forgot to ship ltmain.sh
17410 # with your package, and you will get complaints that there are
17411 # no rules to generate ltmain.sh.
17412 if test -f "$ltmain"; then
17413   # See if we are running on zsh, and set the options which allow our commands through
17414   # without removal of \ escapes.
17415   if test -n "${ZSH_VERSION+set}" ; then
17416     setopt NO_GLOB_SUBST
17417   fi
17418   # Now quote all the things that may contain metacharacters while being
17419   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17420   # variables and quote the copies for generation of the libtool script.
17421   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17422     SED SHELL STRIP \
17423     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17424     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17425     deplibs_check_method reload_flag reload_cmds need_locks \
17426     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17427     lt_cv_sys_global_symbol_to_c_name_address \
17428     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17429     old_postinstall_cmds old_postuninstall_cmds \
17430     compiler_GCJ \
17431     CC_GCJ \
17432     LD_GCJ \
17433     lt_prog_compiler_wl_GCJ \
17434     lt_prog_compiler_pic_GCJ \
17435     lt_prog_compiler_static_GCJ \
17436     lt_prog_compiler_no_builtin_flag_GCJ \
17437     export_dynamic_flag_spec_GCJ \
17438     thread_safe_flag_spec_GCJ \
17439     whole_archive_flag_spec_GCJ \
17440     enable_shared_with_static_runtimes_GCJ \
17441     old_archive_cmds_GCJ \
17442     old_archive_from_new_cmds_GCJ \
17443     predep_objects_GCJ \
17444     postdep_objects_GCJ \
17445     predeps_GCJ \
17446     postdeps_GCJ \
17447     compiler_lib_search_path_GCJ \
17448     archive_cmds_GCJ \
17449     archive_expsym_cmds_GCJ \
17450     postinstall_cmds_GCJ \
17451     postuninstall_cmds_GCJ \
17452     old_archive_from_expsyms_cmds_GCJ \
17453     allow_undefined_flag_GCJ \
17454     no_undefined_flag_GCJ \
17455     export_symbols_cmds_GCJ \
17456     hardcode_libdir_flag_spec_GCJ \
17457     hardcode_libdir_flag_spec_ld_GCJ \
17458     hardcode_libdir_separator_GCJ \
17459     hardcode_automatic_GCJ \
17460     module_cmds_GCJ \
17461     module_expsym_cmds_GCJ \
17462     lt_cv_prog_compiler_c_o_GCJ \
17463     exclude_expsyms_GCJ \
17464     include_expsyms_GCJ; do
17465
17466     case $var in
17467     old_archive_cmds_GCJ | \
17468     old_archive_from_new_cmds_GCJ | \
17469     archive_cmds_GCJ | \
17470     archive_expsym_cmds_GCJ | \
17471     module_cmds_GCJ | \
17472     module_expsym_cmds_GCJ | \
17473     old_archive_from_expsyms_cmds_GCJ | \
17474     export_symbols_cmds_GCJ | \
17475     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17476     postinstall_cmds | postuninstall_cmds | \
17477     old_postinstall_cmds | old_postuninstall_cmds | \
17478     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17479       # Double-quote double-evaled strings.
17480       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17481       ;;
17482     *)
17483       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17484       ;;
17485     esac
17486   done
17487
17488   case $lt_echo in
17489   *'\$0 --fallback-echo"')
17490     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17491     ;;
17492   esac
17493
17494 cfgfile="$ofile"
17495
17496   cat <<__EOF__ >> "$cfgfile"
17497 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17498
17499 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17500
17501 # Shell to use when invoking shell scripts.
17502 SHELL=$lt_SHELL
17503
17504 # Whether or not to build shared libraries.
17505 build_libtool_libs=$enable_shared
17506
17507 # Whether or not to build static libraries.
17508 build_old_libs=$enable_static
17509
17510 # Whether or not to add -lc for building shared libraries.
17511 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17512
17513 # Whether or not to disallow shared libs when runtime libs are static
17514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17515
17516 # Whether or not to optimize for fast installation.
17517 fast_install=$enable_fast_install
17518
17519 # The host system.
17520 host_alias=$host_alias
17521 host=$host
17522
17523 # An echo program that does not interpret backslashes.
17524 echo=$lt_echo
17525
17526 # The archiver.
17527 AR=$lt_AR
17528 AR_FLAGS=$lt_AR_FLAGS
17529
17530 # A C compiler.
17531 LTCC=$lt_LTCC
17532
17533 # A language-specific compiler.
17534 CC=$lt_compiler_GCJ
17535
17536 # Is the compiler the GNU C compiler?
17537 with_gcc=$GCC_GCJ
17538
17539 # An ERE matcher.
17540 EGREP=$lt_EGREP
17541
17542 # The linker used to build libraries.
17543 LD=$lt_LD_GCJ
17544
17545 # Whether we need hard or soft links.
17546 LN_S=$lt_LN_S
17547
17548 # A BSD-compatible nm program.
17549 NM=$lt_NM
17550
17551 # A symbol stripping program
17552 STRIP=$lt_STRIP
17553
17554 # Used to examine libraries when file_magic_cmd begins "file"
17555 MAGIC_CMD=$MAGIC_CMD
17556
17557 # Used on cygwin: DLL creation program.
17558 DLLTOOL="$DLLTOOL"
17559
17560 # Used on cygwin: object dumper.
17561 OBJDUMP="$OBJDUMP"
17562
17563 # Used on cygwin: assembler.
17564 AS="$AS"
17565
17566 # The name of the directory that contains temporary libtool files.
17567 objdir=$objdir
17568
17569 # How to create reloadable object files.
17570 reload_flag=$lt_reload_flag
17571 reload_cmds=$lt_reload_cmds
17572
17573 # How to pass a linker flag through the compiler.
17574 wl=$lt_lt_prog_compiler_wl_GCJ
17575
17576 # Object file suffix (normally "o").
17577 objext="$ac_objext"
17578
17579 # Old archive suffix (normally "a").
17580 libext="$libext"
17581
17582 # Shared library suffix (normally ".so").
17583 shrext='$shrext'
17584
17585 # Executable file suffix (normally "").
17586 exeext="$exeext"
17587
17588 # Additional compiler flags for building library objects.
17589 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17590 pic_mode=$pic_mode
17591
17592 # What is the maximum length of a command?
17593 max_cmd_len=$lt_cv_sys_max_cmd_len
17594
17595 # Does compiler simultaneously support -c and -o options?
17596 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17597
17598 # Must we lock files when doing compilation ?
17599 need_locks=$lt_need_locks
17600
17601 # Do we need the lib prefix for modules?
17602 need_lib_prefix=$need_lib_prefix
17603
17604 # Do we need a version for libraries?
17605 need_version=$need_version
17606
17607 # Whether dlopen is supported.
17608 dlopen_support=$enable_dlopen
17609
17610 # Whether dlopen of programs is supported.
17611 dlopen_self=$enable_dlopen_self
17612
17613 # Whether dlopen of statically linked programs is supported.
17614 dlopen_self_static=$enable_dlopen_self_static
17615
17616 # Compiler flag to prevent dynamic linking.
17617 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17618
17619 # Compiler flag to turn off builtin functions.
17620 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17621
17622 # Compiler flag to allow reflexive dlopens.
17623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17624
17625 # Compiler flag to generate shared objects directly from archives.
17626 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17627
17628 # Compiler flag to generate thread-safe objects.
17629 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17630
17631 # Library versioning type.
17632 version_type=$version_type
17633
17634 # Format of library name prefix.
17635 libname_spec=$lt_libname_spec
17636
17637 # List of archive names.  First name is the real one, the rest are links.
17638 # The last name is the one that the linker finds with -lNAME.
17639 library_names_spec=$lt_library_names_spec
17640
17641 # The coded name of the library, if different from the real name.
17642 soname_spec=$lt_soname_spec
17643
17644 # Commands used to build and install an old-style archive.
17645 RANLIB=$lt_RANLIB
17646 old_archive_cmds=$lt_old_archive_cmds_GCJ
17647 old_postinstall_cmds=$lt_old_postinstall_cmds
17648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17649
17650 # Create an old-style archive from a shared archive.
17651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17652
17653 # Create a temporary old-style archive to link instead of a shared archive.
17654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17655
17656 # Commands used to build and install a shared archive.
17657 archive_cmds=$lt_archive_cmds_GCJ
17658 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17659 postinstall_cmds=$lt_postinstall_cmds
17660 postuninstall_cmds=$lt_postuninstall_cmds
17661
17662 # Commands used to build a loadable module (assumed same as above if empty)
17663 module_cmds=$lt_module_cmds_GCJ
17664 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17665
17666 # Commands to strip libraries.
17667 old_striplib=$lt_old_striplib
17668 striplib=$lt_striplib
17669
17670 # Dependencies to place before the objects being linked to create a
17671 # shared library.
17672 predep_objects=$lt_predep_objects_GCJ
17673
17674 # Dependencies to place after the objects being linked to create a
17675 # shared library.
17676 postdep_objects=$lt_postdep_objects_GCJ
17677
17678 # Dependencies to place before the objects being linked to create a
17679 # shared library.
17680 predeps=$lt_predeps_GCJ
17681
17682 # Dependencies to place after the objects being linked to create a
17683 # shared library.
17684 postdeps=$lt_postdeps_GCJ
17685
17686 # The library search path used internally by the compiler when linking
17687 # a shared library.
17688 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17689
17690 # Method to check whether dependent libraries are shared objects.
17691 deplibs_check_method=$lt_deplibs_check_method
17692
17693 # Command to use when deplibs_check_method == file_magic.
17694 file_magic_cmd=$lt_file_magic_cmd
17695
17696 # Flag that allows shared libraries with undefined symbols to be built.
17697 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17698
17699 # Flag that forces no undefined symbols.
17700 no_undefined_flag=$lt_no_undefined_flag_GCJ
17701
17702 # Commands used to finish a libtool library installation in a directory.
17703 finish_cmds=$lt_finish_cmds
17704
17705 # Same as above, but a single script fragment to be evaled but not shown.
17706 finish_eval=$lt_finish_eval
17707
17708 # Take the output of nm and produce a listing of raw symbols and C names.
17709 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17710
17711 # Transform the output of nm in a proper C declaration
17712 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17713
17714 # Transform the output of nm in a C name address pair
17715 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17716
17717 # This is the shared library runtime path variable.
17718 runpath_var=$runpath_var
17719
17720 # This is the shared library path variable.
17721 shlibpath_var=$shlibpath_var
17722
17723 # Is shlibpath searched before the hard-coded library search path?
17724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17725
17726 # How to hardcode a shared library path into an executable.
17727 hardcode_action=$hardcode_action_GCJ
17728
17729 # Whether we should hardcode library paths into libraries.
17730 hardcode_into_libs=$hardcode_into_libs
17731
17732 # Flag to hardcode \$libdir into a binary during linking.
17733 # This must work even if \$libdir does not exist.
17734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17735
17736 # If ld is used when linking, flag to hardcode \$libdir into
17737 # a binary during linking. This must work even if \$libdir does
17738 # not exist.
17739 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17740
17741 # Whether we need a single -rpath flag with a separated argument.
17742 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17743
17744 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17745 # resulting binary.
17746 hardcode_direct=$hardcode_direct_GCJ
17747
17748 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17749 # resulting binary.
17750 hardcode_minus_L=$hardcode_minus_L_GCJ
17751
17752 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17753 # the resulting binary.
17754 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17755
17756 # Set to yes if building a shared library automatically hardcodes DIR into the library
17757 # and all subsequent libraries and executables linked against it.
17758 hardcode_automatic=$hardcode_automatic_GCJ
17759
17760 # Variables whose values should be saved in libtool wrapper scripts and
17761 # restored at relink time.
17762 variables_saved_for_relink="$variables_saved_for_relink"
17763
17764 # Whether libtool must link a program against all its dependency libraries.
17765 link_all_deplibs=$link_all_deplibs_GCJ
17766
17767 # Compile-time system search path for libraries
17768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17769
17770 # Run-time system search path for libraries
17771 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17772
17773 # Fix the shell variable \$srcfile for the compiler.
17774 fix_srcfile_path="$fix_srcfile_path_GCJ"
17775
17776 # Set to yes if exported symbols are required.
17777 always_export_symbols=$always_export_symbols_GCJ
17778
17779 # The commands to list exported symbols.
17780 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17781
17782 # The commands to extract the exported symbol list from a shared archive.
17783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17784
17785 # Symbols that should not be listed in the preloaded symbols.
17786 exclude_expsyms=$lt_exclude_expsyms_GCJ
17787
17788 # Symbols that must always be exported.
17789 include_expsyms=$lt_include_expsyms_GCJ
17790
17791 # ### END LIBTOOL TAG CONFIG: $tagname
17792
17793 __EOF__
17794
17795
17796 else
17797   # If there is no Makefile yet, we rely on a make rule to execute
17798   # `config.status --recheck' to rerun these tests and create the
17799   # libtool script then.
17800   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17801   if test -f "$ltmain_in"; then
17802     test -f Makefile && make "$ltmain"
17803   fi
17804 fi
17805
17806
17807 ac_ext=c
17808 ac_cpp='$CPP $CPPFLAGS'
17809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17812
17813 CC="$lt_save_CC"
17814
17815         else
17816           tagname=""
17817         fi
17818         ;;
17819
17820       RC)
17821
17822
17823 # Source file extension for RC test sources.
17824 ac_ext=rc
17825
17826 # Object file extension for compiled RC test sources.
17827 objext=o
17828 objext_RC=$objext
17829
17830 # Code to be used in simple compile tests
17831 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17832
17833 # Code to be used in simple link tests
17834 lt_simple_link_test_code="$lt_simple_compile_test_code"
17835
17836 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17837
17838 # If no C compiler was specified, use CC.
17839 LTCC=${LTCC-"$CC"}
17840
17841 # Allow CC to be a program name with arguments.
17842 compiler=$CC
17843
17844
17845 # Allow CC to be a program name with arguments.
17846 lt_save_CC="$CC"
17847 CC=${RC-"windres"}
17848 compiler=$CC
17849 compiler_RC=$CC
17850 lt_cv_prog_compiler_c_o_RC=yes
17851
17852 # The else clause should only fire when bootstrapping the
17853 # libtool distribution, otherwise you forgot to ship ltmain.sh
17854 # with your package, and you will get complaints that there are
17855 # no rules to generate ltmain.sh.
17856 if test -f "$ltmain"; then
17857   # See if we are running on zsh, and set the options which allow our commands through
17858   # without removal of \ escapes.
17859   if test -n "${ZSH_VERSION+set}" ; then
17860     setopt NO_GLOB_SUBST
17861   fi
17862   # Now quote all the things that may contain metacharacters while being
17863   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17864   # variables and quote the copies for generation of the libtool script.
17865   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17866     SED SHELL STRIP \
17867     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17868     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17869     deplibs_check_method reload_flag reload_cmds need_locks \
17870     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17871     lt_cv_sys_global_symbol_to_c_name_address \
17872     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17873     old_postinstall_cmds old_postuninstall_cmds \
17874     compiler_RC \
17875     CC_RC \
17876     LD_RC \
17877     lt_prog_compiler_wl_RC \
17878     lt_prog_compiler_pic_RC \
17879     lt_prog_compiler_static_RC \
17880     lt_prog_compiler_no_builtin_flag_RC \
17881     export_dynamic_flag_spec_RC \
17882     thread_safe_flag_spec_RC \
17883     whole_archive_flag_spec_RC \
17884     enable_shared_with_static_runtimes_RC \
17885     old_archive_cmds_RC \
17886     old_archive_from_new_cmds_RC \
17887     predep_objects_RC \
17888     postdep_objects_RC \
17889     predeps_RC \
17890     postdeps_RC \
17891     compiler_lib_search_path_RC \
17892     archive_cmds_RC \
17893     archive_expsym_cmds_RC \
17894     postinstall_cmds_RC \
17895     postuninstall_cmds_RC \
17896     old_archive_from_expsyms_cmds_RC \
17897     allow_undefined_flag_RC \
17898     no_undefined_flag_RC \
17899     export_symbols_cmds_RC \
17900     hardcode_libdir_flag_spec_RC \
17901     hardcode_libdir_flag_spec_ld_RC \
17902     hardcode_libdir_separator_RC \
17903     hardcode_automatic_RC \
17904     module_cmds_RC \
17905     module_expsym_cmds_RC \
17906     lt_cv_prog_compiler_c_o_RC \
17907     exclude_expsyms_RC \
17908     include_expsyms_RC; do
17909
17910     case $var in
17911     old_archive_cmds_RC | \
17912     old_archive_from_new_cmds_RC | \
17913     archive_cmds_RC | \
17914     archive_expsym_cmds_RC | \
17915     module_cmds_RC | \
17916     module_expsym_cmds_RC | \
17917     old_archive_from_expsyms_cmds_RC | \
17918     export_symbols_cmds_RC | \
17919     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17920     postinstall_cmds | postuninstall_cmds | \
17921     old_postinstall_cmds | old_postuninstall_cmds | \
17922     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17923       # Double-quote double-evaled strings.
17924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17925       ;;
17926     *)
17927       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17928       ;;
17929     esac
17930   done
17931
17932   case $lt_echo in
17933   *'\$0 --fallback-echo"')
17934     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17935     ;;
17936   esac
17937
17938 cfgfile="$ofile"
17939
17940   cat <<__EOF__ >> "$cfgfile"
17941 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17942
17943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17944
17945 # Shell to use when invoking shell scripts.
17946 SHELL=$lt_SHELL
17947
17948 # Whether or not to build shared libraries.
17949 build_libtool_libs=$enable_shared
17950
17951 # Whether or not to build static libraries.
17952 build_old_libs=$enable_static
17953
17954 # Whether or not to add -lc for building shared libraries.
17955 build_libtool_need_lc=$archive_cmds_need_lc_RC
17956
17957 # Whether or not to disallow shared libs when runtime libs are static
17958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17959
17960 # Whether or not to optimize for fast installation.
17961 fast_install=$enable_fast_install
17962
17963 # The host system.
17964 host_alias=$host_alias
17965 host=$host
17966
17967 # An echo program that does not interpret backslashes.
17968 echo=$lt_echo
17969
17970 # The archiver.
17971 AR=$lt_AR
17972 AR_FLAGS=$lt_AR_FLAGS
17973
17974 # A C compiler.
17975 LTCC=$lt_LTCC
17976
17977 # A language-specific compiler.
17978 CC=$lt_compiler_RC
17979
17980 # Is the compiler the GNU C compiler?
17981 with_gcc=$GCC_RC
17982
17983 # An ERE matcher.
17984 EGREP=$lt_EGREP
17985
17986 # The linker used to build libraries.
17987 LD=$lt_LD_RC
17988
17989 # Whether we need hard or soft links.
17990 LN_S=$lt_LN_S
17991
17992 # A BSD-compatible nm program.
17993 NM=$lt_NM
17994
17995 # A symbol stripping program
17996 STRIP=$lt_STRIP
17997
17998 # Used to examine libraries when file_magic_cmd begins "file"
17999 MAGIC_CMD=$MAGIC_CMD
18000
18001 # Used on cygwin: DLL creation program.
18002 DLLTOOL="$DLLTOOL"
18003
18004 # Used on cygwin: object dumper.
18005 OBJDUMP="$OBJDUMP"
18006
18007 # Used on cygwin: assembler.
18008 AS="$AS"
18009
18010 # The name of the directory that contains temporary libtool files.
18011 objdir=$objdir
18012
18013 # How to create reloadable object files.
18014 reload_flag=$lt_reload_flag
18015 reload_cmds=$lt_reload_cmds
18016
18017 # How to pass a linker flag through the compiler.
18018 wl=$lt_lt_prog_compiler_wl_RC
18019
18020 # Object file suffix (normally "o").
18021 objext="$ac_objext"
18022
18023 # Old archive suffix (normally "a").
18024 libext="$libext"
18025
18026 # Shared library suffix (normally ".so").
18027 shrext='$shrext'
18028
18029 # Executable file suffix (normally "").
18030 exeext="$exeext"
18031
18032 # Additional compiler flags for building library objects.
18033 pic_flag=$lt_lt_prog_compiler_pic_RC
18034 pic_mode=$pic_mode
18035
18036 # What is the maximum length of a command?
18037 max_cmd_len=$lt_cv_sys_max_cmd_len
18038
18039 # Does compiler simultaneously support -c and -o options?
18040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18041
18042 # Must we lock files when doing compilation ?
18043 need_locks=$lt_need_locks
18044
18045 # Do we need the lib prefix for modules?
18046 need_lib_prefix=$need_lib_prefix
18047
18048 # Do we need a version for libraries?
18049 need_version=$need_version
18050
18051 # Whether dlopen is supported.
18052 dlopen_support=$enable_dlopen
18053
18054 # Whether dlopen of programs is supported.
18055 dlopen_self=$enable_dlopen_self
18056
18057 # Whether dlopen of statically linked programs is supported.
18058 dlopen_self_static=$enable_dlopen_self_static
18059
18060 # Compiler flag to prevent dynamic linking.
18061 link_static_flag=$lt_lt_prog_compiler_static_RC
18062
18063 # Compiler flag to turn off builtin functions.
18064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18065
18066 # Compiler flag to allow reflexive dlopens.
18067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18068
18069 # Compiler flag to generate shared objects directly from archives.
18070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18071
18072 # Compiler flag to generate thread-safe objects.
18073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18074
18075 # Library versioning type.
18076 version_type=$version_type
18077
18078 # Format of library name prefix.
18079 libname_spec=$lt_libname_spec
18080
18081 # List of archive names.  First name is the real one, the rest are links.
18082 # The last name is the one that the linker finds with -lNAME.
18083 library_names_spec=$lt_library_names_spec
18084
18085 # The coded name of the library, if different from the real name.
18086 soname_spec=$lt_soname_spec
18087
18088 # Commands used to build and install an old-style archive.
18089 RANLIB=$lt_RANLIB
18090 old_archive_cmds=$lt_old_archive_cmds_RC
18091 old_postinstall_cmds=$lt_old_postinstall_cmds
18092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18093
18094 # Create an old-style archive from a shared archive.
18095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18096
18097 # Create a temporary old-style archive to link instead of a shared archive.
18098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18099
18100 # Commands used to build and install a shared archive.
18101 archive_cmds=$lt_archive_cmds_RC
18102 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18103 postinstall_cmds=$lt_postinstall_cmds
18104 postuninstall_cmds=$lt_postuninstall_cmds
18105
18106 # Commands used to build a loadable module (assumed same as above if empty)
18107 module_cmds=$lt_module_cmds_RC
18108 module_expsym_cmds=$lt_module_expsym_cmds_RC
18109
18110 # Commands to strip libraries.
18111 old_striplib=$lt_old_striplib
18112 striplib=$lt_striplib
18113
18114 # Dependencies to place before the objects being linked to create a
18115 # shared library.
18116 predep_objects=$lt_predep_objects_RC
18117
18118 # Dependencies to place after the objects being linked to create a
18119 # shared library.
18120 postdep_objects=$lt_postdep_objects_RC
18121
18122 # Dependencies to place before the objects being linked to create a
18123 # shared library.
18124 predeps=$lt_predeps_RC
18125
18126 # Dependencies to place after the objects being linked to create a
18127 # shared library.
18128 postdeps=$lt_postdeps_RC
18129
18130 # The library search path used internally by the compiler when linking
18131 # a shared library.
18132 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18133
18134 # Method to check whether dependent libraries are shared objects.
18135 deplibs_check_method=$lt_deplibs_check_method
18136
18137 # Command to use when deplibs_check_method == file_magic.
18138 file_magic_cmd=$lt_file_magic_cmd
18139
18140 # Flag that allows shared libraries with undefined symbols to be built.
18141 allow_undefined_flag=$lt_allow_undefined_flag_RC
18142
18143 # Flag that forces no undefined symbols.
18144 no_undefined_flag=$lt_no_undefined_flag_RC
18145
18146 # Commands used to finish a libtool library installation in a directory.
18147 finish_cmds=$lt_finish_cmds
18148
18149 # Same as above, but a single script fragment to be evaled but not shown.
18150 finish_eval=$lt_finish_eval
18151
18152 # Take the output of nm and produce a listing of raw symbols and C names.
18153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18154
18155 # Transform the output of nm in a proper C declaration
18156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18157
18158 # Transform the output of nm in a C name address pair
18159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18160
18161 # This is the shared library runtime path variable.
18162 runpath_var=$runpath_var
18163
18164 # This is the shared library path variable.
18165 shlibpath_var=$shlibpath_var
18166
18167 # Is shlibpath searched before the hard-coded library search path?
18168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18169
18170 # How to hardcode a shared library path into an executable.
18171 hardcode_action=$hardcode_action_RC
18172
18173 # Whether we should hardcode library paths into libraries.
18174 hardcode_into_libs=$hardcode_into_libs
18175
18176 # Flag to hardcode \$libdir into a binary during linking.
18177 # This must work even if \$libdir does not exist.
18178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18179
18180 # If ld is used when linking, flag to hardcode \$libdir into
18181 # a binary during linking. This must work even if \$libdir does
18182 # not exist.
18183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18184
18185 # Whether we need a single -rpath flag with a separated argument.
18186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18187
18188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18189 # resulting binary.
18190 hardcode_direct=$hardcode_direct_RC
18191
18192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18193 # resulting binary.
18194 hardcode_minus_L=$hardcode_minus_L_RC
18195
18196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18197 # the resulting binary.
18198 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18199
18200 # Set to yes if building a shared library automatically hardcodes DIR into the library
18201 # and all subsequent libraries and executables linked against it.
18202 hardcode_automatic=$hardcode_automatic_RC
18203
18204 # Variables whose values should be saved in libtool wrapper scripts and
18205 # restored at relink time.
18206 variables_saved_for_relink="$variables_saved_for_relink"
18207
18208 # Whether libtool must link a program against all its dependency libraries.
18209 link_all_deplibs=$link_all_deplibs_RC
18210
18211 # Compile-time system search path for libraries
18212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18213
18214 # Run-time system search path for libraries
18215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18216
18217 # Fix the shell variable \$srcfile for the compiler.
18218 fix_srcfile_path="$fix_srcfile_path_RC"
18219
18220 # Set to yes if exported symbols are required.
18221 always_export_symbols=$always_export_symbols_RC
18222
18223 # The commands to list exported symbols.
18224 export_symbols_cmds=$lt_export_symbols_cmds_RC
18225
18226 # The commands to extract the exported symbol list from a shared archive.
18227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18228
18229 # Symbols that should not be listed in the preloaded symbols.
18230 exclude_expsyms=$lt_exclude_expsyms_RC
18231
18232 # Symbols that must always be exported.
18233 include_expsyms=$lt_include_expsyms_RC
18234
18235 # ### END LIBTOOL TAG CONFIG: $tagname
18236
18237 __EOF__
18238
18239
18240 else
18241   # If there is no Makefile yet, we rely on a make rule to execute
18242   # `config.status --recheck' to rerun these tests and create the
18243   # libtool script then.
18244   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18245   if test -f "$ltmain_in"; then
18246     test -f Makefile && make "$ltmain"
18247   fi
18248 fi
18249
18250
18251 ac_ext=c
18252 ac_cpp='$CPP $CPPFLAGS'
18253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18256
18257 CC="$lt_save_CC"
18258
18259         ;;
18260
18261       *)
18262         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18263         ;;
18264       esac
18265
18266       # Append the new tag name to the list of available tags.
18267       if test -n "$tagname" ; then
18268       available_tags="$available_tags $tagname"
18269     fi
18270     fi
18271   done
18272   IFS="$lt_save_ifs"
18273
18274   # Now substitute the updated list of available tags.
18275   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18276     mv "${ofile}T" "$ofile"
18277     chmod +x "$ofile"
18278   else
18279     rm -f "${ofile}T"
18280     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18281   fi
18282 fi
18283
18284
18285
18286 # This can be used to rebuild libtool when needed
18287 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18288
18289 # Always use our own libtool.
18290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18291
18292 # Prevent multiple expansion
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316 ac_ext=c
18317 ac_cpp='$CPP $CPPFLAGS'
18318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18321 if test -n "$ac_tool_prefix"; then
18322   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18325 $as_echo_n "checking for $ac_word... " >&6; }
18326 if test "${ac_cv_prog_CC+set}" = set; then :
18327   $as_echo_n "(cached) " >&6
18328 else
18329   if test -n "$CC"; then
18330   ac_cv_prog_CC="$CC" # Let the user override the test.
18331 else
18332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18333 for as_dir in $PATH
18334 do
18335   IFS=$as_save_IFS
18336   test -z "$as_dir" && as_dir=.
18337     for ac_exec_ext in '' $ac_executable_extensions; do
18338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18339     ac_cv_prog_CC="${ac_tool_prefix}gcc"
18340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18341     break 2
18342   fi
18343 done
18344   done
18345 IFS=$as_save_IFS
18346
18347 fi
18348 fi
18349 CC=$ac_cv_prog_CC
18350 if test -n "$CC"; then
18351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18352 $as_echo "$CC" >&6; }
18353 else
18354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18355 $as_echo "no" >&6; }
18356 fi
18357
18358
18359 fi
18360 if test -z "$ac_cv_prog_CC"; then
18361   ac_ct_CC=$CC
18362   # Extract the first word of "gcc", so it can be a program name with args.
18363 set dummy gcc; ac_word=$2
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18365 $as_echo_n "checking for $ac_word... " >&6; }
18366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
18367   $as_echo_n "(cached) " >&6
18368 else
18369   if test -n "$ac_ct_CC"; then
18370   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18371 else
18372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18373 for as_dir in $PATH
18374 do
18375   IFS=$as_save_IFS
18376   test -z "$as_dir" && as_dir=.
18377     for ac_exec_ext in '' $ac_executable_extensions; do
18378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18379     ac_cv_prog_ac_ct_CC="gcc"
18380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18381     break 2
18382   fi
18383 done
18384   done
18385 IFS=$as_save_IFS
18386
18387 fi
18388 fi
18389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18390 if test -n "$ac_ct_CC"; then
18391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18392 $as_echo "$ac_ct_CC" >&6; }
18393 else
18394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18395 $as_echo "no" >&6; }
18396 fi
18397
18398   if test "x$ac_ct_CC" = x; then
18399     CC=""
18400   else
18401     case $cross_compiling:$ac_tool_warned in
18402 yes:)
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18405 ac_tool_warned=yes ;;
18406 esac
18407     CC=$ac_ct_CC
18408   fi
18409 else
18410   CC="$ac_cv_prog_CC"
18411 fi
18412
18413 if test -z "$CC"; then
18414           if test -n "$ac_tool_prefix"; then
18415     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18416 set dummy ${ac_tool_prefix}cc; ac_word=$2
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18418 $as_echo_n "checking for $ac_word... " >&6; }
18419 if test "${ac_cv_prog_CC+set}" = set; then :
18420   $as_echo_n "(cached) " >&6
18421 else
18422   if test -n "$CC"; then
18423   ac_cv_prog_CC="$CC" # Let the user override the test.
18424 else
18425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18426 for as_dir in $PATH
18427 do
18428   IFS=$as_save_IFS
18429   test -z "$as_dir" && as_dir=.
18430     for ac_exec_ext in '' $ac_executable_extensions; do
18431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18432     ac_cv_prog_CC="${ac_tool_prefix}cc"
18433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18434     break 2
18435   fi
18436 done
18437   done
18438 IFS=$as_save_IFS
18439
18440 fi
18441 fi
18442 CC=$ac_cv_prog_CC
18443 if test -n "$CC"; then
18444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18445 $as_echo "$CC" >&6; }
18446 else
18447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448 $as_echo "no" >&6; }
18449 fi
18450
18451
18452   fi
18453 fi
18454 if test -z "$CC"; then
18455   # Extract the first word of "cc", so it can be a program name with args.
18456 set dummy cc; ac_word=$2
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18458 $as_echo_n "checking for $ac_word... " >&6; }
18459 if test "${ac_cv_prog_CC+set}" = set; then :
18460   $as_echo_n "(cached) " >&6
18461 else
18462   if test -n "$CC"; then
18463   ac_cv_prog_CC="$CC" # Let the user override the test.
18464 else
18465   ac_prog_rejected=no
18466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18467 for as_dir in $PATH
18468 do
18469   IFS=$as_save_IFS
18470   test -z "$as_dir" && as_dir=.
18471     for ac_exec_ext in '' $ac_executable_extensions; do
18472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18473     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18474        ac_prog_rejected=yes
18475        continue
18476      fi
18477     ac_cv_prog_CC="cc"
18478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18479     break 2
18480   fi
18481 done
18482   done
18483 IFS=$as_save_IFS
18484
18485 if test $ac_prog_rejected = yes; then
18486   # We found a bogon in the path, so make sure we never use it.
18487   set dummy $ac_cv_prog_CC
18488   shift
18489   if test $# != 0; then
18490     # We chose a different compiler from the bogus one.
18491     # However, it has the same basename, so the bogon will be chosen
18492     # first if we set CC to just the basename; use the full file name.
18493     shift
18494     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18495   fi
18496 fi
18497 fi
18498 fi
18499 CC=$ac_cv_prog_CC
18500 if test -n "$CC"; then
18501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18502 $as_echo "$CC" >&6; }
18503 else
18504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18505 $as_echo "no" >&6; }
18506 fi
18507
18508
18509 fi
18510 if test -z "$CC"; then
18511   if test -n "$ac_tool_prefix"; then
18512   for ac_prog in cl.exe
18513   do
18514     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18517 $as_echo_n "checking for $ac_word... " >&6; }
18518 if test "${ac_cv_prog_CC+set}" = set; then :
18519   $as_echo_n "(cached) " >&6
18520 else
18521   if test -n "$CC"; then
18522   ac_cv_prog_CC="$CC" # Let the user override the test.
18523 else
18524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18525 for as_dir in $PATH
18526 do
18527   IFS=$as_save_IFS
18528   test -z "$as_dir" && as_dir=.
18529     for ac_exec_ext in '' $ac_executable_extensions; do
18530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18531     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18533     break 2
18534   fi
18535 done
18536   done
18537 IFS=$as_save_IFS
18538
18539 fi
18540 fi
18541 CC=$ac_cv_prog_CC
18542 if test -n "$CC"; then
18543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18544 $as_echo "$CC" >&6; }
18545 else
18546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18547 $as_echo "no" >&6; }
18548 fi
18549
18550
18551     test -n "$CC" && break
18552   done
18553 fi
18554 if test -z "$CC"; then
18555   ac_ct_CC=$CC
18556   for ac_prog in cl.exe
18557 do
18558   # Extract the first word of "$ac_prog", so it can be a program name with args.
18559 set dummy $ac_prog; ac_word=$2
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18561 $as_echo_n "checking for $ac_word... " >&6; }
18562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
18563   $as_echo_n "(cached) " >&6
18564 else
18565   if test -n "$ac_ct_CC"; then
18566   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18567 else
18568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18569 for as_dir in $PATH
18570 do
18571   IFS=$as_save_IFS
18572   test -z "$as_dir" && as_dir=.
18573     for ac_exec_ext in '' $ac_executable_extensions; do
18574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18575     ac_cv_prog_ac_ct_CC="$ac_prog"
18576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18577     break 2
18578   fi
18579 done
18580   done
18581 IFS=$as_save_IFS
18582
18583 fi
18584 fi
18585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18586 if test -n "$ac_ct_CC"; then
18587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18588 $as_echo "$ac_ct_CC" >&6; }
18589 else
18590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18591 $as_echo "no" >&6; }
18592 fi
18593
18594
18595   test -n "$ac_ct_CC" && break
18596 done
18597
18598   if test "x$ac_ct_CC" = x; then
18599     CC=""
18600   else
18601     case $cross_compiling:$ac_tool_warned in
18602 yes:)
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18605 ac_tool_warned=yes ;;
18606 esac
18607     CC=$ac_ct_CC
18608   fi
18609 fi
18610
18611 fi
18612
18613
18614 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18616 as_fn_error $? "no acceptable C compiler found in \$PATH
18617 See \`config.log' for more details" "$LINENO" 5 ; }
18618
18619 # Provide some information about the compiler.
18620 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18621 set X $ac_compile
18622 ac_compiler=$2
18623 for ac_option in --version -v -V -qversion; do
18624   { { ac_try="$ac_compiler $ac_option >&5"
18625 case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18630 $as_echo "$ac_try_echo"; } >&5
18631   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18632   ac_status=$?
18633   if test -s conftest.err; then
18634     sed '10a\
18635 ... rest of stderr output deleted ...
18636          10q' conftest.err >conftest.er1
18637     cat conftest.er1 >&5
18638   fi
18639   rm -f conftest.er1 conftest.err
18640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18641   test $ac_status = 0; }
18642 done
18643
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18645 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18646 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
18647   $as_echo_n "(cached) " >&6
18648 else
18649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h.  */
18651
18652 int
18653 main ()
18654 {
18655 #ifndef __GNUC__
18656        choke me
18657 #endif
18658
18659   ;
18660   return 0;
18661 }
18662 _ACEOF
18663 if ac_fn_c_try_compile "$LINENO"; then :
18664   ac_compiler_gnu=yes
18665 else
18666   ac_compiler_gnu=no
18667 fi
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18670
18671 fi
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18673 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18674 if test $ac_compiler_gnu = yes; then
18675   GCC=yes
18676 else
18677   GCC=
18678 fi
18679 ac_test_CFLAGS=${CFLAGS+set}
18680 ac_save_CFLAGS=$CFLAGS
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18682 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18683 if test "${ac_cv_prog_cc_g+set}" = set; then :
18684   $as_echo_n "(cached) " >&6
18685 else
18686   ac_save_c_werror_flag=$ac_c_werror_flag
18687    ac_c_werror_flag=yes
18688    ac_cv_prog_cc_g=no
18689    CFLAGS="-g"
18690    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h.  */
18692
18693 int
18694 main ()
18695 {
18696
18697   ;
18698   return 0;
18699 }
18700 _ACEOF
18701 if ac_fn_c_try_compile "$LINENO"; then :
18702   ac_cv_prog_cc_g=yes
18703 else
18704   CFLAGS=""
18705       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18706 /* end confdefs.h.  */
18707
18708 int
18709 main ()
18710 {
18711
18712   ;
18713   return 0;
18714 }
18715 _ACEOF
18716 if ac_fn_c_try_compile "$LINENO"; then :
18717
18718 else
18719   ac_c_werror_flag=$ac_save_c_werror_flag
18720          CFLAGS="-g"
18721          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722 /* end confdefs.h.  */
18723
18724 int
18725 main ()
18726 {
18727
18728   ;
18729   return 0;
18730 }
18731 _ACEOF
18732 if ac_fn_c_try_compile "$LINENO"; then :
18733   ac_cv_prog_cc_g=yes
18734 fi
18735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18736 fi
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18738 fi
18739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18740    ac_c_werror_flag=$ac_save_c_werror_flag
18741 fi
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18743 $as_echo "$ac_cv_prog_cc_g" >&6; }
18744 if test "$ac_test_CFLAGS" = set; then
18745   CFLAGS=$ac_save_CFLAGS
18746 elif test $ac_cv_prog_cc_g = yes; then
18747   if test "$GCC" = yes; then
18748     CFLAGS="-g -O2"
18749   else
18750     CFLAGS="-g"
18751   fi
18752 else
18753   if test "$GCC" = yes; then
18754     CFLAGS="-O2"
18755   else
18756     CFLAGS=
18757   fi
18758 fi
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18760 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18761 if test "${ac_cv_prog_cc_c89+set}" = set; then :
18762   $as_echo_n "(cached) " >&6
18763 else
18764   ac_cv_prog_cc_c89=no
18765 ac_save_CC=$CC
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h.  */
18768 #include <stdarg.h>
18769 #include <stdio.h>
18770 #include <sys/types.h>
18771 #include <sys/stat.h>
18772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
18773 struct buf { int x; };
18774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18775 static char *e (p, i)
18776      char **p;
18777      int i;
18778 {
18779   return p[i];
18780 }
18781 static char *f (char * (*g) (char **, int), char **p, ...)
18782 {
18783   char *s;
18784   va_list v;
18785   va_start (v,p);
18786   s = g (p, va_arg (v,int));
18787   va_end (v);
18788   return s;
18789 }
18790
18791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
18792    function prototypes and stuff, but not '\xHH' hex character constants.
18793    These don't provoke an error unfortunately, instead are silently treated
18794    as 'x'.  The following induces an error, until -std is added to get
18795    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
18796    array size at least.  It's necessary to write '\x00'==0 to get something
18797    that's true only with -std.  */
18798 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18799
18800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18801    inside strings and character constants.  */
18802 #define FOO(x) 'x'
18803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18804
18805 int test (int i, double x);
18806 struct s1 {int (*f) (int a);};
18807 struct s2 {int (*f) (double a);};
18808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18809 int argc;
18810 char **argv;
18811 int
18812 main ()
18813 {
18814 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18815   ;
18816   return 0;
18817 }
18818 _ACEOF
18819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18820         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18821 do
18822   CC="$ac_save_CC $ac_arg"
18823   if ac_fn_c_try_compile "$LINENO"; then :
18824   ac_cv_prog_cc_c89=$ac_arg
18825 fi
18826 rm -f core conftest.err conftest.$ac_objext
18827   test "x$ac_cv_prog_cc_c89" != "xno" && break
18828 done
18829 rm -f conftest.$ac_ext
18830 CC=$ac_save_CC
18831
18832 fi
18833 # AC_CACHE_VAL
18834 case "x$ac_cv_prog_cc_c89" in
18835   x)
18836     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18837 $as_echo "none needed" >&6; } ;;
18838   xno)
18839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18840 $as_echo "unsupported" >&6; } ;;
18841   *)
18842     CC="$CC $ac_cv_prog_cc_c89"
18843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18844 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18845 esac
18846 if test "x$ac_cv_prog_cc_c89" != xno; then :
18847
18848 fi
18849
18850 ac_ext=c
18851 ac_cpp='$CPP $CPPFLAGS'
18852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18855
18856 depcc="$CC"   am_compiler_list=
18857
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18859 $as_echo_n "checking dependency style of $depcc... " >&6; }
18860 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
18861   $as_echo_n "(cached) " >&6
18862 else
18863   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18864   # We make a subdir and do the tests there.  Otherwise we can end up
18865   # making bogus files that we don't know about and never remove.  For
18866   # instance it was reported that on HP-UX the gcc test will end up
18867   # making a dummy file named `D' -- because `-MD' means `put the output
18868   # in D'.
18869   mkdir conftest.dir
18870   # Copy depcomp to subdir because otherwise we won't find it if we're
18871   # using a relative directory.
18872   cp "$am_depcomp" conftest.dir
18873   cd conftest.dir
18874
18875   am_cv_CC_dependencies_compiler_type=none
18876   if test "$am_compiler_list" = ""; then
18877      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18878   fi
18879   for depmode in $am_compiler_list; do
18880     # We need to recreate these files for each test, as the compiler may
18881     # overwrite some of them when testing with obscure command lines.
18882     # This happens at least with the AIX C compiler.
18883     echo '#include "conftest.h"' > conftest.c
18884     echo 'int i;' > conftest.h
18885     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
18886
18887     case $depmode in
18888     nosideeffect)
18889       # after this tag, mechanisms are not by side-effect, so they'll
18890       # only be used when explicitly requested
18891       if test "x$enable_dependency_tracking" = xyes; then
18892         continue
18893       else
18894         break
18895       fi
18896       ;;
18897     none) break ;;
18898     esac
18899     # We check with `-c' and `-o' for the sake of the "dashmstdout"
18900     # mode.  It turns out that the SunPro C++ compiler does not properly
18901     # handle `-M -o', and we need to detect this.
18902     if depmode=$depmode \
18903        source=conftest.c object=conftest.o \
18904        depfile=conftest.Po tmpdepfile=conftest.TPo \
18905        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
18906        grep conftest.h conftest.Po > /dev/null 2>&1 &&
18907        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18908       am_cv_CC_dependencies_compiler_type=$depmode
18909       break
18910     fi
18911   done
18912
18913   cd ..
18914   rm -rf conftest.dir
18915 else
18916   am_cv_CC_dependencies_compiler_type=none
18917 fi
18918
18919 fi
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18921 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18922 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18923
18924
18925
18926
18927
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
18929 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
18930 if test "${am_cv_prog_cc_stdc+set}" = set; then :
18931   $as_echo_n "(cached) " >&6
18932 else
18933   am_cv_prog_cc_stdc=no
18934 ac_save_CC="$CC"
18935 # Don't try gcc -ansi; that turns off useful extensions and
18936 # breaks some systems' header files.
18937 # AIX                   -qlanglvl=ansi
18938 # Ultrix and OSF/1      -std1
18939 # HP-UX 10.20 and later -Ae
18940 # HP-UX older versions  -Aa -D_HPUX_SOURCE
18941 # SVR4                  -Xc -D__EXTENSIONS__
18942 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18943 do
18944   CC="$ac_save_CC $ac_arg"
18945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h.  */
18947 #include <stdarg.h>
18948 #include <stdio.h>
18949 #include <sys/types.h>
18950 #include <sys/stat.h>
18951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
18952 struct buf { int x; };
18953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18954 static char *e (p, i)
18955      char **p;
18956      int i;
18957 {
18958   return p[i];
18959 }
18960 static char *f (char * (*g) (char **, int), char **p, ...)
18961 {
18962   char *s;
18963   va_list v;
18964   va_start (v,p);
18965   s = g (p, va_arg (v,int));
18966   va_end (v);
18967   return s;
18968 }
18969 int test (int i, double x);
18970 struct s1 {int (*f) (int a);};
18971 struct s2 {int (*f) (double a);};
18972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18973 int argc;
18974 char **argv;
18975
18976 int
18977 main ()
18978 {
18979
18980 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18981
18982   ;
18983   return 0;
18984 }
18985 _ACEOF
18986 if ac_fn_c_try_compile "$LINENO"; then :
18987   am_cv_prog_cc_stdc="$ac_arg"; break
18988 fi
18989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18990 done
18991 CC="$ac_save_CC"
18992
18993 fi
18994
18995 if test -z "$am_cv_prog_cc_stdc"; then
18996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18997 $as_echo "none needed" >&6; }
18998 else
18999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
19000 $as_echo "$am_cv_prog_cc_stdc" >&6; }
19001 fi
19002 case "x$am_cv_prog_cc_stdc" in
19003   x|xno) ;;
19004   *) CC="$CC $am_cv_prog_cc_stdc" ;;
19005 esac
19006
19007
19008
19009
19010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19011 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19012 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
19013   $as_echo_n "(cached) " >&6
19014 else
19015   ac_check_lib_save_LIBS=$LIBS
19016 LIBS="-lcposix  $LIBS"
19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h.  */
19019
19020 /* Override any GCC internal prototype to avoid an error.
19021    Use char because int might match the return type of a GCC
19022    builtin and then its argument prototype would still apply.  */
19023 #ifdef __cplusplus
19024 extern "C"
19025 #endif
19026 char strerror ();
19027 int
19028 main ()
19029 {
19030 return strerror ();
19031   ;
19032   return 0;
19033 }
19034 _ACEOF
19035 if ac_fn_c_try_link "$LINENO"; then :
19036   ac_cv_lib_cposix_strerror=yes
19037 else
19038   ac_cv_lib_cposix_strerror=no
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext \
19041     conftest$ac_exeext conftest.$ac_ext
19042 LIBS=$ac_check_lib_save_LIBS
19043 fi
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19045 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19046 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
19047   LIBS="$LIBS -lcposix"
19048 fi
19049
19050
19051
19052
19053
19054 # Extract the first word of "db2ps", so it can be a program name with args.
19055 set dummy db2ps; ac_word=$2
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19057 $as_echo_n "checking for $ac_word... " >&6; }
19058 if test "${ac_cv_path_DB2PS+set}" = set; then :
19059   $as_echo_n "(cached) " >&6
19060 else
19061   case $DB2PS in
19062   [\\/]* | ?:[\\/]*)
19063   ac_cv_path_DB2PS="$DB2PS" # Let the user override the test with a path.
19064   ;;
19065   *)
19066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067 for as_dir in $PATH
19068 do
19069   IFS=$as_save_IFS
19070   test -z "$as_dir" && as_dir=.
19071     for ac_exec_ext in '' $ac_executable_extensions; do
19072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19073     ac_cv_path_DB2PS="$as_dir/$ac_word$ac_exec_ext"
19074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19075     break 2
19076   fi
19077 done
19078   done
19079 IFS=$as_save_IFS
19080
19081   ;;
19082 esac
19083 fi
19084 DB2PS=$ac_cv_path_DB2PS
19085 if test -n "$DB2PS"; then
19086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DB2PS" >&5
19087 $as_echo "$DB2PS" >&6; }
19088 else
19089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19090 $as_echo "no" >&6; }
19091 fi
19092
19093
19094 if test x${DB2PS} = x ; then
19095   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PostScript documentation cannot be generated!" >&5
19096 $as_echo "$as_me: WARNING: PostScript documentation cannot be generated!" >&2;}
19097 fi
19098
19099 # Extract the first word of "ps2pdf", so it can be a program name with args.
19100 set dummy ps2pdf; ac_word=$2
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19102 $as_echo_n "checking for $ac_word... " >&6; }
19103 if test "${ac_cv_path_PS2PDF+set}" = set; then :
19104   $as_echo_n "(cached) " >&6
19105 else
19106   case $PS2PDF in
19107   [\\/]* | ?:[\\/]*)
19108   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
19109   ;;
19110   *)
19111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19112 for as_dir in $PATH
19113 do
19114   IFS=$as_save_IFS
19115   test -z "$as_dir" && as_dir=.
19116     for ac_exec_ext in '' $ac_executable_extensions; do
19117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19118     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
19119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19120     break 2
19121   fi
19122 done
19123   done
19124 IFS=$as_save_IFS
19125
19126   ;;
19127 esac
19128 fi
19129 PS2PDF=$ac_cv_path_PS2PDF
19130 if test -n "$PS2PDF"; then
19131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
19132 $as_echo "$PS2PDF" >&6; }
19133 else
19134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19135 $as_echo "no" >&6; }
19136 fi
19137
19138
19139 if test x${PS2PDF} = x ; then
19140   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PDF documentation cannot be generated!" >&5
19141 $as_echo "$as_me: WARNING: PDF documentation cannot be generated!" >&2;}
19142 fi
19143
19144
19145
19146
19147 case ${host_os} in
19148   cygwin | mingw32 | pw32 | interix3 | interix | uwin) libijs_sysdeps="windows";;
19149   *) libijs_sysdeps="unix";;
19150 esac
19151
19152
19153 if test x$libijs_sysdeps = xwindows; then
19154   SYSDEPS_WINDOWS_TRUE=
19155   SYSDEPS_WINDOWS_FALSE='#'
19156 else
19157   SYSDEPS_WINDOWS_TRUE='#'
19158   SYSDEPS_WINDOWS_FALSE=
19159 fi
19160
19161
19162
19163
19164
19165
19166
19167
19168 ijs_libs="${IJS_LIBS} ${IJS_DEPLIBS}"
19169
19170
19171 LIBIJS_LIBS="${LIBIJS_LIBS} ${IJS_DEPLIBS}"
19172
19173
19174
19175 ac_config_files="$ac_config_files Makefile"
19176
19177 ac_config_files="$ac_config_files ijs-config"
19178
19179 ac_config_files="$ac_config_files ijs.pc"
19180
19181 cat >confcache <<\_ACEOF
19182 # This file is a shell script that caches the results of configure
19183 # tests run on this system so they can be shared between configure
19184 # scripts and configure runs, see configure's option --config-cache.
19185 # It is not useful on other systems.  If it contains results you don't
19186 # want to keep, you may remove or edit it.
19187 #
19188 # config.status only pays attention to the cache file if you give it
19189 # the --recheck option to rerun configure.
19190 #
19191 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19192 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19193 # following values.
19194
19195 _ACEOF
19196
19197 # The following way of writing the cache mishandles newlines in values,
19198 # but we know of no workaround that is simple, portable, and efficient.
19199 # So, we kill variables containing newlines.
19200 # Ultrix sh set writes to stderr and can't be redirected directly,
19201 # and sets the high bit in the cache file unless we assign to the vars.
19202 (
19203   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19204     eval ac_val=\$$ac_var
19205     case $ac_val in #(
19206     *${as_nl}*)
19207       case $ac_var in #(
19208       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19209 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19210       esac
19211       case $ac_var in #(
19212       _ | IFS | as_nl) ;; #(
19213       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19214       *) { eval $ac_var=; unset $ac_var;} ;;
19215       esac ;;
19216     esac
19217   done
19218
19219   (set) 2>&1 |
19220     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19221     *${as_nl}ac_space=\ *)
19222       # `set' does not quote correctly, so add quotes: double-quote
19223       # substitution turns \\\\ into \\, and sed turns \\ into \.
19224       sed -n \
19225         "s/'/'\\\\''/g;
19226           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19227       ;; #(
19228     *)
19229       # `set' quotes correctly as required by POSIX, so do not add quotes.
19230       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19231       ;;
19232     esac |
19233     sort
19234 ) |
19235   sed '
19236      /^ac_cv_env_/b end
19237      t clear
19238      :clear
19239      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19240      t end
19241      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19242      :end' >>confcache
19243 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19244   if test -w "$cache_file"; then
19245     test "x$cache_file" != "x/dev/null" &&
19246       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19247 $as_echo "$as_me: updating cache $cache_file" >&6;}
19248     cat confcache >$cache_file
19249   else
19250     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19251 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19252   fi
19253 fi
19254 rm -f confcache
19255
19256 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19257 # Let make expand exec_prefix.
19258 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19259
19260 # Transform confdefs.h into DEFS.
19261 # Protect against shell expansion while executing Makefile rules.
19262 # Protect against Makefile macro expansion.
19263 #
19264 # If the first sed substitution is executed (which looks for macros that
19265 # take arguments), then branch to the quote section.  Otherwise,
19266 # look for a macro that doesn't take arguments.
19267 ac_script='
19268 :mline
19269 /\\$/{
19270  N
19271  s,\\\n,,
19272  b mline
19273 }
19274 t clear
19275 :clear
19276 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
19277 t quote
19278 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
19279 t quote
19280 b any
19281 :quote
19282 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19283 s/\[/\\&/g
19284 s/\]/\\&/g
19285 s/\$/$$/g
19286 H
19287 :any
19288 ${
19289         g
19290         s/^\n//
19291         s/\n/ /g
19292         p
19293 }
19294 '
19295 DEFS=`sed -n "$ac_script" confdefs.h`
19296
19297
19298 ac_libobjs=
19299 ac_ltlibobjs=
19300 U=
19301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19302   # 1. Remove the extension, and $U if already installed.
19303   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19304   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19305   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19306   #    will be set to the directory where LIBOBJS objects are built.
19307   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19308   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19309 done
19310 LIBOBJS=$ac_libobjs
19311
19312 LTLIBOBJS=$ac_ltlibobjs
19313
19314
19315 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19316   as_fn_error $? "conditional \"AMDEP\" was never defined.
19317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19318 fi
19319 if test -z "${SYSDEPS_WINDOWS_TRUE}" && test -z "${SYSDEPS_WINDOWS_FALSE}"; then
19320   as_fn_error $? "conditional \"SYSDEPS_WINDOWS\" was never defined.
19321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19322 fi
19323
19324 : ${CONFIG_STATUS=./config.status}
19325 ac_write_fail=0
19326 ac_clean_files_save=$ac_clean_files
19327 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19329 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19330 as_write_fail=0
19331 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19332 #! $SHELL
19333 # Generated by $as_me.
19334 # Run this file to recreate the current configuration.
19335 # Compiler output produced by configure, useful for debugging
19336 # configure, is in config.log if it exists.
19337
19338 debug=false
19339 ac_cs_recheck=false
19340 ac_cs_silent=false
19341
19342 SHELL=\${CONFIG_SHELL-$SHELL}
19343 export SHELL
19344 _ASEOF
19345 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19346 ## -------------------- ##
19347 ## M4sh Initialization. ##
19348 ## -------------------- ##
19349
19350 # Be more Bourne compatible
19351 DUALCASE=1; export DUALCASE # for MKS sh
19352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19353   emulate sh
19354   NULLCMD=:
19355   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19356   # is contrary to our usage.  Disable this feature.
19357   alias -g '${1+"$@"}'='"$@"'
19358   setopt NO_GLOB_SUBST
19359 else
19360   case `(set -o) 2>/dev/null` in #(
19361   *posix*) :
19362     set -o posix ;; #(
19363   *) :
19364      ;;
19365 esac
19366 fi
19367
19368
19369 as_nl='
19370 '
19371 export as_nl
19372 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19373 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19374 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19375 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19376 # Prefer a ksh shell builtin over an external printf program on Solaris,
19377 # but without wasting forks for bash or zsh.
19378 if test -z "$BASH_VERSION$ZSH_VERSION" \
19379     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19380   as_echo='print -r --'
19381   as_echo_n='print -rn --'
19382 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19383   as_echo='printf %s\n'
19384   as_echo_n='printf %s'
19385 else
19386   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19387     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19388     as_echo_n='/usr/ucb/echo -n'
19389   else
19390     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19391     as_echo_n_body='eval
19392       arg=$1;
19393       case $arg in #(
19394       *"$as_nl"*)
19395         expr "X$arg" : "X\\(.*\\)$as_nl";
19396         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19397       esac;
19398       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19399     '
19400     export as_echo_n_body
19401     as_echo_n='sh -c $as_echo_n_body as_echo'
19402   fi
19403   export as_echo_body
19404   as_echo='sh -c $as_echo_body as_echo'
19405 fi
19406
19407 # The user is always right.
19408 if test "${PATH_SEPARATOR+set}" != set; then
19409   PATH_SEPARATOR=:
19410   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19411     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19412       PATH_SEPARATOR=';'
19413   }
19414 fi
19415
19416
19417 # IFS
19418 # We need space, tab and new line, in precisely that order.  Quoting is
19419 # there to prevent editors from complaining about space-tab.
19420 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19421 # splitting by setting IFS to empty value.)
19422 IFS=" ""        $as_nl"
19423
19424 # Find who we are.  Look in the path if we contain no directory separator.
19425 case $0 in #((
19426   *[\\/]* ) as_myself=$0 ;;
19427   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19428 for as_dir in $PATH
19429 do
19430   IFS=$as_save_IFS
19431   test -z "$as_dir" && as_dir=.
19432     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19433   done
19434 IFS=$as_save_IFS
19435
19436      ;;
19437 esac
19438 # We did not find ourselves, most probably we were run as `sh COMMAND'
19439 # in which case we are not to be found in the path.
19440 if test "x$as_myself" = x; then
19441   as_myself=$0
19442 fi
19443 if test ! -f "$as_myself"; then
19444   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19445   exit 1
19446 fi
19447
19448 # Unset variables that we do not need and which cause bugs (e.g. in
19449 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19450 # suppresses any "Segmentation fault" message there.  '((' could
19451 # trigger a bug in pdksh 5.2.14.
19452 for as_var in BASH_ENV ENV MAIL MAILPATH
19453 do eval test x\${$as_var+set} = xset \
19454   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19455 done
19456 PS1='$ '
19457 PS2='> '
19458 PS4='+ '
19459
19460 # NLS nuisances.
19461 LC_ALL=C
19462 export LC_ALL
19463 LANGUAGE=C
19464 export LANGUAGE
19465
19466 # CDPATH.
19467 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19468
19469
19470 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19471 # ----------------------------------------
19472 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19473 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19474 # script with STATUS, using 1 if that was 0.
19475 as_fn_error ()
19476 {
19477   as_status=$1; test $as_status -eq 0 && as_status=1
19478   if test "$4"; then
19479     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19480     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19481   fi
19482   $as_echo "$as_me: error: $2" >&2
19483   as_fn_exit $as_status
19484 } # as_fn_error
19485
19486
19487 # as_fn_set_status STATUS
19488 # -----------------------
19489 # Set $? to STATUS, without forking.
19490 as_fn_set_status ()
19491 {
19492   return $1
19493 } # as_fn_set_status
19494
19495 # as_fn_exit STATUS
19496 # -----------------
19497 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19498 as_fn_exit ()
19499 {
19500   set +e
19501   as_fn_set_status $1
19502   exit $1
19503 } # as_fn_exit
19504
19505 # as_fn_unset VAR
19506 # ---------------
19507 # Portably unset VAR.
19508 as_fn_unset ()
19509 {
19510   { eval $1=; unset $1;}
19511 }
19512 as_unset=as_fn_unset
19513 # as_fn_append VAR VALUE
19514 # ----------------------
19515 # Append the text in VALUE to the end of the definition contained in VAR. Take
19516 # advantage of any shell optimizations that allow amortized linear growth over
19517 # repeated appends, instead of the typical quadratic growth present in naive
19518 # implementations.
19519 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19520   eval 'as_fn_append ()
19521   {
19522     eval $1+=\$2
19523   }'
19524 else
19525   as_fn_append ()
19526   {
19527     eval $1=\$$1\$2
19528   }
19529 fi # as_fn_append
19530
19531 # as_fn_arith ARG...
19532 # ------------------
19533 # Perform arithmetic evaluation on the ARGs, and store the result in the
19534 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19535 # must be portable across $(()) and expr.
19536 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19537   eval 'as_fn_arith ()
19538   {
19539     as_val=$(( $* ))
19540   }'
19541 else
19542   as_fn_arith ()
19543   {
19544     as_val=`expr "$@" || test $? -eq 1`
19545   }
19546 fi # as_fn_arith
19547
19548
19549 if expr a : '\(a\)' >/dev/null 2>&1 &&
19550    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19551   as_expr=expr
19552 else
19553   as_expr=false
19554 fi
19555
19556 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19557   as_basename=basename
19558 else
19559   as_basename=false
19560 fi
19561
19562 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19563   as_dirname=dirname
19564 else
19565   as_dirname=false
19566 fi
19567
19568 as_me=`$as_basename -- "$0" ||
19569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19570          X"$0" : 'X\(//\)$' \| \
19571          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19572 $as_echo X/"$0" |
19573     sed '/^.*\/\([^/][^/]*\)\/*$/{
19574             s//\1/
19575             q
19576           }
19577           /^X\/\(\/\/\)$/{
19578             s//\1/
19579             q
19580           }
19581           /^X\/\(\/\).*/{
19582             s//\1/
19583             q
19584           }
19585           s/.*/./; q'`
19586
19587 # Avoid depending upon Character Ranges.
19588 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19589 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19590 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19591 as_cr_digits='0123456789'
19592 as_cr_alnum=$as_cr_Letters$as_cr_digits
19593
19594 ECHO_C= ECHO_N= ECHO_T=
19595 case `echo -n x` in #(((((
19596 -n*)
19597   case `echo 'xy\c'` in
19598   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19599   xy)  ECHO_C='\c';;
19600   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19601        ECHO_T=' ';;
19602   esac;;
19603 *)
19604   ECHO_N='-n';;
19605 esac
19606
19607 rm -f conf$$ conf$$.exe conf$$.file
19608 if test -d conf$$.dir; then
19609   rm -f conf$$.dir/conf$$.file
19610 else
19611   rm -f conf$$.dir
19612   mkdir conf$$.dir 2>/dev/null
19613 fi
19614 if (echo >conf$$.file) 2>/dev/null; then
19615   if ln -s conf$$.file conf$$ 2>/dev/null; then
19616     as_ln_s='ln -s'
19617     # ... but there are two gotchas:
19618     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19619     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19620     # In both cases, we have to default to `cp -p'.
19621     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19622       as_ln_s='cp -p'
19623   elif ln conf$$.file conf$$ 2>/dev/null; then
19624     as_ln_s=ln
19625   else
19626     as_ln_s='cp -p'
19627   fi
19628 else
19629   as_ln_s='cp -p'
19630 fi
19631 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19632 rmdir conf$$.dir 2>/dev/null
19633
19634
19635 # as_fn_mkdir_p
19636 # -------------
19637 # Create "$as_dir" as a directory, including parents if necessary.
19638 as_fn_mkdir_p ()
19639 {
19640
19641   case $as_dir in #(
19642   -*) as_dir=./$as_dir;;
19643   esac
19644   test -d "$as_dir" || eval $as_mkdir_p || {
19645     as_dirs=
19646     while :; do
19647       case $as_dir in #(
19648       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19649       *) as_qdir=$as_dir;;
19650       esac
19651       as_dirs="'$as_qdir' $as_dirs"
19652       as_dir=`$as_dirname -- "$as_dir" ||
19653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19654          X"$as_dir" : 'X\(//\)[^/]' \| \
19655          X"$as_dir" : 'X\(//\)$' \| \
19656          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19657 $as_echo X"$as_dir" |
19658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19659             s//\1/
19660             q
19661           }
19662           /^X\(\/\/\)[^/].*/{
19663             s//\1/
19664             q
19665           }
19666           /^X\(\/\/\)$/{
19667             s//\1/
19668             q
19669           }
19670           /^X\(\/\).*/{
19671             s//\1/
19672             q
19673           }
19674           s/.*/./; q'`
19675       test -d "$as_dir" && break
19676     done
19677     test -z "$as_dirs" || eval "mkdir $as_dirs"
19678   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19679
19680
19681 } # as_fn_mkdir_p
19682 if mkdir -p . 2>/dev/null; then
19683   as_mkdir_p='mkdir -p "$as_dir"'
19684 else
19685   test -d ./-p && rmdir ./-p
19686   as_mkdir_p=false
19687 fi
19688
19689 if test -x / >/dev/null 2>&1; then
19690   as_test_x='test -x'
19691 else
19692   if ls -dL / >/dev/null 2>&1; then
19693     as_ls_L_option=L
19694   else
19695     as_ls_L_option=
19696   fi
19697   as_test_x='
19698     eval sh -c '\''
19699       if test -d "$1"; then
19700         test -d "$1/.";
19701       else
19702         case $1 in #(
19703         -*)set "./$1";;
19704         esac;
19705         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19706         ???[sx]*):;;*)false;;esac;fi
19707     '\'' sh
19708   '
19709 fi
19710 as_executable_p=$as_test_x
19711
19712 # Sed expression to map a string onto a valid CPP name.
19713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19714
19715 # Sed expression to map a string onto a valid variable name.
19716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19717
19718
19719 exec 6>&1
19720 ## ----------------------------------- ##
19721 ## Main body of $CONFIG_STATUS script. ##
19722 ## ----------------------------------- ##
19723 _ASEOF
19724 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19725
19726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19727 # Save the log message, to keep $0 and so on meaningful, and to
19728 # report actual input values of CONFIG_FILES etc. instead of their
19729 # values after options handling.
19730 ac_log="
19731 This file was extended by ijs $as_me 0.35, which was
19732 generated by GNU Autoconf 2.67.  Invocation command line was
19733
19734   CONFIG_FILES    = $CONFIG_FILES
19735   CONFIG_HEADERS  = $CONFIG_HEADERS
19736   CONFIG_LINKS    = $CONFIG_LINKS
19737   CONFIG_COMMANDS = $CONFIG_COMMANDS
19738   $ $0 $@
19739
19740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19741 "
19742
19743 _ACEOF
19744
19745 case $ac_config_files in *"
19746 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19747 esac
19748
19749
19750
19751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19752 # Files that config.status was made for.
19753 config_files="$ac_config_files"
19754 config_commands="$ac_config_commands"
19755
19756 _ACEOF
19757
19758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19759 ac_cs_usage="\
19760 \`$as_me' instantiates files and other configuration actions
19761 from templates according to the current configuration.  Unless the files
19762 and actions are specified as TAGs, all are instantiated by default.
19763
19764 Usage: $0 [OPTION]... [TAG]...
19765
19766   -h, --help       print this help, then exit
19767   -V, --version    print version number and configuration settings, then exit
19768       --config     print configuration, then exit
19769   -q, --quiet, --silent
19770                    do not print progress messages
19771   -d, --debug      don't remove temporary files
19772       --recheck    update $as_me by reconfiguring in the same conditions
19773       --file=FILE[:TEMPLATE]
19774                    instantiate the configuration file FILE
19775
19776 Configuration files:
19777 $config_files
19778
19779 Configuration commands:
19780 $config_commands
19781
19782 Report bugs to <inkjet-list@linuxprinting.org>."
19783
19784 _ACEOF
19785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19786 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19787 ac_cs_version="\\
19788 ijs config.status 0.35
19789 configured by $0, generated by GNU Autoconf 2.67,
19790   with options \\"\$ac_cs_config\\"
19791
19792 Copyright (C) 2010 Free Software Foundation, Inc.
19793 This config.status script is free software; the Free Software Foundation
19794 gives unlimited permission to copy, distribute and modify it."
19795
19796 ac_pwd='$ac_pwd'
19797 srcdir='$srcdir'
19798 INSTALL='$INSTALL'
19799 AWK='$AWK'
19800 test -n "\$AWK" || AWK=awk
19801 _ACEOF
19802
19803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19804 # The default lists apply if the user does not specify any file.
19805 ac_need_defaults=:
19806 while test $# != 0
19807 do
19808   case $1 in
19809   --*=?*)
19810     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19811     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19812     ac_shift=:
19813     ;;
19814   --*=)
19815     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19816     ac_optarg=
19817     ac_shift=:
19818     ;;
19819   *)
19820     ac_option=$1
19821     ac_optarg=$2
19822     ac_shift=shift
19823     ;;
19824   esac
19825
19826   case $ac_option in
19827   # Handling of the options.
19828   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19829     ac_cs_recheck=: ;;
19830   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19831     $as_echo "$ac_cs_version"; exit ;;
19832   --config | --confi | --conf | --con | --co | --c )
19833     $as_echo "$ac_cs_config"; exit ;;
19834   --debug | --debu | --deb | --de | --d | -d )
19835     debug=: ;;
19836   --file | --fil | --fi | --f )
19837     $ac_shift
19838     case $ac_optarg in
19839     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19840     '') as_fn_error $? "missing file argument" ;;
19841     esac
19842     as_fn_append CONFIG_FILES " '$ac_optarg'"
19843     ac_need_defaults=false;;
19844   --he | --h |  --help | --hel | -h )
19845     $as_echo "$ac_cs_usage"; exit ;;
19846   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19847   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19848     ac_cs_silent=: ;;
19849
19850   # This is an error.
19851   -*) as_fn_error $? "unrecognized option: \`$1'
19852 Try \`$0 --help' for more information." ;;
19853
19854   *) as_fn_append ac_config_targets " $1"
19855      ac_need_defaults=false ;;
19856
19857   esac
19858   shift
19859 done
19860
19861 ac_configure_extra_args=
19862
19863 if $ac_cs_silent; then
19864   exec 6>/dev/null
19865   ac_configure_extra_args="$ac_configure_extra_args --silent"
19866 fi
19867
19868 _ACEOF
19869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19870 if \$ac_cs_recheck; then
19871   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19872   shift
19873   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19874   CONFIG_SHELL='$SHELL'
19875   export CONFIG_SHELL
19876   exec "\$@"
19877 fi
19878
19879 _ACEOF
19880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19881 exec 5>>config.log
19882 {
19883   echo
19884   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19885 ## Running $as_me. ##
19886 _ASBOX
19887   $as_echo "$ac_log"
19888 } >&5
19889
19890 _ACEOF
19891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19892 #
19893 # INIT-COMMANDS
19894 #
19895 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19896
19897 _ACEOF
19898
19899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19900
19901 # Handling of arguments.
19902 for ac_config_target in $ac_config_targets
19903 do
19904   case $ac_config_target in
19905     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19906     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19907     "ijs-config") CONFIG_FILES="$CONFIG_FILES ijs-config" ;;
19908     "ijs.pc") CONFIG_FILES="$CONFIG_FILES ijs.pc" ;;
19909
19910   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19911   esac
19912 done
19913
19914
19915 # If the user did not use the arguments to specify the items to instantiate,
19916 # then the envvar interface is used.  Set only those that are not.
19917 # We use the long form for the default assignment because of an extremely
19918 # bizarre bug on SunOS 4.1.3.
19919 if $ac_need_defaults; then
19920   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19921   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19922 fi
19923
19924 # Have a temporary directory for convenience.  Make it in the build tree
19925 # simply because there is no reason against having it here, and in addition,
19926 # creating and moving files from /tmp can sometimes cause problems.
19927 # Hook for its removal unless debugging.
19928 # Note that there is a small window in which the directory will not be cleaned:
19929 # after its creation but before its name has been assigned to `$tmp'.
19930 $debug ||
19931 {
19932   tmp=
19933   trap 'exit_status=$?
19934   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19935 ' 0
19936   trap 'as_fn_exit 1' 1 2 13 15
19937 }
19938 # Create a (secure) tmp directory for tmp files.
19939
19940 {
19941   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19942   test -n "$tmp" && test -d "$tmp"
19943 }  ||
19944 {
19945   tmp=./conf$$-$RANDOM
19946   (umask 077 && mkdir "$tmp")
19947 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19948
19949 # Set up the scripts for CONFIG_FILES section.
19950 # No need to generate them if there are no CONFIG_FILES.
19951 # This happens for instance with `./config.status config.h'.
19952 if test -n "$CONFIG_FILES"; then
19953
19954
19955 ac_cr=`echo X | tr X '\015'`
19956 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19957 # But we know of no other shell where ac_cr would be empty at this
19958 # point, so we can use a bashism as a fallback.
19959 if test "x$ac_cr" = x; then
19960   eval ac_cr=\$\'\\r\'
19961 fi
19962 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19963 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19964   ac_cs_awk_cr='\\r'
19965 else
19966   ac_cs_awk_cr=$ac_cr
19967 fi
19968
19969 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19970 _ACEOF
19971
19972
19973 {
19974   echo "cat >conf$$subs.awk <<_ACEOF" &&
19975   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19976   echo "_ACEOF"
19977 } >conf$$subs.sh ||
19978   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19979 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19980 ac_delim='%!_!# '
19981 for ac_last_try in false false false false false :; do
19982   . ./conf$$subs.sh ||
19983     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19984
19985   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19986   if test $ac_delim_n = $ac_delim_num; then
19987     break
19988   elif $ac_last_try; then
19989     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19990   else
19991     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19992   fi
19993 done
19994 rm -f conf$$subs.sh
19995
19996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19997 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19998 _ACEOF
19999 sed -n '
20000 h
20001 s/^/S["/; s/!.*/"]=/
20002 p
20003 g
20004 s/^[^!]*!//
20005 :repl
20006 t repl
20007 s/'"$ac_delim"'$//
20008 t delim
20009 :nl
20010 h
20011 s/\(.\{148\}\)..*/\1/
20012 t more1
20013 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20014 p
20015 n
20016 b repl
20017 :more1
20018 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20019 p
20020 g
20021 s/.\{148\}//
20022 t nl
20023 :delim
20024 h
20025 s/\(.\{148\}\)..*/\1/
20026 t more2
20027 s/["\\]/\\&/g; s/^/"/; s/$/"/
20028 p
20029 b
20030 :more2
20031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20032 p
20033 g
20034 s/.\{148\}//
20035 t delim
20036 ' <conf$$subs.awk | sed '
20037 /^[^""]/{
20038   N
20039   s/\n//
20040 }
20041 ' >>$CONFIG_STATUS || ac_write_fail=1
20042 rm -f conf$$subs.awk
20043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20044 _ACAWK
20045 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20046   for (key in S) S_is_set[key] = 1
20047   FS = "\a"
20048
20049 }
20050 {
20051   line = $ 0
20052   nfields = split(line, field, "@")
20053   substed = 0
20054   len = length(field[1])
20055   for (i = 2; i < nfields; i++) {
20056     key = field[i]
20057     keylen = length(key)
20058     if (S_is_set[key]) {
20059       value = S[key]
20060       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20061       len += length(value) + length(field[++i])
20062       substed = 1
20063     } else
20064       len += 1 + keylen
20065   }
20066
20067   print line
20068 }
20069
20070 _ACAWK
20071 _ACEOF
20072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20073 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20074   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20075 else
20076   cat
20077 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20078   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20079 _ACEOF
20080
20081 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20082 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20083 # trailing colons and then remove the whole line if VPATH becomes empty
20084 # (actually we leave an empty line to preserve line numbers).
20085 if test "x$srcdir" = x.; then
20086   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20087 h
20088 s///
20089 s/^/:/
20090 s/[      ]*$/:/
20091 s/:\$(srcdir):/:/g
20092 s/:\${srcdir}:/:/g
20093 s/:@srcdir@:/:/g
20094 s/^:*//
20095 s/:*$//
20096 x
20097 s/\(=[   ]*\).*/\1/
20098 G
20099 s/\n//
20100 s/^[^=]*=[       ]*$//
20101 }'
20102 fi
20103
20104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20105 fi # test -n "$CONFIG_FILES"
20106
20107
20108 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
20109 shift
20110 for ac_tag
20111 do
20112   case $ac_tag in
20113   :[FHLC]) ac_mode=$ac_tag; continue;;
20114   esac
20115   case $ac_mode$ac_tag in
20116   :[FHL]*:*);;
20117   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
20118   :[FH]-) ac_tag=-:-;;
20119   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20120   esac
20121   ac_save_IFS=$IFS
20122   IFS=:
20123   set x $ac_tag
20124   IFS=$ac_save_IFS
20125   shift
20126   ac_file=$1
20127   shift
20128
20129   case $ac_mode in
20130   :L) ac_source=$1;;
20131   :[FH])
20132     ac_file_inputs=
20133     for ac_f
20134     do
20135       case $ac_f in
20136       -) ac_f="$tmp/stdin";;
20137       *) # Look for the file first in the build tree, then in the source tree
20138          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20139          # because $ac_f cannot contain `:'.
20140          test -f "$ac_f" ||
20141            case $ac_f in
20142            [\\/$]*) false;;
20143            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20144            esac ||
20145            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
20146       esac
20147       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20148       as_fn_append ac_file_inputs " '$ac_f'"
20149     done
20150
20151     # Let's still pretend it is `configure' which instantiates (i.e., don't
20152     # use $as_me), people would be surprised to read:
20153     #    /* config.h.  Generated by config.status.  */
20154     configure_input='Generated from '`
20155           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20156         `' by configure.'
20157     if test x"$ac_file" != x-; then
20158       configure_input="$ac_file.  $configure_input"
20159       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20160 $as_echo "$as_me: creating $ac_file" >&6;}
20161     fi
20162     # Neutralize special characters interpreted by sed in replacement strings.
20163     case $configure_input in #(
20164     *\&* | *\|* | *\\* )
20165        ac_sed_conf_input=`$as_echo "$configure_input" |
20166        sed 's/[\\\\&|]/\\\\&/g'`;; #(
20167     *) ac_sed_conf_input=$configure_input;;
20168     esac
20169
20170     case $ac_tag in
20171     *:-:* | *:-) cat >"$tmp/stdin" \
20172       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
20173     esac
20174     ;;
20175   esac
20176
20177   ac_dir=`$as_dirname -- "$ac_file" ||
20178 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20179          X"$ac_file" : 'X\(//\)[^/]' \| \
20180          X"$ac_file" : 'X\(//\)$' \| \
20181          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20182 $as_echo X"$ac_file" |
20183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20184             s//\1/
20185             q
20186           }
20187           /^X\(\/\/\)[^/].*/{
20188             s//\1/
20189             q
20190           }
20191           /^X\(\/\/\)$/{
20192             s//\1/
20193             q
20194           }
20195           /^X\(\/\).*/{
20196             s//\1/
20197             q
20198           }
20199           s/.*/./; q'`
20200   as_dir="$ac_dir"; as_fn_mkdir_p
20201   ac_builddir=.
20202
20203 case "$ac_dir" in
20204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20205 *)
20206   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20207   # A ".." for each directory in $ac_dir_suffix.
20208   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20209   case $ac_top_builddir_sub in
20210   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20211   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20212   esac ;;
20213 esac
20214 ac_abs_top_builddir=$ac_pwd
20215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20216 # for backward compatibility:
20217 ac_top_builddir=$ac_top_build_prefix
20218
20219 case $srcdir in
20220   .)  # We are building in place.
20221     ac_srcdir=.
20222     ac_top_srcdir=$ac_top_builddir_sub
20223     ac_abs_top_srcdir=$ac_pwd ;;
20224   [\\/]* | ?:[\\/]* )  # Absolute name.
20225     ac_srcdir=$srcdir$ac_dir_suffix;
20226     ac_top_srcdir=$srcdir
20227     ac_abs_top_srcdir=$srcdir ;;
20228   *) # Relative name.
20229     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20230     ac_top_srcdir=$ac_top_build_prefix$srcdir
20231     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20232 esac
20233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20234
20235
20236   case $ac_mode in
20237   :F)
20238   #
20239   # CONFIG_FILE
20240   #
20241
20242   case $INSTALL in
20243   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20244   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20245   esac
20246 _ACEOF
20247
20248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20249 # If the template does not know about datarootdir, expand it.
20250 # FIXME: This hack should be removed a few years after 2.60.
20251 ac_datarootdir_hack=; ac_datarootdir_seen=
20252 ac_sed_dataroot='
20253 /datarootdir/ {
20254   p
20255   q
20256 }
20257 /@datadir@/p
20258 /@docdir@/p
20259 /@infodir@/p
20260 /@localedir@/p
20261 /@mandir@/p'
20262 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20263 *datarootdir*) ac_datarootdir_seen=yes;;
20264 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20265   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20266 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20267 _ACEOF
20268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20269   ac_datarootdir_hack='
20270   s&@datadir@&$datadir&g
20271   s&@docdir@&$docdir&g
20272   s&@infodir@&$infodir&g
20273   s&@localedir@&$localedir&g
20274   s&@mandir@&$mandir&g
20275   s&\\\${datarootdir}&$datarootdir&g' ;;
20276 esac
20277 _ACEOF
20278
20279 # Neutralize VPATH when `$srcdir' = `.'.
20280 # Shell code in configure.ac might set extrasub.
20281 # FIXME: do we really want to maintain this feature?
20282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20283 ac_sed_extra="$ac_vpsub
20284 $extrasub
20285 _ACEOF
20286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20287 :t
20288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20289 s|@configure_input@|$ac_sed_conf_input|;t t
20290 s&@top_builddir@&$ac_top_builddir_sub&;t t
20291 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20292 s&@srcdir@&$ac_srcdir&;t t
20293 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20294 s&@top_srcdir@&$ac_top_srcdir&;t t
20295 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20296 s&@builddir@&$ac_builddir&;t t
20297 s&@abs_builddir@&$ac_abs_builddir&;t t
20298 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20299 s&@INSTALL@&$ac_INSTALL&;t t
20300 $ac_datarootdir_hack
20301 "
20302 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20303   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20304
20305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20306   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20307   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20308   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20309 which seems to be undefined.  Please make sure it is defined" >&5
20310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20311 which seems to be undefined.  Please make sure it is defined" >&2;}
20312
20313   rm -f "$tmp/stdin"
20314   case $ac_file in
20315   -) cat "$tmp/out" && rm -f "$tmp/out";;
20316   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20317   esac \
20318   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20319  ;;
20320
20321
20322   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20323 $as_echo "$as_me: executing $ac_file commands" >&6;}
20324  ;;
20325   esac
20326
20327
20328   case $ac_file$ac_mode in
20329     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20330   # Strip MF so we end up with the name of the file.
20331   mf=`echo "$mf" | sed -e 's/:.*$//'`
20332   # Check whether this is an Automake generated Makefile or not.
20333   # We used to match only the files named `Makefile.in', but
20334   # some people rename them; so instead we look at the file content.
20335   # Grep'ing the first line is not enough: some people post-process
20336   # each Makefile.in and add a new line on top of each file to say so.
20337   # So let's grep whole file.
20338   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20339     dirpart=`$as_dirname -- "$mf" ||
20340 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20341          X"$mf" : 'X\(//\)[^/]' \| \
20342          X"$mf" : 'X\(//\)$' \| \
20343          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20344 $as_echo X"$mf" |
20345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20346             s//\1/
20347             q
20348           }
20349           /^X\(\/\/\)[^/].*/{
20350             s//\1/
20351             q
20352           }
20353           /^X\(\/\/\)$/{
20354             s//\1/
20355             q
20356           }
20357           /^X\(\/\).*/{
20358             s//\1/
20359             q
20360           }
20361           s/.*/./; q'`
20362   else
20363     continue
20364   fi
20365   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20366   # Extract the definition of DEP_FILES from the Makefile without
20367   # running `make'.
20368   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20369   test -z "$DEPDIR" && continue
20370   # When using ansi2knr, U may be empty or an underscore; expand it
20371   U=`sed -n -e '/^U = / s///p' < "$mf"`
20372   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20373   # We invoke sed twice because it is the simplest approach to
20374   # changing $(DEPDIR) to its actual value in the expansion.
20375   for file in `sed -n -e '
20376     /^DEP_FILES = .*\\\\$/ {
20377       s/^DEP_FILES = //
20378       :loop
20379         s/\\\\$//
20380         p
20381         n
20382         /\\\\$/ b loop
20383       p
20384     }
20385     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20386        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20387     # Make sure the directory exists.
20388     test -f "$dirpart/$file" && continue
20389     fdir=`$as_dirname -- "$file" ||
20390 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20391          X"$file" : 'X\(//\)[^/]' \| \
20392          X"$file" : 'X\(//\)$' \| \
20393          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20394 $as_echo X"$file" |
20395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20396             s//\1/
20397             q
20398           }
20399           /^X\(\/\/\)[^/].*/{
20400             s//\1/
20401             q
20402           }
20403           /^X\(\/\/\)$/{
20404             s//\1/
20405             q
20406           }
20407           /^X\(\/\).*/{
20408             s//\1/
20409             q
20410           }
20411           s/.*/./; q'`
20412     as_dir=$dirpart/$fdir; as_fn_mkdir_p
20413     # echo "creating $dirpart/$file"
20414     echo '# dummy' > "$dirpart/$file"
20415   done
20416 done
20417  ;;
20418     "ijs-config":F) chmod +x ijs-config ;;
20419
20420   esac
20421 done # for ac_tag
20422
20423
20424 as_fn_exit 0
20425 _ACEOF
20426 ac_clean_files=$ac_clean_files_save
20427
20428 test $ac_write_fail = 0 ||
20429   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20430
20431
20432 # configure is writing to config.log, and then calls config.status.
20433 # config.status does its own redirection, appending to config.log.
20434 # Unfortunately, on DOS this fails, as config.log is still kept open
20435 # by configure, so config.status won't be able to write to it; its
20436 # output is simply discarded.  So we exec the FD to /dev/null,
20437 # effectively closing config.log, so it can be properly (re)opened and
20438 # appended to by config.status.  When coming back to configure, we
20439 # need to make the FD available again.
20440 if test "$no_create" != yes; then
20441   ac_cs_success=:
20442   ac_config_status_args=
20443   test "$silent" = yes &&
20444     ac_config_status_args="$ac_config_status_args --quiet"
20445   exec 5>/dev/null
20446   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20447   exec 5>>config.log
20448   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20449   # would make configure fail if this is the last instruction.
20450   $ac_cs_success || as_fn_exit 1
20451 fi
20452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20454 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20455 fi
20456