tizen 2.3.1 release
[external/alsa-lib.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $echo works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<EOF
567 $*
568 EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582        echo_test_string=`eval $cmd` &&
583        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584     then
585       break
586     fi
587   done
588 fi
589
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592    test "X$echo_testing_string" = "X$echo_test_string"; then
593   :
594 else
595   # The Solaris, AIX, and Digital Unix default echo programs unquote
596   # backslashes.  This makes it impossible to quote backslashes using
597   #   echo "$something" | sed 's/\\/\\\\/g'
598   #
599   # So, first we look for a working echo in the user's PATH.
600
601   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602   for dir in $PATH /usr/ucb; do
603     IFS="$lt_save_ifs"
604     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607        test "X$echo_testing_string" = "X$echo_test_string"; then
608       echo="$dir/echo"
609       break
610     fi
611   done
612   IFS="$lt_save_ifs"
613
614   if test "X$echo" = Xecho; then
615     # We didn't find a better echo, so look for alternatives.
616     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618        test "X$echo_testing_string" = "X$echo_test_string"; then
619       # This shell has a builtin print -r that does the trick.
620       echo='print -r'
621     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622          test "X$CONFIG_SHELL" != X/bin/ksh; then
623       # If we have ksh, try running configure again with it.
624       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625       export ORIGINAL_CONFIG_SHELL
626       CONFIG_SHELL=/bin/ksh
627       export CONFIG_SHELL
628       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629     else
630       # Try using printf.
631       echo='printf %s\n'
632       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # Cool, printf works
636         :
637       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638            test "X$echo_testing_string" = 'X\t' &&
639            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640            test "X$echo_testing_string" = "X$echo_test_string"; then
641         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642         export CONFIG_SHELL
643         SHELL="$CONFIG_SHELL"
644         export SHELL
645         echo="$CONFIG_SHELL $0 --fallback-echo"
646       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647            test "X$echo_testing_string" = 'X\t' &&
648            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649            test "X$echo_testing_string" = "X$echo_test_string"; then
650         echo="$CONFIG_SHELL $0 --fallback-echo"
651       else
652         # maybe with a smaller string...
653         prev=:
654
655         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657           then
658             break
659           fi
660           prev="$cmd"
661         done
662
663         if test "$prev" != 'sed 50q "$0"'; then
664           echo_test_string=`eval $prev`
665           export echo_test_string
666           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667         else
668           # Oops.  We lost completely, so just stick with echo.
669           echo=echo
670         fi
671       fi
672     fi
673   fi
674 fi
675 fi
676
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 fi
683
684
685
686
687 tagnames=${tagnames+${tagnames},}CXX
688
689 tagnames=${tagnames+${tagnames},}F77
690
691 test -n "$DJDIR" || exec 7<&0 </dev/null
692 exec 6>&1
693
694 # Name of the host.
695 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
698
699 #
700 # Initializations.
701 #
702 ac_default_prefix=/usr/local
703 ac_clean_files=
704 ac_config_libobj_dir=.
705 LIBOBJS=
706 cross_compiling=no
707 subdirs=
708 MFLAGS=
709 MAKEFLAGS=
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717 PACKAGE_URL=
718
719 ac_unique_file="src/control/control.c"
720 ac_default_prefix=/usr
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #ifdef HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #ifdef HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #ifdef STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # ifdef HAVE_STDLIB_H
735 #  include <stdlib.h>
736 # endif
737 #endif
738 #ifdef HAVE_STRING_H
739 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
740 #  include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #ifdef HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #ifdef HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #ifdef HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #ifdef HAVE_UNISTD_H
754 # include <unistd.h>
755 #endif"
756
757 ac_subst_vars='am__EXEEXT_FALSE
758 am__EXEEXT_TRUE
759 LTLIBOBJS
760 LIBOBJS
761 BUILD_CTL_PLUGIN_EXT_FALSE
762 BUILD_CTL_PLUGIN_EXT_TRUE
763 BUILD_CTL_PLUGIN_SHM_FALSE
764 BUILD_CTL_PLUGIN_SHM_TRUE
765 BUILD_CTL_PLUGIN_FALSE
766 BUILD_CTL_PLUGIN_TRUE
767 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE
768 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE
769 BUILD_PCM_PLUGIN_IOPLUG_FALSE
770 BUILD_PCM_PLUGIN_IOPLUG_TRUE
771 BUILD_PCM_PLUGIN_EXTPLUG_FALSE
772 BUILD_PCM_PLUGIN_EXTPLUG_TRUE
773 BUILD_PCM_PLUGIN_SOFTVOL_FALSE
774 BUILD_PCM_PLUGIN_SOFTVOL_TRUE
775 BUILD_PCM_PLUGIN_IEC958_FALSE
776 BUILD_PCM_PLUGIN_IEC958_TRUE
777 BUILD_PCM_PLUGIN_ASYM_FALSE
778 BUILD_PCM_PLUGIN_ASYM_TRUE
779 BUILD_PCM_PLUGIN_DSNOOP_FALSE
780 BUILD_PCM_PLUGIN_DSNOOP_TRUE
781 BUILD_PCM_PLUGIN_DSHARE_FALSE
782 BUILD_PCM_PLUGIN_DSHARE_TRUE
783 BUILD_PCM_PLUGIN_DMIX_FALSE
784 BUILD_PCM_PLUGIN_DMIX_TRUE
785 BUILD_PCM_PLUGIN_LADSPA_FALSE
786 BUILD_PCM_PLUGIN_LADSPA_TRUE
787 BUILD_PCM_PLUGIN_LFLOAT_FALSE
788 BUILD_PCM_PLUGIN_LFLOAT_TRUE
789 BUILD_PCM_PLUGIN_HOOKS_FALSE
790 BUILD_PCM_PLUGIN_HOOKS_TRUE
791 BUILD_PCM_PLUGIN_METER_FALSE
792 BUILD_PCM_PLUGIN_METER_TRUE
793 BUILD_PCM_PLUGIN_SHARE_FALSE
794 BUILD_PCM_PLUGIN_SHARE_TRUE
795 BUILD_PCM_PLUGIN_EMPTY_FALSE
796 BUILD_PCM_PLUGIN_EMPTY_TRUE
797 BUILD_PCM_PLUGIN_NULL_FALSE
798 BUILD_PCM_PLUGIN_NULL_TRUE
799 BUILD_PCM_PLUGIN_FILE_FALSE
800 BUILD_PCM_PLUGIN_FILE_TRUE
801 BUILD_PCM_PLUGIN_SHM_FALSE
802 BUILD_PCM_PLUGIN_SHM_TRUE
803 BUILD_PCM_PLUGIN_MULTI_FALSE
804 BUILD_PCM_PLUGIN_MULTI_TRUE
805 BUILD_PCM_PLUGIN_PLUG_FALSE
806 BUILD_PCM_PLUGIN_PLUG_TRUE
807 BUILD_PCM_PLUGIN_RATE_FALSE
808 BUILD_PCM_PLUGIN_RATE_TRUE
809 BUILD_PCM_PLUGIN_ADPCM_FALSE
810 BUILD_PCM_PLUGIN_ADPCM_TRUE
811 BUILD_PCM_PLUGIN_ALAW_FALSE
812 BUILD_PCM_PLUGIN_ALAW_TRUE
813 BUILD_PCM_PLUGIN_MULAW_FALSE
814 BUILD_PCM_PLUGIN_MULAW_TRUE
815 BUILD_PCM_PLUGIN_ROUTE_FALSE
816 BUILD_PCM_PLUGIN_ROUTE_TRUE
817 BUILD_PCM_PLUGIN_LINEAR_FALSE
818 BUILD_PCM_PLUGIN_LINEAR_TRUE
819 BUILD_PCM_PLUGIN_COPY_FALSE
820 BUILD_PCM_PLUGIN_COPY_TRUE
821 BUILD_PCM_PLUGIN_FALSE
822 BUILD_PCM_PLUGIN_TRUE
823 BUILD_PYTHON_FALSE
824 BUILD_PYTHON_TRUE
825 BUILD_ALISP_FALSE
826 BUILD_ALISP_TRUE
827 BUILD_UCM_FALSE
828 BUILD_UCM_TRUE
829 BUILD_SEQ_FALSE
830 BUILD_SEQ_TRUE
831 BUILD_HWDEP_FALSE
832 BUILD_HWDEP_TRUE
833 BUILD_RAWMIDI_FALSE
834 BUILD_RAWMIDI_TRUE
835 BUILD_PCM_FALSE
836 BUILD_PCM_TRUE
837 BUILD_MIXER_FALSE
838 BUILD_MIXER_TRUE
839 PYTHON_INCLUDES
840 PYTHON_LIBS
841 KEEP_OLD_SYMBOLS_FALSE
842 KEEP_OLD_SYMBOLS_TRUE
843 ALSA_DEPLIBS
844 BUILD_MODULES_FALSE
845 BUILD_MODULES_TRUE
846 SYMBOL_PREFIX
847 SYMBOLIC_FUNCTIONS_FALSE
848 SYMBOLIC_FUNCTIONS_TRUE
849 VERSIONED_SYMBOLS_FALSE
850 VERSIONED_SYMBOLS_TRUE
851 ALSA_PKGCONF_DIR
852 ALSA_PLUGIN_DIR
853 ALSA_CONFIG_DIR
854 LIBTOOL_VERSION_INFO
855 SND_LIB_EXTRAVER
856 SND_LIB_SUBMINOR
857 SND_LIB_MINOR
858 SND_LIB_MAJOR
859 SND_LIB_VERSION
860 ALSA_HSEARCH_R_FALSE
861 ALSA_HSEARCH_R_TRUE
862 LIBTOOL
863 ac_ct_F77
864 FFLAGS
865 F77
866 CXXCPP
867 am__fastdepCXX_FALSE
868 am__fastdepCXX_TRUE
869 CXXDEPMODE
870 ac_ct_CXX
871 CXXFLAGS
872 CXX
873 RANLIB
874 AR
875 ECHO
876 EGREP
877 GREP
878 LN_S
879 CPP
880 am__fastdepCC_FALSE
881 am__fastdepCC_TRUE
882 CCDEPMODE
883 AMDEPBACKSLASH
884 AMDEP_FALSE
885 AMDEP_TRUE
886 am__quote
887 am__include
888 DEPDIR
889 OBJEXT
890 EXEEXT
891 ac_ct_CC
892 CPPFLAGS
893 LDFLAGS
894 CFLAGS
895 CC
896 AM_BACKSLASH
897 AM_DEFAULT_VERBOSITY
898 INSTALL_M4_FALSE
899 INSTALL_M4_TRUE
900 am__untar
901 am__tar
902 AMTAR
903 am__leading_dot
904 SET_MAKE
905 AWK
906 mkdir_p
907 MKDIR_P
908 INSTALL_STRIP_PROGRAM
909 STRIP
910 install_sh
911 MAKEINFO
912 AUTOHEADER
913 AUTOMAKE
914 AUTOCONF
915 ACLOCAL
916 VERSION
917 PACKAGE
918 CYGPATH_W
919 am__isrc
920 INSTALL_DATA
921 INSTALL_SCRIPT
922 INSTALL_PROGRAM
923 host_os
924 host_vendor
925 host_cpu
926 host
927 build_os
928 build_vendor
929 build_cpu
930 build
931 target_alias
932 host_alias
933 build_alias
934 LIBS
935 ECHO_T
936 ECHO_N
937 ECHO_C
938 DEFS
939 mandir
940 localedir
941 libdir
942 psdir
943 pdfdir
944 dvidir
945 htmldir
946 infodir
947 docdir
948 oldincludedir
949 includedir
950 localstatedir
951 sharedstatedir
952 sysconfdir
953 datadir
954 datarootdir
955 libexecdir
956 sbindir
957 bindir
958 program_transform_name
959 prefix
960 exec_prefix
961 PACKAGE_URL
962 PACKAGE_BUGREPORT
963 PACKAGE_STRING
964 PACKAGE_VERSION
965 PACKAGE_TARNAME
966 PACKAGE_NAME
967 PATH_SEPARATOR
968 SHELL'
969 ac_subst_files=''
970 ac_user_opts='
971 enable_option_checking
972 enable_silent_rules
973 enable_dependency_tracking
974 enable_static
975 enable_shared
976 enable_fast_install
977 with_gnu_ld
978 enable_libtool_lock
979 with_pic
980 with_tags
981 with_configdir
982 with_plugindir
983 with_pkgconfdir
984 with_versioned
985 enable_symbolic_functions
986 with_debug
987 enable_debug_assert
988 with_tmpdir
989 with_softfloat
990 with_libdl
991 with_pthread
992 with_librt
993 enable_resmgr
994 enable_aload
995 with_alsa_devdir
996 with_aload_devdir
997 enable_mixer
998 enable_pcm
999 enable_rawmidi
1000 enable_hwdep
1001 enable_seq
1002 enable_ucm
1003 enable_alisp
1004 enable_old_symbols
1005 enable_python
1006 with_pythonlibs
1007 with_pythonincludes
1008 with_pcm_plugins
1009 with_ctl_plugins
1010 '
1011       ac_precious_vars='build_alias
1012 host_alias
1013 target_alias
1014 CC
1015 CFLAGS
1016 LDFLAGS
1017 LIBS
1018 CPPFLAGS
1019 CPP
1020 CXX
1021 CXXFLAGS
1022 CCC
1023 CXXCPP
1024 F77
1025 FFLAGS'
1026
1027
1028 # Initialize some variables set by options.
1029 ac_init_help=
1030 ac_init_version=false
1031 ac_unrecognized_opts=
1032 ac_unrecognized_sep=
1033 # The variables have the same names as the options, with
1034 # dashes changed to underlines.
1035 cache_file=/dev/null
1036 exec_prefix=NONE
1037 no_create=
1038 no_recursion=
1039 prefix=NONE
1040 program_prefix=NONE
1041 program_suffix=NONE
1042 program_transform_name=s,x,x,
1043 silent=
1044 site=
1045 srcdir=
1046 verbose=
1047 x_includes=NONE
1048 x_libraries=NONE
1049
1050 # Installation directory options.
1051 # These are left unexpanded so users can "make install exec_prefix=/foo"
1052 # and all the variables that are supposed to be based on exec_prefix
1053 # by default will actually change.
1054 # Use braces instead of parens because sh, perl, etc. also accept them.
1055 # (The list follows the same order as the GNU Coding Standards.)
1056 bindir='${exec_prefix}/bin'
1057 sbindir='${exec_prefix}/sbin'
1058 libexecdir='${exec_prefix}/libexec'
1059 datarootdir='${prefix}/share'
1060 datadir='${datarootdir}'
1061 sysconfdir='${prefix}/etc'
1062 sharedstatedir='${prefix}/com'
1063 localstatedir='${prefix}/var'
1064 includedir='${prefix}/include'
1065 oldincludedir='/usr/include'
1066 docdir='${datarootdir}/doc/${PACKAGE}'
1067 infodir='${datarootdir}/info'
1068 htmldir='${docdir}'
1069 dvidir='${docdir}'
1070 pdfdir='${docdir}'
1071 psdir='${docdir}'
1072 libdir='${exec_prefix}/lib'
1073 localedir='${datarootdir}/locale'
1074 mandir='${datarootdir}/man'
1075
1076 ac_prev=
1077 ac_dashdash=
1078 for ac_option
1079 do
1080   # If the previous option needs an argument, assign it.
1081   if test -n "$ac_prev"; then
1082     eval $ac_prev=\$ac_option
1083     ac_prev=
1084     continue
1085   fi
1086
1087   case $ac_option in
1088   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1089   *=)   ac_optarg= ;;
1090   *)    ac_optarg=yes ;;
1091   esac
1092
1093   # Accept the important Cygnus configure options, so we can diagnose typos.
1094
1095   case $ac_dashdash$ac_option in
1096   --)
1097     ac_dashdash=yes ;;
1098
1099   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1100     ac_prev=bindir ;;
1101   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1102     bindir=$ac_optarg ;;
1103
1104   -build | --build | --buil | --bui | --bu)
1105     ac_prev=build_alias ;;
1106   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1107     build_alias=$ac_optarg ;;
1108
1109   -cache-file | --cache-file | --cache-fil | --cache-fi \
1110   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1111     ac_prev=cache_file ;;
1112   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1113   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1114     cache_file=$ac_optarg ;;
1115
1116   --config-cache | -C)
1117     cache_file=config.cache ;;
1118
1119   -datadir | --datadir | --datadi | --datad)
1120     ac_prev=datadir ;;
1121   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1122     datadir=$ac_optarg ;;
1123
1124   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1125   | --dataroo | --dataro | --datar)
1126     ac_prev=datarootdir ;;
1127   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1128   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1129     datarootdir=$ac_optarg ;;
1130
1131   -disable-* | --disable-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid feature name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "enable_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval enable_$ac_useropt=no ;;
1146
1147   -docdir | --docdir | --docdi | --doc | --do)
1148     ac_prev=docdir ;;
1149   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1150     docdir=$ac_optarg ;;
1151
1152   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1153     ac_prev=dvidir ;;
1154   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1155     dvidir=$ac_optarg ;;
1156
1157   -enable-* | --enable-*)
1158     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161       as_fn_error $? "invalid feature name: $ac_useropt"
1162     ac_useropt_orig=$ac_useropt
1163     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164     case $ac_user_opts in
1165       *"
1166 "enable_$ac_useropt"
1167 "*) ;;
1168       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1169          ac_unrecognized_sep=', ';;
1170     esac
1171     eval enable_$ac_useropt=\$ac_optarg ;;
1172
1173   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1174   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1175   | --exec | --exe | --ex)
1176     ac_prev=exec_prefix ;;
1177   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1178   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1179   | --exec=* | --exe=* | --ex=*)
1180     exec_prefix=$ac_optarg ;;
1181
1182   -gas | --gas | --ga | --g)
1183     # Obsolete; use --with-gas.
1184     with_gas=yes ;;
1185
1186   -help | --help | --hel | --he | -h)
1187     ac_init_help=long ;;
1188   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1189     ac_init_help=recursive ;;
1190   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1191     ac_init_help=short ;;
1192
1193   -host | --host | --hos | --ho)
1194     ac_prev=host_alias ;;
1195   -host=* | --host=* | --hos=* | --ho=*)
1196     host_alias=$ac_optarg ;;
1197
1198   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1199     ac_prev=htmldir ;;
1200   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1201   | --ht=*)
1202     htmldir=$ac_optarg ;;
1203
1204   -includedir | --includedir | --includedi | --included | --include \
1205   | --includ | --inclu | --incl | --inc)
1206     ac_prev=includedir ;;
1207   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1208   | --includ=* | --inclu=* | --incl=* | --inc=*)
1209     includedir=$ac_optarg ;;
1210
1211   -infodir | --infodir | --infodi | --infod | --info | --inf)
1212     ac_prev=infodir ;;
1213   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1214     infodir=$ac_optarg ;;
1215
1216   -libdir | --libdir | --libdi | --libd)
1217     ac_prev=libdir ;;
1218   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1219     libdir=$ac_optarg ;;
1220
1221   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1222   | --libexe | --libex | --libe)
1223     ac_prev=libexecdir ;;
1224   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1225   | --libexe=* | --libex=* | --libe=*)
1226     libexecdir=$ac_optarg ;;
1227
1228   -localedir | --localedir | --localedi | --localed | --locale)
1229     ac_prev=localedir ;;
1230   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1231     localedir=$ac_optarg ;;
1232
1233   -localstatedir | --localstatedir | --localstatedi | --localstated \
1234   | --localstate | --localstat | --localsta | --localst | --locals)
1235     ac_prev=localstatedir ;;
1236   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1237   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1238     localstatedir=$ac_optarg ;;
1239
1240   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1241     ac_prev=mandir ;;
1242   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1243     mandir=$ac_optarg ;;
1244
1245   -nfp | --nfp | --nf)
1246     # Obsolete; use --without-fp.
1247     with_fp=no ;;
1248
1249   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1250   | --no-cr | --no-c | -n)
1251     no_create=yes ;;
1252
1253   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1254   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1255     no_recursion=yes ;;
1256
1257   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1258   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1259   | --oldin | --oldi | --old | --ol | --o)
1260     ac_prev=oldincludedir ;;
1261   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1262   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1263   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1264     oldincludedir=$ac_optarg ;;
1265
1266   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1267     ac_prev=prefix ;;
1268   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1269     prefix=$ac_optarg ;;
1270
1271   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1272   | --program-pre | --program-pr | --program-p)
1273     ac_prev=program_prefix ;;
1274   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1275   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1276     program_prefix=$ac_optarg ;;
1277
1278   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1279   | --program-suf | --program-su | --program-s)
1280     ac_prev=program_suffix ;;
1281   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1282   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1283     program_suffix=$ac_optarg ;;
1284
1285   -program-transform-name | --program-transform-name \
1286   | --program-transform-nam | --program-transform-na \
1287   | --program-transform-n | --program-transform- \
1288   | --program-transform | --program-transfor \
1289   | --program-transfo | --program-transf \
1290   | --program-trans | --program-tran \
1291   | --progr-tra | --program-tr | --program-t)
1292     ac_prev=program_transform_name ;;
1293   -program-transform-name=* | --program-transform-name=* \
1294   | --program-transform-nam=* | --program-transform-na=* \
1295   | --program-transform-n=* | --program-transform-=* \
1296   | --program-transform=* | --program-transfor=* \
1297   | --program-transfo=* | --program-transf=* \
1298   | --program-trans=* | --program-tran=* \
1299   | --progr-tra=* | --program-tr=* | --program-t=*)
1300     program_transform_name=$ac_optarg ;;
1301
1302   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1303     ac_prev=pdfdir ;;
1304   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1305     pdfdir=$ac_optarg ;;
1306
1307   -psdir | --psdir | --psdi | --psd | --ps)
1308     ac_prev=psdir ;;
1309   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1310     psdir=$ac_optarg ;;
1311
1312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1313   | -silent | --silent | --silen | --sile | --sil)
1314     silent=yes ;;
1315
1316   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1317     ac_prev=sbindir ;;
1318   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1319   | --sbi=* | --sb=*)
1320     sbindir=$ac_optarg ;;
1321
1322   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1323   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1324   | --sharedst | --shareds | --shared | --share | --shar \
1325   | --sha | --sh)
1326     ac_prev=sharedstatedir ;;
1327   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1328   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1329   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1330   | --sha=* | --sh=*)
1331     sharedstatedir=$ac_optarg ;;
1332
1333   -site | --site | --sit)
1334     ac_prev=site ;;
1335   -site=* | --site=* | --sit=*)
1336     site=$ac_optarg ;;
1337
1338   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1339     ac_prev=srcdir ;;
1340   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1341     srcdir=$ac_optarg ;;
1342
1343   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1344   | --syscon | --sysco | --sysc | --sys | --sy)
1345     ac_prev=sysconfdir ;;
1346   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1347   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1348     sysconfdir=$ac_optarg ;;
1349
1350   -target | --target | --targe | --targ | --tar | --ta | --t)
1351     ac_prev=target_alias ;;
1352   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1353     target_alias=$ac_optarg ;;
1354
1355   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1356     verbose=yes ;;
1357
1358   -version | --version | --versio | --versi | --vers | -V)
1359     ac_init_version=: ;;
1360
1361   -with-* | --with-*)
1362     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1363     # Reject names that are not valid shell variable names.
1364     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365       as_fn_error $? "invalid package name: $ac_useropt"
1366     ac_useropt_orig=$ac_useropt
1367     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368     case $ac_user_opts in
1369       *"
1370 "with_$ac_useropt"
1371 "*) ;;
1372       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1373          ac_unrecognized_sep=', ';;
1374     esac
1375     eval with_$ac_useropt=\$ac_optarg ;;
1376
1377   -without-* | --without-*)
1378     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1379     # Reject names that are not valid shell variable names.
1380     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1381       as_fn_error $? "invalid package name: $ac_useropt"
1382     ac_useropt_orig=$ac_useropt
1383     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384     case $ac_user_opts in
1385       *"
1386 "with_$ac_useropt"
1387 "*) ;;
1388       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1389          ac_unrecognized_sep=', ';;
1390     esac
1391     eval with_$ac_useropt=no ;;
1392
1393   --x)
1394     # Obsolete; use --with-x.
1395     with_x=yes ;;
1396
1397   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1398   | --x-incl | --x-inc | --x-in | --x-i)
1399     ac_prev=x_includes ;;
1400   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1401   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1402     x_includes=$ac_optarg ;;
1403
1404   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1405   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1406     ac_prev=x_libraries ;;
1407   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1408   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1409     x_libraries=$ac_optarg ;;
1410
1411   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1412 Try \`$0 --help' for more information"
1413     ;;
1414
1415   *=*)
1416     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1417     # Reject names that are not valid shell variable names.
1418     case $ac_envvar in #(
1419       '' | [0-9]* | *[!_$as_cr_alnum]* )
1420       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1421     esac
1422     eval $ac_envvar=\$ac_optarg
1423     export $ac_envvar ;;
1424
1425   *)
1426     # FIXME: should be removed in autoconf 3.0.
1427     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1429       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1431     ;;
1432
1433   esac
1434 done
1435
1436 if test -n "$ac_prev"; then
1437   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1438   as_fn_error $? "missing argument to $ac_option"
1439 fi
1440
1441 if test -n "$ac_unrecognized_opts"; then
1442   case $enable_option_checking in
1443     no) ;;
1444     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1445     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1446   esac
1447 fi
1448
1449 # Check all directory arguments for consistency.
1450 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1451                 datadir sysconfdir sharedstatedir localstatedir includedir \
1452                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1453                 libdir localedir mandir
1454 do
1455   eval ac_val=\$$ac_var
1456   # Remove trailing slashes.
1457   case $ac_val in
1458     */ )
1459       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1460       eval $ac_var=\$ac_val;;
1461   esac
1462   # Be sure to have absolute directory names.
1463   case $ac_val in
1464     [\\/$]* | ?:[\\/]* )  continue;;
1465     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1466   esac
1467   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1468 done
1469
1470 # There might be people who depend on the old broken behavior: `$host'
1471 # used to hold the argument of --host etc.
1472 # FIXME: To remove some day.
1473 build=$build_alias
1474 host=$host_alias
1475 target=$target_alias
1476
1477 # FIXME: To remove some day.
1478 if test "x$host_alias" != x; then
1479   if test "x$build_alias" = x; then
1480     cross_compiling=maybe
1481     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1482     If a cross compiler is detected then cross compile mode will be used" >&2
1483   elif test "x$build_alias" != "x$host_alias"; then
1484     cross_compiling=yes
1485   fi
1486 fi
1487
1488 ac_tool_prefix=
1489 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1490
1491 test "$silent" = yes && exec 6>/dev/null
1492
1493
1494 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1495 ac_ls_di=`ls -di .` &&
1496 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1497   as_fn_error $? "working directory cannot be determined"
1498 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1499   as_fn_error $? "pwd does not report name of working directory"
1500
1501
1502 # Find the source files, if location was not specified.
1503 if test -z "$srcdir"; then
1504   ac_srcdir_defaulted=yes
1505   # Try the directory containing this script, then the parent directory.
1506   ac_confdir=`$as_dirname -- "$as_myself" ||
1507 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1508          X"$as_myself" : 'X\(//\)[^/]' \| \
1509          X"$as_myself" : 'X\(//\)$' \| \
1510          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1511 $as_echo X"$as_myself" |
1512     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1513             s//\1/
1514             q
1515           }
1516           /^X\(\/\/\)[^/].*/{
1517             s//\1/
1518             q
1519           }
1520           /^X\(\/\/\)$/{
1521             s//\1/
1522             q
1523           }
1524           /^X\(\/\).*/{
1525             s//\1/
1526             q
1527           }
1528           s/.*/./; q'`
1529   srcdir=$ac_confdir
1530   if test ! -r "$srcdir/$ac_unique_file"; then
1531     srcdir=..
1532   fi
1533 else
1534   ac_srcdir_defaulted=no
1535 fi
1536 if test ! -r "$srcdir/$ac_unique_file"; then
1537   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1538   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1539 fi
1540 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1541 ac_abs_confdir=`(
1542         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1543         pwd)`
1544 # When building in place, set srcdir=.
1545 if test "$ac_abs_confdir" = "$ac_pwd"; then
1546   srcdir=.
1547 fi
1548 # Remove unnecessary trailing slashes from srcdir.
1549 # Double slashes in file names in object file debugging info
1550 # mess up M-x gdb in Emacs.
1551 case $srcdir in
1552 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 esac
1554 for ac_var in $ac_precious_vars; do
1555   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1556   eval ac_env_${ac_var}_value=\$${ac_var}
1557   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1558   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1559 done
1560
1561 #
1562 # Report the --help message.
1563 #
1564 if test "$ac_init_help" = "long"; then
1565   # Omit some internal or obsolete options to make the list less imposing.
1566   # This message is too long to be a string in the A/UX 3.1 sh.
1567   cat <<_ACEOF
1568 \`configure' configures this package to adapt to many kinds of systems.
1569
1570 Usage: $0 [OPTION]... [VAR=VALUE]...
1571
1572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1573 VAR=VALUE.  See below for descriptions of some of the useful variables.
1574
1575 Defaults for the options are specified in brackets.
1576
1577 Configuration:
1578   -h, --help              display this help and exit
1579       --help=short        display options specific to this package
1580       --help=recursive    display the short help of all the included packages
1581   -V, --version           display version information and exit
1582   -q, --quiet, --silent   do not print \`checking ...' messages
1583       --cache-file=FILE   cache test results in FILE [disabled]
1584   -C, --config-cache      alias for \`--cache-file=config.cache'
1585   -n, --no-create         do not create output files
1586       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1587
1588 Installation directories:
1589   --prefix=PREFIX         install architecture-independent files in PREFIX
1590                           [$ac_default_prefix]
1591   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1592                           [PREFIX]
1593
1594 By default, \`make install' will install all the files in
1595 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1596 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1597 for instance \`--prefix=\$HOME'.
1598
1599 For better control, use the options below.
1600
1601 Fine tuning of the installation directories:
1602   --bindir=DIR            user executables [EPREFIX/bin]
1603   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1604   --libexecdir=DIR        program executables [EPREFIX/libexec]
1605   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1606   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1607   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1608   --libdir=DIR            object code libraries [EPREFIX/lib]
1609   --includedir=DIR        C header files [PREFIX/include]
1610   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1611   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1612   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1613   --infodir=DIR           info documentation [DATAROOTDIR/info]
1614   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1615   --mandir=DIR            man documentation [DATAROOTDIR/man]
1616   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1617   --htmldir=DIR           html documentation [DOCDIR]
1618   --dvidir=DIR            dvi documentation [DOCDIR]
1619   --pdfdir=DIR            pdf documentation [DOCDIR]
1620   --psdir=DIR             ps documentation [DOCDIR]
1621 _ACEOF
1622
1623   cat <<\_ACEOF
1624
1625 Program names:
1626   --program-prefix=PREFIX            prepend PREFIX to installed program names
1627   --program-suffix=SUFFIX            append SUFFIX to installed program names
1628   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1629
1630 System types:
1631   --build=BUILD     configure for building on BUILD [guessed]
1632   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1633 _ACEOF
1634 fi
1635
1636 if test -n "$ac_init_help"; then
1637
1638   cat <<\_ACEOF
1639
1640 Optional Features:
1641   --disable-option-checking  ignore unrecognized --enable/--with options
1642   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1643   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1644   --enable-silent-rules          less verbose build output (undo: `make V=1')
1645   --disable-silent-rules         verbose build output (undo: `make V=0')
1646   --disable-dependency-tracking  speeds up one-time build
1647   --enable-dependency-tracking   do not reject slow dependency extractors
1648   --enable-static[=PKGS]  build static libraries [default=no]
1649   --enable-shared[=PKGS]  build shared libraries [default=yes]
1650   --enable-fast-install[=PKGS]
1651                           optimize for fast installation [default=yes]
1652   --disable-libtool-lock  avoid locking (might break parallel builds)
1653   --enable-symbolic-functions
1654                           use -Bsymbolic-functions option if available
1655                           (optmization for size and speed)
1656   --enable-debug          enable assert call at the default error message
1657                           handler
1658   --enable-resmgr         support resmgr (optional)
1659   --disable-aload         disable reading /dev/aload*
1660   --disable-mixer         disable the mixer component
1661   --disable-pcm           disable the PCM component
1662   --disable-rawmidi       disable the raw MIDI component
1663   --disable-hwdep         disable the hwdep component
1664   --disable-seq           disable the sequencer component
1665   --disable-ucm           disable the use-case-manager component
1666   --disable-alisp         disable the alisp component
1667   --disable-old-symbols   disable old obsoleted symbols
1668   --disable-python        disable the python components
1669
1670 Optional Packages:
1671   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1672   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1673   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1674   --with-pic              try to use only PIC/non-PIC objects [default=use
1675                           both]
1676   --with-tags[=TAGS]      include additional configurations [automatic]
1677   --with-configdir=dir    path where ALSA config files are stored
1678   --with-plugindir=dir    path where ALSA plugin files are stored
1679   --with-pkgconfdir=dir   path where pkgconfig files are stored
1680   --with-versioned        shared library will be compiled with versioned
1681                           symbols (default = yes)
1682   --with-debug            library will be compiled with asserts (default =
1683                           yes)
1684   --with-tmpdir=directory directory to put tmp socket files (/tmp)
1685   --with-softfloat        do you have floating point unit on this machine?
1686                           (optional)
1687   --with-libdl            Use libdl for plugins (default = yes)
1688   --with-pthread          Use pthread (default = yes)
1689   --with-librt            Use librt for monotonic clock (default = yes)
1690   --with-alsa-devdir=dir  directory with ALSA device files (default /dev/snd)
1691   --with-aload-devdir=dir directory with aload* device files (default /dev)
1692   --with-pythonlibs=ldflags
1693                           specify python libraries (-lpthread -lm -ldl
1694                           -lpython2.4)
1695   --with-pythonincludes=Cflags
1696                           specify python C header files
1697                           (-I/usr/include/python)
1698   --with-pcm-plugins=<list>
1699                           build PCM plugins (default = all)
1700   --with-ctl-plugins=<list>
1701                           build control plugins (default = all)
1702
1703 Some influential environment variables:
1704   CC          C compiler command
1705   CFLAGS      C compiler flags
1706   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1707               nonstandard directory <lib dir>
1708   LIBS        libraries to pass to the linker, e.g. -l<library>
1709   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1710               you have headers in a nonstandard directory <include dir>
1711   CPP         C preprocessor
1712   CXX         C++ compiler command
1713   CXXFLAGS    C++ compiler flags
1714   CXXCPP      C++ preprocessor
1715   F77         Fortran 77 compiler command
1716   FFLAGS      Fortran 77 compiler flags
1717
1718 Use these variables to override the choices made by `configure' or to help
1719 it to find libraries and programs with nonstandard names/locations.
1720
1721 Report bugs to the package provider.
1722 _ACEOF
1723 ac_status=$?
1724 fi
1725
1726 if test "$ac_init_help" = "recursive"; then
1727   # If there are subdirs, report their specific --help.
1728   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729     test -d "$ac_dir" ||
1730       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1731       continue
1732     ac_builddir=.
1733
1734 case "$ac_dir" in
1735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736 *)
1737   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738   # A ".." for each directory in $ac_dir_suffix.
1739   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740   case $ac_top_builddir_sub in
1741   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743   esac ;;
1744 esac
1745 ac_abs_top_builddir=$ac_pwd
1746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir=$ac_top_build_prefix
1749
1750 case $srcdir in
1751   .)  # We are building in place.
1752     ac_srcdir=.
1753     ac_top_srcdir=$ac_top_builddir_sub
1754     ac_abs_top_srcdir=$ac_pwd ;;
1755   [\\/]* | ?:[\\/]* )  # Absolute name.
1756     ac_srcdir=$srcdir$ac_dir_suffix;
1757     ac_top_srcdir=$srcdir
1758     ac_abs_top_srcdir=$srcdir ;;
1759   *) # Relative name.
1760     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761     ac_top_srcdir=$ac_top_build_prefix$srcdir
1762     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1763 esac
1764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1765
1766     cd "$ac_dir" || { ac_status=$?; continue; }
1767     # Check for guested configure.
1768     if test -f "$ac_srcdir/configure.gnu"; then
1769       echo &&
1770       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771     elif test -f "$ac_srcdir/configure"; then
1772       echo &&
1773       $SHELL "$ac_srcdir/configure" --help=recursive
1774     else
1775       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1776     fi || ac_status=$?
1777     cd "$ac_pwd" || { ac_status=$?; break; }
1778   done
1779 fi
1780
1781 test -n "$ac_init_help" && exit $ac_status
1782 if $ac_init_version; then
1783   cat <<\_ACEOF
1784 configure
1785 generated by GNU Autoconf 2.68
1786
1787 Copyright (C) 2010 Free Software Foundation, Inc.
1788 This configure script is free software; the Free Software Foundation
1789 gives unlimited permission to copy, distribute and modify it.
1790 _ACEOF
1791   exit
1792 fi
1793
1794 ## ------------------------ ##
1795 ## Autoconf initialization. ##
1796 ## ------------------------ ##
1797
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   rm -f conftest.$ac_objext
1805   if { { ac_try="$ac_compile"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_compile") 2>conftest.err
1813   ac_status=$?
1814   if test -s conftest.err; then
1815     grep -v '^ *+' conftest.err >conftest.er1
1816     cat conftest.er1 >&5
1817     mv -f conftest.er1 conftest.err
1818   fi
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && {
1821          test -z "$ac_c_werror_flag" ||
1822          test ! -s conftest.err
1823        } && test -s conftest.$ac_objext; then :
1824   ac_retval=0
1825 else
1826   $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829         ac_retval=1
1830 fi
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832   as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_compile
1835
1836 # ac_fn_c_try_cpp LINENO
1837 # ----------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_cpp ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   if { { ac_try="$ac_cpp conftest.$ac_ext"
1843 case "(($ac_try" in
1844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845   *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850   ac_status=$?
1851   if test -s conftest.err; then
1852     grep -v '^ *+' conftest.err >conftest.er1
1853     cat conftest.er1 >&5
1854     mv -f conftest.er1 conftest.err
1855   fi
1856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857   test $ac_status = 0; } > conftest.i && {
1858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859          test ! -s conftest.err
1860        }; then :
1861   ac_retval=0
1862 else
1863   $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866     ac_retval=1
1867 fi
1868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869   as_fn_set_status $ac_retval
1870
1871 } # ac_fn_c_try_cpp
1872
1873 # ac_fn_c_try_link LINENO
1874 # -----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_c_try_link ()
1877 {
1878   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879   rm -f conftest.$ac_objext conftest$ac_exeext
1880   if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883   *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887   (eval "$ac_link") 2>conftest.err
1888   ac_status=$?
1889   if test -s conftest.err; then
1890     grep -v '^ *+' conftest.err >conftest.er1
1891     cat conftest.er1 >&5
1892     mv -f conftest.er1 conftest.err
1893   fi
1894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895   test $ac_status = 0; } && {
1896          test -z "$ac_c_werror_flag" ||
1897          test ! -s conftest.err
1898        } && test -s conftest$ac_exeext && {
1899          test "$cross_compiling" = yes ||
1900          $as_test_x conftest$ac_exeext
1901        }; then :
1902   ac_retval=0
1903 else
1904   $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907         ac_retval=1
1908 fi
1909   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911   # interfere with the next link command; also delete a directory that is
1912   # left behind by Apple's compiler.  We do this before executing the actions.
1913   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915   as_fn_set_status $ac_retval
1916
1917 } # ac_fn_c_try_link
1918
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1923 # accordingly.
1924 ac_fn_c_check_header_mongrel ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   if eval \${$3+:} false; then :
1928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931   $as_echo_n "(cached) " >&6
1932 fi
1933 eval ac_res=\$$3
1934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 else
1937   # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 $4
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946   ac_header_compiler=yes
1947 else
1948   ac_header_compiler=no
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1953
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962   ac_header_preproc=yes
1963 else
1964   ac_header_preproc=no
1965 fi
1966 rm -f conftest.err conftest.i conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1969
1970 # So?  What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972   yes:no: )
1973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977     ;;
1978   no:yes:* )
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1983     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989     ;;
1990 esac
1991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994   $as_echo_n "(cached) " >&6
1995 else
1996   eval "$3=\$ac_header_compiler"
1997 fi
1998 eval ac_res=\$$3
1999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 fi
2002   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_c_check_header_mongrel
2005
2006 # ac_fn_c_try_run LINENO
2007 # ----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2009 # that executables *can* be run.
2010 ac_fn_c_try_run ()
2011 {
2012   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013   if { { ac_try="$ac_link"
2014 case "(($ac_try" in
2015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016   *) ac_try_echo=$ac_try;;
2017 esac
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020   (eval "$ac_link") 2>&5
2021   ac_status=$?
2022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2024   { { case "(($ac_try" in
2025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026   *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030   (eval "$ac_try") 2>&5
2031   ac_status=$?
2032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033   test $ac_status = 0; }; }; then :
2034   ac_retval=0
2035 else
2036   $as_echo "$as_me: program exited with status $ac_status" >&5
2037        $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2039
2040        ac_retval=$ac_status
2041 fi
2042   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044   as_fn_set_status $ac_retval
2045
2046 } # ac_fn_c_try_run
2047
2048 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2049 # -------------------------------------------------------
2050 # Tests whether HEADER exists and can be compiled using the include files in
2051 # INCLUDES, setting the cache variable VAR accordingly.
2052 ac_fn_c_check_header_compile ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058   $as_echo_n "(cached) " >&6
2059 else
2060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 $4
2063 #include <$2>
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066   eval "$3=yes"
2067 else
2068   eval "$3=no"
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 eval ac_res=\$$3
2073                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077 } # ac_fn_c_check_header_compile
2078
2079 # ac_fn_c_check_func LINENO FUNC VAR
2080 # ----------------------------------
2081 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2082 ac_fn_c_check_func ()
2083 {
2084   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088   $as_echo_n "(cached) " >&6
2089 else
2090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h.  */
2092 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2094 #define $2 innocuous_$2
2095
2096 /* System header to define __stub macros and hopefully few prototypes,
2097     which can conflict with char $2 (); below.
2098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099     <limits.h> exists even on freestanding compilers.  */
2100
2101 #ifdef __STDC__
2102 # include <limits.h>
2103 #else
2104 # include <assert.h>
2105 #endif
2106
2107 #undef $2
2108
2109 /* Override any GCC internal prototype to avoid an error.
2110    Use char because int might match the return type of a GCC
2111    builtin and then its argument prototype would still apply.  */
2112 #ifdef __cplusplus
2113 extern "C"
2114 #endif
2115 char $2 ();
2116 /* The GNU C library defines this for functions which it implements
2117     to always fail with ENOSYS.  Some functions are actually named
2118     something starting with __ and the normal name is an alias.  */
2119 #if defined __stub_$2 || defined __stub___$2
2120 choke me
2121 #endif
2122
2123 int
2124 main ()
2125 {
2126 return $2 ();
2127   ;
2128   return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_link "$LINENO"; then :
2132   eval "$3=yes"
2133 else
2134   eval "$3=no"
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext \
2137     conftest$ac_exeext conftest.$ac_ext
2138 fi
2139 eval ac_res=\$$3
2140                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143
2144 } # ac_fn_c_check_func
2145
2146 # ac_fn_cxx_try_compile LINENO
2147 # ----------------------------
2148 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2149 ac_fn_cxx_try_compile ()
2150 {
2151   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152   rm -f conftest.$ac_objext
2153   if { { ac_try="$ac_compile"
2154 case "(($ac_try" in
2155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156   *) ac_try_echo=$ac_try;;
2157 esac
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160   (eval "$ac_compile") 2>conftest.err
2161   ac_status=$?
2162   if test -s conftest.err; then
2163     grep -v '^ *+' conftest.err >conftest.er1
2164     cat conftest.er1 >&5
2165     mv -f conftest.er1 conftest.err
2166   fi
2167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168   test $ac_status = 0; } && {
2169          test -z "$ac_cxx_werror_flag" ||
2170          test ! -s conftest.err
2171        } && test -s conftest.$ac_objext; then :
2172   ac_retval=0
2173 else
2174   $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177         ac_retval=1
2178 fi
2179   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180   as_fn_set_status $ac_retval
2181
2182 } # ac_fn_cxx_try_compile
2183
2184 # ac_fn_cxx_try_cpp LINENO
2185 # ------------------------
2186 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_cpp ()
2188 {
2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190   if { { ac_try="$ac_cpp conftest.$ac_ext"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198   ac_status=$?
2199   if test -s conftest.err; then
2200     grep -v '^ *+' conftest.err >conftest.er1
2201     cat conftest.er1 >&5
2202     mv -f conftest.er1 conftest.err
2203   fi
2204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205   test $ac_status = 0; } > conftest.i && {
2206          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2207          test ! -s conftest.err
2208        }; then :
2209   ac_retval=0
2210 else
2211   $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214     ac_retval=1
2215 fi
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217   as_fn_set_status $ac_retval
2218
2219 } # ac_fn_cxx_try_cpp
2220
2221 # ac_fn_cxx_try_link LINENO
2222 # -------------------------
2223 # Try to link conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_cxx_try_link ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   rm -f conftest.$ac_objext conftest$ac_exeext
2228   if { { ac_try="$ac_link"
2229 case "(($ac_try" in
2230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231   *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235   (eval "$ac_link") 2>conftest.err
2236   ac_status=$?
2237   if test -s conftest.err; then
2238     grep -v '^ *+' conftest.err >conftest.er1
2239     cat conftest.er1 >&5
2240     mv -f conftest.er1 conftest.err
2241   fi
2242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243   test $ac_status = 0; } && {
2244          test -z "$ac_cxx_werror_flag" ||
2245          test ! -s conftest.err
2246        } && test -s conftest$ac_exeext && {
2247          test "$cross_compiling" = yes ||
2248          $as_test_x conftest$ac_exeext
2249        }; then :
2250   ac_retval=0
2251 else
2252   $as_echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255         ac_retval=1
2256 fi
2257   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2258   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2259   # interfere with the next link command; also delete a directory that is
2260   # left behind by Apple's compiler.  We do this before executing the actions.
2261   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263   as_fn_set_status $ac_retval
2264
2265 } # ac_fn_cxx_try_link
2266
2267 # ac_fn_f77_try_compile LINENO
2268 # ----------------------------
2269 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2270 ac_fn_f77_try_compile ()
2271 {
2272   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273   rm -f conftest.$ac_objext
2274   if { { ac_try="$ac_compile"
2275 case "(($ac_try" in
2276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277   *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281   (eval "$ac_compile") 2>conftest.err
2282   ac_status=$?
2283   if test -s conftest.err; then
2284     grep -v '^ *+' conftest.err >conftest.er1
2285     cat conftest.er1 >&5
2286     mv -f conftest.er1 conftest.err
2287   fi
2288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2289   test $ac_status = 0; } && {
2290          test -z "$ac_f77_werror_flag" ||
2291          test ! -s conftest.err
2292        } && test -s conftest.$ac_objext; then :
2293   ac_retval=0
2294 else
2295   $as_echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298         ac_retval=1
2299 fi
2300   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301   as_fn_set_status $ac_retval
2302
2303 } # ac_fn_f77_try_compile
2304
2305 # ac_fn_f77_try_link LINENO
2306 # -------------------------
2307 # Try to link conftest.$ac_ext, and return whether this succeeded.
2308 ac_fn_f77_try_link ()
2309 {
2310   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311   rm -f conftest.$ac_objext conftest$ac_exeext
2312   if { { ac_try="$ac_link"
2313 case "(($ac_try" in
2314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315   *) ac_try_echo=$ac_try;;
2316 esac
2317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318 $as_echo "$ac_try_echo"; } >&5
2319   (eval "$ac_link") 2>conftest.err
2320   ac_status=$?
2321   if test -s conftest.err; then
2322     grep -v '^ *+' conftest.err >conftest.er1
2323     cat conftest.er1 >&5
2324     mv -f conftest.er1 conftest.err
2325   fi
2326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327   test $ac_status = 0; } && {
2328          test -z "$ac_f77_werror_flag" ||
2329          test ! -s conftest.err
2330        } && test -s conftest$ac_exeext && {
2331          test "$cross_compiling" = yes ||
2332          $as_test_x conftest$ac_exeext
2333        }; then :
2334   ac_retval=0
2335 else
2336   $as_echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339         ac_retval=1
2340 fi
2341   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2342   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2343   # interfere with the next link command; also delete a directory that is
2344   # left behind by Apple's compiler.  We do this before executing the actions.
2345   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2346   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347   as_fn_set_status $ac_retval
2348
2349 } # ac_fn_f77_try_link
2350 cat >config.log <<_ACEOF
2351 This file contains any messages produced by compilers while
2352 running configure, to aid debugging if configure makes a mistake.
2353
2354 It was created by $as_me, which was
2355 generated by GNU Autoconf 2.68.  Invocation command line was
2356
2357   $ $0 $@
2358
2359 _ACEOF
2360 exec 5>>config.log
2361 {
2362 cat <<_ASUNAME
2363 ## --------- ##
2364 ## Platform. ##
2365 ## --------- ##
2366
2367 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2368 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2369 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2370 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2371 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2372
2373 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2374 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2375
2376 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2377 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2378 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2379 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2380 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2381 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2382 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2383
2384 _ASUNAME
2385
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389   IFS=$as_save_IFS
2390   test -z "$as_dir" && as_dir=.
2391     $as_echo "PATH: $as_dir"
2392   done
2393 IFS=$as_save_IFS
2394
2395 } >&5
2396
2397 cat >&5 <<_ACEOF
2398
2399
2400 ## ----------- ##
2401 ## Core tests. ##
2402 ## ----------- ##
2403
2404 _ACEOF
2405
2406
2407 # Keep a trace of the command line.
2408 # Strip out --no-create and --no-recursion so they do not pile up.
2409 # Strip out --silent because we don't want to record it for future runs.
2410 # Also quote any args containing shell meta-characters.
2411 # Make two passes to allow for proper duplicate-argument suppression.
2412 ac_configure_args=
2413 ac_configure_args0=
2414 ac_configure_args1=
2415 ac_must_keep_next=false
2416 for ac_pass in 1 2
2417 do
2418   for ac_arg
2419   do
2420     case $ac_arg in
2421     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2422     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2423     | -silent | --silent | --silen | --sile | --sil)
2424       continue ;;
2425     *\'*)
2426       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2427     esac
2428     case $ac_pass in
2429     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2430     2)
2431       as_fn_append ac_configure_args1 " '$ac_arg'"
2432       if test $ac_must_keep_next = true; then
2433         ac_must_keep_next=false # Got value, back to normal.
2434       else
2435         case $ac_arg in
2436           *=* | --config-cache | -C | -disable-* | --disable-* \
2437           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2438           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2439           | -with-* | --with-* | -without-* | --without-* | --x)
2440             case "$ac_configure_args0 " in
2441               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2442             esac
2443             ;;
2444           -* ) ac_must_keep_next=true ;;
2445         esac
2446       fi
2447       as_fn_append ac_configure_args " '$ac_arg'"
2448       ;;
2449     esac
2450   done
2451 done
2452 { ac_configure_args0=; unset ac_configure_args0;}
2453 { ac_configure_args1=; unset ac_configure_args1;}
2454
2455 # When interrupted or exit'd, cleanup temporary files, and complete
2456 # config.log.  We remove comments because anyway the quotes in there
2457 # would cause problems or look ugly.
2458 # WARNING: Use '\'' to represent an apostrophe within the trap.
2459 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2460 trap 'exit_status=$?
2461   # Save into config.log some information that might help in debugging.
2462   {
2463     echo
2464
2465     $as_echo "## ---------------- ##
2466 ## Cache variables. ##
2467 ## ---------------- ##"
2468     echo
2469     # The following way of writing the cache mishandles newlines in values,
2470 (
2471   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2472     eval ac_val=\$$ac_var
2473     case $ac_val in #(
2474     *${as_nl}*)
2475       case $ac_var in #(
2476       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2478       esac
2479       case $ac_var in #(
2480       _ | IFS | as_nl) ;; #(
2481       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2482       *) { eval $ac_var=; unset $ac_var;} ;;
2483       esac ;;
2484     esac
2485   done
2486   (set) 2>&1 |
2487     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2488     *${as_nl}ac_space=\ *)
2489       sed -n \
2490         "s/'\''/'\''\\\\'\'''\''/g;
2491           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2492       ;; #(
2493     *)
2494       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2495       ;;
2496     esac |
2497     sort
2498 )
2499     echo
2500
2501     $as_echo "## ----------------- ##
2502 ## Output variables. ##
2503 ## ----------------- ##"
2504     echo
2505     for ac_var in $ac_subst_vars
2506     do
2507       eval ac_val=\$$ac_var
2508       case $ac_val in
2509       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510       esac
2511       $as_echo "$ac_var='\''$ac_val'\''"
2512     done | sort
2513     echo
2514
2515     if test -n "$ac_subst_files"; then
2516       $as_echo "## ------------------- ##
2517 ## File substitutions. ##
2518 ## ------------------- ##"
2519       echo
2520       for ac_var in $ac_subst_files
2521       do
2522         eval ac_val=\$$ac_var
2523         case $ac_val in
2524         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2525         esac
2526         $as_echo "$ac_var='\''$ac_val'\''"
2527       done | sort
2528       echo
2529     fi
2530
2531     if test -s confdefs.h; then
2532       $as_echo "## ----------- ##
2533 ## confdefs.h. ##
2534 ## ----------- ##"
2535       echo
2536       cat confdefs.h
2537       echo
2538     fi
2539     test "$ac_signal" != 0 &&
2540       $as_echo "$as_me: caught signal $ac_signal"
2541     $as_echo "$as_me: exit $exit_status"
2542   } >&5
2543   rm -f core *.core core.conftest.* &&
2544     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2545     exit $exit_status
2546 ' 0
2547 for ac_signal in 1 2 13 15; do
2548   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2549 done
2550 ac_signal=0
2551
2552 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2553 rm -f -r conftest* confdefs.h
2554
2555 $as_echo "/* confdefs.h */" > confdefs.h
2556
2557 # Predefined preprocessor variables.
2558
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_NAME "$PACKAGE_NAME"
2561 _ACEOF
2562
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2565 _ACEOF
2566
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2569 _ACEOF
2570
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_STRING "$PACKAGE_STRING"
2573 _ACEOF
2574
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2577 _ACEOF
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_URL "$PACKAGE_URL"
2581 _ACEOF
2582
2583
2584 # Let the site file select an alternate cache file if it wants to.
2585 # Prefer an explicitly selected file to automatically selected ones.
2586 ac_site_file1=NONE
2587 ac_site_file2=NONE
2588 if test -n "$CONFIG_SITE"; then
2589   # We do not want a PATH search for config.site.
2590   case $CONFIG_SITE in #((
2591     -*)  ac_site_file1=./$CONFIG_SITE;;
2592     */*) ac_site_file1=$CONFIG_SITE;;
2593     *)   ac_site_file1=./$CONFIG_SITE;;
2594   esac
2595 elif test "x$prefix" != xNONE; then
2596   ac_site_file1=$prefix/share/config.site
2597   ac_site_file2=$prefix/etc/config.site
2598 else
2599   ac_site_file1=$ac_default_prefix/share/config.site
2600   ac_site_file2=$ac_default_prefix/etc/config.site
2601 fi
2602 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2603 do
2604   test "x$ac_site_file" = xNONE && continue
2605   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2606     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2607 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2608     sed 's/^/| /' "$ac_site_file" >&5
2609     . "$ac_site_file" \
2610       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 as_fn_error $? "failed to load site script $ac_site_file
2613 See \`config.log' for more details" "$LINENO" 5; }
2614   fi
2615 done
2616
2617 if test -r "$cache_file"; then
2618   # Some versions of bash will fail to source /dev/null (special files
2619   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2620   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2621     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2622 $as_echo "$as_me: loading cache $cache_file" >&6;}
2623     case $cache_file in
2624       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2625       *)                      . "./$cache_file";;
2626     esac
2627   fi
2628 else
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2630 $as_echo "$as_me: creating cache $cache_file" >&6;}
2631   >$cache_file
2632 fi
2633
2634 # Check that the precious variables saved in the cache have kept the same
2635 # value.
2636 ac_cache_corrupted=false
2637 for ac_var in $ac_precious_vars; do
2638   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2639   eval ac_new_set=\$ac_env_${ac_var}_set
2640   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2641   eval ac_new_val=\$ac_env_${ac_var}_value
2642   case $ac_old_set,$ac_new_set in
2643     set,)
2644       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2645 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2646       ac_cache_corrupted=: ;;
2647     ,set)
2648       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2649 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2650       ac_cache_corrupted=: ;;
2651     ,);;
2652     *)
2653       if test "x$ac_old_val" != "x$ac_new_val"; then
2654         # differences in whitespace do not lead to failure.
2655         ac_old_val_w=`echo x $ac_old_val`
2656         ac_new_val_w=`echo x $ac_new_val`
2657         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2658           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2659 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2660           ac_cache_corrupted=:
2661         else
2662           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2663 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2664           eval $ac_var=\$ac_old_val
2665         fi
2666         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2667 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2668         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2669 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2670       fi;;
2671   esac
2672   # Pass precious variables to config.status.
2673   if test "$ac_new_set" = set; then
2674     case $ac_new_val in
2675     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2676     *) ac_arg=$ac_var=$ac_new_val ;;
2677     esac
2678     case " $ac_configure_args " in
2679       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2680       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2681     esac
2682   fi
2683 done
2684 if $ac_cache_corrupted; then
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2688 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2689   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2690 fi
2691 ## -------------------- ##
2692 ## Main body of script. ##
2693 ## -------------------- ##
2694
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700
2701
2702
2703
2704
2705 ac_aux_dir=
2706 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2707   if test -f "$ac_dir/install-sh"; then
2708     ac_aux_dir=$ac_dir
2709     ac_install_sh="$ac_aux_dir/install-sh -c"
2710     break
2711   elif test -f "$ac_dir/install.sh"; then
2712     ac_aux_dir=$ac_dir
2713     ac_install_sh="$ac_aux_dir/install.sh -c"
2714     break
2715   elif test -f "$ac_dir/shtool"; then
2716     ac_aux_dir=$ac_dir
2717     ac_install_sh="$ac_aux_dir/shtool install -c"
2718     break
2719   fi
2720 done
2721 if test -z "$ac_aux_dir"; then
2722   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2723 fi
2724
2725 # These three variables are undocumented and unsupported,
2726 # and are intended to be withdrawn in a future Autoconf release.
2727 # They can cause serious problems if a builder's source tree is in a directory
2728 # whose full name contains unusual characters.
2729 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2730 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2731 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2732
2733
2734 # Make sure we can run config.sub.
2735 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2736   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2737
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2739 $as_echo_n "checking build system type... " >&6; }
2740 if ${ac_cv_build+:} false; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   ac_build_alias=$build_alias
2744 test "x$ac_build_alias" = x &&
2745   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2746 test "x$ac_build_alias" = x &&
2747   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2748 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2749   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2750
2751 fi
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2753 $as_echo "$ac_cv_build" >&6; }
2754 case $ac_cv_build in
2755 *-*-*) ;;
2756 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2757 esac
2758 build=$ac_cv_build
2759 ac_save_IFS=$IFS; IFS='-'
2760 set x $ac_cv_build
2761 shift
2762 build_cpu=$1
2763 build_vendor=$2
2764 shift; shift
2765 # Remember, the first character of IFS is used to create $*,
2766 # except with old shells:
2767 build_os=$*
2768 IFS=$ac_save_IFS
2769 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2770
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2773 $as_echo_n "checking host system type... " >&6; }
2774 if ${ac_cv_host+:} false; then :
2775   $as_echo_n "(cached) " >&6
2776 else
2777   if test "x$host_alias" = x; then
2778   ac_cv_host=$ac_cv_build
2779 else
2780   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2781     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2782 fi
2783
2784 fi
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2786 $as_echo "$ac_cv_host" >&6; }
2787 case $ac_cv_host in
2788 *-*-*) ;;
2789 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2790 esac
2791 host=$ac_cv_host
2792 ac_save_IFS=$IFS; IFS='-'
2793 set x $ac_cv_host
2794 shift
2795 host_cpu=$1
2796 host_vendor=$2
2797 shift; shift
2798 # Remember, the first character of IFS is used to create $*,
2799 # except with old shells:
2800 host_os=$*
2801 IFS=$ac_save_IFS
2802 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2803
2804
2805 am__api_version='1.11'
2806
2807 # Find a good install program.  We prefer a C program (faster),
2808 # so one script is as good as another.  But avoid the broken or
2809 # incompatible versions:
2810 # SysV /etc/install, /usr/sbin/install
2811 # SunOS /usr/etc/install
2812 # IRIX /sbin/install
2813 # AIX /bin/install
2814 # AmigaOS /C/install, which installs bootblocks on floppy discs
2815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2818 # OS/2's system install, which has a completely different semantic
2819 # ./install, which can be erroneously created by make from ./install.sh.
2820 # Reject install programs that cannot install multiple files.
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2822 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2823 if test -z "$INSTALL"; then
2824 if ${ac_cv_path_install+:} false; then :
2825   $as_echo_n "(cached) " >&6
2826 else
2827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830   IFS=$as_save_IFS
2831   test -z "$as_dir" && as_dir=.
2832     # Account for people who put trailing slashes in PATH elements.
2833 case $as_dir/ in #((
2834   ./ | .// | /[cC]/* | \
2835   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2836   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2837   /usr/ucb/* ) ;;
2838   *)
2839     # OSF1 and SCO ODT 3.0 have their own names for install.
2840     # Don't use installbsd from OSF since it installs stuff as root
2841     # by default.
2842     for ac_prog in ginstall scoinst install; do
2843       for ac_exec_ext in '' $ac_executable_extensions; do
2844         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2845           if test $ac_prog = install &&
2846             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847             # AIX install.  It has an incompatible calling convention.
2848             :
2849           elif test $ac_prog = install &&
2850             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2851             # program-specific install script used by HP pwplus--don't use.
2852             :
2853           else
2854             rm -rf conftest.one conftest.two conftest.dir
2855             echo one > conftest.one
2856             echo two > conftest.two
2857             mkdir conftest.dir
2858             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2859               test -s conftest.one && test -s conftest.two &&
2860               test -s conftest.dir/conftest.one &&
2861               test -s conftest.dir/conftest.two
2862             then
2863               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2864               break 3
2865             fi
2866           fi
2867         fi
2868       done
2869     done
2870     ;;
2871 esac
2872
2873   done
2874 IFS=$as_save_IFS
2875
2876 rm -rf conftest.one conftest.two conftest.dir
2877
2878 fi
2879   if test "${ac_cv_path_install+set}" = set; then
2880     INSTALL=$ac_cv_path_install
2881   else
2882     # As a last resort, use the slow shell script.  Don't cache a
2883     # value for INSTALL within a source directory, because that will
2884     # break other packages using the cache if that directory is
2885     # removed, or if the value is a relative name.
2886     INSTALL=$ac_install_sh
2887   fi
2888 fi
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2890 $as_echo "$INSTALL" >&6; }
2891
2892 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2893 # It thinks the first close brace ends the variable substitution.
2894 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2895
2896 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2897
2898 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2899
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2901 $as_echo_n "checking whether build environment is sane... " >&6; }
2902 # Just in case
2903 sleep 1
2904 echo timestamp > conftest.file
2905 # Reject unsafe characters in $srcdir or the absolute working directory
2906 # name.  Accept space and tab only in the latter.
2907 am_lf='
2908 '
2909 case `pwd` in
2910   *[\\\"\#\$\&\'\`$am_lf]*)
2911     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2912 esac
2913 case $srcdir in
2914   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2915     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2916 esac
2917
2918 # Do `set' in a subshell so we don't clobber the current shell's
2919 # arguments.  Must try -L first in case configure is actually a
2920 # symlink; some systems play weird games with the mod time of symlinks
2921 # (eg FreeBSD returns the mod time of the symlink's containing
2922 # directory).
2923 if (
2924    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2925    if test "$*" = "X"; then
2926       # -L didn't work.
2927       set X `ls -t "$srcdir/configure" conftest.file`
2928    fi
2929    rm -f conftest.file
2930    if test "$*" != "X $srcdir/configure conftest.file" \
2931       && test "$*" != "X conftest.file $srcdir/configure"; then
2932
2933       # If neither matched, then we have a broken ls.  This can happen
2934       # if, for instance, CONFIG_SHELL is bash and it inherits a
2935       # broken ls alias from the environment.  This has actually
2936       # happened.  Such a system could not be considered "sane".
2937       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2938 alias in your environment" "$LINENO" 5
2939    fi
2940
2941    test "$2" = conftest.file
2942    )
2943 then
2944    # Ok.
2945    :
2946 else
2947    as_fn_error $? "newly created file is older than distributed files!
2948 Check your system clock" "$LINENO" 5
2949 fi
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2952 test "$program_prefix" != NONE &&
2953   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2954 # Use a double $ so make ignores it.
2955 test "$program_suffix" != NONE &&
2956   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2957 # Double any \ or $.
2958 # By default was `s,x,x', remove it if useless.
2959 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2960 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2961
2962 # expand $ac_aux_dir to an absolute path
2963 am_aux_dir=`cd $ac_aux_dir && pwd`
2964
2965 if test x"${MISSING+set}" != xset; then
2966   case $am_aux_dir in
2967   *\ * | *\     *)
2968     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2969   *)
2970     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2971   esac
2972 fi
2973 # Use eval to expand $SHELL
2974 if eval "$MISSING --run true"; then
2975   am_missing_run="$MISSING --run "
2976 else
2977   am_missing_run=
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2979 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2980 fi
2981
2982 if test x"${install_sh}" != xset; then
2983   case $am_aux_dir in
2984   *\ * | *\     *)
2985     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2986   *)
2987     install_sh="\${SHELL} $am_aux_dir/install-sh"
2988   esac
2989 fi
2990
2991 # Installed binaries are usually stripped using `strip' when the user
2992 # run `make install-strip'.  However `strip' might not be the right
2993 # tool to use in cross-compilation environments, therefore Automake
2994 # will honor the `STRIP' environment variable to overrule this program.
2995 if test "$cross_compiling" != no; then
2996   if test -n "$ac_tool_prefix"; then
2997   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2998 set dummy ${ac_tool_prefix}strip; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if ${ac_cv_prog_STRIP+:} false; then :
3002   $as_echo_n "(cached) " >&6
3003 else
3004   if test -n "$STRIP"; then
3005   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010   IFS=$as_save_IFS
3011   test -z "$as_dir" && as_dir=.
3012     for ac_exec_ext in '' $ac_executable_extensions; do
3013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016     break 2
3017   fi
3018 done
3019   done
3020 IFS=$as_save_IFS
3021
3022 fi
3023 fi
3024 STRIP=$ac_cv_prog_STRIP
3025 if test -n "$STRIP"; then
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3027 $as_echo "$STRIP" >&6; }
3028 else
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3031 fi
3032
3033
3034 fi
3035 if test -z "$ac_cv_prog_STRIP"; then
3036   ac_ct_STRIP=$STRIP
3037   # Extract the first word of "strip", so it can be a program name with args.
3038 set dummy strip; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3042   $as_echo_n "(cached) " >&6
3043 else
3044   if test -n "$ac_ct_STRIP"; then
3045   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052     for ac_exec_ext in '' $ac_executable_extensions; do
3053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054     ac_cv_prog_ac_ct_STRIP="strip"
3055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056     break 2
3057   fi
3058 done
3059   done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3065 if test -n "$ac_ct_STRIP"; then
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3067 $as_echo "$ac_ct_STRIP" >&6; }
3068 else
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073   if test "x$ac_ct_STRIP" = x; then
3074     STRIP=":"
3075   else
3076     case $cross_compiling:$ac_tool_warned in
3077 yes:)
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3080 ac_tool_warned=yes ;;
3081 esac
3082     STRIP=$ac_ct_STRIP
3083   fi
3084 else
3085   STRIP="$ac_cv_prog_STRIP"
3086 fi
3087
3088 fi
3089 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3090
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3092 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3093 if test -z "$MKDIR_P"; then
3094   if ${ac_cv_path_mkdir+:} false; then :
3095   $as_echo_n "(cached) " >&6
3096 else
3097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102     for ac_prog in mkdir gmkdir; do
3103          for ac_exec_ext in '' $ac_executable_extensions; do
3104            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3105            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3106              'mkdir (GNU coreutils) '* | \
3107              'mkdir (coreutils) '* | \
3108              'mkdir (fileutils) '4.1*)
3109                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3110                break 3;;
3111            esac
3112          done
3113        done
3114   done
3115 IFS=$as_save_IFS
3116
3117 fi
3118
3119   test -d ./--version && rmdir ./--version
3120   if test "${ac_cv_path_mkdir+set}" = set; then
3121     MKDIR_P="$ac_cv_path_mkdir -p"
3122   else
3123     # As a last resort, use the slow shell script.  Don't cache a
3124     # value for MKDIR_P within a source directory, because that will
3125     # break other packages using the cache if that directory is
3126     # removed, or if the value is a relative name.
3127     MKDIR_P="$ac_install_sh -d"
3128   fi
3129 fi
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3131 $as_echo "$MKDIR_P" >&6; }
3132
3133 mkdir_p="$MKDIR_P"
3134 case $mkdir_p in
3135   [\\/$]* | ?:[\\/]*) ;;
3136   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3137 esac
3138
3139 for ac_prog in gawk mawk nawk awk
3140 do
3141   # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_AWK+:} false; then :
3146   $as_echo_n "(cached) " >&6
3147 else
3148   if test -n "$AWK"; then
3149   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156     for ac_exec_ext in '' $ac_executable_extensions; do
3157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158     ac_cv_prog_AWK="$ac_prog"
3159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163   done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 AWK=$ac_cv_prog_AWK
3169 if test -n "$AWK"; then
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3171 $as_echo "$AWK" >&6; }
3172 else
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178   test -n "$AWK" && break
3179 done
3180
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3182 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3183 set x ${MAKE-make}
3184 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3185 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   cat >conftest.make <<\_ACEOF
3189 SHELL = /bin/sh
3190 all:
3191         @echo '@@@%%%=$(MAKE)=@@@%%%'
3192 _ACEOF
3193 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3195   *@@@%%%=?*=@@@%%%*)
3196     eval ac_cv_prog_make_${ac_make}_set=yes;;
3197   *)
3198     eval ac_cv_prog_make_${ac_make}_set=no;;
3199 esac
3200 rm -f conftest.make
3201 fi
3202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3205   SET_MAKE=
3206 else
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209   SET_MAKE="MAKE=${MAKE-make}"
3210 fi
3211
3212 rm -rf .tst 2>/dev/null
3213 mkdir .tst 2>/dev/null
3214 if test -d .tst; then
3215   am__leading_dot=.
3216 else
3217   am__leading_dot=_
3218 fi
3219 rmdir .tst 2>/dev/null
3220
3221 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3222   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3223   # is not polluted with repeated "-I."
3224   am__isrc=' -I$(srcdir)'
3225   # test to see if srcdir already configured
3226   if test -f $srcdir/config.status; then
3227     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3228   fi
3229 fi
3230
3231 # test whether we have cygpath
3232 if test -z "$CYGPATH_W"; then
3233   if (cygpath --version) >/dev/null 2>/dev/null; then
3234     CYGPATH_W='cygpath -w'
3235   else
3236     CYGPATH_W=echo
3237   fi
3238 fi
3239
3240
3241 # Define the identity of the package.
3242  PACKAGE=alsa-lib
3243  VERSION=1.0.25
3244
3245
3246 cat >>confdefs.h <<_ACEOF
3247 #define PACKAGE "$PACKAGE"
3248 _ACEOF
3249
3250
3251 cat >>confdefs.h <<_ACEOF
3252 #define VERSION "$VERSION"
3253 _ACEOF
3254
3255 # Some tools Automake needs.
3256
3257 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3258
3259
3260 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3261
3262
3263 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3264
3265
3266 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3267
3268
3269 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3270
3271 # We need awk for the "check" target.  The system "awk" is bad on
3272 # some platforms.
3273 # Always define AMTAR for backward compatibility.
3274
3275 AMTAR=${AMTAR-"${am_missing_run}tar"}
3276
3277 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3278
3279
3280
3281
3282
3283 eval LIBTOOL_VERSION_INFO="2:0:0"
3284  if test -n "${ACLOCAL}"; then
3285   INSTALL_M4_TRUE=
3286   INSTALL_M4_FALSE='#'
3287 else
3288   INSTALL_M4_TRUE='#'
3289   INSTALL_M4_FALSE=
3290 fi
3291
3292
3293 # Test for new silent rules and enable only if they are available
3294 # Check whether --enable-silent-rules was given.
3295 if test "${enable_silent_rules+set}" = set; then :
3296   enableval=$enable_silent_rules;
3297 fi
3298
3299 case $enable_silent_rules in
3300 yes) AM_DEFAULT_VERBOSITY=0;;
3301 no)  AM_DEFAULT_VERBOSITY=1;;
3302 *)   AM_DEFAULT_VERBOSITY=0;;
3303 esac
3304 AM_BACKSLASH='\'
3305
3306
3307
3308
3309
3310 if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`";
3311 then
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
3313 $as_echo_n "checking for cross-compiler... " >&6; }
3314
3315   which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
3316   which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \
3317   && CC=${host_cpu}-${host-os}-gcc
3318   which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \
3319   && CC=${host_cpu}-${host_vendor}-${host_os}-gcc
3320
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3323 fi
3324
3325 CFLAGS="$CFLAGS -D_GNU_SOURCE"
3326
3327
3328 ac_ext=c
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 if test -n "$ac_tool_prefix"; then
3334   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   if test -n "$CC"; then
3342   ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347   IFS=$as_save_IFS
3348   test -z "$as_dir" && as_dir=.
3349     for ac_exec_ext in '' $ac_executable_extensions; do
3350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353     break 2
3354   fi
3355 done
3356   done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371 fi
3372 if test -z "$ac_cv_prog_CC"; then
3373   ac_ct_CC=$CC
3374   # Extract the first word of "gcc", so it can be a program name with args.
3375 set dummy gcc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   if test -n "$ac_ct_CC"; then
3382   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387   IFS=$as_save_IFS
3388   test -z "$as_dir" && as_dir=.
3389     for ac_exec_ext in '' $ac_executable_extensions; do
3390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391     ac_cv_prog_ac_ct_CC="gcc"
3392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393     break 2
3394   fi
3395 done
3396   done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410   if test "x$ac_ct_CC" = x; then
3411     CC=""
3412   else
3413     case $cross_compiling:$ac_tool_warned in
3414 yes:)
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned=yes ;;
3418 esac
3419     CC=$ac_ct_CC
3420   fi
3421 else
3422   CC="$ac_cv_prog_CC"
3423 fi
3424
3425 if test -z "$CC"; then
3426           if test -n "$ac_tool_prefix"; then
3427     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3428 set dummy ${ac_tool_prefix}cc; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432   $as_echo_n "(cached) " >&6
3433 else
3434   if test -n "$CC"; then
3435   ac_cv_prog_CC="$CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3439 do
3440   IFS=$as_save_IFS
3441   test -z "$as_dir" && as_dir=.
3442     for ac_exec_ext in '' $ac_executable_extensions; do
3443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444     ac_cv_prog_CC="${ac_tool_prefix}cc"
3445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446     break 2
3447   fi
3448 done
3449   done
3450 IFS=$as_save_IFS
3451
3452 fi
3453 fi
3454 CC=$ac_cv_prog_CC
3455 if test -n "$CC"; then
3456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3458 else
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 fi
3462
3463
3464   fi
3465 fi
3466 if test -z "$CC"; then
3467   # Extract the first word of "cc", so it can be a program name with args.
3468 set dummy cc; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_CC+:} false; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   if test -n "$CC"; then
3475   ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477   ac_prog_rejected=no
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483     for ac_exec_ext in '' $ac_executable_extensions; do
3484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3486        ac_prog_rejected=yes
3487        continue
3488      fi
3489     ac_cv_prog_CC="cc"
3490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494   done
3495 IFS=$as_save_IFS
3496
3497 if test $ac_prog_rejected = yes; then
3498   # We found a bogon in the path, so make sure we never use it.
3499   set dummy $ac_cv_prog_CC
3500   shift
3501   if test $# != 0; then
3502     # We chose a different compiler from the bogus one.
3503     # However, it has the same basename, so the bogon will be chosen
3504     # first if we set CC to just the basename; use the full file name.
3505     shift
3506     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3507   fi
3508 fi
3509 fi
3510 fi
3511 CC=$ac_cv_prog_CC
3512 if test -n "$CC"; then
3513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3514 $as_echo "$CC" >&6; }
3515 else
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 fi
3519
3520
3521 fi
3522 if test -z "$CC"; then
3523   if test -n "$ac_tool_prefix"; then
3524   for ac_prog in cl.exe
3525   do
3526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CC+:} false; then :
3531   $as_echo_n "(cached) " >&6
3532 else
3533   if test -n "$CC"; then
3534   ac_cv_prog_CC="$CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541     for ac_exec_ext in '' $ac_executable_extensions; do
3542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548   done
3549 IFS=$as_save_IFS
3550
3551 fi
3552 fi
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3557 else
3558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 fi
3561
3562
3563     test -n "$CC" && break
3564   done
3565 fi
3566 if test -z "$CC"; then
3567   ac_ct_CC=$CC
3568   for ac_prog in cl.exe
3569 do
3570   # Extract the first word of "$ac_prog", so it can be a program name with args.
3571 set dummy $ac_prog; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3575   $as_echo_n "(cached) " >&6
3576 else
3577   if test -n "$ac_ct_CC"; then
3578   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585     for ac_exec_ext in '' $ac_executable_extensions; do
3586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587     ac_cv_prog_ac_ct_CC="$ac_prog"
3588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589     break 2
3590   fi
3591 done
3592   done
3593 IFS=$as_save_IFS
3594
3595 fi
3596 fi
3597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3598 if test -n "$ac_ct_CC"; then
3599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3600 $as_echo "$ac_ct_CC" >&6; }
3601 else
3602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3604 fi
3605
3606
3607   test -n "$ac_ct_CC" && break
3608 done
3609
3610   if test "x$ac_ct_CC" = x; then
3611     CC=""
3612   else
3613     case $cross_compiling:$ac_tool_warned in
3614 yes:)
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617 ac_tool_warned=yes ;;
3618 esac
3619     CC=$ac_ct_CC
3620   fi
3621 fi
3622
3623 fi
3624
3625
3626 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "no acceptable C compiler found in \$PATH
3629 See \`config.log' for more details" "$LINENO" 5; }
3630
3631 # Provide some information about the compiler.
3632 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3633 set X $ac_compile
3634 ac_compiler=$2
3635 for ac_option in --version -v -V -qversion; do
3636   { { ac_try="$ac_compiler $ac_option >&5"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3644   ac_status=$?
3645   if test -s conftest.err; then
3646     sed '10a\
3647 ... rest of stderr output deleted ...
3648          10q' conftest.err >conftest.er1
3649     cat conftest.er1 >&5
3650   fi
3651   rm -f conftest.er1 conftest.err
3652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653   test $ac_status = 0; }
3654 done
3655
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h.  */
3658
3659 int
3660 main ()
3661 {
3662
3663   ;
3664   return 0;
3665 }
3666 _ACEOF
3667 ac_clean_files_save=$ac_clean_files
3668 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3669 # Try to create an executable without -o first, disregard a.out.
3670 # It will help us diagnose broken compilers, and finding out an intuition
3671 # of exeext.
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3673 $as_echo_n "checking whether the C compiler works... " >&6; }
3674 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3675
3676 # The possible output files:
3677 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3678
3679 ac_rmfiles=
3680 for ac_file in $ac_files
3681 do
3682   case $ac_file in
3683     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3685   esac
3686 done
3687 rm -f $ac_rmfiles
3688
3689 if { { ac_try="$ac_link_default"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696   (eval "$ac_link_default") 2>&5
3697   ac_status=$?
3698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699   test $ac_status = 0; }; then :
3700   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3701 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3702 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3703 # so that the user can short-circuit this test for compilers unknown to
3704 # Autoconf.
3705 for ac_file in $ac_files ''
3706 do
3707   test -f "$ac_file" || continue
3708   case $ac_file in
3709     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3710         ;;
3711     [ab].out )
3712         # We found the default executable, but exeext='' is most
3713         # certainly right.
3714         break;;
3715     *.* )
3716         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3717         then :; else
3718            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3719         fi
3720         # We set ac_cv_exeext here because the later test for it is not
3721         # safe: cross compilers may not add the suffix if given an `-o'
3722         # argument, so we may need to know it at that point already.
3723         # Even if this section looks crufty: it has the advantage of
3724         # actually working.
3725         break;;
3726     * )
3727         break;;
3728   esac
3729 done
3730 test "$ac_cv_exeext" = no && ac_cv_exeext=
3731
3732 else
3733   ac_file=''
3734 fi
3735 if test -z "$ac_file"; then :
3736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error 77 "C compiler cannot create executables
3744 See \`config.log' for more details" "$LINENO" 5; }
3745 else
3746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3747 $as_echo "yes" >&6; }
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3750 $as_echo_n "checking for C compiler default output file name... " >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3752 $as_echo "$ac_file" >&6; }
3753 ac_exeext=$ac_cv_exeext
3754
3755 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3756 ac_clean_files=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3758 $as_echo_n "checking for suffix of executables... " >&6; }
3759 if { { ac_try="$ac_link"
3760 case "(($ac_try" in
3761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762   *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766   (eval "$ac_link") 2>&5
3767   ac_status=$?
3768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769   test $ac_status = 0; }; then :
3770   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3771 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3772 # work properly (i.e., refer to `conftest.exe'), while it won't with
3773 # `rm'.
3774 for ac_file in conftest.exe conftest conftest.*; do
3775   test -f "$ac_file" || continue
3776   case $ac_file in
3777     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3778     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3779           break;;
3780     * ) break;;
3781   esac
3782 done
3783 else
3784   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details" "$LINENO" 5; }
3788 fi
3789 rm -f conftest conftest$ac_cv_exeext
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3791 $as_echo "$ac_cv_exeext" >&6; }
3792
3793 rm -f conftest.$ac_ext
3794 EXEEXT=$ac_cv_exeext
3795 ac_exeext=$EXEEXT
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h.  */
3798 #include <stdio.h>
3799 int
3800 main ()
3801 {
3802 FILE *f = fopen ("conftest.out", "w");
3803  return ferror (f) || fclose (f) != 0;
3804
3805   ;
3806   return 0;
3807 }
3808 _ACEOF
3809 ac_clean_files="$ac_clean_files conftest.out"
3810 # Check that the compiler produces executables we can run.  If not, either
3811 # the compiler is broken, or we cross compile.
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3813 $as_echo_n "checking whether we are cross compiling... " >&6; }
3814 if test "$cross_compiling" != yes; then
3815   { { ac_try="$ac_link"
3816 case "(($ac_try" in
3817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818   *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822   (eval "$ac_link") 2>&5
3823   ac_status=$?
3824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825   test $ac_status = 0; }
3826   if { ac_try='./conftest$ac_cv_exeext'
3827   { { case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 $as_echo "$ac_try_echo"; } >&5
3833   (eval "$ac_try") 2>&5
3834   ac_status=$?
3835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836   test $ac_status = 0; }; }; then
3837     cross_compiling=no
3838   else
3839     if test "$cross_compiling" = maybe; then
3840         cross_compiling=yes
3841     else
3842         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error $? "cannot run C compiled programs.
3845 If you meant to cross compile, use \`--host'.
3846 See \`config.log' for more details" "$LINENO" 5; }
3847     fi
3848   fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3851 $as_echo "$cross_compiling" >&6; }
3852
3853 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3854 ac_clean_files=$ac_clean_files_save
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3856 $as_echo_n "checking for suffix of object files... " >&6; }
3857 if ${ac_cv_objext+:} false; then :
3858   $as_echo_n "(cached) " >&6
3859 else
3860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h.  */
3862
3863 int
3864 main ()
3865 {
3866
3867   ;
3868   return 0;
3869 }
3870 _ACEOF
3871 rm -f conftest.o conftest.obj
3872 if { { ac_try="$ac_compile"
3873 case "(($ac_try" in
3874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875   *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879   (eval "$ac_compile") 2>&5
3880   ac_status=$?
3881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882   test $ac_status = 0; }; then :
3883   for ac_file in conftest.o conftest.obj conftest.*; do
3884   test -f "$ac_file" || continue;
3885   case $ac_file in
3886     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3887     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3888        break;;
3889   esac
3890 done
3891 else
3892   $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "cannot compute suffix of object files: cannot compile
3898 See \`config.log' for more details" "$LINENO" 5; }
3899 fi
3900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3903 $as_echo "$ac_cv_objext" >&6; }
3904 OBJEXT=$ac_cv_objext
3905 ac_objext=$OBJEXT
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3907 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3908 if ${ac_cv_c_compiler_gnu+:} false; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917 #ifndef __GNUC__
3918        choke me
3919 #endif
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926   ac_compiler_gnu=yes
3927 else
3928   ac_compiler_gnu=no
3929 fi
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3932
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3935 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3936 if test $ac_compiler_gnu = yes; then
3937   GCC=yes
3938 else
3939   GCC=
3940 fi
3941 ac_test_CFLAGS=${CFLAGS+set}
3942 ac_save_CFLAGS=$CFLAGS
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3944 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3945 if ${ac_cv_prog_cc_g+:} false; then :
3946   $as_echo_n "(cached) " >&6
3947 else
3948   ac_save_c_werror_flag=$ac_c_werror_flag
3949    ac_c_werror_flag=yes
3950    ac_cv_prog_cc_g=no
3951    CFLAGS="-g"
3952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h.  */
3954
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_cv_prog_cc_g=yes
3965 else
3966   CFLAGS=""
3967       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h.  */
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979
3980 else
3981   ac_c_werror_flag=$ac_save_c_werror_flag
3982          CFLAGS="-g"
3983          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985
3986 int
3987 main ()
3988 {
3989
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_c_try_compile "$LINENO"; then :
3995   ac_cv_prog_cc_g=yes
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 fi
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 fi
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002    ac_c_werror_flag=$ac_save_c_werror_flag
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4005 $as_echo "$ac_cv_prog_cc_g" >&6; }
4006 if test "$ac_test_CFLAGS" = set; then
4007   CFLAGS=$ac_save_CFLAGS
4008 elif test $ac_cv_prog_cc_g = yes; then
4009   if test "$GCC" = yes; then
4010     CFLAGS="-g -O2"
4011   else
4012     CFLAGS="-g"
4013   fi
4014 else
4015   if test "$GCC" = yes; then
4016     CFLAGS="-O2"
4017   else
4018     CFLAGS=
4019   fi
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4022 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4023 if ${ac_cv_prog_cc_c89+:} false; then :
4024   $as_echo_n "(cached) " >&6
4025 else
4026   ac_cv_prog_cc_c89=no
4027 ac_save_CC=$CC
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h.  */
4030 #include <stdarg.h>
4031 #include <stdio.h>
4032 #include <sys/types.h>
4033 #include <sys/stat.h>
4034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4035 struct buf { int x; };
4036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4037 static char *e (p, i)
4038      char **p;
4039      int i;
4040 {
4041   return p[i];
4042 }
4043 static char *f (char * (*g) (char **, int), char **p, ...)
4044 {
4045   char *s;
4046   va_list v;
4047   va_start (v,p);
4048   s = g (p, va_arg (v,int));
4049   va_end (v);
4050   return s;
4051 }
4052
4053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4054    function prototypes and stuff, but not '\xHH' hex character constants.
4055    These don't provoke an error unfortunately, instead are silently treated
4056    as 'x'.  The following induces an error, until -std is added to get
4057    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4058    array size at least.  It's necessary to write '\x00'==0 to get something
4059    that's true only with -std.  */
4060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4061
4062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4063    inside strings and character constants.  */
4064 #define FOO(x) 'x'
4065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4066
4067 int test (int i, double x);
4068 struct s1 {int (*f) (int a);};
4069 struct s2 {int (*f) (double a);};
4070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4071 int argc;
4072 char **argv;
4073 int
4074 main ()
4075 {
4076 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4082         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4083 do
4084   CC="$ac_save_CC $ac_arg"
4085   if ac_fn_c_try_compile "$LINENO"; then :
4086   ac_cv_prog_cc_c89=$ac_arg
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext
4089   test "x$ac_cv_prog_cc_c89" != "xno" && break
4090 done
4091 rm -f conftest.$ac_ext
4092 CC=$ac_save_CC
4093
4094 fi
4095 # AC_CACHE_VAL
4096 case "x$ac_cv_prog_cc_c89" in
4097   x)
4098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4099 $as_echo "none needed" >&6; } ;;
4100   xno)
4101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4102 $as_echo "unsupported" >&6; } ;;
4103   *)
4104     CC="$CC $ac_cv_prog_cc_c89"
4105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4106 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4107 esac
4108 if test "x$ac_cv_prog_cc_c89" != xno; then :
4109
4110 fi
4111
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 DEPDIR="${am__leading_dot}deps"
4118
4119 ac_config_commands="$ac_config_commands depfiles"
4120
4121
4122 am_make=${MAKE-make}
4123 cat > confinc << 'END'
4124 am__doit:
4125         @echo this is the am__doit target
4126 .PHONY: am__doit
4127 END
4128 # If we don't find an include directive, just comment out the code.
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4130 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4131 am__include="#"
4132 am__quote=
4133 _am_result=none
4134 # First try GNU make style include.
4135 echo "include confinc" > confmf
4136 # Ignore all kinds of additional output from `make'.
4137 case `$am_make -s -f confmf 2> /dev/null` in #(
4138 *the\ am__doit\ target*)
4139   am__include=include
4140   am__quote=
4141   _am_result=GNU
4142   ;;
4143 esac
4144 # Now try BSD make style include.
4145 if test "$am__include" = "#"; then
4146    echo '.include "confinc"' > confmf
4147    case `$am_make -s -f confmf 2> /dev/null` in #(
4148    *the\ am__doit\ target*)
4149      am__include=.include
4150      am__quote="\""
4151      _am_result=BSD
4152      ;;
4153    esac
4154 fi
4155
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4158 $as_echo "$_am_result" >&6; }
4159 rm -f confinc confmf
4160
4161 # Check whether --enable-dependency-tracking was given.
4162 if test "${enable_dependency_tracking+set}" = set; then :
4163   enableval=$enable_dependency_tracking;
4164 fi
4165
4166 if test "x$enable_dependency_tracking" != xno; then
4167   am_depcomp="$ac_aux_dir/depcomp"
4168   AMDEPBACKSLASH='\'
4169 fi
4170  if test "x$enable_dependency_tracking" != xno; then
4171   AMDEP_TRUE=
4172   AMDEP_FALSE='#'
4173 else
4174   AMDEP_TRUE='#'
4175   AMDEP_FALSE=
4176 fi
4177
4178
4179
4180 depcc="$CC"   am_compiler_list=
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4183 $as_echo_n "checking dependency style of $depcc... " >&6; }
4184 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188   # We make a subdir and do the tests there.  Otherwise we can end up
4189   # making bogus files that we don't know about and never remove.  For
4190   # instance it was reported that on HP-UX the gcc test will end up
4191   # making a dummy file named `D' -- because `-MD' means `put the output
4192   # in D'.
4193   mkdir conftest.dir
4194   # Copy depcomp to subdir because otherwise we won't find it if we're
4195   # using a relative directory.
4196   cp "$am_depcomp" conftest.dir
4197   cd conftest.dir
4198   # We will build objects and dependencies in a subdirectory because
4199   # it helps to detect inapplicable dependency modes.  For instance
4200   # both Tru64's cc and ICC support -MD to output dependencies as a
4201   # side effect of compilation, but ICC will put the dependencies in
4202   # the current directory while Tru64 will put them in the object
4203   # directory.
4204   mkdir sub
4205
4206   am_cv_CC_dependencies_compiler_type=none
4207   if test "$am_compiler_list" = ""; then
4208      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4209   fi
4210   am__universal=false
4211   case " $depcc " in #(
4212      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4213      esac
4214
4215   for depmode in $am_compiler_list; do
4216     # Setup a source with many dependencies, because some compilers
4217     # like to wrap large dependency lists on column 80 (with \), and
4218     # we should not choose a depcomp mode which is confused by this.
4219     #
4220     # We need to recreate these files for each test, as the compiler may
4221     # overwrite some of them when testing with obscure command lines.
4222     # This happens at least with the AIX C compiler.
4223     : > sub/conftest.c
4224     for i in 1 2 3 4 5 6; do
4225       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4226       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4227       # Solaris 8's {/usr,}/bin/sh.
4228       touch sub/conftst$i.h
4229     done
4230     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4231
4232     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4233     # mode.  It turns out that the SunPro C++ compiler does not properly
4234     # handle `-M -o', and we need to detect this.  Also, some Intel
4235     # versions had trouble with output in subdirs
4236     am__obj=sub/conftest.${OBJEXT-o}
4237     am__minus_obj="-o $am__obj"
4238     case $depmode in
4239     gcc)
4240       # This depmode causes a compiler race in universal mode.
4241       test "$am__universal" = false || continue
4242       ;;
4243     nosideeffect)
4244       # after this tag, mechanisms are not by side-effect, so they'll
4245       # only be used when explicitly requested
4246       if test "x$enable_dependency_tracking" = xyes; then
4247         continue
4248       else
4249         break
4250       fi
4251       ;;
4252     msvisualcpp | msvcmsys)
4253       # This compiler won't grok `-c -o', but also, the minuso test has
4254       # not run yet.  These depmodes are late enough in the game, and
4255       # so weak that their functioning should not be impacted.
4256       am__obj=conftest.${OBJEXT-o}
4257       am__minus_obj=
4258       ;;
4259     none) break ;;
4260     esac
4261     if depmode=$depmode \
4262        source=sub/conftest.c object=$am__obj \
4263        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4264        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4265          >/dev/null 2>conftest.err &&
4266        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4267        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4268        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4269        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4270       # icc doesn't choke on unknown options, it will just issue warnings
4271       # or remarks (even with -Werror).  So we grep stderr for any message
4272       # that says an option was ignored or not supported.
4273       # When given -MP, icc 7.0 and 7.1 complain thusly:
4274       #   icc: Command line warning: ignoring option '-M'; no argument required
4275       # The diagnosis changed in icc 8.0:
4276       #   icc: Command line remark: option '-MP' not supported
4277       if (grep 'ignoring option' conftest.err ||
4278           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4279         am_cv_CC_dependencies_compiler_type=$depmode
4280         break
4281       fi
4282     fi
4283   done
4284
4285   cd ..
4286   rm -rf conftest.dir
4287 else
4288   am_cv_CC_dependencies_compiler_type=none
4289 fi
4290
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4293 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4294 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4295
4296  if
4297   test "x$enable_dependency_tracking" != xno \
4298   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4299   am__fastdepCC_TRUE=
4300   am__fastdepCC_FALSE='#'
4301 else
4302   am__fastdepCC_TRUE='#'
4303   am__fastdepCC_FALSE=
4304 fi
4305
4306
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4313 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4314 # On Suns, sometimes $CPP names a directory.
4315 if test -n "$CPP" && test -d "$CPP"; then
4316   CPP=
4317 fi
4318 if test -z "$CPP"; then
4319   if ${ac_cv_prog_CPP+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322       # Double quotes because CPP needs to be expanded
4323     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4324     do
4325       ac_preproc_ok=false
4326 for ac_c_preproc_warn_flag in '' yes
4327 do
4328   # Use a header file that comes with gcc, so configuring glibc
4329   # with a fresh cross-compiler works.
4330   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4331   # <limits.h> exists even on freestanding compilers.
4332   # On the NeXT, cc -E runs the code through the compiler's parser,
4333   # not just through cpp. "Syntax error" is here to catch this case.
4334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h.  */
4336 #ifdef __STDC__
4337 # include <limits.h>
4338 #else
4339 # include <assert.h>
4340 #endif
4341                      Syntax error
4342 _ACEOF
4343 if ac_fn_c_try_cpp "$LINENO"; then :
4344
4345 else
4346   # Broken: fails on valid input.
4347 continue
4348 fi
4349 rm -f conftest.err conftest.i conftest.$ac_ext
4350
4351   # OK, works on sane cases.  Now check whether nonexistent headers
4352   # can be detected and how.
4353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h.  */
4355 #include <ac_nonexistent.h>
4356 _ACEOF
4357 if ac_fn_c_try_cpp "$LINENO"; then :
4358   # Broken: success on invalid input.
4359 continue
4360 else
4361   # Passes both tests.
4362 ac_preproc_ok=:
4363 break
4364 fi
4365 rm -f conftest.err conftest.i conftest.$ac_ext
4366
4367 done
4368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4369 rm -f conftest.i conftest.err conftest.$ac_ext
4370 if $ac_preproc_ok; then :
4371   break
4372 fi
4373
4374     done
4375     ac_cv_prog_CPP=$CPP
4376
4377 fi
4378   CPP=$ac_cv_prog_CPP
4379 else
4380   ac_cv_prog_CPP=$CPP
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4383 $as_echo "$CPP" >&6; }
4384 ac_preproc_ok=false
4385 for ac_c_preproc_warn_flag in '' yes
4386 do
4387   # Use a header file that comes with gcc, so configuring glibc
4388   # with a fresh cross-compiler works.
4389   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4390   # <limits.h> exists even on freestanding compilers.
4391   # On the NeXT, cc -E runs the code through the compiler's parser,
4392   # not just through cpp. "Syntax error" is here to catch this case.
4393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h.  */
4395 #ifdef __STDC__
4396 # include <limits.h>
4397 #else
4398 # include <assert.h>
4399 #endif
4400                      Syntax error
4401 _ACEOF
4402 if ac_fn_c_try_cpp "$LINENO"; then :
4403
4404 else
4405   # Broken: fails on valid input.
4406 continue
4407 fi
4408 rm -f conftest.err conftest.i conftest.$ac_ext
4409
4410   # OK, works on sane cases.  Now check whether nonexistent headers
4411   # can be detected and how.
4412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h.  */
4414 #include <ac_nonexistent.h>
4415 _ACEOF
4416 if ac_fn_c_try_cpp "$LINENO"; then :
4417   # Broken: success on invalid input.
4418 continue
4419 else
4420   # Passes both tests.
4421 ac_preproc_ok=:
4422 break
4423 fi
4424 rm -f conftest.err conftest.i conftest.$ac_ext
4425
4426 done
4427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4428 rm -f conftest.i conftest.err conftest.$ac_ext
4429 if $ac_preproc_ok; then :
4430
4431 else
4432   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4434 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4435 See \`config.log' for more details" "$LINENO" 5; }
4436 fi
4437
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443
4444
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4446 $as_echo_n "checking whether ln -s works... " >&6; }
4447 LN_S=$as_ln_s
4448 if test "$LN_S" = "ln -s"; then
4449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4450 $as_echo "yes" >&6; }
4451 else
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4453 $as_echo "no, using $LN_S" >&6; }
4454 fi
4455
4456 # Check whether --enable-static was given.
4457 if test "${enable_static+set}" = set; then :
4458   enableval=$enable_static; p=${PACKAGE-default}
4459     case $enableval in
4460     yes) enable_static=yes ;;
4461     no) enable_static=no ;;
4462     *)
4463      enable_static=no
4464       # Look at the argument we got.  We use all the common list separators.
4465       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4466       for pkg in $enableval; do
4467         IFS="$lt_save_ifs"
4468         if test "X$pkg" = "X$p"; then
4469           enable_static=yes
4470         fi
4471       done
4472       IFS="$lt_save_ifs"
4473       ;;
4474     esac
4475 else
4476   enable_static=no
4477 fi
4478
4479
4480
4481
4482
4483 # Check whether --enable-shared was given.
4484 if test "${enable_shared+set}" = set; then :
4485   enableval=$enable_shared; p=${PACKAGE-default}
4486     case $enableval in
4487     yes) enable_shared=yes ;;
4488     no) enable_shared=no ;;
4489     *)
4490       enable_shared=no
4491       # Look at the argument we got.  We use all the common list separators.
4492       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4493       for pkg in $enableval; do
4494         IFS="$lt_save_ifs"
4495         if test "X$pkg" = "X$p"; then
4496           enable_shared=yes
4497         fi
4498       done
4499       IFS="$lt_save_ifs"
4500       ;;
4501     esac
4502 else
4503   enable_shared=yes
4504 fi
4505
4506
4507 # Check whether --enable-fast-install was given.
4508 if test "${enable_fast_install+set}" = set; then :
4509   enableval=$enable_fast_install; p=${PACKAGE-default}
4510     case $enableval in
4511     yes) enable_fast_install=yes ;;
4512     no) enable_fast_install=no ;;
4513     *)
4514       enable_fast_install=no
4515       # Look at the argument we got.  We use all the common list separators.
4516       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4517       for pkg in $enableval; do
4518         IFS="$lt_save_ifs"
4519         if test "X$pkg" = "X$p"; then
4520           enable_fast_install=yes
4521         fi
4522       done
4523       IFS="$lt_save_ifs"
4524       ;;
4525     esac
4526 else
4527   enable_fast_install=yes
4528 fi
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4532 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4533 if ${lt_cv_path_SED+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   # Loop through the user's path and test for sed and gsed.
4537 # Then use that list of sed's as ones to test for truncation.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543   for lt_ac_prog in sed gsed; do
4544     for ac_exec_ext in '' $ac_executable_extensions; do
4545       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4546         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4547       fi
4548     done
4549   done
4550 done
4551 lt_ac_max=0
4552 lt_ac_count=0
4553 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4554 # along with /bin/sed that truncates output.
4555 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4556   test ! -f $lt_ac_sed && continue
4557   cat /dev/null > conftest.in
4558   lt_ac_count=0
4559   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4560   # Check for GNU sed and select it if it is found.
4561   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4562     lt_cv_path_SED=$lt_ac_sed
4563     break
4564   fi
4565   while true; do
4566     cat conftest.in conftest.in >conftest.tmp
4567     mv conftest.tmp conftest.in
4568     cp conftest.in conftest.nl
4569     echo >>conftest.nl
4570     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4571     cmp -s conftest.out conftest.nl || break
4572     # 10000 chars as input seems more than enough
4573     test $lt_ac_count -gt 10 && break
4574     lt_ac_count=`expr $lt_ac_count + 1`
4575     if test $lt_ac_count -gt $lt_ac_max; then
4576       lt_ac_max=$lt_ac_count
4577       lt_cv_path_SED=$lt_ac_sed
4578     fi
4579   done
4580 done
4581
4582 fi
4583
4584 SED=$lt_cv_path_SED
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4586 $as_echo "$SED" >&6; }
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4589 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4590 if ${ac_cv_path_GREP+:} false; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   if test -z "$GREP"; then
4594   ac_path_GREP_found=false
4595   # Loop through the user's path and test for each of PROGNAME-LIST
4596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4598 do
4599   IFS=$as_save_IFS
4600   test -z "$as_dir" && as_dir=.
4601     for ac_prog in grep ggrep; do
4602     for ac_exec_ext in '' $ac_executable_extensions; do
4603       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4604       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4605 # Check for GNU ac_path_GREP and select it if it is found.
4606   # Check for GNU $ac_path_GREP
4607 case `"$ac_path_GREP" --version 2>&1` in
4608 *GNU*)
4609   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4610 *)
4611   ac_count=0
4612   $as_echo_n 0123456789 >"conftest.in"
4613   while :
4614   do
4615     cat "conftest.in" "conftest.in" >"conftest.tmp"
4616     mv "conftest.tmp" "conftest.in"
4617     cp "conftest.in" "conftest.nl"
4618     $as_echo 'GREP' >> "conftest.nl"
4619     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621     as_fn_arith $ac_count + 1 && ac_count=$as_val
4622     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4623       # Best one so far, save it but keep looking for a better one
4624       ac_cv_path_GREP="$ac_path_GREP"
4625       ac_path_GREP_max=$ac_count
4626     fi
4627     # 10*(2^10) chars as input seems more than enough
4628     test $ac_count -gt 10 && break
4629   done
4630   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631 esac
4632
4633       $ac_path_GREP_found && break 3
4634     done
4635   done
4636   done
4637 IFS=$as_save_IFS
4638   if test -z "$ac_cv_path_GREP"; then
4639     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4640   fi
4641 else
4642   ac_cv_path_GREP=$GREP
4643 fi
4644
4645 fi
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4647 $as_echo "$ac_cv_path_GREP" >&6; }
4648  GREP="$ac_cv_path_GREP"
4649
4650
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4652 $as_echo_n "checking for egrep... " >&6; }
4653 if ${ac_cv_path_EGREP+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4657    then ac_cv_path_EGREP="$GREP -E"
4658    else
4659      if test -z "$EGREP"; then
4660   ac_path_EGREP_found=false
4661   # Loop through the user's path and test for each of PROGNAME-LIST
4662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4664 do
4665   IFS=$as_save_IFS
4666   test -z "$as_dir" && as_dir=.
4667     for ac_prog in egrep; do
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4670       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4671 # Check for GNU ac_path_EGREP and select it if it is found.
4672   # Check for GNU $ac_path_EGREP
4673 case `"$ac_path_EGREP" --version 2>&1` in
4674 *GNU*)
4675   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4676 *)
4677   ac_count=0
4678   $as_echo_n 0123456789 >"conftest.in"
4679   while :
4680   do
4681     cat "conftest.in" "conftest.in" >"conftest.tmp"
4682     mv "conftest.tmp" "conftest.in"
4683     cp "conftest.in" "conftest.nl"
4684     $as_echo 'EGREP' >> "conftest.nl"
4685     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687     as_fn_arith $ac_count + 1 && ac_count=$as_val
4688     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4689       # Best one so far, save it but keep looking for a better one
4690       ac_cv_path_EGREP="$ac_path_EGREP"
4691       ac_path_EGREP_max=$ac_count
4692     fi
4693     # 10*(2^10) chars as input seems more than enough
4694     test $ac_count -gt 10 && break
4695   done
4696   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4697 esac
4698
4699       $ac_path_EGREP_found && break 3
4700     done
4701   done
4702   done
4703 IFS=$as_save_IFS
4704   if test -z "$ac_cv_path_EGREP"; then
4705     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706   fi
4707 else
4708   ac_cv_path_EGREP=$EGREP
4709 fi
4710
4711    fi
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4714 $as_echo "$ac_cv_path_EGREP" >&6; }
4715  EGREP="$ac_cv_path_EGREP"
4716
4717
4718
4719 # Check whether --with-gnu-ld was given.
4720 if test "${with_gnu_ld+set}" = set; then :
4721   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4722 else
4723   with_gnu_ld=no
4724 fi
4725
4726 ac_prog=ld
4727 if test "$GCC" = yes; then
4728   # Check if gcc -print-prog-name=ld gives a path.
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4730 $as_echo_n "checking for ld used by $CC... " >&6; }
4731   case $host in
4732   *-*-mingw*)
4733     # gcc leaves a trailing carriage return which upsets mingw
4734     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4735   *)
4736     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4737   esac
4738   case $ac_prog in
4739     # Accept absolute paths.
4740     [\\/]* | ?:[\\/]*)
4741       re_direlt='/[^/][^/]*/\.\./'
4742       # Canonicalize the pathname of ld
4743       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4744       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4745         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4746       done
4747       test -z "$LD" && LD="$ac_prog"
4748       ;;
4749   "")
4750     # If it fails, then pretend we aren't using GCC.
4751     ac_prog=ld
4752     ;;
4753   *)
4754     # If it is relative, then search for the first ld in PATH.
4755     with_gnu_ld=unknown
4756     ;;
4757   esac
4758 elif test "$with_gnu_ld" = yes; then
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4760 $as_echo_n "checking for GNU ld... " >&6; }
4761 else
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4763 $as_echo_n "checking for non-GNU ld... " >&6; }
4764 fi
4765 if ${lt_cv_path_LD+:} false; then :
4766   $as_echo_n "(cached) " >&6
4767 else
4768   if test -z "$LD"; then
4769   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4770   for ac_dir in $PATH; do
4771     IFS="$lt_save_ifs"
4772     test -z "$ac_dir" && ac_dir=.
4773     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4774       lt_cv_path_LD="$ac_dir/$ac_prog"
4775       # Check to see if the program is GNU ld.  I'd rather use --version,
4776       # but apparently some variants of GNU ld only accept -v.
4777       # Break only if it was the GNU/non-GNU ld that we prefer.
4778       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4779       *GNU* | *'with BFD'*)
4780         test "$with_gnu_ld" != no && break
4781         ;;
4782       *)
4783         test "$with_gnu_ld" != yes && break
4784         ;;
4785       esac
4786     fi
4787   done
4788   IFS="$lt_save_ifs"
4789 else
4790   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4791 fi
4792 fi
4793
4794 LD="$lt_cv_path_LD"
4795 if test -n "$LD"; then
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4797 $as_echo "$LD" >&6; }
4798 else
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4801 fi
4802 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4805 if ${lt_cv_prog_gnu_ld+:} false; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4809 case `$LD -v 2>&1 </dev/null` in
4810 *GNU* | *'with BFD'*)
4811   lt_cv_prog_gnu_ld=yes
4812   ;;
4813 *)
4814   lt_cv_prog_gnu_ld=no
4815   ;;
4816 esac
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4820 with_gnu_ld=$lt_cv_prog_gnu_ld
4821
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4824 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4825 if ${lt_cv_ld_reload_flag+:} false; then :
4826   $as_echo_n "(cached) " >&6
4827 else
4828   lt_cv_ld_reload_flag='-r'
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4831 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4832 reload_flag=$lt_cv_ld_reload_flag
4833 case $reload_flag in
4834 "" | " "*) ;;
4835 *) reload_flag=" $reload_flag" ;;
4836 esac
4837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4838 case $host_os in
4839   darwin*)
4840     if test "$GCC" = yes; then
4841       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4842     else
4843       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4844     fi
4845     ;;
4846 esac
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4849 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4850 if ${lt_cv_path_NM+:} false; then :
4851   $as_echo_n "(cached) " >&6
4852 else
4853   if test -n "$NM"; then
4854   # Let the user override the test.
4855   lt_cv_path_NM="$NM"
4856 else
4857   lt_nm_to_check="${ac_tool_prefix}nm"
4858   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4859     lt_nm_to_check="$lt_nm_to_check nm"
4860   fi
4861   for lt_tmp_nm in $lt_nm_to_check; do
4862     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4863     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4864       IFS="$lt_save_ifs"
4865       test -z "$ac_dir" && ac_dir=.
4866       tmp_nm="$ac_dir/$lt_tmp_nm"
4867       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4868         # Check to see if the nm accepts a BSD-compat flag.
4869         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4870         #   nm: unknown option "B" ignored
4871         # Tru64's nm complains that /dev/null is an invalid object file
4872         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4873         */dev/null* | *'Invalid file or object type'*)
4874           lt_cv_path_NM="$tmp_nm -B"
4875           break
4876           ;;
4877         *)
4878           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4879           */dev/null*)
4880             lt_cv_path_NM="$tmp_nm -p"
4881             break
4882             ;;
4883           *)
4884             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4885             continue # so that we can try to find one that supports BSD flags
4886             ;;
4887           esac
4888           ;;
4889         esac
4890       fi
4891     done
4892     IFS="$lt_save_ifs"
4893   done
4894   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4895 fi
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4898 $as_echo "$lt_cv_path_NM" >&6; }
4899 NM="$lt_cv_path_NM"
4900
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4902 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4903 if ${lt_cv_deplibs_check_method+:} false; then :
4904   $as_echo_n "(cached) " >&6
4905 else
4906   lt_cv_file_magic_cmd='$MAGIC_CMD'
4907 lt_cv_file_magic_test_file=
4908 lt_cv_deplibs_check_method='unknown'
4909 # Need to set the preceding variable on all platforms that support
4910 # interlibrary dependencies.
4911 # 'none' -- dependencies not supported.
4912 # `unknown' -- same as none, but documents that we really don't know.
4913 # 'pass_all' -- all dependencies passed with no checks.
4914 # 'test_compile' -- check by making test program.
4915 # 'file_magic [[regex]]' -- check by looking for files in library path
4916 # which responds to the $file_magic_cmd with a given extended regex.
4917 # If you have `file' or equivalent on your system and you're not sure
4918 # whether `pass_all' will *always* work, you probably want this one.
4919
4920 case $host_os in
4921 aix4* | aix5*)
4922   lt_cv_deplibs_check_method=pass_all
4923   ;;
4924
4925 beos*)
4926   lt_cv_deplibs_check_method=pass_all
4927   ;;
4928
4929 bsdi[45]*)
4930   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4931   lt_cv_file_magic_cmd='/usr/bin/file -L'
4932   lt_cv_file_magic_test_file=/shlib/libc.so
4933   ;;
4934
4935 cygwin*)
4936   # func_win32_libid is a shell function defined in ltmain.sh
4937   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4938   lt_cv_file_magic_cmd='func_win32_libid'
4939   ;;
4940
4941 mingw* | pw32*)
4942   # Base MSYS/MinGW do not provide the 'file' command needed by
4943   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4944   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4945   lt_cv_file_magic_cmd='$OBJDUMP -f'
4946   ;;
4947
4948 darwin* | rhapsody*)
4949   lt_cv_deplibs_check_method=pass_all
4950   ;;
4951
4952 freebsd* | kfreebsd*-gnu | dragonfly*)
4953   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4954     case $host_cpu in
4955     i*86 )
4956       # Not sure whether the presence of OpenBSD here was a mistake.
4957       # Let's accept both of them until this is cleared up.
4958       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4959       lt_cv_file_magic_cmd=/usr/bin/file
4960       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4961       ;;
4962     esac
4963   else
4964     lt_cv_deplibs_check_method=pass_all
4965   fi
4966   ;;
4967
4968 gnu*)
4969   lt_cv_deplibs_check_method=pass_all
4970   ;;
4971
4972 hpux10.20* | hpux11*)
4973   lt_cv_file_magic_cmd=/usr/bin/file
4974   case $host_cpu in
4975   ia64*)
4976     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4977     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4978     ;;
4979   hppa*64*)
4980     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]'
4981     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4982     ;;
4983   *)
4984     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4985     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4986     ;;
4987   esac
4988   ;;
4989
4990 interix3*)
4991   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4992   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4993   ;;
4994
4995 irix5* | irix6* | nonstopux*)
4996   case $LD in
4997   *-32|*"-32 ") libmagic=32-bit;;
4998   *-n32|*"-n32 ") libmagic=N32;;
4999   *-64|*"-64 ") libmagic=64-bit;;
5000   *) libmagic=never-match;;
5001   esac
5002   lt_cv_deplibs_check_method=pass_all
5003   ;;
5004
5005 # This must be Linux ELF.
5006 linux*)
5007   lt_cv_deplibs_check_method=pass_all
5008   ;;
5009
5010 netbsd*)
5011   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5012     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5013   else
5014     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5015   fi
5016   ;;
5017
5018 newos6*)
5019   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5020   lt_cv_file_magic_cmd=/usr/bin/file
5021   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5022   ;;
5023
5024 nto-qnx*)
5025   lt_cv_deplibs_check_method=unknown
5026   ;;
5027
5028 openbsd*)
5029   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5030     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5031   else
5032     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5033   fi
5034   ;;
5035
5036 osf3* | osf4* | osf5*)
5037   lt_cv_deplibs_check_method=pass_all
5038   ;;
5039
5040 solaris*)
5041   lt_cv_deplibs_check_method=pass_all
5042   ;;
5043
5044 sysv4 | sysv4.3*)
5045   case $host_vendor in
5046   motorola)
5047     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]'
5048     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5049     ;;
5050   ncr)
5051     lt_cv_deplibs_check_method=pass_all
5052     ;;
5053   sequent)
5054     lt_cv_file_magic_cmd='/bin/file'
5055     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5056     ;;
5057   sni)
5058     lt_cv_file_magic_cmd='/bin/file'
5059     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5060     lt_cv_file_magic_test_file=/lib/libc.so
5061     ;;
5062   siemens)
5063     lt_cv_deplibs_check_method=pass_all
5064     ;;
5065   pc)
5066     lt_cv_deplibs_check_method=pass_all
5067     ;;
5068   esac
5069   ;;
5070
5071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5072   lt_cv_deplibs_check_method=pass_all
5073   ;;
5074 esac
5075
5076 fi
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5078 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5079 file_magic_cmd=$lt_cv_file_magic_cmd
5080 deplibs_check_method=$lt_cv_deplibs_check_method
5081 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5082
5083
5084
5085
5086 # If no C compiler was specified, use CC.
5087 LTCC=${LTCC-"$CC"}
5088
5089 # If no C compiler flags were specified, use CFLAGS.
5090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5091
5092 # Allow CC to be a program name with arguments.
5093 compiler=$CC
5094
5095
5096 # Check whether --enable-libtool-lock was given.
5097 if test "${enable_libtool_lock+set}" = set; then :
5098   enableval=$enable_libtool_lock;
5099 fi
5100
5101 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5102
5103 # Some flags need to be propagated to the compiler or linker for good
5104 # libtool support.
5105 case $host in
5106 ia64-*-hpux*)
5107   # Find out which ABI we are using.
5108   echo 'int i;' > conftest.$ac_ext
5109   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5110   (eval $ac_compile) 2>&5
5111   ac_status=$?
5112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5113   test $ac_status = 0; }; then
5114     case `/usr/bin/file conftest.$ac_objext` in
5115     *ELF-32*)
5116       HPUX_IA64_MODE="32"
5117       ;;
5118     *ELF-64*)
5119       HPUX_IA64_MODE="64"
5120       ;;
5121     esac
5122   fi
5123   rm -rf conftest*
5124   ;;
5125 *-*-irix6*)
5126   # Find out which ABI we are using.
5127   echo '#line 5127 "configure"' > conftest.$ac_ext
5128   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5129   (eval $ac_compile) 2>&5
5130   ac_status=$?
5131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5132   test $ac_status = 0; }; then
5133    if test "$lt_cv_prog_gnu_ld" = yes; then
5134     case `/usr/bin/file conftest.$ac_objext` in
5135     *32-bit*)
5136       LD="${LD-ld} -melf32bsmip"
5137       ;;
5138     *N32*)
5139       LD="${LD-ld} -melf32bmipn32"
5140       ;;
5141     *64-bit*)
5142       LD="${LD-ld} -melf64bmip"
5143       ;;
5144     esac
5145    else
5146     case `/usr/bin/file conftest.$ac_objext` in
5147     *32-bit*)
5148       LD="${LD-ld} -32"
5149       ;;
5150     *N32*)
5151       LD="${LD-ld} -n32"
5152       ;;
5153     *64-bit*)
5154       LD="${LD-ld} -64"
5155       ;;
5156     esac
5157    fi
5158   fi
5159   rm -rf conftest*
5160   ;;
5161
5162 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5163   # Find out which ABI we are using.
5164   echo 'int i;' > conftest.$ac_ext
5165   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5166   (eval $ac_compile) 2>&5
5167   ac_status=$?
5168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169   test $ac_status = 0; }; then
5170     case `/usr/bin/file conftest.o` in
5171     *32-bit*)
5172       case $host in
5173         x86_64-*linux*)
5174           LD="${LD-ld} -m elf_i386"
5175           ;;
5176         ppc64-*linux*|powerpc64-*linux*)
5177           LD="${LD-ld} -m elf32ppclinux"
5178           ;;
5179         s390x-*linux*)
5180           LD="${LD-ld} -m elf_s390"
5181           ;;
5182         sparc64-*linux*)
5183           LD="${LD-ld} -m elf32_sparc"
5184           ;;
5185       esac
5186       ;;
5187     *64-bit*)
5188       case $host in
5189         x86_64-*linux*)
5190           LD="${LD-ld} -m elf_x86_64"
5191           ;;
5192         ppc*-*linux*|powerpc*-*linux*)
5193           LD="${LD-ld} -m elf64ppc"
5194           ;;
5195         s390*-*linux*)
5196           LD="${LD-ld} -m elf64_s390"
5197           ;;
5198         sparc*-*linux*)
5199           LD="${LD-ld} -m elf64_sparc"
5200           ;;
5201       esac
5202       ;;
5203     esac
5204   fi
5205   rm -rf conftest*
5206   ;;
5207
5208 *-*-sco3.2v5*)
5209   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5210   SAVE_CFLAGS="$CFLAGS"
5211   CFLAGS="$CFLAGS -belf"
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5213 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5214 if ${lt_cv_cc_needs_belf+:} false; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   ac_ext=c
5218 ac_cpp='$CPP $CPPFLAGS'
5219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5222
5223      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h.  */
5225
5226 int
5227 main ()
5228 {
5229
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 if ac_fn_c_try_link "$LINENO"; then :
5235   lt_cv_cc_needs_belf=yes
5236 else
5237   lt_cv_cc_needs_belf=no
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext \
5240     conftest$ac_exeext conftest.$ac_ext
5241      ac_ext=c
5242 ac_cpp='$CPP $CPPFLAGS'
5243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5249 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5250   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5251     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5252     CFLAGS="$SAVE_CFLAGS"
5253   fi
5254   ;;
5255 sparc*-*solaris*)
5256   # Find out which ABI we are using.
5257   echo 'int i;' > conftest.$ac_ext
5258   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5259   (eval $ac_compile) 2>&5
5260   ac_status=$?
5261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262   test $ac_status = 0; }; then
5263     case `/usr/bin/file conftest.o` in
5264     *64-bit*)
5265       case $lt_cv_prog_gnu_ld in
5266       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5267       *)    LD="${LD-ld} -64" ;;
5268       esac
5269       ;;
5270     esac
5271   fi
5272   rm -rf conftest*
5273   ;;
5274
5275
5276 esac
5277
5278 need_locks="$enable_libtool_lock"
5279
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5283 $as_echo_n "checking for ANSI C header files... " >&6; }
5284 if ${ac_cv_header_stdc+:} false; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h.  */
5289 #include <stdlib.h>
5290 #include <stdarg.h>
5291 #include <string.h>
5292 #include <float.h>
5293
5294 int
5295 main ()
5296 {
5297
5298   ;
5299   return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303   ac_cv_header_stdc=yes
5304 else
5305   ac_cv_header_stdc=no
5306 fi
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308
5309 if test $ac_cv_header_stdc = yes; then
5310   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h.  */
5313 #include <string.h>
5314
5315 _ACEOF
5316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5317   $EGREP "memchr" >/dev/null 2>&1; then :
5318
5319 else
5320   ac_cv_header_stdc=no
5321 fi
5322 rm -f conftest*
5323
5324 fi
5325
5326 if test $ac_cv_header_stdc = yes; then
5327   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h.  */
5330 #include <stdlib.h>
5331
5332 _ACEOF
5333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334   $EGREP "free" >/dev/null 2>&1; then :
5335
5336 else
5337   ac_cv_header_stdc=no
5338 fi
5339 rm -f conftest*
5340
5341 fi
5342
5343 if test $ac_cv_header_stdc = yes; then
5344   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5345   if test "$cross_compiling" = yes; then :
5346   :
5347 else
5348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350 #include <ctype.h>
5351 #include <stdlib.h>
5352 #if ((' ' & 0x0FF) == 0x020)
5353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5355 #else
5356 # define ISLOWER(c) \
5357                    (('a' <= (c) && (c) <= 'i') \
5358                      || ('j' <= (c) && (c) <= 'r') \
5359                      || ('s' <= (c) && (c) <= 'z'))
5360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5361 #endif
5362
5363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5364 int
5365 main ()
5366 {
5367   int i;
5368   for (i = 0; i < 256; i++)
5369     if (XOR (islower (i), ISLOWER (i))
5370         || toupper (i) != TOUPPER (i))
5371       return 2;
5372   return 0;
5373 }
5374 _ACEOF
5375 if ac_fn_c_try_run "$LINENO"; then :
5376
5377 else
5378   ac_cv_header_stdc=no
5379 fi
5380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5381   conftest.$ac_objext conftest.beam conftest.$ac_ext
5382 fi
5383
5384 fi
5385 fi
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5387 $as_echo "$ac_cv_header_stdc" >&6; }
5388 if test $ac_cv_header_stdc = yes; then
5389
5390 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5391
5392 fi
5393
5394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5395 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5396                   inttypes.h stdint.h unistd.h
5397 do :
5398   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5399 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5400 "
5401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5402   cat >>confdefs.h <<_ACEOF
5403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5404 _ACEOF
5405
5406 fi
5407
5408 done
5409
5410
5411 for ac_header in dlfcn.h
5412 do :
5413   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5414 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5415   cat >>confdefs.h <<_ACEOF
5416 #define HAVE_DLFCN_H 1
5417 _ACEOF
5418
5419 fi
5420
5421 done
5422
5423 ac_ext=cpp
5424 ac_cpp='$CXXCPP $CPPFLAGS'
5425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5428 if test -z "$CXX"; then
5429   if test -n "$CCC"; then
5430     CXX=$CCC
5431   else
5432     if test -n "$ac_tool_prefix"; then
5433   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5434   do
5435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_prog_CXX+:} false; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   if test -n "$CXX"; then
5443   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5444 else
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448   IFS=$as_save_IFS
5449   test -z "$as_dir" && as_dir=.
5450     for ac_exec_ext in '' $ac_executable_extensions; do
5451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454     break 2
5455   fi
5456 done
5457   done
5458 IFS=$as_save_IFS
5459
5460 fi
5461 fi
5462 CXX=$ac_cv_prog_CXX
5463 if test -n "$CXX"; then
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5465 $as_echo "$CXX" >&6; }
5466 else
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470
5471
5472     test -n "$CXX" && break
5473   done
5474 fi
5475 if test -z "$CXX"; then
5476   ac_ct_CXX=$CXX
5477   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5478 do
5479   # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   if test -n "$ac_ct_CXX"; then
5487   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494     for ac_exec_ext in '' $ac_executable_extensions; do
5495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496     ac_cv_prog_ac_ct_CXX="$ac_prog"
5497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499   fi
5500 done
5501   done
5502 IFS=$as_save_IFS
5503
5504 fi
5505 fi
5506 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5507 if test -n "$ac_ct_CXX"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5509 $as_echo "$ac_ct_CXX" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515
5516   test -n "$ac_ct_CXX" && break
5517 done
5518
5519   if test "x$ac_ct_CXX" = x; then
5520     CXX="g++"
5521   else
5522     case $cross_compiling:$ac_tool_warned in
5523 yes:)
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526 ac_tool_warned=yes ;;
5527 esac
5528     CXX=$ac_ct_CXX
5529   fi
5530 fi
5531
5532   fi
5533 fi
5534 # Provide some information about the compiler.
5535 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5536 set X $ac_compile
5537 ac_compiler=$2
5538 for ac_option in --version -v -V -qversion; do
5539   { { ac_try="$ac_compiler $ac_option >&5"
5540 case "(($ac_try" in
5541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542   *) ac_try_echo=$ac_try;;
5543 esac
5544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5545 $as_echo "$ac_try_echo"; } >&5
5546   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5547   ac_status=$?
5548   if test -s conftest.err; then
5549     sed '10a\
5550 ... rest of stderr output deleted ...
5551          10q' conftest.err >conftest.er1
5552     cat conftest.er1 >&5
5553   fi
5554   rm -f conftest.er1 conftest.err
5555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5556   test $ac_status = 0; }
5557 done
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5560 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5561 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5562   $as_echo_n "(cached) " >&6
5563 else
5564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h.  */
5566
5567 int
5568 main ()
5569 {
5570 #ifndef __GNUC__
5571        choke me
5572 #endif
5573
5574   ;
5575   return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_cxx_try_compile "$LINENO"; then :
5579   ac_compiler_gnu=yes
5580 else
5581   ac_compiler_gnu=no
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5585
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5588 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5589 if test $ac_compiler_gnu = yes; then
5590   GXX=yes
5591 else
5592   GXX=
5593 fi
5594 ac_test_CXXFLAGS=${CXXFLAGS+set}
5595 ac_save_CXXFLAGS=$CXXFLAGS
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5597 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5598 if ${ac_cv_prog_cxx_g+:} false; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5602    ac_cxx_werror_flag=yes
5603    ac_cv_prog_cxx_g=no
5604    CXXFLAGS="-g"
5605    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h.  */
5607
5608 int
5609 main ()
5610 {
5611
5612   ;
5613   return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_cxx_try_compile "$LINENO"; then :
5617   ac_cv_prog_cxx_g=yes
5618 else
5619   CXXFLAGS=""
5620       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h.  */
5622
5623 int
5624 main ()
5625 {
5626
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_cxx_try_compile "$LINENO"; then :
5632
5633 else
5634   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5635          CXXFLAGS="-g"
5636          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h.  */
5638
5639 int
5640 main ()
5641 {
5642
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_cxx_try_compile "$LINENO"; then :
5648   ac_cv_prog_cxx_g=yes
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5656 fi
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5658 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5659 if test "$ac_test_CXXFLAGS" = set; then
5660   CXXFLAGS=$ac_save_CXXFLAGS
5661 elif test $ac_cv_prog_cxx_g = yes; then
5662   if test "$GXX" = yes; then
5663     CXXFLAGS="-g -O2"
5664   else
5665     CXXFLAGS="-g"
5666   fi
5667 else
5668   if test "$GXX" = yes; then
5669     CXXFLAGS="-O2"
5670   else
5671     CXXFLAGS=
5672   fi
5673 fi
5674 ac_ext=cpp
5675 ac_cpp='$CXXCPP $CPPFLAGS'
5676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5679
5680 depcc="$CXX"  am_compiler_list=
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5683 $as_echo_n "checking dependency style of $depcc... " >&6; }
5684 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5688   # We make a subdir and do the tests there.  Otherwise we can end up
5689   # making bogus files that we don't know about and never remove.  For
5690   # instance it was reported that on HP-UX the gcc test will end up
5691   # making a dummy file named `D' -- because `-MD' means `put the output
5692   # in D'.
5693   mkdir conftest.dir
5694   # Copy depcomp to subdir because otherwise we won't find it if we're
5695   # using a relative directory.
5696   cp "$am_depcomp" conftest.dir
5697   cd conftest.dir
5698   # We will build objects and dependencies in a subdirectory because
5699   # it helps to detect inapplicable dependency modes.  For instance
5700   # both Tru64's cc and ICC support -MD to output dependencies as a
5701   # side effect of compilation, but ICC will put the dependencies in
5702   # the current directory while Tru64 will put them in the object
5703   # directory.
5704   mkdir sub
5705
5706   am_cv_CXX_dependencies_compiler_type=none
5707   if test "$am_compiler_list" = ""; then
5708      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5709   fi
5710   am__universal=false
5711   case " $depcc " in #(
5712      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5713      esac
5714
5715   for depmode in $am_compiler_list; do
5716     # Setup a source with many dependencies, because some compilers
5717     # like to wrap large dependency lists on column 80 (with \), and
5718     # we should not choose a depcomp mode which is confused by this.
5719     #
5720     # We need to recreate these files for each test, as the compiler may
5721     # overwrite some of them when testing with obscure command lines.
5722     # This happens at least with the AIX C compiler.
5723     : > sub/conftest.c
5724     for i in 1 2 3 4 5 6; do
5725       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5726       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5727       # Solaris 8's {/usr,}/bin/sh.
5728       touch sub/conftst$i.h
5729     done
5730     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5731
5732     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5733     # mode.  It turns out that the SunPro C++ compiler does not properly
5734     # handle `-M -o', and we need to detect this.  Also, some Intel
5735     # versions had trouble with output in subdirs
5736     am__obj=sub/conftest.${OBJEXT-o}
5737     am__minus_obj="-o $am__obj"
5738     case $depmode in
5739     gcc)
5740       # This depmode causes a compiler race in universal mode.
5741       test "$am__universal" = false || continue
5742       ;;
5743     nosideeffect)
5744       # after this tag, mechanisms are not by side-effect, so they'll
5745       # only be used when explicitly requested
5746       if test "x$enable_dependency_tracking" = xyes; then
5747         continue
5748       else
5749         break
5750       fi
5751       ;;
5752     msvisualcpp | msvcmsys)
5753       # This compiler won't grok `-c -o', but also, the minuso test has
5754       # not run yet.  These depmodes are late enough in the game, and
5755       # so weak that their functioning should not be impacted.
5756       am__obj=conftest.${OBJEXT-o}
5757       am__minus_obj=
5758       ;;
5759     none) break ;;
5760     esac
5761     if depmode=$depmode \
5762        source=sub/conftest.c object=$am__obj \
5763        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5764        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5765          >/dev/null 2>conftest.err &&
5766        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5767        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5768        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5769        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5770       # icc doesn't choke on unknown options, it will just issue warnings
5771       # or remarks (even with -Werror).  So we grep stderr for any message
5772       # that says an option was ignored or not supported.
5773       # When given -MP, icc 7.0 and 7.1 complain thusly:
5774       #   icc: Command line warning: ignoring option '-M'; no argument required
5775       # The diagnosis changed in icc 8.0:
5776       #   icc: Command line remark: option '-MP' not supported
5777       if (grep 'ignoring option' conftest.err ||
5778           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5779         am_cv_CXX_dependencies_compiler_type=$depmode
5780         break
5781       fi
5782     fi
5783   done
5784
5785   cd ..
5786   rm -rf conftest.dir
5787 else
5788   am_cv_CXX_dependencies_compiler_type=none
5789 fi
5790
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5793 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5794 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5795
5796  if
5797   test "x$enable_dependency_tracking" != xno \
5798   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5799   am__fastdepCXX_TRUE=
5800   am__fastdepCXX_FALSE='#'
5801 else
5802   am__fastdepCXX_TRUE='#'
5803   am__fastdepCXX_FALSE=
5804 fi
5805
5806
5807
5808
5809 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5810     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5811     (test "X$CXX" != "Xg++"))) ; then
5812   ac_ext=cpp
5813 ac_cpp='$CXXCPP $CPPFLAGS'
5814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5818 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5819 if test -z "$CXXCPP"; then
5820   if ${ac_cv_prog_CXXCPP+:} false; then :
5821   $as_echo_n "(cached) " >&6
5822 else
5823       # Double quotes because CXXCPP needs to be expanded
5824     for CXXCPP in "$CXX -E" "/lib/cpp"
5825     do
5826       ac_preproc_ok=false
5827 for ac_cxx_preproc_warn_flag in '' yes
5828 do
5829   # Use a header file that comes with gcc, so configuring glibc
5830   # with a fresh cross-compiler works.
5831   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832   # <limits.h> exists even on freestanding compilers.
5833   # On the NeXT, cc -E runs the code through the compiler's parser,
5834   # not just through cpp. "Syntax error" is here to catch this case.
5835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h.  */
5837 #ifdef __STDC__
5838 # include <limits.h>
5839 #else
5840 # include <assert.h>
5841 #endif
5842                      Syntax error
5843 _ACEOF
5844 if ac_fn_cxx_try_cpp "$LINENO"; then :
5845
5846 else
5847   # Broken: fails on valid input.
5848 continue
5849 fi
5850 rm -f conftest.err conftest.i conftest.$ac_ext
5851
5852   # OK, works on sane cases.  Now check whether nonexistent headers
5853   # can be detected and how.
5854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h.  */
5856 #include <ac_nonexistent.h>
5857 _ACEOF
5858 if ac_fn_cxx_try_cpp "$LINENO"; then :
5859   # Broken: success on invalid input.
5860 continue
5861 else
5862   # Passes both tests.
5863 ac_preproc_ok=:
5864 break
5865 fi
5866 rm -f conftest.err conftest.i conftest.$ac_ext
5867
5868 done
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.i conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then :
5872   break
5873 fi
5874
5875     done
5876     ac_cv_prog_CXXCPP=$CXXCPP
5877
5878 fi
5879   CXXCPP=$ac_cv_prog_CXXCPP
5880 else
5881   ac_cv_prog_CXXCPP=$CXXCPP
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5884 $as_echo "$CXXCPP" >&6; }
5885 ac_preproc_ok=false
5886 for ac_cxx_preproc_warn_flag in '' yes
5887 do
5888   # Use a header file that comes with gcc, so configuring glibc
5889   # with a fresh cross-compiler works.
5890   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891   # <limits.h> exists even on freestanding compilers.
5892   # On the NeXT, cc -E runs the code through the compiler's parser,
5893   # not just through cpp. "Syntax error" is here to catch this case.
5894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h.  */
5896 #ifdef __STDC__
5897 # include <limits.h>
5898 #else
5899 # include <assert.h>
5900 #endif
5901                      Syntax error
5902 _ACEOF
5903 if ac_fn_cxx_try_cpp "$LINENO"; then :
5904
5905 else
5906   # Broken: fails on valid input.
5907 continue
5908 fi
5909 rm -f conftest.err conftest.i conftest.$ac_ext
5910
5911   # OK, works on sane cases.  Now check whether nonexistent headers
5912   # can be detected and how.
5913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h.  */
5915 #include <ac_nonexistent.h>
5916 _ACEOF
5917 if ac_fn_cxx_try_cpp "$LINENO"; then :
5918   # Broken: success on invalid input.
5919 continue
5920 else
5921   # Passes both tests.
5922 ac_preproc_ok=:
5923 break
5924 fi
5925 rm -f conftest.err conftest.i conftest.$ac_ext
5926
5927 done
5928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5929 rm -f conftest.i conftest.err conftest.$ac_ext
5930 if $ac_preproc_ok; then :
5931
5932 else
5933   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5935 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5936 See \`config.log' for more details" "$LINENO" 5; }
5937 fi
5938
5939 ac_ext=cpp
5940 ac_cpp='$CXXCPP $CPPFLAGS'
5941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5944
5945 fi
5946
5947
5948 ac_ext=f
5949 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5950 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5952 if test -n "$ac_tool_prefix"; then
5953   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
5954   do
5955     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_F77+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   if test -n "$F77"; then
5963   ac_cv_prog_F77="$F77" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970     for ac_exec_ext in '' $ac_executable_extensions; do
5971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977   done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 F77=$ac_cv_prog_F77
5983 if test -n "$F77"; then
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5985 $as_echo "$F77" >&6; }
5986 else
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991
5992     test -n "$F77" && break
5993   done
5994 fi
5995 if test -z "$F77"; then
5996   ac_ct_F77=$F77
5997   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
5998 do
5999   # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6004   $as_echo_n "(cached) " >&6
6005 else
6006   if test -n "$ac_ct_F77"; then
6007   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014     for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_prog_ac_ct_F77="$ac_prog"
6017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021   done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6027 if test -n "$ac_ct_F77"; then
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6029 $as_echo "$ac_ct_F77" >&6; }
6030 else
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036   test -n "$ac_ct_F77" && break
6037 done
6038
6039   if test "x$ac_ct_F77" = x; then
6040     F77=""
6041   else
6042     case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048     F77=$ac_ct_F77
6049   fi
6050 fi
6051
6052
6053 # Provide some information about the compiler.
6054 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6055 set X $ac_compile
6056 ac_compiler=$2
6057 for ac_option in --version -v -V -qversion; do
6058   { { ac_try="$ac_compiler $ac_option >&5"
6059 case "(($ac_try" in
6060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061   *) ac_try_echo=$ac_try;;
6062 esac
6063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6064 $as_echo "$ac_try_echo"; } >&5
6065   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6066   ac_status=$?
6067   if test -s conftest.err; then
6068     sed '10a\
6069 ... rest of stderr output deleted ...
6070          10q' conftest.err >conftest.er1
6071     cat conftest.er1 >&5
6072   fi
6073   rm -f conftest.er1 conftest.err
6074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6075   test $ac_status = 0; }
6076 done
6077 rm -f a.out
6078
6079 # If we don't use `.F' as extension, the preprocessor is not run on the
6080 # input file.  (Note that this only needs to work for GNU compilers.)
6081 ac_save_ext=$ac_ext
6082 ac_ext=F
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6084 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6085 if ${ac_cv_f77_compiler_gnu+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   cat > conftest.$ac_ext <<_ACEOF
6089       program main
6090 #ifndef __GNUC__
6091        choke me
6092 #endif
6093
6094       end
6095 _ACEOF
6096 if ac_fn_f77_try_compile "$LINENO"; then :
6097   ac_compiler_gnu=yes
6098 else
6099   ac_compiler_gnu=no
6100 fi
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6103
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6106 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6107 ac_ext=$ac_save_ext
6108 ac_test_FFLAGS=${FFLAGS+set}
6109 ac_save_FFLAGS=$FFLAGS
6110 FFLAGS=
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6112 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6113 if ${ac_cv_prog_f77_g+:} false; then :
6114   $as_echo_n "(cached) " >&6
6115 else
6116   FFLAGS=-g
6117 cat > conftest.$ac_ext <<_ACEOF
6118       program main
6119
6120       end
6121 _ACEOF
6122 if ac_fn_f77_try_compile "$LINENO"; then :
6123   ac_cv_prog_f77_g=yes
6124 else
6125   ac_cv_prog_f77_g=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128
6129 fi
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6131 $as_echo "$ac_cv_prog_f77_g" >&6; }
6132 if test "$ac_test_FFLAGS" = set; then
6133   FFLAGS=$ac_save_FFLAGS
6134 elif test $ac_cv_prog_f77_g = yes; then
6135   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6136     FFLAGS="-g -O2"
6137   else
6138     FFLAGS="-g"
6139   fi
6140 else
6141   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6142     FFLAGS="-O2"
6143   else
6144     FFLAGS=
6145   fi
6146 fi
6147
6148 if test $ac_compiler_gnu = yes; then
6149   G77=yes
6150 else
6151   G77=
6152 fi
6153 ac_ext=c
6154 ac_cpp='$CPP $CPPFLAGS'
6155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6158
6159
6160
6161 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6162
6163 # find the maximum length of command line arguments
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6165 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6166 if ${lt_cv_sys_max_cmd_len+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169     i=0
6170   teststring="ABCD"
6171
6172   case $build_os in
6173   msdosdjgpp*)
6174     # On DJGPP, this test can blow up pretty badly due to problems in libc
6175     # (any single argument exceeding 2000 bytes causes a buffer overrun
6176     # during glob expansion).  Even if it were fixed, the result of this
6177     # check would be larger than it should be.
6178     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6179     ;;
6180
6181   gnu*)
6182     # Under GNU Hurd, this test is not required because there is
6183     # no limit to the length of command line arguments.
6184     # Libtool will interpret -1 as no limit whatsoever
6185     lt_cv_sys_max_cmd_len=-1;
6186     ;;
6187
6188   cygwin* | mingw*)
6189     # On Win9x/ME, this test blows up -- it succeeds, but takes
6190     # about 5 minutes as the teststring grows exponentially.
6191     # Worse, since 9x/ME are not pre-emptively multitasking,
6192     # you end up with a "frozen" computer, even though with patience
6193     # the test eventually succeeds (with a max line length of 256k).
6194     # Instead, let's just punt: use the minimum linelength reported by
6195     # all of the supported platforms: 8192 (on NT/2K/XP).
6196     lt_cv_sys_max_cmd_len=8192;
6197     ;;
6198
6199   amigaos*)
6200     # On AmigaOS with pdksh, this test takes hours, literally.
6201     # So we just punt and use a minimum line length of 8192.
6202     lt_cv_sys_max_cmd_len=8192;
6203     ;;
6204
6205   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6206     # This has been around since 386BSD, at least.  Likely further.
6207     if test -x /sbin/sysctl; then
6208       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6209     elif test -x /usr/sbin/sysctl; then
6210       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6211     else
6212       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6213     fi
6214     # And add a safety zone
6215     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6216     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6217     ;;
6218
6219   interix*)
6220     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6221     lt_cv_sys_max_cmd_len=196608
6222     ;;
6223
6224   osf*)
6225     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6226     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6227     # nice to cause kernel panics so lets avoid the loop below.
6228     # First set a reasonable default.
6229     lt_cv_sys_max_cmd_len=16384
6230     #
6231     if test -x /sbin/sysconfig; then
6232       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6233         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6234       esac
6235     fi
6236     ;;
6237   sco3.2v5*)
6238     lt_cv_sys_max_cmd_len=102400
6239     ;;
6240   sysv5* | sco5v6* | sysv4.2uw2*)
6241     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6242     if test -n "$kargmax"; then
6243       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6244     else
6245       lt_cv_sys_max_cmd_len=32768
6246     fi
6247     ;;
6248   *)
6249     # If test is not a shell built-in, we'll probably end up computing a
6250     # maximum length that is only half of the actual maximum length, but
6251     # we can't tell.
6252     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6253     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6254                = "XX$teststring") >/dev/null 2>&1 &&
6255             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6256             lt_cv_sys_max_cmd_len=$new_result &&
6257             test $i != 17 # 1/2 MB should be enough
6258     do
6259       i=`expr $i + 1`
6260       teststring=$teststring$teststring
6261     done
6262     teststring=
6263     # Add a significant safety factor because C++ compilers can tack on massive
6264     # amounts of additional arguments before passing them to the linker.
6265     # It appears as though 1/2 is a usable value.
6266     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6267     ;;
6268   esac
6269
6270 fi
6271
6272 if test -n $lt_cv_sys_max_cmd_len ; then
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6274 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6275 else
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6277 $as_echo "none" >&6; }
6278 fi
6279
6280
6281
6282
6283 # Check for command to grab the raw symbol name followed by C symbol from nm.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6285 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6286 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289
6290 # These are sane defaults that work on at least a few old systems.
6291 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6292
6293 # Character class describing NM global symbol codes.
6294 symcode='[BCDEGRST]'
6295
6296 # Regexp to match symbols that can be accessed directly from C.
6297 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6298
6299 # Transform an extracted symbol line into a proper C declaration
6300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6301
6302 # Transform an extracted symbol line into symbol name and symbol address
6303 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'"
6304
6305 # Define system-specific variables.
6306 case $host_os in
6307 aix*)
6308   symcode='[BCDT]'
6309   ;;
6310 cygwin* | mingw* | pw32*)
6311   symcode='[ABCDGISTW]'
6312   ;;
6313 hpux*) # Its linker distinguishes data from code symbols
6314   if test "$host_cpu" = ia64; then
6315     symcode='[ABCDEGRST]'
6316   fi
6317   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6318   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'"
6319   ;;
6320 linux*)
6321   if test "$host_cpu" = ia64; then
6322     symcode='[ABCDGIRSTW]'
6323     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6324     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'"
6325   fi
6326   ;;
6327 irix* | nonstopux*)
6328   symcode='[BCDEGRST]'
6329   ;;
6330 osf*)
6331   symcode='[BCDEGQRST]'
6332   ;;
6333 solaris*)
6334   symcode='[BDRT]'
6335   ;;
6336 sco3.2v5*)
6337   symcode='[DT]'
6338   ;;
6339 sysv4.2uw2*)
6340   symcode='[DT]'
6341   ;;
6342 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6343   symcode='[ABDT]'
6344   ;;
6345 sysv4)
6346   symcode='[DFNSTU]'
6347   ;;
6348 esac
6349
6350 # Handle CRLF in mingw tool chain
6351 opt_cr=
6352 case $build_os in
6353 mingw*)
6354   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6355   ;;
6356 esac
6357
6358 # If we're using GNU nm, then use its standard symbol codes.
6359 case `$NM -V 2>&1` in
6360 *GNU* | *'with BFD'*)
6361   symcode='[ABCDGIRSTW]' ;;
6362 esac
6363
6364 # Try without a prefix undercore, then with it.
6365 for ac_symprfx in "" "_"; do
6366
6367   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6368   symxfrm="\\1 $ac_symprfx\\2 \\2"
6369
6370   # Write the raw and C identifiers.
6371   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6372
6373   # Check to see that the pipe works correctly.
6374   pipe_works=no
6375
6376   rm -f conftest*
6377   cat > conftest.$ac_ext <<EOF
6378 #ifdef __cplusplus
6379 extern "C" {
6380 #endif
6381 char nm_test_var;
6382 void nm_test_func(){}
6383 #ifdef __cplusplus
6384 }
6385 #endif
6386 int main(){nm_test_var='a';nm_test_func();return(0);}
6387 EOF
6388
6389   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6390   (eval $ac_compile) 2>&5
6391   ac_status=$?
6392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6393   test $ac_status = 0; }; then
6394     # Now try to grab the symbols.
6395     nlist=conftest.nm
6396     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6397   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6398   ac_status=$?
6399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400   test $ac_status = 0; } && test -s "$nlist"; then
6401       # Try sorting and uniquifying the output.
6402       if sort "$nlist" | uniq > "$nlist"T; then
6403         mv -f "$nlist"T "$nlist"
6404       else
6405         rm -f "$nlist"T
6406       fi
6407
6408       # Make sure that we snagged all the symbols we need.
6409       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6410         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6411           cat <<EOF > conftest.$ac_ext
6412 #ifdef __cplusplus
6413 extern "C" {
6414 #endif
6415
6416 EOF
6417           # Now generate the symbol file.
6418           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6419
6420           cat <<EOF >> conftest.$ac_ext
6421 #if defined (__STDC__) && __STDC__
6422 # define lt_ptr_t void *
6423 #else
6424 # define lt_ptr_t char *
6425 # define const
6426 #endif
6427
6428 /* The mapping between symbol names and symbols. */
6429 const struct {
6430   const char *name;
6431   lt_ptr_t address;
6432 }
6433 lt_preloaded_symbols[] =
6434 {
6435 EOF
6436           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6437           cat <<\EOF >> conftest.$ac_ext
6438   {0, (lt_ptr_t) 0}
6439 };
6440
6441 #ifdef __cplusplus
6442 }
6443 #endif
6444 EOF
6445           # Now try linking the two files.
6446           mv conftest.$ac_objext conftstm.$ac_objext
6447           lt_save_LIBS="$LIBS"
6448           lt_save_CFLAGS="$CFLAGS"
6449           LIBS="conftstm.$ac_objext"
6450           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6452   (eval $ac_link) 2>&5
6453   ac_status=$?
6454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6456             pipe_works=yes
6457           fi
6458           LIBS="$lt_save_LIBS"
6459           CFLAGS="$lt_save_CFLAGS"
6460         else
6461           echo "cannot find nm_test_func in $nlist" >&5
6462         fi
6463       else
6464         echo "cannot find nm_test_var in $nlist" >&5
6465       fi
6466     else
6467       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6468     fi
6469   else
6470     echo "$progname: failed program was:" >&5
6471     cat conftest.$ac_ext >&5
6472   fi
6473   rm -f conftest* conftst*
6474
6475   # Do not use the global_symbol_pipe unless it works.
6476   if test "$pipe_works" = yes; then
6477     break
6478   else
6479     lt_cv_sys_global_symbol_pipe=
6480   fi
6481 done
6482
6483 fi
6484
6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486   lt_cv_sys_global_symbol_to_cdecl=
6487 fi
6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6490 $as_echo "failed" >&6; }
6491 else
6492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6493 $as_echo "ok" >&6; }
6494 fi
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6497 $as_echo_n "checking for objdir... " >&6; }
6498 if ${lt_cv_objdir+:} false; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   rm -f .libs 2>/dev/null
6502 mkdir .libs 2>/dev/null
6503 if test -d .libs; then
6504   lt_cv_objdir=.libs
6505 else
6506   # MS-DOS does not allow filenames that begin with a dot.
6507   lt_cv_objdir=_libs
6508 fi
6509 rmdir .libs 2>/dev/null
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6512 $as_echo "$lt_cv_objdir" >&6; }
6513 objdir=$lt_cv_objdir
6514
6515
6516
6517
6518
6519 case $host_os in
6520 aix3*)
6521   # AIX sometimes has problems with the GCC collect2 program.  For some
6522   # reason, if we set the COLLECT_NAMES environment variable, the problems
6523   # vanish in a puff of smoke.
6524   if test "X${COLLECT_NAMES+set}" != Xset; then
6525     COLLECT_NAMES=
6526     export COLLECT_NAMES
6527   fi
6528   ;;
6529 esac
6530
6531 # Sed substitution that helps us do robust quoting.  It backslashifies
6532 # metacharacters that are still active within double-quoted strings.
6533 Xsed='sed -e 1s/^X//'
6534 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6535
6536 # Same as above, but do not quote variable references.
6537 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6538
6539 # Sed substitution to delay expansion of an escaped shell variable in a
6540 # double_quote_subst'ed string.
6541 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6542
6543 # Sed substitution to avoid accidental globbing in evaled expressions
6544 no_glob_subst='s/\*/\\\*/g'
6545
6546 # Constants:
6547 rm="rm -f"
6548
6549 # Global variables:
6550 default_ofile=libtool
6551 can_build_shared=yes
6552
6553 # All known linkers require a `.a' archive for static linking (except MSVC,
6554 # which needs '.lib').
6555 libext=a
6556 ltmain="$ac_aux_dir/ltmain.sh"
6557 ofile="$default_ofile"
6558 with_gnu_ld="$lt_cv_prog_gnu_ld"
6559
6560 if test -n "$ac_tool_prefix"; then
6561   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}ar; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_AR+:} false; then :
6566   $as_echo_n "(cached) " >&6
6567 else
6568   if test -n "$AR"; then
6569   ac_cv_prog_AR="$AR" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576     for ac_exec_ext in '' $ac_executable_extensions; do
6577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578     ac_cv_prog_AR="${ac_tool_prefix}ar"
6579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583   done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 AR=$ac_cv_prog_AR
6589 if test -n "$AR"; then
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6591 $as_echo "$AR" >&6; }
6592 else
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_AR"; then
6600   ac_ct_AR=$AR
6601   # Extract the first word of "ar", so it can be a program name with args.
6602 set dummy ar; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608   if test -n "$ac_ct_AR"; then
6609   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616     for ac_exec_ext in '' $ac_executable_extensions; do
6617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618     ac_cv_prog_ac_ct_AR="ar"
6619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623   done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6629 if test -n "$ac_ct_AR"; then
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6631 $as_echo "$ac_ct_AR" >&6; }
6632 else
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637   if test "x$ac_ct_AR" = x; then
6638     AR="false"
6639   else
6640     case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646     AR=$ac_ct_AR
6647   fi
6648 else
6649   AR="$ac_cv_prog_AR"
6650 fi
6651
6652 if test -n "$ac_tool_prefix"; then
6653   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_RANLIB+:} false; then :
6658   $as_echo_n "(cached) " >&6
6659 else
6660   if test -n "$RANLIB"; then
6661   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668     for ac_exec_ext in '' $ac_executable_extensions; do
6669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675   done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 RANLIB=$ac_cv_prog_RANLIB
6681 if test -n "$RANLIB"; then
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6683 $as_echo "$RANLIB" >&6; }
6684 else
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689
6690 fi
6691 if test -z "$ac_cv_prog_RANLIB"; then
6692   ac_ct_RANLIB=$RANLIB
6693   # Extract the first word of "ranlib", so it can be a program name with args.
6694 set dummy ranlib; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   if test -n "$ac_ct_RANLIB"; then
6701   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708     for ac_exec_ext in '' $ac_executable_extensions; do
6709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710     ac_cv_prog_ac_ct_RANLIB="ranlib"
6711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715   done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6721 if test -n "$ac_ct_RANLIB"; then
6722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6723 $as_echo "$ac_ct_RANLIB" >&6; }
6724 else
6725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729   if test "x$ac_ct_RANLIB" = x; then
6730     RANLIB=":"
6731   else
6732     case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738     RANLIB=$ac_ct_RANLIB
6739   fi
6740 else
6741   RANLIB="$ac_cv_prog_RANLIB"
6742 fi
6743
6744 if test -n "$ac_tool_prefix"; then
6745   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}strip; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_STRIP+:} false; then :
6750   $as_echo_n "(cached) " >&6
6751 else
6752   if test -n "$STRIP"; then
6753   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758   IFS=$as_save_IFS
6759   test -z "$as_dir" && as_dir=.
6760     for ac_exec_ext in '' $ac_executable_extensions; do
6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764     break 2
6765   fi
6766 done
6767   done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 STRIP=$ac_cv_prog_STRIP
6773 if test -n "$STRIP"; then
6774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6775 $as_echo "$STRIP" >&6; }
6776 else
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781
6782 fi
6783 if test -z "$ac_cv_prog_STRIP"; then
6784   ac_ct_STRIP=$STRIP
6785   # Extract the first word of "strip", so it can be a program name with args.
6786 set dummy strip; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6790   $as_echo_n "(cached) " >&6
6791 else
6792   if test -n "$ac_ct_STRIP"; then
6793   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800     for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_prog_ac_ct_STRIP="strip"
6803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807   done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6813 if test -n "$ac_ct_STRIP"; then
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6815 $as_echo "$ac_ct_STRIP" >&6; }
6816 else
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821   if test "x$ac_ct_STRIP" = x; then
6822     STRIP=":"
6823   else
6824     case $cross_compiling:$ac_tool_warned in
6825 yes:)
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828 ac_tool_warned=yes ;;
6829 esac
6830     STRIP=$ac_ct_STRIP
6831   fi
6832 else
6833   STRIP="$ac_cv_prog_STRIP"
6834 fi
6835
6836
6837 old_CC="$CC"
6838 old_CFLAGS="$CFLAGS"
6839
6840 # Set sane defaults for various variables
6841 test -z "$AR" && AR=ar
6842 test -z "$AR_FLAGS" && AR_FLAGS=cru
6843 test -z "$AS" && AS=as
6844 test -z "$CC" && CC=cc
6845 test -z "$LTCC" && LTCC=$CC
6846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6847 test -z "$DLLTOOL" && DLLTOOL=dlltool
6848 test -z "$LD" && LD=ld
6849 test -z "$LN_S" && LN_S="ln -s"
6850 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6851 test -z "$NM" && NM=nm
6852 test -z "$SED" && SED=sed
6853 test -z "$OBJDUMP" && OBJDUMP=objdump
6854 test -z "$RANLIB" && RANLIB=:
6855 test -z "$STRIP" && STRIP=:
6856 test -z "$ac_objext" && ac_objext=o
6857
6858 # Determine commands to create old-style static archives.
6859 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6860 old_postinstall_cmds='chmod 644 $oldlib'
6861 old_postuninstall_cmds=
6862
6863 if test -n "$RANLIB"; then
6864   case $host_os in
6865   openbsd*)
6866     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6867     ;;
6868   *)
6869     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6870     ;;
6871   esac
6872   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6873 fi
6874
6875 for cc_temp in $compiler""; do
6876   case $cc_temp in
6877     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6878     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6879     \-*) ;;
6880     *) break;;
6881   esac
6882 done
6883 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6884
6885
6886 # Only perform the check for file, if the check method requires it
6887 case $deplibs_check_method in
6888 file_magic*)
6889   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6891 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6892 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   case $MAGIC_CMD in
6896 [\\/*] |  ?:[\\/]*)
6897   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6898   ;;
6899 *)
6900   lt_save_MAGIC_CMD="$MAGIC_CMD"
6901   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6902   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6903   for ac_dir in $ac_dummy; do
6904     IFS="$lt_save_ifs"
6905     test -z "$ac_dir" && ac_dir=.
6906     if test -f $ac_dir/${ac_tool_prefix}file; then
6907       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6908       if test -n "$file_magic_test_file"; then
6909         case $deplibs_check_method in
6910         "file_magic "*)
6911           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6912           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6913           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6914             $EGREP "$file_magic_regex" > /dev/null; then
6915             :
6916           else
6917             cat <<EOF 1>&2
6918
6919 *** Warning: the command libtool uses to detect shared libraries,
6920 *** $file_magic_cmd, produces output that libtool cannot recognize.
6921 *** The result is that libtool may fail to recognize shared libraries
6922 *** as such.  This will affect the creation of libtool libraries that
6923 *** depend on shared libraries, but programs linked with such libtool
6924 *** libraries will work regardless of this problem.  Nevertheless, you
6925 *** may want to report the problem to your system manager and/or to
6926 *** bug-libtool@gnu.org
6927
6928 EOF
6929           fi ;;
6930         esac
6931       fi
6932       break
6933     fi
6934   done
6935   IFS="$lt_save_ifs"
6936   MAGIC_CMD="$lt_save_MAGIC_CMD"
6937   ;;
6938 esac
6939 fi
6940
6941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6942 if test -n "$MAGIC_CMD"; then
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6944 $as_echo "$MAGIC_CMD" >&6; }
6945 else
6946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950 if test -z "$lt_cv_path_MAGIC_CMD"; then
6951   if test -n "$ac_tool_prefix"; then
6952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6953 $as_echo_n "checking for file... " >&6; }
6954 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   case $MAGIC_CMD in
6958 [\\/*] |  ?:[\\/]*)
6959   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6960   ;;
6961 *)
6962   lt_save_MAGIC_CMD="$MAGIC_CMD"
6963   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6964   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6965   for ac_dir in $ac_dummy; do
6966     IFS="$lt_save_ifs"
6967     test -z "$ac_dir" && ac_dir=.
6968     if test -f $ac_dir/file; then
6969       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6970       if test -n "$file_magic_test_file"; then
6971         case $deplibs_check_method in
6972         "file_magic "*)
6973           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6974           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6975           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6976             $EGREP "$file_magic_regex" > /dev/null; then
6977             :
6978           else
6979             cat <<EOF 1>&2
6980
6981 *** Warning: the command libtool uses to detect shared libraries,
6982 *** $file_magic_cmd, produces output that libtool cannot recognize.
6983 *** The result is that libtool may fail to recognize shared libraries
6984 *** as such.  This will affect the creation of libtool libraries that
6985 *** depend on shared libraries, but programs linked with such libtool
6986 *** libraries will work regardless of this problem.  Nevertheless, you
6987 *** may want to report the problem to your system manager and/or to
6988 *** bug-libtool@gnu.org
6989
6990 EOF
6991           fi ;;
6992         esac
6993       fi
6994       break
6995     fi
6996   done
6997   IFS="$lt_save_ifs"
6998   MAGIC_CMD="$lt_save_MAGIC_CMD"
6999   ;;
7000 esac
7001 fi
7002
7003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7004 if test -n "$MAGIC_CMD"; then
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7006 $as_echo "$MAGIC_CMD" >&6; }
7007 else
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012   else
7013     MAGIC_CMD=:
7014   fi
7015 fi
7016
7017   fi
7018   ;;
7019 esac
7020
7021 enable_dlopen=yes
7022 enable_win32_dll=no
7023
7024 # Check whether --enable-libtool-lock was given.
7025 if test "${enable_libtool_lock+set}" = set; then :
7026   enableval=$enable_libtool_lock;
7027 fi
7028
7029 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7030
7031
7032 # Check whether --with-pic was given.
7033 if test "${with_pic+set}" = set; then :
7034   withval=$with_pic; pic_mode="$withval"
7035 else
7036   pic_mode=default
7037 fi
7038
7039 test -z "$pic_mode" && pic_mode=default
7040
7041 # Use C for the default configuration in the libtool script
7042 tagname=
7043 lt_save_CC="$CC"
7044 ac_ext=c
7045 ac_cpp='$CPP $CPPFLAGS'
7046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7049
7050
7051 # Source file extension for C test sources.
7052 ac_ext=c
7053
7054 # Object file extension for compiled C test sources.
7055 objext=o
7056 objext=$objext
7057
7058 # Code to be used in simple compile tests
7059 lt_simple_compile_test_code="int some_variable = 0;\n"
7060
7061 # Code to be used in simple link tests
7062 lt_simple_link_test_code='int main(){return(0);}\n'
7063
7064
7065 # If no C compiler was specified, use CC.
7066 LTCC=${LTCC-"$CC"}
7067
7068 # If no C compiler flags were specified, use CFLAGS.
7069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7070
7071 # Allow CC to be a program name with arguments.
7072 compiler=$CC
7073
7074
7075 # save warnings/boilerplate of simple test code
7076 ac_outfile=conftest.$ac_objext
7077 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7079 _lt_compiler_boilerplate=`cat conftest.err`
7080 $rm conftest*
7081
7082 ac_outfile=conftest.$ac_objext
7083 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7085 _lt_linker_boilerplate=`cat conftest.err`
7086 $rm conftest*
7087
7088
7089
7090 lt_prog_compiler_no_builtin_flag=
7091
7092 if test "$GCC" = yes; then
7093   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7094
7095
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7097 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7098 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   lt_cv_prog_compiler_rtti_exceptions=no
7102   ac_outfile=conftest.$ac_objext
7103    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7104    lt_compiler_flag="-fno-rtti -fno-exceptions"
7105    # Insert the option either (1) after the last *FLAGS variable, or
7106    # (2) before a word containing "conftest.", or (3) at the end.
7107    # Note that $ac_compile itself does not contain backslashes and begins
7108    # with a dollar sign (not a hyphen), so the echo should work correctly.
7109    # The option is referenced via a variable to avoid confusing sed.
7110    lt_compile=`echo "$ac_compile" | $SED \
7111    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7113    -e 's:$: $lt_compiler_flag:'`
7114    (eval echo "\"\$as_me:7114: $lt_compile\"" >&5)
7115    (eval "$lt_compile" 2>conftest.err)
7116    ac_status=$?
7117    cat conftest.err >&5
7118    echo "$as_me:7118: \$? = $ac_status" >&5
7119    if (exit $ac_status) && test -s "$ac_outfile"; then
7120      # The compiler can only warn and ignore the option if not recognized
7121      # So say no if there are warnings other than the usual output.
7122      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7123      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7124      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7125        lt_cv_prog_compiler_rtti_exceptions=yes
7126      fi
7127    fi
7128    $rm conftest*
7129
7130 fi
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7132 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7133
7134 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7135     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7136 else
7137     :
7138 fi
7139
7140 fi
7141
7142 lt_prog_compiler_wl=
7143 lt_prog_compiler_pic=
7144 lt_prog_compiler_static=
7145
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7147 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7148
7149   if test "$GCC" = yes; then
7150     lt_prog_compiler_wl='-Wl,'
7151     lt_prog_compiler_static='-static'
7152
7153     case $host_os in
7154       aix*)
7155       # All AIX code is PIC.
7156       if test "$host_cpu" = ia64; then
7157         # AIX 5 now supports IA64 processor
7158         lt_prog_compiler_static='-Bstatic'
7159       fi
7160       ;;
7161
7162     amigaos*)
7163       # FIXME: we need at least 68020 code to build shared libraries, but
7164       # adding the `-m68020' flag to GCC prevents building anything better,
7165       # like `-m68040'.
7166       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7167       ;;
7168
7169     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7170       # PIC is the default for these OSes.
7171       ;;
7172
7173     mingw* | pw32* | os2*)
7174       # This hack is so that the source file can tell whether it is being
7175       # built for inclusion in a dll (and should export symbols for example).
7176       lt_prog_compiler_pic='-DDLL_EXPORT'
7177       ;;
7178
7179     darwin* | rhapsody*)
7180       # PIC is the default on this platform
7181       # Common symbols not allowed in MH_DYLIB files
7182       lt_prog_compiler_pic='-fno-common'
7183       ;;
7184
7185     interix3*)
7186       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7187       # Instead, we relocate shared libraries at runtime.
7188       ;;
7189
7190     msdosdjgpp*)
7191       # Just because we use GCC doesn't mean we suddenly get shared libraries
7192       # on systems that don't support them.
7193       lt_prog_compiler_can_build_shared=no
7194       enable_shared=no
7195       ;;
7196
7197     sysv4*MP*)
7198       if test -d /usr/nec; then
7199         lt_prog_compiler_pic=-Kconform_pic
7200       fi
7201       ;;
7202
7203     hpux*)
7204       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7205       # not for PA HP-UX.
7206       case $host_cpu in
7207       hppa*64*|ia64*)
7208         # +Z the default
7209         ;;
7210       *)
7211         lt_prog_compiler_pic='-fPIC'
7212         ;;
7213       esac
7214       ;;
7215
7216     *)
7217       lt_prog_compiler_pic='-fPIC'
7218       ;;
7219     esac
7220   else
7221     # PORTME Check for flag to pass linker flags through the system compiler.
7222     case $host_os in
7223     aix*)
7224       lt_prog_compiler_wl='-Wl,'
7225       if test "$host_cpu" = ia64; then
7226         # AIX 5 now supports IA64 processor
7227         lt_prog_compiler_static='-Bstatic'
7228       else
7229         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7230       fi
7231       ;;
7232       darwin*)
7233         # PIC is the default on this platform
7234         # Common symbols not allowed in MH_DYLIB files
7235        case $cc_basename in
7236          xlc*)
7237          lt_prog_compiler_pic='-qnocommon'
7238          lt_prog_compiler_wl='-Wl,'
7239          ;;
7240        esac
7241        ;;
7242
7243     mingw* | pw32* | os2*)
7244       # This hack is so that the source file can tell whether it is being
7245       # built for inclusion in a dll (and should export symbols for example).
7246       lt_prog_compiler_pic='-DDLL_EXPORT'
7247       ;;
7248
7249     hpux9* | hpux10* | hpux11*)
7250       lt_prog_compiler_wl='-Wl,'
7251       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7252       # not for PA HP-UX.
7253       case $host_cpu in
7254       hppa*64*|ia64*)
7255         # +Z the default
7256         ;;
7257       *)
7258         lt_prog_compiler_pic='+Z'
7259         ;;
7260       esac
7261       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7262       lt_prog_compiler_static='${wl}-a ${wl}archive'
7263       ;;
7264
7265     irix5* | irix6* | nonstopux*)
7266       lt_prog_compiler_wl='-Wl,'
7267       # PIC (with -KPIC) is the default.
7268       lt_prog_compiler_static='-non_shared'
7269       ;;
7270
7271     newsos6)
7272       lt_prog_compiler_pic='-KPIC'
7273       lt_prog_compiler_static='-Bstatic'
7274       ;;
7275
7276     linux*)
7277       case $cc_basename in
7278       icc* | ecc*)
7279         lt_prog_compiler_wl='-Wl,'
7280         lt_prog_compiler_pic='-KPIC'
7281         lt_prog_compiler_static='-static'
7282         ;;
7283       pgcc* | pgf77* | pgf90* | pgf95*)
7284         # Portland Group compilers (*not* the Pentium gcc compiler,
7285         # which looks to be a dead project)
7286         lt_prog_compiler_wl='-Wl,'
7287         lt_prog_compiler_pic='-fpic'
7288         lt_prog_compiler_static='-Bstatic'
7289         ;;
7290       ccc*)
7291         lt_prog_compiler_wl='-Wl,'
7292         # All Alpha code is PIC.
7293         lt_prog_compiler_static='-non_shared'
7294         ;;
7295       esac
7296       ;;
7297
7298     osf3* | osf4* | osf5*)
7299       lt_prog_compiler_wl='-Wl,'
7300       # All OSF/1 code is PIC.
7301       lt_prog_compiler_static='-non_shared'
7302       ;;
7303
7304     solaris*)
7305       lt_prog_compiler_pic='-KPIC'
7306       lt_prog_compiler_static='-Bstatic'
7307       case $cc_basename in
7308       f77* | f90* | f95*)
7309         lt_prog_compiler_wl='-Qoption ld ';;
7310       *)
7311         lt_prog_compiler_wl='-Wl,';;
7312       esac
7313       ;;
7314
7315     sunos4*)
7316       lt_prog_compiler_wl='-Qoption ld '
7317       lt_prog_compiler_pic='-PIC'
7318       lt_prog_compiler_static='-Bstatic'
7319       ;;
7320
7321     sysv4 | sysv4.2uw2* | sysv4.3*)
7322       lt_prog_compiler_wl='-Wl,'
7323       lt_prog_compiler_pic='-KPIC'
7324       lt_prog_compiler_static='-Bstatic'
7325       ;;
7326
7327     sysv4*MP*)
7328       if test -d /usr/nec ;then
7329         lt_prog_compiler_pic='-Kconform_pic'
7330         lt_prog_compiler_static='-Bstatic'
7331       fi
7332       ;;
7333
7334     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7335       lt_prog_compiler_wl='-Wl,'
7336       lt_prog_compiler_pic='-KPIC'
7337       lt_prog_compiler_static='-Bstatic'
7338       ;;
7339
7340     unicos*)
7341       lt_prog_compiler_wl='-Wl,'
7342       lt_prog_compiler_can_build_shared=no
7343       ;;
7344
7345     uts4*)
7346       lt_prog_compiler_pic='-pic'
7347       lt_prog_compiler_static='-Bstatic'
7348       ;;
7349
7350     *)
7351       lt_prog_compiler_can_build_shared=no
7352       ;;
7353     esac
7354   fi
7355
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7357 $as_echo "$lt_prog_compiler_pic" >&6; }
7358
7359 #
7360 # Check to make sure the PIC flag actually works.
7361 #
7362 if test -n "$lt_prog_compiler_pic"; then
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7365 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7366 if ${lt_prog_compiler_pic_works+:} false; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   lt_prog_compiler_pic_works=no
7370   ac_outfile=conftest.$ac_objext
7371    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7372    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7373    # Insert the option either (1) after the last *FLAGS variable, or
7374    # (2) before a word containing "conftest.", or (3) at the end.
7375    # Note that $ac_compile itself does not contain backslashes and begins
7376    # with a dollar sign (not a hyphen), so the echo should work correctly.
7377    # The option is referenced via a variable to avoid confusing sed.
7378    lt_compile=`echo "$ac_compile" | $SED \
7379    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7380    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7381    -e 's:$: $lt_compiler_flag:'`
7382    (eval echo "\"\$as_me:7382: $lt_compile\"" >&5)
7383    (eval "$lt_compile" 2>conftest.err)
7384    ac_status=$?
7385    cat conftest.err >&5
7386    echo "$as_me:7386: \$? = $ac_status" >&5
7387    if (exit $ac_status) && test -s "$ac_outfile"; then
7388      # The compiler can only warn and ignore the option if not recognized
7389      # So say no if there are warnings other than the usual output.
7390      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7391      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7392      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7393        lt_prog_compiler_pic_works=yes
7394      fi
7395    fi
7396    $rm conftest*
7397
7398 fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7400 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7401
7402 if test x"$lt_prog_compiler_pic_works" = xyes; then
7403     case $lt_prog_compiler_pic in
7404      "" | " "*) ;;
7405      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7406      esac
7407 else
7408     lt_prog_compiler_pic=
7409      lt_prog_compiler_can_build_shared=no
7410 fi
7411
7412 fi
7413 case $host_os in
7414   # For platforms which do not support PIC, -DPIC is meaningless:
7415   *djgpp*)
7416     lt_prog_compiler_pic=
7417     ;;
7418   *)
7419     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7420     ;;
7421 esac
7422
7423 #
7424 # Check to make sure the static flag actually works.
7425 #
7426 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7428 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7429 if ${lt_prog_compiler_static_works+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   lt_prog_compiler_static_works=no
7433    save_LDFLAGS="$LDFLAGS"
7434    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7435    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7436    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7437      # The linker can only warn and ignore the option if not recognized
7438      # So say no if there are warnings
7439      if test -s conftest.err; then
7440        # Append any errors to the config.log.
7441        cat conftest.err 1>&5
7442        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7443        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7444        if diff conftest.exp conftest.er2 >/dev/null; then
7445          lt_prog_compiler_static_works=yes
7446        fi
7447      else
7448        lt_prog_compiler_static_works=yes
7449      fi
7450    fi
7451    $rm conftest*
7452    LDFLAGS="$save_LDFLAGS"
7453
7454 fi
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7456 $as_echo "$lt_prog_compiler_static_works" >&6; }
7457
7458 if test x"$lt_prog_compiler_static_works" = xyes; then
7459     :
7460 else
7461     lt_prog_compiler_static=
7462 fi
7463
7464
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7467 if ${lt_cv_prog_compiler_c_o+:} false; then :
7468   $as_echo_n "(cached) " >&6
7469 else
7470   lt_cv_prog_compiler_c_o=no
7471    $rm -r conftest 2>/dev/null
7472    mkdir conftest
7473    cd conftest
7474    mkdir out
7475    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7476
7477    lt_compiler_flag="-o out/conftest2.$ac_objext"
7478    # Insert the option either (1) after the last *FLAGS variable, or
7479    # (2) before a word containing "conftest.", or (3) at the end.
7480    # Note that $ac_compile itself does not contain backslashes and begins
7481    # with a dollar sign (not a hyphen), so the echo should work correctly.
7482    lt_compile=`echo "$ac_compile" | $SED \
7483    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7485    -e 's:$: $lt_compiler_flag:'`
7486    (eval echo "\"\$as_me:7486: $lt_compile\"" >&5)
7487    (eval "$lt_compile" 2>out/conftest.err)
7488    ac_status=$?
7489    cat out/conftest.err >&5
7490    echo "$as_me:7490: \$? = $ac_status" >&5
7491    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7492    then
7493      # The compiler can only warn and ignore the option if not recognized
7494      # So say no if there are warnings
7495      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7496      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7497      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7498        lt_cv_prog_compiler_c_o=yes
7499      fi
7500    fi
7501    chmod u+w . 2>&5
7502    $rm conftest*
7503    # SGI C++ compiler will create directory out/ii_files/ for
7504    # template instantiation
7505    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7506    $rm out/* && rmdir out
7507    cd ..
7508    rmdir conftest
7509    $rm conftest*
7510
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7514
7515
7516 hard_links="nottested"
7517 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7518   # do not overwrite the value of need_locks provided by the user
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7520 $as_echo_n "checking if we can lock with hard links... " >&6; }
7521   hard_links=yes
7522   $rm conftest*
7523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7524   touch conftest.a
7525   ln conftest.a conftest.b 2>&5 || hard_links=no
7526   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7528 $as_echo "$hard_links" >&6; }
7529   if test "$hard_links" = no; then
7530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7531 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7532     need_locks=warn
7533   fi
7534 else
7535   need_locks=no
7536 fi
7537
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7540
7541   runpath_var=
7542   allow_undefined_flag=
7543   enable_shared_with_static_runtimes=no
7544   archive_cmds=
7545   archive_expsym_cmds=
7546   old_archive_From_new_cmds=
7547   old_archive_from_expsyms_cmds=
7548   export_dynamic_flag_spec=
7549   whole_archive_flag_spec=
7550   thread_safe_flag_spec=
7551   hardcode_libdir_flag_spec=
7552   hardcode_libdir_flag_spec_ld=
7553   hardcode_libdir_separator=
7554   hardcode_direct=no
7555   hardcode_minus_L=no
7556   hardcode_shlibpath_var=unsupported
7557   link_all_deplibs=unknown
7558   hardcode_automatic=no
7559   module_cmds=
7560   module_expsym_cmds=
7561   always_export_symbols=no
7562   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7563   # include_expsyms should be a list of space-separated symbols to be *always*
7564   # included in the symbol list
7565   include_expsyms=
7566   # exclude_expsyms can be an extended regexp of symbols to exclude
7567   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7568   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7569   # as well as any symbol that contains `d'.
7570   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7571   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7572   # platforms (ab)use it in PIC code, but their linkers get confused if
7573   # the symbol is explicitly referenced.  Since portable code cannot
7574   # rely on this symbol name, it's probably fine to never include it in
7575   # preloaded symbol tables.
7576   extract_expsyms_cmds=
7577   # Just being paranoid about ensuring that cc_basename is set.
7578   for cc_temp in $compiler""; do
7579   case $cc_temp in
7580     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7581     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7582     \-*) ;;
7583     *) break;;
7584   esac
7585 done
7586 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7587
7588   case $host_os in
7589   cygwin* | mingw* | pw32*)
7590     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7591     # When not using gcc, we currently assume that we are using
7592     # Microsoft Visual C++.
7593     if test "$GCC" != yes; then
7594       with_gnu_ld=no
7595     fi
7596     ;;
7597   interix*)
7598     # we just hope/assume this is gcc and not c89 (= MSVC++)
7599     with_gnu_ld=yes
7600     ;;
7601   openbsd*)
7602     with_gnu_ld=no
7603     ;;
7604   esac
7605
7606   ld_shlibs=yes
7607   if test "$with_gnu_ld" = yes; then
7608     # If archive_cmds runs LD, not CC, wlarc should be empty
7609     wlarc='${wl}'
7610
7611     # Set some defaults for GNU ld with shared library support. These
7612     # are reset later if shared libraries are not supported. Putting them
7613     # here allows them to be overridden if necessary.
7614     runpath_var=LD_RUN_PATH
7615     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7616     export_dynamic_flag_spec='${wl}--export-dynamic'
7617     # ancient GNU ld didn't support --whole-archive et. al.
7618     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7619         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7620       else
7621         whole_archive_flag_spec=
7622     fi
7623     supports_anon_versioning=no
7624     case `$LD -v 2>/dev/null` in
7625       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7626       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7627       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7628       *\ 2.11.*) ;; # other 2.11 versions
7629       *) supports_anon_versioning=yes ;;
7630     esac
7631
7632     # See if GNU ld supports shared libraries.
7633     case $host_os in
7634     aix3* | aix4* | aix5*)
7635       # On AIX/PPC, the GNU linker is very broken
7636       if test "$host_cpu" != ia64; then
7637         ld_shlibs=no
7638         cat <<EOF 1>&2
7639
7640 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7641 *** to be unable to reliably create shared libraries on AIX.
7642 *** Therefore, libtool is disabling shared libraries support.  If you
7643 *** really care for shared libraries, you may want to modify your PATH
7644 *** so that a non-GNU linker is found, and then restart.
7645
7646 EOF
7647       fi
7648       ;;
7649
7650     amigaos*)
7651       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)'
7652       hardcode_libdir_flag_spec='-L$libdir'
7653       hardcode_minus_L=yes
7654
7655       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7656       # that the semantics of dynamic libraries on AmigaOS, at least up
7657       # to version 4, is to share data among multiple programs linked
7658       # with the same dynamic library.  Since this doesn't match the
7659       # behavior of shared libraries on other platforms, we can't use
7660       # them.
7661       ld_shlibs=no
7662       ;;
7663
7664     beos*)
7665       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7666         allow_undefined_flag=unsupported
7667         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7668         # support --undefined.  This deserves some investigation.  FIXME
7669         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7670       else
7671         ld_shlibs=no
7672       fi
7673       ;;
7674
7675     cygwin* | mingw* | pw32*)
7676       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7677       # as there is no search path for DLLs.
7678       hardcode_libdir_flag_spec='-L$libdir'
7679       allow_undefined_flag=unsupported
7680       always_export_symbols=no
7681       enable_shared_with_static_runtimes=yes
7682       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7683
7684       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7685         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7686         # If the export-symbols file already is a .def file (1st line
7687         # is EXPORTS), use it as is; otherwise, prepend...
7688         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7689           cp $export_symbols $output_objdir/$soname.def;
7690         else
7691           echo EXPORTS > $output_objdir/$soname.def;
7692           cat $export_symbols >> $output_objdir/$soname.def;
7693         fi~
7694         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7695       else
7696         ld_shlibs=no
7697       fi
7698       ;;
7699
7700     interix3*)
7701       hardcode_direct=no
7702       hardcode_shlibpath_var=no
7703       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7704       export_dynamic_flag_spec='${wl}-E'
7705       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7706       # Instead, shared libraries are loaded at an image base (0x10000000 by
7707       # default) and relocated if they conflict, which is a slow very memory
7708       # consuming and fragmenting process.  To avoid this, we pick a random,
7709       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7710       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7711       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7712       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7713       ;;
7714
7715     linux*)
7716       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7717         tmp_addflag=
7718         case $cc_basename,$host_cpu in
7719         pgcc*)                          # Portland Group C compiler
7720           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7721           tmp_addflag=' $pic_flag'
7722           ;;
7723         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7724           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7725           tmp_addflag=' $pic_flag -Mnomain' ;;
7726         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7727           tmp_addflag=' -i_dynamic' ;;
7728         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7729           tmp_addflag=' -i_dynamic -nofor_main' ;;
7730         ifc* | ifort*)                  # Intel Fortran compiler
7731           tmp_addflag=' -nofor_main' ;;
7732         esac
7733         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7734
7735         if test $supports_anon_versioning = yes; then
7736           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7737   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7738   $echo "local: *; };" >> $output_objdir/$libname.ver~
7739           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7740         fi
7741       else
7742         ld_shlibs=no
7743       fi
7744       ;;
7745
7746     netbsd*)
7747       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7748         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7749         wlarc=
7750       else
7751         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7752         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7753       fi
7754       ;;
7755
7756     solaris*)
7757       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7758         ld_shlibs=no
7759         cat <<EOF 1>&2
7760
7761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7762 *** create shared libraries on Solaris systems.  Therefore, libtool
7763 *** is disabling shared libraries support.  We urge you to upgrade GNU
7764 *** binutils to release 2.9.1 or newer.  Another option is to modify
7765 *** your PATH or compiler configuration so that the native linker is
7766 *** used, and then restart.
7767
7768 EOF
7769       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7770         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7771         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7772       else
7773         ld_shlibs=no
7774       fi
7775       ;;
7776
7777     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7778       case `$LD -v 2>&1` in
7779         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7780         ld_shlibs=no
7781         cat <<_LT_EOF 1>&2
7782
7783 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7784 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7785 *** is disabling shared libraries support.  We urge you to upgrade GNU
7786 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7787 *** your PATH or compiler configuration so that the native linker is
7788 *** used, and then restart.
7789
7790 _LT_EOF
7791         ;;
7792         *)
7793           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7794             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7795             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7796             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7797           else
7798             ld_shlibs=no
7799           fi
7800         ;;
7801       esac
7802       ;;
7803
7804     sunos4*)
7805       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7806       wlarc=
7807       hardcode_direct=yes
7808       hardcode_shlibpath_var=no
7809       ;;
7810
7811     *)
7812       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7813         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7814         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7815       else
7816         ld_shlibs=no
7817       fi
7818       ;;
7819     esac
7820
7821     if test "$ld_shlibs" = no; then
7822       runpath_var=
7823       hardcode_libdir_flag_spec=
7824       export_dynamic_flag_spec=
7825       whole_archive_flag_spec=
7826     fi
7827   else
7828     # PORTME fill in a description of your system's linker (not GNU ld)
7829     case $host_os in
7830     aix3*)
7831       allow_undefined_flag=unsupported
7832       always_export_symbols=yes
7833       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'
7834       # Note: this linker hardcodes the directories in LIBPATH if there
7835       # are no directories specified by -L.
7836       hardcode_minus_L=yes
7837       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7838         # Neither direct hardcoding nor static linking is supported with a
7839         # broken collect2.
7840         hardcode_direct=unsupported
7841       fi
7842       ;;
7843
7844     aix4* | aix5*)
7845       if test "$host_cpu" = ia64; then
7846         # On IA64, the linker does run time linking by default, so we don't
7847         # have to do anything special.
7848         aix_use_runtimelinking=no
7849         exp_sym_flag='-Bexport'
7850         no_entry_flag=""
7851       else
7852         # If we're using GNU nm, then we don't want the "-C" option.
7853         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7854         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7855           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'
7856         else
7857           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'
7858         fi
7859         aix_use_runtimelinking=no
7860
7861         # Test if we are trying to use run time linking or normal
7862         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7863         # need to do runtime linking.
7864         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7865           for ld_flag in $LDFLAGS; do
7866           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7867             aix_use_runtimelinking=yes
7868             break
7869           fi
7870           done
7871           ;;
7872         esac
7873
7874         exp_sym_flag='-bexport'
7875         no_entry_flag='-bnoentry'
7876       fi
7877
7878       # When large executables or shared objects are built, AIX ld can
7879       # have problems creating the table of contents.  If linking a library
7880       # or program results in "error TOC overflow" add -mminimal-toc to
7881       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7882       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7883
7884       archive_cmds=''
7885       hardcode_direct=yes
7886       hardcode_libdir_separator=':'
7887       link_all_deplibs=yes
7888
7889       if test "$GCC" = yes; then
7890         case $host_os in aix4.[012]|aix4.[012].*)
7891         # We only want to do this on AIX 4.2 and lower, the check
7892         # below for broken collect2 doesn't work under 4.3+
7893           collect2name=`${CC} -print-prog-name=collect2`
7894           if test -f "$collect2name" && \
7895            strings "$collect2name" | grep resolve_lib_name >/dev/null
7896           then
7897           # We have reworked collect2
7898           hardcode_direct=yes
7899           else
7900           # We have old collect2
7901           hardcode_direct=unsupported
7902           # It fails to find uninstalled libraries when the uninstalled
7903           # path is not listed in the libpath.  Setting hardcode_minus_L
7904           # to unsupported forces relinking
7905           hardcode_minus_L=yes
7906           hardcode_libdir_flag_spec='-L$libdir'
7907           hardcode_libdir_separator=
7908           fi
7909           ;;
7910         esac
7911         shared_flag='-shared'
7912         if test "$aix_use_runtimelinking" = yes; then
7913           shared_flag="$shared_flag "'${wl}-G'
7914         fi
7915       else
7916         # not using gcc
7917         if test "$host_cpu" = ia64; then
7918         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7919         # chokes on -Wl,-G. The following line is correct:
7920           shared_flag='-G'
7921         else
7922           if test "$aix_use_runtimelinking" = yes; then
7923             shared_flag='${wl}-G'
7924           else
7925             shared_flag='${wl}-bM:SRE'
7926           fi
7927         fi
7928       fi
7929
7930       # It seems that -bexpall does not export symbols beginning with
7931       # underscore (_), so it is better to generate a list of symbols to export.
7932       always_export_symbols=yes
7933       if test "$aix_use_runtimelinking" = yes; then
7934         # Warning - without using the other runtime loading flags (-brtl),
7935         # -berok will link without error, but may produce a broken library.
7936         allow_undefined_flag='-berok'
7937        # Determine the default libpath from the value encoded in an empty executable.
7938        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h.  */
7940
7941 int
7942 main ()
7943 {
7944
7945   ;
7946   return 0;
7947 }
7948 _ACEOF
7949 if ac_fn_c_try_link "$LINENO"; then :
7950
7951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7952 }'`
7953 # Check for a 64-bit object if we didn't find anything.
7954 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; }
7955 }'`; fi
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext \
7958     conftest$ac_exeext conftest.$ac_ext
7959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7960
7961        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7962         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7963        else
7964         if test "$host_cpu" = ia64; then
7965           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7966           allow_undefined_flag="-z nodefs"
7967           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7968         else
7969          # Determine the default libpath from the value encoded in an empty executable.
7970          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h.  */
7972
7973 int
7974 main ()
7975 {
7976
7977   ;
7978   return 0;
7979 }
7980 _ACEOF
7981 if ac_fn_c_try_link "$LINENO"; then :
7982
7983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7984 }'`
7985 # Check for a 64-bit object if we didn't find anything.
7986 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; }
7987 }'`; fi
7988 fi
7989 rm -f core conftest.err conftest.$ac_objext \
7990     conftest$ac_exeext conftest.$ac_ext
7991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7992
7993          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7994           # Warning - without using the other run time loading flags,
7995           # -berok will link without error, but may produce a broken library.
7996           no_undefined_flag=' ${wl}-bernotok'
7997           allow_undefined_flag=' ${wl}-berok'
7998           # Exported symbols can be pulled into shared objects from archives
7999           whole_archive_flag_spec='$convenience'
8000           archive_cmds_need_lc=yes
8001           # This is similar to how AIX traditionally builds its shared libraries.
8002           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8003         fi
8004       fi
8005       ;;
8006
8007     amigaos*)
8008       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)'
8009       hardcode_libdir_flag_spec='-L$libdir'
8010       hardcode_minus_L=yes
8011       # see comment about different semantics on the GNU ld section
8012       ld_shlibs=no
8013       ;;
8014
8015     bsdi[45]*)
8016       export_dynamic_flag_spec=-rdynamic
8017       ;;
8018
8019     cygwin* | mingw* | pw32*)
8020       # When not using gcc, we currently assume that we are using
8021       # Microsoft Visual C++.
8022       # hardcode_libdir_flag_spec is actually meaningless, as there is
8023       # no search path for DLLs.
8024       hardcode_libdir_flag_spec=' '
8025       allow_undefined_flag=unsupported
8026       # Tell ltmain to make .lib files, not .a files.
8027       libext=lib
8028       # Tell ltmain to make .dll files, not .so files.
8029       shrext_cmds=".dll"
8030       # FIXME: Setting linknames here is a bad hack.
8031       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8032       # The linker will automatically build a .lib file if we build a DLL.
8033       old_archive_From_new_cmds='true'
8034       # FIXME: Should let the user specify the lib program.
8035       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8036       fix_srcfile_path='`cygpath -w "$srcfile"`'
8037       enable_shared_with_static_runtimes=yes
8038       ;;
8039
8040     darwin* | rhapsody*)
8041       case $host_os in
8042         rhapsody* | darwin1.[012])
8043          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8044          ;;
8045        *) # Darwin 1.3 on
8046          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8047            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8048          else
8049            case ${MACOSX_DEPLOYMENT_TARGET} in
8050              10.[012])
8051                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8052                ;;
8053              10.*)
8054                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8055                ;;
8056            esac
8057          fi
8058          ;;
8059       esac
8060       archive_cmds_need_lc=no
8061       hardcode_direct=no
8062       hardcode_automatic=yes
8063       hardcode_shlibpath_var=unsupported
8064       whole_archive_flag_spec=''
8065       link_all_deplibs=yes
8066     if test "$GCC" = yes ; then
8067         output_verbose_link_cmd='echo'
8068         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8069       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8070       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8071       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}'
8072       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}'
8073     else
8074       case $cc_basename in
8075         xlc*)
8076          output_verbose_link_cmd='echo'
8077          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8078          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8079           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8080          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8081           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}'
8082           ;;
8083        *)
8084          ld_shlibs=no
8085           ;;
8086       esac
8087     fi
8088       ;;
8089
8090     dgux*)
8091       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092       hardcode_libdir_flag_spec='-L$libdir'
8093       hardcode_shlibpath_var=no
8094       ;;
8095
8096     freebsd1*)
8097       ld_shlibs=no
8098       ;;
8099
8100     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8101     # support.  Future versions do this automatically, but an explicit c++rt0.o
8102     # does not break anything, and helps significantly (at the cost of a little
8103     # extra space).
8104     freebsd2.2*)
8105       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8106       hardcode_libdir_flag_spec='-R$libdir'
8107       hardcode_direct=yes
8108       hardcode_shlibpath_var=no
8109       ;;
8110
8111     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8112     freebsd2*)
8113       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8114       hardcode_direct=yes
8115       hardcode_minus_L=yes
8116       hardcode_shlibpath_var=no
8117       ;;
8118
8119     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8120     freebsd* | kfreebsd*-gnu | dragonfly*)
8121       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8122       hardcode_libdir_flag_spec='-R$libdir'
8123       hardcode_direct=yes
8124       hardcode_shlibpath_var=no
8125       ;;
8126
8127     hpux9*)
8128       if test "$GCC" = yes; then
8129         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'
8130       else
8131         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'
8132       fi
8133       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8134       hardcode_libdir_separator=:
8135       hardcode_direct=yes
8136
8137       # hardcode_minus_L: Not really in the search PATH,
8138       # but as the default location of the library.
8139       hardcode_minus_L=yes
8140       export_dynamic_flag_spec='${wl}-E'
8141       ;;
8142
8143     hpux10*)
8144       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8145         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8146       else
8147         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8148       fi
8149       if test "$with_gnu_ld" = no; then
8150         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8151         hardcode_libdir_separator=:
8152
8153         hardcode_direct=yes
8154         export_dynamic_flag_spec='${wl}-E'
8155
8156         # hardcode_minus_L: Not really in the search PATH,
8157         # but as the default location of the library.
8158         hardcode_minus_L=yes
8159       fi
8160       ;;
8161
8162     hpux11*)
8163       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8164         case $host_cpu in
8165         hppa*64*)
8166           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8167           ;;
8168         ia64*)
8169           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8170           ;;
8171         *)
8172           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8173           ;;
8174         esac
8175       else
8176         case $host_cpu in
8177         hppa*64*)
8178           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8179           ;;
8180         ia64*)
8181           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8182           ;;
8183         *)
8184           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8185           ;;
8186         esac
8187       fi
8188       if test "$with_gnu_ld" = no; then
8189         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8190         hardcode_libdir_separator=:
8191
8192         case $host_cpu in
8193         hppa*64*|ia64*)
8194           hardcode_libdir_flag_spec_ld='+b $libdir'
8195           hardcode_direct=no
8196           hardcode_shlibpath_var=no
8197           ;;
8198         *)
8199           hardcode_direct=yes
8200           export_dynamic_flag_spec='${wl}-E'
8201
8202           # hardcode_minus_L: Not really in the search PATH,
8203           # but as the default location of the library.
8204           hardcode_minus_L=yes
8205           ;;
8206         esac
8207       fi
8208       ;;
8209
8210     irix5* | irix6* | nonstopux*)
8211       if test "$GCC" = yes; then
8212         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'
8213       else
8214         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'
8215         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8216       fi
8217       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218       hardcode_libdir_separator=:
8219       link_all_deplibs=yes
8220       ;;
8221
8222     netbsd*)
8223       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8224         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8225       else
8226         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8227       fi
8228       hardcode_libdir_flag_spec='-R$libdir'
8229       hardcode_direct=yes
8230       hardcode_shlibpath_var=no
8231       ;;
8232
8233     newsos6)
8234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8235       hardcode_direct=yes
8236       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8237       hardcode_libdir_separator=:
8238       hardcode_shlibpath_var=no
8239       ;;
8240
8241     openbsd*)
8242       hardcode_direct=yes
8243       hardcode_shlibpath_var=no
8244       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8245         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8246         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8247         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8248         export_dynamic_flag_spec='${wl}-E'
8249       else
8250        case $host_os in
8251          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8252            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8253            hardcode_libdir_flag_spec='-R$libdir'
8254            ;;
8255          *)
8256            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8257            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8258            ;;
8259        esac
8260       fi
8261       ;;
8262
8263     os2*)
8264       hardcode_libdir_flag_spec='-L$libdir'
8265       hardcode_minus_L=yes
8266       allow_undefined_flag=unsupported
8267       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'
8268       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8269       ;;
8270
8271     osf3*)
8272       if test "$GCC" = yes; then
8273         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8274         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'
8275       else
8276         allow_undefined_flag=' -expect_unresolved \*'
8277         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'
8278       fi
8279       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8280       hardcode_libdir_separator=:
8281       ;;
8282
8283     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8284       if test "$GCC" = yes; then
8285         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8286         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'
8287         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288       else
8289         allow_undefined_flag=' -expect_unresolved \*'
8290         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'
8291         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8292         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8293
8294         # Both c and cxx compiler support -rpath directly
8295         hardcode_libdir_flag_spec='-rpath $libdir'
8296       fi
8297       hardcode_libdir_separator=:
8298       ;;
8299
8300     solaris*)
8301       no_undefined_flag=' -z text'
8302       if test "$GCC" = yes; then
8303         wlarc='${wl}'
8304         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8305         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8306           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8307       else
8308         wlarc=''
8309         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8310         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8311         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8312       fi
8313       hardcode_libdir_flag_spec='-R$libdir'
8314       hardcode_shlibpath_var=no
8315       case $host_os in
8316       solaris2.[0-5] | solaris2.[0-5].*) ;;
8317       *)
8318         # The compiler driver will combine linker options so we
8319         # cannot just pass the convience library names through
8320         # without $wl, iff we do not link with $LD.
8321         # Luckily, gcc supports the same syntax we need for Sun Studio.
8322         # Supported since Solaris 2.6 (maybe 2.5.1?)
8323         case $wlarc in
8324         '')
8325           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8326         *)
8327           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8328         esac ;;
8329       esac
8330       link_all_deplibs=yes
8331       ;;
8332
8333     sunos4*)
8334       if test "x$host_vendor" = xsequent; then
8335         # Use $CC to link under sequent, because it throws in some extra .o
8336         # files that make .init and .fini sections work.
8337         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8338       else
8339         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8340       fi
8341       hardcode_libdir_flag_spec='-L$libdir'
8342       hardcode_direct=yes
8343       hardcode_minus_L=yes
8344       hardcode_shlibpath_var=no
8345       ;;
8346
8347     sysv4)
8348       case $host_vendor in
8349         sni)
8350           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8351           hardcode_direct=yes # is this really true???
8352         ;;
8353         siemens)
8354           ## LD is ld it makes a PLAMLIB
8355           ## CC just makes a GrossModule.
8356           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8357           reload_cmds='$CC -r -o $output$reload_objs'
8358           hardcode_direct=no
8359         ;;
8360         motorola)
8361           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8362           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8363         ;;
8364       esac
8365       runpath_var='LD_RUN_PATH'
8366       hardcode_shlibpath_var=no
8367       ;;
8368
8369     sysv4.3*)
8370       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371       hardcode_shlibpath_var=no
8372       export_dynamic_flag_spec='-Bexport'
8373       ;;
8374
8375     sysv4*MP*)
8376       if test -d /usr/nec; then
8377         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8378         hardcode_shlibpath_var=no
8379         runpath_var=LD_RUN_PATH
8380         hardcode_runpath_var=yes
8381         ld_shlibs=yes
8382       fi
8383       ;;
8384
8385     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8386       no_undefined_flag='${wl}-z,text'
8387       archive_cmds_need_lc=no
8388       hardcode_shlibpath_var=no
8389       runpath_var='LD_RUN_PATH'
8390
8391       if test "$GCC" = yes; then
8392         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8393         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8394       else
8395         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8396         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397       fi
8398       ;;
8399
8400     sysv5* | sco3.2v5* | sco5v6*)
8401       # Note: We can NOT use -z defs as we might desire, because we do not
8402       # link with -lc, and that would cause any symbols used from libc to
8403       # always be unresolved, which means just about no library would
8404       # ever link correctly.  If we're not using GNU ld we use -z text
8405       # though, which does catch some bad symbols but isn't as heavy-handed
8406       # as -z defs.
8407       no_undefined_flag='${wl}-z,text'
8408       allow_undefined_flag='${wl}-z,nodefs'
8409       archive_cmds_need_lc=no
8410       hardcode_shlibpath_var=no
8411       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8412       hardcode_libdir_separator=':'
8413       link_all_deplibs=yes
8414       export_dynamic_flag_spec='${wl}-Bexport'
8415       runpath_var='LD_RUN_PATH'
8416
8417       if test "$GCC" = yes; then
8418         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8419         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8420       else
8421         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8422         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8423       fi
8424       ;;
8425
8426     uts4*)
8427       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428       hardcode_libdir_flag_spec='-L$libdir'
8429       hardcode_shlibpath_var=no
8430       ;;
8431
8432     *)
8433       ld_shlibs=no
8434       ;;
8435     esac
8436   fi
8437
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8439 $as_echo "$ld_shlibs" >&6; }
8440 test "$ld_shlibs" = no && can_build_shared=no
8441
8442 #
8443 # Do we need to explicitly link libc?
8444 #
8445 case "x$archive_cmds_need_lc" in
8446 x|xyes)
8447   # Assume -lc should be added
8448   archive_cmds_need_lc=yes
8449
8450   if test "$enable_shared" = yes && test "$GCC" = yes; then
8451     case $archive_cmds in
8452     *'~'*)
8453       # FIXME: we may have to deal with multi-command sequences.
8454       ;;
8455     '$CC '*)
8456       # Test whether the compiler implicitly links with -lc since on some
8457       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8458       # to ld, don't add -lc before -lgcc.
8459       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8460 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8461       $rm conftest*
8462       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8463
8464       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8465   (eval $ac_compile) 2>&5
8466   ac_status=$?
8467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8468   test $ac_status = 0; } 2>conftest.err; then
8469         soname=conftest
8470         lib=conftest
8471         libobjs=conftest.$ac_objext
8472         deplibs=
8473         wl=$lt_prog_compiler_wl
8474         pic_flag=$lt_prog_compiler_pic
8475         compiler_flags=-v
8476         linker_flags=-v
8477         verstring=
8478         output_objdir=.
8479         libname=conftest
8480         lt_save_allow_undefined_flag=$allow_undefined_flag
8481         allow_undefined_flag=
8482         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8483   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8484   ac_status=$?
8485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8486   test $ac_status = 0; }
8487         then
8488           archive_cmds_need_lc=no
8489         else
8490           archive_cmds_need_lc=yes
8491         fi
8492         allow_undefined_flag=$lt_save_allow_undefined_flag
8493       else
8494         cat conftest.err 1>&5
8495       fi
8496       $rm conftest*
8497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8498 $as_echo "$archive_cmds_need_lc" >&6; }
8499       ;;
8500     esac
8501   fi
8502   ;;
8503 esac
8504
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8506 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8507 library_names_spec=
8508 libname_spec='lib$name'
8509 soname_spec=
8510 shrext_cmds=".so"
8511 postinstall_cmds=
8512 postuninstall_cmds=
8513 finish_cmds=
8514 finish_eval=
8515 shlibpath_var=
8516 shlibpath_overrides_runpath=unknown
8517 version_type=none
8518 dynamic_linker="$host_os ld.so"
8519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8520 if test "$GCC" = yes; then
8521   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8522   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8523     # if the path contains ";" then we assume it to be the separator
8524     # otherwise default to the standard path separator (i.e. ":") - it is
8525     # assumed that no part of a normal pathname contains ";" but that should
8526     # okay in the real world where ";" in dirpaths is itself problematic.
8527     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8528   else
8529     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8530   fi
8531 else
8532   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8533 fi
8534 need_lib_prefix=unknown
8535 hardcode_into_libs=no
8536
8537 # when you set need_version to no, make sure it does not cause -set_version
8538 # flags to be left without arguments
8539 need_version=unknown
8540
8541 case $host_os in
8542 aix3*)
8543   version_type=linux
8544   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8545   shlibpath_var=LIBPATH
8546
8547   # AIX 3 has no versioning support, so we append a major version to the name.
8548   soname_spec='${libname}${release}${shared_ext}$major'
8549   ;;
8550
8551 aix4* | aix5*)
8552   version_type=linux
8553   need_lib_prefix=no
8554   need_version=no
8555   hardcode_into_libs=yes
8556   if test "$host_cpu" = ia64; then
8557     # AIX 5 supports IA64
8558     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8559     shlibpath_var=LD_LIBRARY_PATH
8560   else
8561     # With GCC up to 2.95.x, collect2 would create an import file
8562     # for dependence libraries.  The import file would start with
8563     # the line `#! .'.  This would cause the generated library to
8564     # depend on `.', always an invalid library.  This was fixed in
8565     # development snapshots of GCC prior to 3.0.
8566     case $host_os in
8567       aix4 | aix4.[01] | aix4.[01].*)
8568       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8569            echo ' yes '
8570            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8571         :
8572       else
8573         can_build_shared=no
8574       fi
8575       ;;
8576     esac
8577     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8578     # soname into executable. Probably we can add versioning support to
8579     # collect2, so additional links can be useful in future.
8580     if test "$aix_use_runtimelinking" = yes; then
8581       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8582       # instead of lib<name>.a to let people know that these are not
8583       # typical AIX shared libraries.
8584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8585     else
8586       # We preserve .a as extension for shared libraries through AIX4.2
8587       # and later when we are not doing run time linking.
8588       library_names_spec='${libname}${release}.a $libname.a'
8589       soname_spec='${libname}${release}${shared_ext}$major'
8590     fi
8591     shlibpath_var=LIBPATH
8592   fi
8593   ;;
8594
8595 amigaos*)
8596   library_names_spec='$libname.ixlibrary $libname.a'
8597   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8598   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'
8599   ;;
8600
8601 beos*)
8602   library_names_spec='${libname}${shared_ext}'
8603   dynamic_linker="$host_os ld.so"
8604   shlibpath_var=LIBRARY_PATH
8605   ;;
8606
8607 bsdi[45]*)
8608   version_type=linux
8609   need_version=no
8610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611   soname_spec='${libname}${release}${shared_ext}$major'
8612   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8613   shlibpath_var=LD_LIBRARY_PATH
8614   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8615   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8616   # the default ld.so.conf also contains /usr/contrib/lib and
8617   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8618   # libtool to hard-code these into programs
8619   ;;
8620
8621 cygwin* | mingw* | pw32*)
8622   version_type=windows
8623   shrext_cmds=".dll"
8624   need_version=no
8625   need_lib_prefix=no
8626
8627   case $GCC,$host_os in
8628   yes,cygwin* | yes,mingw* | yes,pw32*)
8629     library_names_spec='$libname.dll.a'
8630     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8631     postinstall_cmds='base_file=`basename \${file}`~
8632       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8633       dldir=$destdir/`dirname \$dlpath`~
8634       test -d \$dldir || mkdir -p \$dldir~
8635       $install_prog $dir/$dlname \$dldir/$dlname~
8636       chmod a+x \$dldir/$dlname'
8637     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8638       dlpath=$dir/\$dldll~
8639        $rm \$dlpath'
8640     shlibpath_overrides_runpath=yes
8641
8642     case $host_os in
8643     cygwin*)
8644       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8645       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8647       ;;
8648     mingw*)
8649       # MinGW DLLs use traditional 'lib' prefix
8650       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8651       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8652       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8653         # It is most probably a Windows format PATH printed by
8654         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8655         # path with ; separators, and with drive letters. We can handle the
8656         # drive letters (cygwin fileutils understands them), so leave them,
8657         # especially as we might pass files found there to a mingw objdump,
8658         # which wouldn't understand a cygwinified path. Ahh.
8659         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8660       else
8661         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8662       fi
8663       ;;
8664     pw32*)
8665       # pw32 DLLs use 'pw' prefix rather than 'lib'
8666       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8667       ;;
8668     esac
8669     ;;
8670
8671   *)
8672     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8673     ;;
8674   esac
8675   dynamic_linker='Win32 ld.exe'
8676   # FIXME: first we should search . and the directory the executable is in
8677   shlibpath_var=PATH
8678   ;;
8679
8680 darwin* | rhapsody*)
8681   dynamic_linker="$host_os dyld"
8682   version_type=darwin
8683   need_lib_prefix=no
8684   need_version=no
8685   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8686   soname_spec='${libname}${release}${major}$shared_ext'
8687   shlibpath_overrides_runpath=yes
8688   shlibpath_var=DYLD_LIBRARY_PATH
8689   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8690   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8691   if test "$GCC" = yes; then
8692     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"`
8693   else
8694     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8695   fi
8696   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8697   ;;
8698
8699 dgux*)
8700   version_type=linux
8701   need_lib_prefix=no
8702   need_version=no
8703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8704   soname_spec='${libname}${release}${shared_ext}$major'
8705   shlibpath_var=LD_LIBRARY_PATH
8706   ;;
8707
8708 freebsd1*)
8709   dynamic_linker=no
8710   ;;
8711
8712 kfreebsd*-gnu)
8713   version_type=linux
8714   need_lib_prefix=no
8715   need_version=no
8716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8717   soname_spec='${libname}${release}${shared_ext}$major'
8718   shlibpath_var=LD_LIBRARY_PATH
8719   shlibpath_overrides_runpath=no
8720   hardcode_into_libs=yes
8721   dynamic_linker='GNU ld.so'
8722   ;;
8723
8724 freebsd* | dragonfly*)
8725   # DragonFly does not have aout.  When/if they implement a new
8726   # versioning mechanism, adjust this.
8727   if test -x /usr/bin/objformat; then
8728     objformat=`/usr/bin/objformat`
8729   else
8730     case $host_os in
8731     freebsd[123]*) objformat=aout ;;
8732     *) objformat=elf ;;
8733     esac
8734   fi
8735   version_type=freebsd-$objformat
8736   case $version_type in
8737     freebsd-elf*)
8738       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8739       need_version=no
8740       need_lib_prefix=no
8741       ;;
8742     freebsd-*)
8743       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8744       need_version=yes
8745       ;;
8746   esac
8747   shlibpath_var=LD_LIBRARY_PATH
8748   case $host_os in
8749   freebsd2*)
8750     shlibpath_overrides_runpath=yes
8751     ;;
8752   freebsd3.[01]* | freebsdelf3.[01]*)
8753     shlibpath_overrides_runpath=yes
8754     hardcode_into_libs=yes
8755     ;;
8756   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8757   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8758     shlibpath_overrides_runpath=no
8759     hardcode_into_libs=yes
8760     ;;
8761   freebsd*) # from 4.6 on
8762     shlibpath_overrides_runpath=yes
8763     hardcode_into_libs=yes
8764     ;;
8765   esac
8766   ;;
8767
8768 gnu*)
8769   version_type=linux
8770   need_lib_prefix=no
8771   need_version=no
8772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8773   soname_spec='${libname}${release}${shared_ext}$major'
8774   shlibpath_var=LD_LIBRARY_PATH
8775   hardcode_into_libs=yes
8776   ;;
8777
8778 hpux9* | hpux10* | hpux11*)
8779   # Give a soname corresponding to the major version so that dld.sl refuses to
8780   # link against other versions.
8781   version_type=sunos
8782   need_lib_prefix=no
8783   need_version=no
8784   case $host_cpu in
8785   ia64*)
8786     shrext_cmds='.so'
8787     hardcode_into_libs=yes
8788     dynamic_linker="$host_os dld.so"
8789     shlibpath_var=LD_LIBRARY_PATH
8790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8792     soname_spec='${libname}${release}${shared_ext}$major'
8793     if test "X$HPUX_IA64_MODE" = X32; then
8794       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8795     else
8796       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8797     fi
8798     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8799     ;;
8800    hppa*64*)
8801      shrext_cmds='.sl'
8802      hardcode_into_libs=yes
8803      dynamic_linker="$host_os dld.sl"
8804      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8805      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8806      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807      soname_spec='${libname}${release}${shared_ext}$major'
8808      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8809      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8810      ;;
8811    *)
8812     shrext_cmds='.sl'
8813     dynamic_linker="$host_os dld.sl"
8814     shlibpath_var=SHLIB_PATH
8815     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817     soname_spec='${libname}${release}${shared_ext}$major'
8818     ;;
8819   esac
8820   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8821   postinstall_cmds='chmod 555 $lib'
8822   ;;
8823
8824 interix3*)
8825   version_type=linux
8826   need_lib_prefix=no
8827   need_version=no
8828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8829   soname_spec='${libname}${release}${shared_ext}$major'
8830   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8831   shlibpath_var=LD_LIBRARY_PATH
8832   shlibpath_overrides_runpath=no
8833   hardcode_into_libs=yes
8834   ;;
8835
8836 irix5* | irix6* | nonstopux*)
8837   case $host_os in
8838     nonstopux*) version_type=nonstopux ;;
8839     *)
8840         if test "$lt_cv_prog_gnu_ld" = yes; then
8841                 version_type=linux
8842         else
8843                 version_type=irix
8844         fi ;;
8845   esac
8846   need_lib_prefix=no
8847   need_version=no
8848   soname_spec='${libname}${release}${shared_ext}$major'
8849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8850   case $host_os in
8851   irix5* | nonstopux*)
8852     libsuff= shlibsuff=
8853     ;;
8854   *)
8855     case $LD in # libtool.m4 will add one of these switches to LD
8856     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8857       libsuff= shlibsuff= libmagic=32-bit;;
8858     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8859       libsuff=32 shlibsuff=N32 libmagic=N32;;
8860     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8861       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8862     *) libsuff= shlibsuff= libmagic=never-match;;
8863     esac
8864     ;;
8865   esac
8866   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8867   shlibpath_overrides_runpath=no
8868   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8869   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8870   hardcode_into_libs=yes
8871   ;;
8872
8873 # No shared lib support for Linux oldld, aout, or coff.
8874 linux*oldld* | linux*aout* | linux*coff*)
8875   dynamic_linker=no
8876   ;;
8877
8878 # This must be Linux ELF.
8879 linux*)
8880   version_type=linux
8881   need_lib_prefix=no
8882   need_version=no
8883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8884   soname_spec='${libname}${release}${shared_ext}$major'
8885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8886   shlibpath_var=LD_LIBRARY_PATH
8887   shlibpath_overrides_runpath=no
8888   # This implies no fast_install, which is unacceptable.
8889   # Some rework will be needed to allow for fast_install
8890   # before this can be enabled.
8891   hardcode_into_libs=yes
8892
8893   # Append ld.so.conf contents to the search path
8894   if test -f /etc/ld.so.conf; then
8895     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8896     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8897   fi
8898
8899   # We used to test for /lib/ld.so.1 and disable shared libraries on
8900   # powerpc, because MkLinux only supported shared libraries with the
8901   # GNU dynamic linker.  Since this was broken with cross compilers,
8902   # most powerpc-linux boxes support dynamic linking these days and
8903   # people can always --disable-shared, the test was removed, and we
8904   # assume the GNU/Linux dynamic linker is in use.
8905   dynamic_linker='GNU/Linux ld.so'
8906   ;;
8907
8908 knetbsd*-gnu)
8909   version_type=linux
8910   need_lib_prefix=no
8911   need_version=no
8912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913   soname_spec='${libname}${release}${shared_ext}$major'
8914   shlibpath_var=LD_LIBRARY_PATH
8915   shlibpath_overrides_runpath=no
8916   hardcode_into_libs=yes
8917   dynamic_linker='GNU ld.so'
8918   ;;
8919
8920 netbsd*)
8921   version_type=sunos
8922   need_lib_prefix=no
8923   need_version=no
8924   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8926     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8927     dynamic_linker='NetBSD (a.out) ld.so'
8928   else
8929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8930     soname_spec='${libname}${release}${shared_ext}$major'
8931     dynamic_linker='NetBSD ld.elf_so'
8932   fi
8933   shlibpath_var=LD_LIBRARY_PATH
8934   shlibpath_overrides_runpath=yes
8935   hardcode_into_libs=yes
8936   ;;
8937
8938 newsos6)
8939   version_type=linux
8940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941   shlibpath_var=LD_LIBRARY_PATH
8942   shlibpath_overrides_runpath=yes
8943   ;;
8944
8945 nto-qnx*)
8946   version_type=linux
8947   need_lib_prefix=no
8948   need_version=no
8949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950   soname_spec='${libname}${release}${shared_ext}$major'
8951   shlibpath_var=LD_LIBRARY_PATH
8952   shlibpath_overrides_runpath=yes
8953   ;;
8954
8955 openbsd*)
8956   version_type=sunos
8957   sys_lib_dlsearch_path_spec="/usr/lib"
8958   need_lib_prefix=no
8959   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8960   case $host_os in
8961     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8962     *)                         need_version=no  ;;
8963   esac
8964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8965   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8966   shlibpath_var=LD_LIBRARY_PATH
8967   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8968     case $host_os in
8969       openbsd2.[89] | openbsd2.[89].*)
8970         shlibpath_overrides_runpath=no
8971         ;;
8972       *)
8973         shlibpath_overrides_runpath=yes
8974         ;;
8975       esac
8976   else
8977     shlibpath_overrides_runpath=yes
8978   fi
8979   ;;
8980
8981 os2*)
8982   libname_spec='$name'
8983   shrext_cmds=".dll"
8984   need_lib_prefix=no
8985   library_names_spec='$libname${shared_ext} $libname.a'
8986   dynamic_linker='OS/2 ld.exe'
8987   shlibpath_var=LIBPATH
8988   ;;
8989
8990 osf3* | osf4* | osf5*)
8991   version_type=osf
8992   need_lib_prefix=no
8993   need_version=no
8994   soname_spec='${libname}${release}${shared_ext}$major'
8995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996   shlibpath_var=LD_LIBRARY_PATH
8997   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8998   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8999   ;;
9000
9001 solaris*)
9002   version_type=linux
9003   need_lib_prefix=no
9004   need_version=no
9005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006   soname_spec='${libname}${release}${shared_ext}$major'
9007   shlibpath_var=LD_LIBRARY_PATH
9008   shlibpath_overrides_runpath=yes
9009   hardcode_into_libs=yes
9010   # ldd complains unless libraries are executable
9011   postinstall_cmds='chmod +x $lib'
9012   ;;
9013
9014 sunos4*)
9015   version_type=sunos
9016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9018   shlibpath_var=LD_LIBRARY_PATH
9019   shlibpath_overrides_runpath=yes
9020   if test "$with_gnu_ld" = yes; then
9021     need_lib_prefix=no
9022   fi
9023   need_version=yes
9024   ;;
9025
9026 sysv4 | sysv4.3*)
9027   version_type=linux
9028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029   soname_spec='${libname}${release}${shared_ext}$major'
9030   shlibpath_var=LD_LIBRARY_PATH
9031   case $host_vendor in
9032     sni)
9033       shlibpath_overrides_runpath=no
9034       need_lib_prefix=no
9035       export_dynamic_flag_spec='${wl}-Blargedynsym'
9036       runpath_var=LD_RUN_PATH
9037       ;;
9038     siemens)
9039       need_lib_prefix=no
9040       ;;
9041     motorola)
9042       need_lib_prefix=no
9043       need_version=no
9044       shlibpath_overrides_runpath=no
9045       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9046       ;;
9047   esac
9048   ;;
9049
9050 sysv4*MP*)
9051   if test -d /usr/nec ;then
9052     version_type=linux
9053     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9054     soname_spec='$libname${shared_ext}.$major'
9055     shlibpath_var=LD_LIBRARY_PATH
9056   fi
9057   ;;
9058
9059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9060   version_type=freebsd-elf
9061   need_lib_prefix=no
9062   need_version=no
9063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064   soname_spec='${libname}${release}${shared_ext}$major'
9065   shlibpath_var=LD_LIBRARY_PATH
9066   hardcode_into_libs=yes
9067   if test "$with_gnu_ld" = yes; then
9068     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9069     shlibpath_overrides_runpath=no
9070   else
9071     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9072     shlibpath_overrides_runpath=yes
9073     case $host_os in
9074       sco3.2v5*)
9075         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9076         ;;
9077     esac
9078   fi
9079   sys_lib_dlsearch_path_spec='/usr/lib'
9080   ;;
9081
9082 uts4*)
9083   version_type=linux
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   shlibpath_var=LD_LIBRARY_PATH
9087   ;;
9088
9089 *)
9090   dynamic_linker=no
9091   ;;
9092 esac
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9094 $as_echo "$dynamic_linker" >&6; }
9095 test "$dynamic_linker" = no && can_build_shared=no
9096
9097 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9098 if test "$GCC" = yes; then
9099   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9100 fi
9101
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9103 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9104 hardcode_action=
9105 if test -n "$hardcode_libdir_flag_spec" || \
9106    test -n "$runpath_var" || \
9107    test "X$hardcode_automatic" = "Xyes" ; then
9108
9109   # We can hardcode non-existant directories.
9110   if test "$hardcode_direct" != no &&
9111      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9112      # have to relink, otherwise we might link with an installed library
9113      # when we should be linking with a yet-to-be-installed one
9114      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9115      test "$hardcode_minus_L" != no; then
9116     # Linking always hardcodes the temporary library directory.
9117     hardcode_action=relink
9118   else
9119     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9120     hardcode_action=immediate
9121   fi
9122 else
9123   # We cannot hardcode anything, or else we can only hardcode existing
9124   # directories.
9125   hardcode_action=unsupported
9126 fi
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9128 $as_echo "$hardcode_action" >&6; }
9129
9130 if test "$hardcode_action" = relink; then
9131   # Fast installation is not supported
9132   enable_fast_install=no
9133 elif test "$shlibpath_overrides_runpath" = yes ||
9134      test "$enable_shared" = no; then
9135   # Fast installation is not necessary
9136   enable_fast_install=needless
9137 fi
9138
9139 striplib=
9140 old_striplib=
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9142 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9144   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9145   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9147 $as_echo "yes" >&6; }
9148 else
9149 # FIXME - insert some real tests, host_os isn't really good enough
9150   case $host_os in
9151    darwin*)
9152        if test -n "$STRIP" ; then
9153          striplib="$STRIP -x"
9154          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9155 $as_echo "yes" >&6; }
9156        else
9157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9159 fi
9160        ;;
9161    *)
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9164     ;;
9165   esac
9166 fi
9167
9168 if test "x$enable_dlopen" != xyes; then
9169   enable_dlopen=unknown
9170   enable_dlopen_self=unknown
9171   enable_dlopen_self_static=unknown
9172 else
9173   lt_cv_dlopen=no
9174   lt_cv_dlopen_libs=
9175
9176   case $host_os in
9177   beos*)
9178     lt_cv_dlopen="load_add_on"
9179     lt_cv_dlopen_libs=
9180     lt_cv_dlopen_self=yes
9181     ;;
9182
9183   mingw* | pw32*)
9184     lt_cv_dlopen="LoadLibrary"
9185     lt_cv_dlopen_libs=
9186    ;;
9187
9188   cygwin*)
9189     lt_cv_dlopen="dlopen"
9190     lt_cv_dlopen_libs=
9191    ;;
9192
9193   darwin*)
9194   # if libdl is installed we need to link against it
9195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9196 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9197 if ${ac_cv_lib_dl_dlopen+:} false; then :
9198   $as_echo_n "(cached) " >&6
9199 else
9200   ac_check_lib_save_LIBS=$LIBS
9201 LIBS="-ldl  $LIBS"
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h.  */
9204
9205 /* Override any GCC internal prototype to avoid an error.
9206    Use char because int might match the return type of a GCC
9207    builtin and then its argument prototype would still apply.  */
9208 #ifdef __cplusplus
9209 extern "C"
9210 #endif
9211 char dlopen ();
9212 int
9213 main ()
9214 {
9215 return dlopen ();
9216   ;
9217   return 0;
9218 }
9219 _ACEOF
9220 if ac_fn_c_try_link "$LINENO"; then :
9221   ac_cv_lib_dl_dlopen=yes
9222 else
9223   ac_cv_lib_dl_dlopen=no
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext \
9226     conftest$ac_exeext conftest.$ac_ext
9227 LIBS=$ac_check_lib_save_LIBS
9228 fi
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9230 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9231 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9232   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9233 else
9234
9235     lt_cv_dlopen="dyld"
9236     lt_cv_dlopen_libs=
9237     lt_cv_dlopen_self=yes
9238
9239 fi
9240
9241    ;;
9242
9243   *)
9244     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9245 if test "x$ac_cv_func_shl_load" = xyes; then :
9246   lt_cv_dlopen="shl_load"
9247 else
9248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9249 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9250 if ${ac_cv_lib_dld_shl_load+:} false; then :
9251   $as_echo_n "(cached) " >&6
9252 else
9253   ac_check_lib_save_LIBS=$LIBS
9254 LIBS="-ldld  $LIBS"
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h.  */
9257
9258 /* Override any GCC internal prototype to avoid an error.
9259    Use char because int might match the return type of a GCC
9260    builtin and then its argument prototype would still apply.  */
9261 #ifdef __cplusplus
9262 extern "C"
9263 #endif
9264 char shl_load ();
9265 int
9266 main ()
9267 {
9268 return shl_load ();
9269   ;
9270   return 0;
9271 }
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274   ac_cv_lib_dld_shl_load=yes
9275 else
9276   ac_cv_lib_dld_shl_load=no
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext \
9279     conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9283 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9284 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9285   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9286 else
9287   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9288 if test "x$ac_cv_func_dlopen" = xyes; then :
9289   lt_cv_dlopen="dlopen"
9290 else
9291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9292 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9293 if ${ac_cv_lib_dl_dlopen+:} false; then :
9294   $as_echo_n "(cached) " >&6
9295 else
9296   ac_check_lib_save_LIBS=$LIBS
9297 LIBS="-ldl  $LIBS"
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h.  */
9300
9301 /* Override any GCC internal prototype to avoid an error.
9302    Use char because int might match the return type of a GCC
9303    builtin and then its argument prototype would still apply.  */
9304 #ifdef __cplusplus
9305 extern "C"
9306 #endif
9307 char dlopen ();
9308 int
9309 main ()
9310 {
9311 return dlopen ();
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 if ac_fn_c_try_link "$LINENO"; then :
9317   ac_cv_lib_dl_dlopen=yes
9318 else
9319   ac_cv_lib_dl_dlopen=no
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext \
9322     conftest$ac_exeext conftest.$ac_ext
9323 LIBS=$ac_check_lib_save_LIBS
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9326 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9327 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9328   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9329 else
9330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9331 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9332 if ${ac_cv_lib_svld_dlopen+:} false; then :
9333   $as_echo_n "(cached) " >&6
9334 else
9335   ac_check_lib_save_LIBS=$LIBS
9336 LIBS="-lsvld  $LIBS"
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h.  */
9339
9340 /* Override any GCC internal prototype to avoid an error.
9341    Use char because int might match the return type of a GCC
9342    builtin and then its argument prototype would still apply.  */
9343 #ifdef __cplusplus
9344 extern "C"
9345 #endif
9346 char dlopen ();
9347 int
9348 main ()
9349 {
9350 return dlopen ();
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 if ac_fn_c_try_link "$LINENO"; then :
9356   ac_cv_lib_svld_dlopen=yes
9357 else
9358   ac_cv_lib_svld_dlopen=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext \
9361     conftest$ac_exeext conftest.$ac_ext
9362 LIBS=$ac_check_lib_save_LIBS
9363 fi
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9365 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9366 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9367   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9368 else
9369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9370 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9371 if ${ac_cv_lib_dld_dld_link+:} false; then :
9372   $as_echo_n "(cached) " >&6
9373 else
9374   ac_check_lib_save_LIBS=$LIBS
9375 LIBS="-ldld  $LIBS"
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h.  */
9378
9379 /* Override any GCC internal prototype to avoid an error.
9380    Use char because int might match the return type of a GCC
9381    builtin and then its argument prototype would still apply.  */
9382 #ifdef __cplusplus
9383 extern "C"
9384 #endif
9385 char dld_link ();
9386 int
9387 main ()
9388 {
9389 return dld_link ();
9390   ;
9391   return 0;
9392 }
9393 _ACEOF
9394 if ac_fn_c_try_link "$LINENO"; then :
9395   ac_cv_lib_dld_dld_link=yes
9396 else
9397   ac_cv_lib_dld_dld_link=no
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext \
9400     conftest$ac_exeext conftest.$ac_ext
9401 LIBS=$ac_check_lib_save_LIBS
9402 fi
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9404 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9405 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9406   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9407 fi
9408
9409
9410 fi
9411
9412
9413 fi
9414
9415
9416 fi
9417
9418
9419 fi
9420
9421
9422 fi
9423
9424     ;;
9425   esac
9426
9427   if test "x$lt_cv_dlopen" != xno; then
9428     enable_dlopen=yes
9429   else
9430     enable_dlopen=no
9431   fi
9432
9433   case $lt_cv_dlopen in
9434   dlopen)
9435     save_CPPFLAGS="$CPPFLAGS"
9436     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9437
9438     save_LDFLAGS="$LDFLAGS"
9439     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9440
9441     save_LIBS="$LIBS"
9442     LIBS="$lt_cv_dlopen_libs $LIBS"
9443
9444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9445 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9446 if ${lt_cv_dlopen_self+:} false; then :
9447   $as_echo_n "(cached) " >&6
9448 else
9449           if test "$cross_compiling" = yes; then :
9450   lt_cv_dlopen_self=cross
9451 else
9452   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9453   lt_status=$lt_dlunknown
9454   cat > conftest.$ac_ext <<EOF
9455 #line 9455 "configure"
9456 #include "confdefs.h"
9457
9458 #if HAVE_DLFCN_H
9459 #include <dlfcn.h>
9460 #endif
9461
9462 #include <stdio.h>
9463
9464 #ifdef RTLD_GLOBAL
9465 #  define LT_DLGLOBAL           RTLD_GLOBAL
9466 #else
9467 #  ifdef DL_GLOBAL
9468 #    define LT_DLGLOBAL         DL_GLOBAL
9469 #  else
9470 #    define LT_DLGLOBAL         0
9471 #  endif
9472 #endif
9473
9474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9475    find out it does not work in some platform. */
9476 #ifndef LT_DLLAZY_OR_NOW
9477 #  ifdef RTLD_LAZY
9478 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9479 #  else
9480 #    ifdef DL_LAZY
9481 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9482 #    else
9483 #      ifdef RTLD_NOW
9484 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9485 #      else
9486 #        ifdef DL_NOW
9487 #          define LT_DLLAZY_OR_NOW      DL_NOW
9488 #        else
9489 #          define LT_DLLAZY_OR_NOW      0
9490 #        endif
9491 #      endif
9492 #    endif
9493 #  endif
9494 #endif
9495
9496 #ifdef __cplusplus
9497 extern "C" void exit (int);
9498 #endif
9499
9500 void fnord() { int i=42;}
9501 int main ()
9502 {
9503   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9504   int status = $lt_dlunknown;
9505
9506   if (self)
9507     {
9508       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9509       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9510       /* dlclose (self); */
9511     }
9512   else
9513     puts (dlerror ());
9514
9515     exit (status);
9516 }
9517 EOF
9518   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9519   (eval $ac_link) 2>&5
9520   ac_status=$?
9521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9522   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9523     (./conftest; exit; ) >&5 2>/dev/null
9524     lt_status=$?
9525     case x$lt_status in
9526       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9527       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9528       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9529     esac
9530   else :
9531     # compilation failed
9532     lt_cv_dlopen_self=no
9533   fi
9534 fi
9535 rm -fr conftest*
9536
9537
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9540 $as_echo "$lt_cv_dlopen_self" >&6; }
9541
9542     if test "x$lt_cv_dlopen_self" = xyes; then
9543       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9544       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9545 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9546 if ${lt_cv_dlopen_self_static+:} false; then :
9547   $as_echo_n "(cached) " >&6
9548 else
9549           if test "$cross_compiling" = yes; then :
9550   lt_cv_dlopen_self_static=cross
9551 else
9552   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9553   lt_status=$lt_dlunknown
9554   cat > conftest.$ac_ext <<EOF
9555 #line 9555 "configure"
9556 #include "confdefs.h"
9557
9558 #if HAVE_DLFCN_H
9559 #include <dlfcn.h>
9560 #endif
9561
9562 #include <stdio.h>
9563
9564 #ifdef RTLD_GLOBAL
9565 #  define LT_DLGLOBAL           RTLD_GLOBAL
9566 #else
9567 #  ifdef DL_GLOBAL
9568 #    define LT_DLGLOBAL         DL_GLOBAL
9569 #  else
9570 #    define LT_DLGLOBAL         0
9571 #  endif
9572 #endif
9573
9574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9575    find out it does not work in some platform. */
9576 #ifndef LT_DLLAZY_OR_NOW
9577 #  ifdef RTLD_LAZY
9578 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9579 #  else
9580 #    ifdef DL_LAZY
9581 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9582 #    else
9583 #      ifdef RTLD_NOW
9584 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9585 #      else
9586 #        ifdef DL_NOW
9587 #          define LT_DLLAZY_OR_NOW      DL_NOW
9588 #        else
9589 #          define LT_DLLAZY_OR_NOW      0
9590 #        endif
9591 #      endif
9592 #    endif
9593 #  endif
9594 #endif
9595
9596 #ifdef __cplusplus
9597 extern "C" void exit (int);
9598 #endif
9599
9600 void fnord() { int i=42;}
9601 int main ()
9602 {
9603   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9604   int status = $lt_dlunknown;
9605
9606   if (self)
9607     {
9608       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9609       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9610       /* dlclose (self); */
9611     }
9612   else
9613     puts (dlerror ());
9614
9615     exit (status);
9616 }
9617 EOF
9618   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9619   (eval $ac_link) 2>&5
9620   ac_status=$?
9621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9622   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9623     (./conftest; exit; ) >&5 2>/dev/null
9624     lt_status=$?
9625     case x$lt_status in
9626       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9627       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9628       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9629     esac
9630   else :
9631     # compilation failed
9632     lt_cv_dlopen_self_static=no
9633   fi
9634 fi
9635 rm -fr conftest*
9636
9637
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9640 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9641     fi
9642
9643     CPPFLAGS="$save_CPPFLAGS"
9644     LDFLAGS="$save_LDFLAGS"
9645     LIBS="$save_LIBS"
9646     ;;
9647   esac
9648
9649   case $lt_cv_dlopen_self in
9650   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9651   *) enable_dlopen_self=unknown ;;
9652   esac
9653
9654   case $lt_cv_dlopen_self_static in
9655   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9656   *) enable_dlopen_self_static=unknown ;;
9657   esac
9658 fi
9659
9660
9661 # Report which library types will actually be built
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9663 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9665 $as_echo "$can_build_shared" >&6; }
9666
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9668 $as_echo_n "checking whether to build shared libraries... " >&6; }
9669 test "$can_build_shared" = "no" && enable_shared=no
9670
9671 # On AIX, shared libraries and static libraries use the same namespace, and
9672 # are all built from PIC.
9673 case $host_os in
9674 aix3*)
9675   test "$enable_shared" = yes && enable_static=no
9676   if test -n "$RANLIB"; then
9677     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9678     postinstall_cmds='$RANLIB $lib'
9679   fi
9680   ;;
9681
9682 aix4* | aix5*)
9683   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9684     test "$enable_shared" = yes && enable_static=no
9685   fi
9686     ;;
9687 esac
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9689 $as_echo "$enable_shared" >&6; }
9690
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9692 $as_echo_n "checking whether to build static libraries... " >&6; }
9693 # Make sure either enable_shared or enable_static is yes.
9694 test "$enable_shared" = yes || enable_static=yes
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9696 $as_echo "$enable_static" >&6; }
9697
9698 # The else clause should only fire when bootstrapping the
9699 # libtool distribution, otherwise you forgot to ship ltmain.sh
9700 # with your package, and you will get complaints that there are
9701 # no rules to generate ltmain.sh.
9702 if test -f "$ltmain"; then
9703   # See if we are running on zsh, and set the options which allow our commands through
9704   # without removal of \ escapes.
9705   if test -n "${ZSH_VERSION+set}" ; then
9706     setopt NO_GLOB_SUBST
9707   fi
9708   # Now quote all the things that may contain metacharacters while being
9709   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9710   # variables and quote the copies for generation of the libtool script.
9711   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9712     SED SHELL STRIP \
9713     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9714     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9715     deplibs_check_method reload_flag reload_cmds need_locks \
9716     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9717     lt_cv_sys_global_symbol_to_c_name_address \
9718     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9719     old_postinstall_cmds old_postuninstall_cmds \
9720     compiler \
9721     CC \
9722     LD \
9723     lt_prog_compiler_wl \
9724     lt_prog_compiler_pic \
9725     lt_prog_compiler_static \
9726     lt_prog_compiler_no_builtin_flag \
9727     export_dynamic_flag_spec \
9728     thread_safe_flag_spec \
9729     whole_archive_flag_spec \
9730     enable_shared_with_static_runtimes \
9731     old_archive_cmds \
9732     old_archive_from_new_cmds \
9733     predep_objects \
9734     postdep_objects \
9735     predeps \
9736     postdeps \
9737     compiler_lib_search_path \
9738     archive_cmds \
9739     archive_expsym_cmds \
9740     postinstall_cmds \
9741     postuninstall_cmds \
9742     old_archive_from_expsyms_cmds \
9743     allow_undefined_flag \
9744     no_undefined_flag \
9745     export_symbols_cmds \
9746     hardcode_libdir_flag_spec \
9747     hardcode_libdir_flag_spec_ld \
9748     hardcode_libdir_separator \
9749     hardcode_automatic \
9750     module_cmds \
9751     module_expsym_cmds \
9752     lt_cv_prog_compiler_c_o \
9753     exclude_expsyms \
9754     include_expsyms; do
9755
9756     case $var in
9757     old_archive_cmds | \
9758     old_archive_from_new_cmds | \
9759     archive_cmds | \
9760     archive_expsym_cmds | \
9761     module_cmds | \
9762     module_expsym_cmds | \
9763     old_archive_from_expsyms_cmds | \
9764     export_symbols_cmds | \
9765     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9766     postinstall_cmds | postuninstall_cmds | \
9767     old_postinstall_cmds | old_postuninstall_cmds | \
9768     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9769       # Double-quote double-evaled strings.
9770       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9771       ;;
9772     *)
9773       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9774       ;;
9775     esac
9776   done
9777
9778   case $lt_echo in
9779   *'\$0 --fallback-echo"')
9780     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9781     ;;
9782   esac
9783
9784 cfgfile="${ofile}T"
9785   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9786   $rm -f "$cfgfile"
9787   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9788 $as_echo "$as_me: creating $ofile" >&6;}
9789
9790   cat <<__EOF__ >> "$cfgfile"
9791 #! $SHELL
9792
9793 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9794 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9795 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9796 #
9797 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9798 # Free Software Foundation, Inc.
9799 #
9800 # This file is part of GNU Libtool:
9801 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9802 #
9803 # This program is free software; you can redistribute it and/or modify
9804 # it under the terms of the GNU General Public License as published by
9805 # the Free Software Foundation; either version 2 of the License, or
9806 # (at your option) any later version.
9807 #
9808 # This program is distributed in the hope that it will be useful, but
9809 # WITHOUT ANY WARRANTY; without even the implied warranty of
9810 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9811 # General Public License for more details.
9812 #
9813 # You should have received a copy of the GNU General Public License
9814 # along with this program; if not, write to the Free Software
9815 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9816 #
9817 # As a special exception to the GNU General Public License, if you
9818 # distribute this file as part of a program that contains a
9819 # configuration script generated by Autoconf, you may include it under
9820 # the same distribution terms that you use for the rest of that program.
9821
9822 # A sed program that does not truncate output.
9823 SED=$lt_SED
9824
9825 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9826 Xsed="$SED -e 1s/^X//"
9827
9828 # The HP-UX ksh and POSIX shell print the target directory to stdout
9829 # if CDPATH is set.
9830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9831
9832 # The names of the tagged configurations supported by this script.
9833 available_tags=
9834
9835 # ### BEGIN LIBTOOL CONFIG
9836
9837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9838
9839 # Shell to use when invoking shell scripts.
9840 SHELL=$lt_SHELL
9841
9842 # Whether or not to build shared libraries.
9843 build_libtool_libs=$enable_shared
9844
9845 # Whether or not to build static libraries.
9846 build_old_libs=$enable_static
9847
9848 # Whether or not to add -lc for building shared libraries.
9849 build_libtool_need_lc=$archive_cmds_need_lc
9850
9851 # Whether or not to disallow shared libs when runtime libs are static
9852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9853
9854 # Whether or not to optimize for fast installation.
9855 fast_install=$enable_fast_install
9856
9857 # The host system.
9858 host_alias=$host_alias
9859 host=$host
9860 host_os=$host_os
9861
9862 # The build system.
9863 build_alias=$build_alias
9864 build=$build
9865 build_os=$build_os
9866
9867 # An echo program that does not interpret backslashes.
9868 echo=$lt_echo
9869
9870 # The archiver.
9871 AR=$lt_AR
9872 AR_FLAGS=$lt_AR_FLAGS
9873
9874 # A C compiler.
9875 LTCC=$lt_LTCC
9876
9877 # LTCC compiler flags.
9878 LTCFLAGS=$lt_LTCFLAGS
9879
9880 # A language-specific compiler.
9881 CC=$lt_compiler
9882
9883 # Is the compiler the GNU C compiler?
9884 with_gcc=$GCC
9885
9886 # An ERE matcher.
9887 EGREP=$lt_EGREP
9888
9889 # The linker used to build libraries.
9890 LD=$lt_LD
9891
9892 # Whether we need hard or soft links.
9893 LN_S=$lt_LN_S
9894
9895 # A BSD-compatible nm program.
9896 NM=$lt_NM
9897
9898 # A symbol stripping program
9899 STRIP=$lt_STRIP
9900
9901 # Used to examine libraries when file_magic_cmd begins "file"
9902 MAGIC_CMD=$MAGIC_CMD
9903
9904 # Used on cygwin: DLL creation program.
9905 DLLTOOL="$DLLTOOL"
9906
9907 # Used on cygwin: object dumper.
9908 OBJDUMP="$OBJDUMP"
9909
9910 # Used on cygwin: assembler.
9911 AS="$AS"
9912
9913 # The name of the directory that contains temporary libtool files.
9914 objdir=$objdir
9915
9916 # How to create reloadable object files.
9917 reload_flag=$lt_reload_flag
9918 reload_cmds=$lt_reload_cmds
9919
9920 # How to pass a linker flag through the compiler.
9921 wl=$lt_lt_prog_compiler_wl
9922
9923 # Object file suffix (normally "o").
9924 objext="$ac_objext"
9925
9926 # Old archive suffix (normally "a").
9927 libext="$libext"
9928
9929 # Shared library suffix (normally ".so").
9930 shrext_cmds='$shrext_cmds'
9931
9932 # Executable file suffix (normally "").
9933 exeext="$exeext"
9934
9935 # Additional compiler flags for building library objects.
9936 pic_flag=$lt_lt_prog_compiler_pic
9937 pic_mode=$pic_mode
9938
9939 # What is the maximum length of a command?
9940 max_cmd_len=$lt_cv_sys_max_cmd_len
9941
9942 # Does compiler simultaneously support -c and -o options?
9943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9944
9945 # Must we lock files when doing compilation?
9946 need_locks=$lt_need_locks
9947
9948 # Do we need the lib prefix for modules?
9949 need_lib_prefix=$need_lib_prefix
9950
9951 # Do we need a version for libraries?
9952 need_version=$need_version
9953
9954 # Whether dlopen is supported.
9955 dlopen_support=$enable_dlopen
9956
9957 # Whether dlopen of programs is supported.
9958 dlopen_self=$enable_dlopen_self
9959
9960 # Whether dlopen of statically linked programs is supported.
9961 dlopen_self_static=$enable_dlopen_self_static
9962
9963 # Compiler flag to prevent dynamic linking.
9964 link_static_flag=$lt_lt_prog_compiler_static
9965
9966 # Compiler flag to turn off builtin functions.
9967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9968
9969 # Compiler flag to allow reflexive dlopens.
9970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9971
9972 # Compiler flag to generate shared objects directly from archives.
9973 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9974
9975 # Compiler flag to generate thread-safe objects.
9976 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9977
9978 # Library versioning type.
9979 version_type=$version_type
9980
9981 # Format of library name prefix.
9982 libname_spec=$lt_libname_spec
9983
9984 # List of archive names.  First name is the real one, the rest are links.
9985 # The last name is the one that the linker finds with -lNAME.
9986 library_names_spec=$lt_library_names_spec
9987
9988 # The coded name of the library, if different from the real name.
9989 soname_spec=$lt_soname_spec
9990
9991 # Commands used to build and install an old-style archive.
9992 RANLIB=$lt_RANLIB
9993 old_archive_cmds=$lt_old_archive_cmds
9994 old_postinstall_cmds=$lt_old_postinstall_cmds
9995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9996
9997 # Create an old-style archive from a shared archive.
9998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9999
10000 # Create a temporary old-style archive to link instead of a shared archive.
10001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10002
10003 # Commands used to build and install a shared archive.
10004 archive_cmds=$lt_archive_cmds
10005 archive_expsym_cmds=$lt_archive_expsym_cmds
10006 postinstall_cmds=$lt_postinstall_cmds
10007 postuninstall_cmds=$lt_postuninstall_cmds
10008
10009 # Commands used to build a loadable module (assumed same as above if empty)
10010 module_cmds=$lt_module_cmds
10011 module_expsym_cmds=$lt_module_expsym_cmds
10012
10013 # Commands to strip libraries.
10014 old_striplib=$lt_old_striplib
10015 striplib=$lt_striplib
10016
10017 # Dependencies to place before the objects being linked to create a
10018 # shared library.
10019 predep_objects=$lt_predep_objects
10020
10021 # Dependencies to place after the objects being linked to create a
10022 # shared library.
10023 postdep_objects=$lt_postdep_objects
10024
10025 # Dependencies to place before the objects being linked to create a
10026 # shared library.
10027 predeps=$lt_predeps
10028
10029 # Dependencies to place after the objects being linked to create a
10030 # shared library.
10031 postdeps=$lt_postdeps
10032
10033 # The library search path used internally by the compiler when linking
10034 # a shared library.
10035 compiler_lib_search_path=$lt_compiler_lib_search_path
10036
10037 # Method to check whether dependent libraries are shared objects.
10038 deplibs_check_method=$lt_deplibs_check_method
10039
10040 # Command to use when deplibs_check_method == file_magic.
10041 file_magic_cmd=$lt_file_magic_cmd
10042
10043 # Flag that allows shared libraries with undefined symbols to be built.
10044 allow_undefined_flag=$lt_allow_undefined_flag
10045
10046 # Flag that forces no undefined symbols.
10047 no_undefined_flag=$lt_no_undefined_flag
10048
10049 # Commands used to finish a libtool library installation in a directory.
10050 finish_cmds=$lt_finish_cmds
10051
10052 # Same as above, but a single script fragment to be evaled but not shown.
10053 finish_eval=$lt_finish_eval
10054
10055 # Take the output of nm and produce a listing of raw symbols and C names.
10056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10057
10058 # Transform the output of nm in a proper C declaration
10059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10060
10061 # Transform the output of nm in a C name address pair
10062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10063
10064 # This is the shared library runtime path variable.
10065 runpath_var=$runpath_var
10066
10067 # This is the shared library path variable.
10068 shlibpath_var=$shlibpath_var
10069
10070 # Is shlibpath searched before the hard-coded library search path?
10071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10072
10073 # How to hardcode a shared library path into an executable.
10074 hardcode_action=$hardcode_action
10075
10076 # Whether we should hardcode library paths into libraries.
10077 hardcode_into_libs=$hardcode_into_libs
10078
10079 # Flag to hardcode \$libdir into a binary during linking.
10080 # This must work even if \$libdir does not exist.
10081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10082
10083 # If ld is used when linking, flag to hardcode \$libdir into
10084 # a binary during linking. This must work even if \$libdir does
10085 # not exist.
10086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10087
10088 # Whether we need a single -rpath flag with a separated argument.
10089 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10090
10091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10092 # resulting binary.
10093 hardcode_direct=$hardcode_direct
10094
10095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10096 # resulting binary.
10097 hardcode_minus_L=$hardcode_minus_L
10098
10099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10100 # the resulting binary.
10101 hardcode_shlibpath_var=$hardcode_shlibpath_var
10102
10103 # Set to yes if building a shared library automatically hardcodes DIR into the library
10104 # and all subsequent libraries and executables linked against it.
10105 hardcode_automatic=$hardcode_automatic
10106
10107 # Variables whose values should be saved in libtool wrapper scripts and
10108 # restored at relink time.
10109 variables_saved_for_relink="$variables_saved_for_relink"
10110
10111 # Whether libtool must link a program against all its dependency libraries.
10112 link_all_deplibs=$link_all_deplibs
10113
10114 # Compile-time system search path for libraries
10115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10116
10117 # Run-time system search path for libraries
10118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10119
10120 # Fix the shell variable \$srcfile for the compiler.
10121 fix_srcfile_path="$fix_srcfile_path"
10122
10123 # Set to yes if exported symbols are required.
10124 always_export_symbols=$always_export_symbols
10125
10126 # The commands to list exported symbols.
10127 export_symbols_cmds=$lt_export_symbols_cmds
10128
10129 # The commands to extract the exported symbol list from a shared archive.
10130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10131
10132 # Symbols that should not be listed in the preloaded symbols.
10133 exclude_expsyms=$lt_exclude_expsyms
10134
10135 # Symbols that must always be exported.
10136 include_expsyms=$lt_include_expsyms
10137
10138 # ### END LIBTOOL CONFIG
10139
10140 __EOF__
10141
10142
10143   case $host_os in
10144   aix3*)
10145     cat <<\EOF >> "$cfgfile"
10146
10147 # AIX sometimes has problems with the GCC collect2 program.  For some
10148 # reason, if we set the COLLECT_NAMES environment variable, the problems
10149 # vanish in a puff of smoke.
10150 if test "X${COLLECT_NAMES+set}" != Xset; then
10151   COLLECT_NAMES=
10152   export COLLECT_NAMES
10153 fi
10154 EOF
10155     ;;
10156   esac
10157
10158   # We use sed instead of cat because bash on DJGPP gets confused if
10159   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10160   # text mode, it properly converts lines to CR/LF.  This bash problem
10161   # is reportedly fixed, but why not run on old versions too?
10162   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10163
10164   mv -f "$cfgfile" "$ofile" || \
10165     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10166   chmod +x "$ofile"
10167
10168 else
10169   # If there is no Makefile yet, we rely on a make rule to execute
10170   # `config.status --recheck' to rerun these tests and create the
10171   # libtool script then.
10172   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10173   if test -f "$ltmain_in"; then
10174     test -f Makefile && make "$ltmain"
10175   fi
10176 fi
10177
10178
10179 ac_ext=c
10180 ac_cpp='$CPP $CPPFLAGS'
10181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10184
10185 CC="$lt_save_CC"
10186
10187
10188 # Check whether --with-tags was given.
10189 if test "${with_tags+set}" = set; then :
10190   withval=$with_tags; tagnames="$withval"
10191 fi
10192
10193
10194 if test -f "$ltmain" && test -n "$tagnames"; then
10195   if test ! -f "${ofile}"; then
10196     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10197 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10198   fi
10199
10200   if test -z "$LTCC"; then
10201     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10202     if test -z "$LTCC"; then
10203       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10204 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10205     else
10206       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10207 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10208     fi
10209   fi
10210   if test -z "$LTCFLAGS"; then
10211     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10212   fi
10213
10214   # Extract list of available tagged configurations in $ofile.
10215   # Note that this assumes the entire list is on one line.
10216   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10217
10218   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10219   for tagname in $tagnames; do
10220     IFS="$lt_save_ifs"
10221     # Check whether tagname contains only valid characters
10222     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10223     "") ;;
10224     *)  as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10225         ;;
10226     esac
10227
10228     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10229     then
10230       as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10231     fi
10232
10233     # Update the list of available tags.
10234     if test -n "$tagname"; then
10235       echo appending configuration tag \"$tagname\" to $ofile
10236
10237       case $tagname in
10238       CXX)
10239         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10240             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10241             (test "X$CXX" != "Xg++"))) ; then
10242           ac_ext=cpp
10243 ac_cpp='$CXXCPP $CPPFLAGS'
10244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10247
10248
10249
10250
10251 archive_cmds_need_lc_CXX=no
10252 allow_undefined_flag_CXX=
10253 always_export_symbols_CXX=no
10254 archive_expsym_cmds_CXX=
10255 export_dynamic_flag_spec_CXX=
10256 hardcode_direct_CXX=no
10257 hardcode_libdir_flag_spec_CXX=
10258 hardcode_libdir_flag_spec_ld_CXX=
10259 hardcode_libdir_separator_CXX=
10260 hardcode_minus_L_CXX=no
10261 hardcode_shlibpath_var_CXX=unsupported
10262 hardcode_automatic_CXX=no
10263 module_cmds_CXX=
10264 module_expsym_cmds_CXX=
10265 link_all_deplibs_CXX=unknown
10266 old_archive_cmds_CXX=$old_archive_cmds
10267 no_undefined_flag_CXX=
10268 whole_archive_flag_spec_CXX=
10269 enable_shared_with_static_runtimes_CXX=no
10270
10271 # Dependencies to place before and after the object being linked:
10272 predep_objects_CXX=
10273 postdep_objects_CXX=
10274 predeps_CXX=
10275 postdeps_CXX=
10276 compiler_lib_search_path_CXX=
10277
10278 # Source file extension for C++ test sources.
10279 ac_ext=cpp
10280
10281 # Object file extension for compiled C++ test sources.
10282 objext=o
10283 objext_CXX=$objext
10284
10285 # Code to be used in simple compile tests
10286 lt_simple_compile_test_code="int some_variable = 0;\n"
10287
10288 # Code to be used in simple link tests
10289 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10290
10291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10292
10293 # If no C compiler was specified, use CC.
10294 LTCC=${LTCC-"$CC"}
10295
10296 # If no C compiler flags were specified, use CFLAGS.
10297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10298
10299 # Allow CC to be a program name with arguments.
10300 compiler=$CC
10301
10302
10303 # save warnings/boilerplate of simple test code
10304 ac_outfile=conftest.$ac_objext
10305 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10307 _lt_compiler_boilerplate=`cat conftest.err`
10308 $rm conftest*
10309
10310 ac_outfile=conftest.$ac_objext
10311 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10313 _lt_linker_boilerplate=`cat conftest.err`
10314 $rm conftest*
10315
10316
10317 # Allow CC to be a program name with arguments.
10318 lt_save_CC=$CC
10319 lt_save_LD=$LD
10320 lt_save_GCC=$GCC
10321 GCC=$GXX
10322 lt_save_with_gnu_ld=$with_gnu_ld
10323 lt_save_path_LD=$lt_cv_path_LD
10324 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10325   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10326 else
10327   $as_unset lt_cv_prog_gnu_ld
10328 fi
10329 if test -n "${lt_cv_path_LDCXX+set}"; then
10330   lt_cv_path_LD=$lt_cv_path_LDCXX
10331 else
10332   $as_unset lt_cv_path_LD
10333 fi
10334 test -z "${LDCXX+set}" || LD=$LDCXX
10335 CC=${CXX-"c++"}
10336 compiler=$CC
10337 compiler_CXX=$CC
10338 for cc_temp in $compiler""; do
10339   case $cc_temp in
10340     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10341     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10342     \-*) ;;
10343     *) break;;
10344   esac
10345 done
10346 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10347
10348
10349 # We don't want -fno-exception wen compiling C++ code, so set the
10350 # no_builtin_flag separately
10351 if test "$GXX" = yes; then
10352   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10353 else
10354   lt_prog_compiler_no_builtin_flag_CXX=
10355 fi
10356
10357 if test "$GXX" = yes; then
10358   # Set up default GNU C++ configuration
10359
10360
10361 # Check whether --with-gnu-ld was given.
10362 if test "${with_gnu_ld+set}" = set; then :
10363   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10364 else
10365   with_gnu_ld=no
10366 fi
10367
10368 ac_prog=ld
10369 if test "$GCC" = yes; then
10370   # Check if gcc -print-prog-name=ld gives a path.
10371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10372 $as_echo_n "checking for ld used by $CC... " >&6; }
10373   case $host in
10374   *-*-mingw*)
10375     # gcc leaves a trailing carriage return which upsets mingw
10376     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10377   *)
10378     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10379   esac
10380   case $ac_prog in
10381     # Accept absolute paths.
10382     [\\/]* | ?:[\\/]*)
10383       re_direlt='/[^/][^/]*/\.\./'
10384       # Canonicalize the pathname of ld
10385       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10386       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10387         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10388       done
10389       test -z "$LD" && LD="$ac_prog"
10390       ;;
10391   "")
10392     # If it fails, then pretend we aren't using GCC.
10393     ac_prog=ld
10394     ;;
10395   *)
10396     # If it is relative, then search for the first ld in PATH.
10397     with_gnu_ld=unknown
10398     ;;
10399   esac
10400 elif test "$with_gnu_ld" = yes; then
10401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10402 $as_echo_n "checking for GNU ld... " >&6; }
10403 else
10404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10405 $as_echo_n "checking for non-GNU ld... " >&6; }
10406 fi
10407 if ${lt_cv_path_LD+:} false; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   if test -z "$LD"; then
10411   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10412   for ac_dir in $PATH; do
10413     IFS="$lt_save_ifs"
10414     test -z "$ac_dir" && ac_dir=.
10415     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10416       lt_cv_path_LD="$ac_dir/$ac_prog"
10417       # Check to see if the program is GNU ld.  I'd rather use --version,
10418       # but apparently some variants of GNU ld only accept -v.
10419       # Break only if it was the GNU/non-GNU ld that we prefer.
10420       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10421       *GNU* | *'with BFD'*)
10422         test "$with_gnu_ld" != no && break
10423         ;;
10424       *)
10425         test "$with_gnu_ld" != yes && break
10426         ;;
10427       esac
10428     fi
10429   done
10430   IFS="$lt_save_ifs"
10431 else
10432   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10433 fi
10434 fi
10435
10436 LD="$lt_cv_path_LD"
10437 if test -n "$LD"; then
10438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10439 $as_echo "$LD" >&6; }
10440 else
10441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10443 fi
10444 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10446 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10447 if ${lt_cv_prog_gnu_ld+:} false; then :
10448   $as_echo_n "(cached) " >&6
10449 else
10450   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10451 case `$LD -v 2>&1 </dev/null` in
10452 *GNU* | *'with BFD'*)
10453   lt_cv_prog_gnu_ld=yes
10454   ;;
10455 *)
10456   lt_cv_prog_gnu_ld=no
10457   ;;
10458 esac
10459 fi
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10461 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10462 with_gnu_ld=$lt_cv_prog_gnu_ld
10463
10464
10465
10466   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10467   # archiving commands below assume that GNU ld is being used.
10468   if test "$with_gnu_ld" = yes; then
10469     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470     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'
10471
10472     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10473     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10474
10475     # If archive_cmds runs LD, not CC, wlarc should be empty
10476     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10477     #     investigate it a little bit more. (MM)
10478     wlarc='${wl}'
10479
10480     # ancient GNU ld didn't support --whole-archive et. al.
10481     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10482         grep 'no-whole-archive' > /dev/null; then
10483       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10484     else
10485       whole_archive_flag_spec_CXX=
10486     fi
10487   else
10488     with_gnu_ld=no
10489     wlarc=
10490
10491     # A generic and very simple default shared library creation
10492     # command for GNU C++ for the case where it uses the native
10493     # linker, instead of GNU ld.  If possible, this setting should
10494     # overridden to take advantage of the native linker features on
10495     # the platform it is being used on.
10496     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10497   fi
10498
10499   # Commands to make compiler produce verbose output that lists
10500   # what "hidden" libraries, object files and flags are used when
10501   # linking a shared library.
10502   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10503
10504 else
10505   GXX=no
10506   with_gnu_ld=no
10507   wlarc=
10508 fi
10509
10510 # PORTME: fill in a description of your system's C++ link characteristics
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10512 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10513 ld_shlibs_CXX=yes
10514 case $host_os in
10515   aix3*)
10516     # FIXME: insert proper C++ library support
10517     ld_shlibs_CXX=no
10518     ;;
10519   aix4* | aix5*)
10520     if test "$host_cpu" = ia64; then
10521       # On IA64, the linker does run time linking by default, so we don't
10522       # have to do anything special.
10523       aix_use_runtimelinking=no
10524       exp_sym_flag='-Bexport'
10525       no_entry_flag=""
10526     else
10527       aix_use_runtimelinking=no
10528
10529       # Test if we are trying to use run time linking or normal
10530       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10531       # need to do runtime linking.
10532       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10533         for ld_flag in $LDFLAGS; do
10534           case $ld_flag in
10535           *-brtl*)
10536             aix_use_runtimelinking=yes
10537             break
10538             ;;
10539           esac
10540         done
10541         ;;
10542       esac
10543
10544       exp_sym_flag='-bexport'
10545       no_entry_flag='-bnoentry'
10546     fi
10547
10548     # When large executables or shared objects are built, AIX ld can
10549     # have problems creating the table of contents.  If linking a library
10550     # or program results in "error TOC overflow" add -mminimal-toc to
10551     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10552     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10553
10554     archive_cmds_CXX=''
10555     hardcode_direct_CXX=yes
10556     hardcode_libdir_separator_CXX=':'
10557     link_all_deplibs_CXX=yes
10558
10559     if test "$GXX" = yes; then
10560       case $host_os in aix4.[012]|aix4.[012].*)
10561       # We only want to do this on AIX 4.2 and lower, the check
10562       # below for broken collect2 doesn't work under 4.3+
10563         collect2name=`${CC} -print-prog-name=collect2`
10564         if test -f "$collect2name" && \
10565            strings "$collect2name" | grep resolve_lib_name >/dev/null
10566         then
10567           # We have reworked collect2
10568           hardcode_direct_CXX=yes
10569         else
10570           # We have old collect2
10571           hardcode_direct_CXX=unsupported
10572           # It fails to find uninstalled libraries when the uninstalled
10573           # path is not listed in the libpath.  Setting hardcode_minus_L
10574           # to unsupported forces relinking
10575           hardcode_minus_L_CXX=yes
10576           hardcode_libdir_flag_spec_CXX='-L$libdir'
10577           hardcode_libdir_separator_CXX=
10578         fi
10579         ;;
10580       esac
10581       shared_flag='-shared'
10582       if test "$aix_use_runtimelinking" = yes; then
10583         shared_flag="$shared_flag "'${wl}-G'
10584       fi
10585     else
10586       # not using gcc
10587       if test "$host_cpu" = ia64; then
10588         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10589         # chokes on -Wl,-G. The following line is correct:
10590         shared_flag='-G'
10591       else
10592         if test "$aix_use_runtimelinking" = yes; then
10593           shared_flag='${wl}-G'
10594         else
10595           shared_flag='${wl}-bM:SRE'
10596         fi
10597       fi
10598     fi
10599
10600     # It seems that -bexpall does not export symbols beginning with
10601     # underscore (_), so it is better to generate a list of symbols to export.
10602     always_export_symbols_CXX=yes
10603     if test "$aix_use_runtimelinking" = yes; then
10604       # Warning - without using the other runtime loading flags (-brtl),
10605       # -berok will link without error, but may produce a broken library.
10606       allow_undefined_flag_CXX='-berok'
10607       # Determine the default libpath from the value encoded in an empty executable.
10608       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h.  */
10610
10611 int
10612 main ()
10613 {
10614
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 if ac_fn_cxx_try_link "$LINENO"; then :
10620
10621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10622 }'`
10623 # Check for a 64-bit object if we didn't find anything.
10624 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; }
10625 }'`; fi
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext \
10628     conftest$ac_exeext conftest.$ac_ext
10629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10630
10631       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10632
10633       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10634      else
10635       if test "$host_cpu" = ia64; then
10636         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10637         allow_undefined_flag_CXX="-z nodefs"
10638         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10639       else
10640         # Determine the default libpath from the value encoded in an empty executable.
10641         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h.  */
10643
10644 int
10645 main ()
10646 {
10647
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_cxx_try_link "$LINENO"; then :
10653
10654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10655 }'`
10656 # Check for a 64-bit object if we didn't find anything.
10657 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; }
10658 }'`; fi
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext \
10661     conftest$ac_exeext conftest.$ac_ext
10662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10663
10664         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10665         # Warning - without using the other run time loading flags,
10666         # -berok will link without error, but may produce a broken library.
10667         no_undefined_flag_CXX=' ${wl}-bernotok'
10668         allow_undefined_flag_CXX=' ${wl}-berok'
10669         # Exported symbols can be pulled into shared objects from archives
10670         whole_archive_flag_spec_CXX='$convenience'
10671         archive_cmds_need_lc_CXX=yes
10672         # This is similar to how AIX traditionally builds its shared libraries.
10673         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10674       fi
10675     fi
10676     ;;
10677
10678   beos*)
10679     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10680       allow_undefined_flag_CXX=unsupported
10681       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10682       # support --undefined.  This deserves some investigation.  FIXME
10683       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10684     else
10685       ld_shlibs_CXX=no
10686     fi
10687     ;;
10688
10689   chorus*)
10690     case $cc_basename in
10691       *)
10692         # FIXME: insert proper C++ library support
10693         ld_shlibs_CXX=no
10694         ;;
10695     esac
10696     ;;
10697
10698   cygwin* | mingw* | pw32*)
10699     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10700     # as there is no search path for DLLs.
10701     hardcode_libdir_flag_spec_CXX='-L$libdir'
10702     allow_undefined_flag_CXX=unsupported
10703     always_export_symbols_CXX=no
10704     enable_shared_with_static_runtimes_CXX=yes
10705
10706     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10707       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10708       # If the export-symbols file already is a .def file (1st line
10709       # is EXPORTS), use it as is; otherwise, prepend...
10710       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10711         cp $export_symbols $output_objdir/$soname.def;
10712       else
10713         echo EXPORTS > $output_objdir/$soname.def;
10714         cat $export_symbols >> $output_objdir/$soname.def;
10715       fi~
10716       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10717     else
10718       ld_shlibs_CXX=no
10719     fi
10720   ;;
10721       darwin* | rhapsody*)
10722         case $host_os in
10723         rhapsody* | darwin1.[012])
10724          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10725          ;;
10726        *) # Darwin 1.3 on
10727          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10728            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10729          else
10730            case ${MACOSX_DEPLOYMENT_TARGET} in
10731              10.[012])
10732                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10733                ;;
10734              10.*)
10735                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10736                ;;
10737            esac
10738          fi
10739          ;;
10740         esac
10741       archive_cmds_need_lc_CXX=no
10742       hardcode_direct_CXX=no
10743       hardcode_automatic_CXX=yes
10744       hardcode_shlibpath_var_CXX=unsupported
10745       whole_archive_flag_spec_CXX=''
10746       link_all_deplibs_CXX=yes
10747
10748     if test "$GXX" = yes ; then
10749       lt_int_apple_cc_single_mod=no
10750       output_verbose_link_cmd='echo'
10751       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10752        lt_int_apple_cc_single_mod=yes
10753       fi
10754       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10755        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10756       else
10757           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10758         fi
10759         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10760         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10761           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10762             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}'
10763           else
10764             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10765           fi
10766             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}'
10767       else
10768       case $cc_basename in
10769         xlc*)
10770          output_verbose_link_cmd='echo'
10771           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10772           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10773           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10774           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10775           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}'
10776           ;;
10777        *)
10778          ld_shlibs_CXX=no
10779           ;;
10780       esac
10781       fi
10782         ;;
10783
10784   dgux*)
10785     case $cc_basename in
10786       ec++*)
10787         # FIXME: insert proper C++ library support
10788         ld_shlibs_CXX=no
10789         ;;
10790       ghcx*)
10791         # Green Hills C++ Compiler
10792         # FIXME: insert proper C++ library support
10793         ld_shlibs_CXX=no
10794         ;;
10795       *)
10796         # FIXME: insert proper C++ library support
10797         ld_shlibs_CXX=no
10798         ;;
10799     esac
10800     ;;
10801   freebsd[12]*)
10802     # C++ shared libraries reported to be fairly broken before switch to ELF
10803     ld_shlibs_CXX=no
10804     ;;
10805   freebsd-elf*)
10806     archive_cmds_need_lc_CXX=no
10807     ;;
10808   freebsd* | kfreebsd*-gnu | dragonfly*)
10809     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10810     # conventions
10811     ld_shlibs_CXX=yes
10812     ;;
10813   gnu*)
10814     ;;
10815   hpux9*)
10816     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10817     hardcode_libdir_separator_CXX=:
10818     export_dynamic_flag_spec_CXX='${wl}-E'
10819     hardcode_direct_CXX=yes
10820     hardcode_minus_L_CXX=yes # Not in the search PATH,
10821                                 # but as the default
10822                                 # location of the library.
10823
10824     case $cc_basename in
10825     CC*)
10826       # FIXME: insert proper C++ library support
10827       ld_shlibs_CXX=no
10828       ;;
10829     aCC*)
10830       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'
10831       # Commands to make compiler produce verbose output that lists
10832       # what "hidden" libraries, object files and flags are used when
10833       # linking a shared library.
10834       #
10835       # There doesn't appear to be a way to prevent this compiler from
10836       # explicitly linking system object files so we need to strip them
10837       # from the output so that they don't get included in the library
10838       # dependencies.
10839       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'
10840       ;;
10841     *)
10842       if test "$GXX" = yes; then
10843         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'
10844       else
10845         # FIXME: insert proper C++ library support
10846         ld_shlibs_CXX=no
10847       fi
10848       ;;
10849     esac
10850     ;;
10851   hpux10*|hpux11*)
10852     if test $with_gnu_ld = no; then
10853       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10854       hardcode_libdir_separator_CXX=:
10855
10856       case $host_cpu in
10857       hppa*64*|ia64*)
10858         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10859         ;;
10860       *)
10861         export_dynamic_flag_spec_CXX='${wl}-E'
10862         ;;
10863       esac
10864     fi
10865     case $host_cpu in
10866     hppa*64*|ia64*)
10867       hardcode_direct_CXX=no
10868       hardcode_shlibpath_var_CXX=no
10869       ;;
10870     *)
10871       hardcode_direct_CXX=yes
10872       hardcode_minus_L_CXX=yes # Not in the search PATH,
10873                                               # but as the default
10874                                               # location of the library.
10875       ;;
10876     esac
10877
10878     case $cc_basename in
10879       CC*)
10880         # FIXME: insert proper C++ library support
10881         ld_shlibs_CXX=no
10882         ;;
10883       aCC*)
10884         case $host_cpu in
10885         hppa*64*)
10886           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10887           ;;
10888         ia64*)
10889           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10890           ;;
10891         *)
10892           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10893           ;;
10894         esac
10895         # Commands to make compiler produce verbose output that lists
10896         # what "hidden" libraries, object files and flags are used when
10897         # linking a shared library.
10898         #
10899         # There doesn't appear to be a way to prevent this compiler from
10900         # explicitly linking system object files so we need to strip them
10901         # from the output so that they don't get included in the library
10902         # dependencies.
10903         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'
10904         ;;
10905       *)
10906         if test "$GXX" = yes; then
10907           if test $with_gnu_ld = no; then
10908             case $host_cpu in
10909             hppa*64*)
10910               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10911               ;;
10912             ia64*)
10913               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10914               ;;
10915             *)
10916               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'
10917               ;;
10918             esac
10919           fi
10920         else
10921           # FIXME: insert proper C++ library support
10922           ld_shlibs_CXX=no
10923         fi
10924         ;;
10925     esac
10926     ;;
10927   interix3*)
10928     hardcode_direct_CXX=no
10929     hardcode_shlibpath_var_CXX=no
10930     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10931     export_dynamic_flag_spec_CXX='${wl}-E'
10932     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10933     # Instead, shared libraries are loaded at an image base (0x10000000 by
10934     # default) and relocated if they conflict, which is a slow very memory
10935     # consuming and fragmenting process.  To avoid this, we pick a random,
10936     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10937     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10938     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10939     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10940     ;;
10941   irix5* | irix6*)
10942     case $cc_basename in
10943       CC*)
10944         # SGI C++
10945         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 ${output_objdir}/so_locations -o $lib'
10946
10947         # Archives containing C++ object files must be created using
10948         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10949         # necessary to make sure instantiated templates are included
10950         # in the archive.
10951         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10952         ;;
10953       *)
10954         if test "$GXX" = yes; then
10955           if test "$with_gnu_ld" = no; then
10956             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}${output_objdir}/so_locations -o $lib'
10957           else
10958             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'
10959           fi
10960         fi
10961         link_all_deplibs_CXX=yes
10962         ;;
10963     esac
10964     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10965     hardcode_libdir_separator_CXX=:
10966     ;;
10967   linux*)
10968     case $cc_basename in
10969       KCC*)
10970         # Kuck and Associates, Inc. (KAI) C++ Compiler
10971
10972         # KCC will only create a shared library if the output file
10973         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10974         # to its proper name (with version) after linking.
10975         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'
10976         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'
10977         # Commands to make compiler produce verbose output that lists
10978         # what "hidden" libraries, object files and flags are used when
10979         # linking a shared library.
10980         #
10981         # There doesn't appear to be a way to prevent this compiler from
10982         # explicitly linking system object files so we need to strip them
10983         # from the output so that they don't get included in the library
10984         # dependencies.
10985         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'
10986
10987         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10988         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10989
10990         # Archives containing C++ object files must be created using
10991         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10992         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10993         ;;
10994       icpc*)
10995         # Intel C++
10996         with_gnu_ld=yes
10997         # version 8.0 and above of icpc choke on multiply defined symbols
10998         # if we add $predep_objects and $postdep_objects, however 7.1 and
10999         # earlier do not add the objects themselves.
11000         case `$CC -V 2>&1` in
11001         *"Version 7."*)
11002           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11003           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'
11004           ;;
11005         *)  # Version 8.0 or newer
11006           tmp_idyn=
11007           case $host_cpu in
11008             ia64*) tmp_idyn=' -i_dynamic';;
11009           esac
11010           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11011           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11012           ;;
11013         esac
11014         archive_cmds_need_lc_CXX=no
11015         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11016         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11017         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11018         ;;
11019       pgCC*)
11020         # Portland Group C++ compiler
11021         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11022         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11023
11024         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11025         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11026         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11027         ;;
11028       cxx*)
11029         # Compaq C++
11030         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11031         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'
11032
11033         runpath_var=LD_RUN_PATH
11034         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11035         hardcode_libdir_separator_CXX=:
11036
11037         # Commands to make compiler produce verbose output that lists
11038         # what "hidden" libraries, object files and flags are used when
11039         # linking a shared library.
11040         #
11041         # There doesn't appear to be a way to prevent this compiler from
11042         # explicitly linking system object files so we need to strip them
11043         # from the output so that they don't get included in the library
11044         # dependencies.
11045         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'
11046         ;;
11047     esac
11048     ;;
11049   lynxos*)
11050     # FIXME: insert proper C++ library support
11051     ld_shlibs_CXX=no
11052     ;;
11053   m88k*)
11054     # FIXME: insert proper C++ library support
11055     ld_shlibs_CXX=no
11056     ;;
11057   mvs*)
11058     case $cc_basename in
11059       cxx*)
11060         # FIXME: insert proper C++ library support
11061         ld_shlibs_CXX=no
11062         ;;
11063       *)
11064         # FIXME: insert proper C++ library support
11065         ld_shlibs_CXX=no
11066         ;;
11067     esac
11068     ;;
11069   netbsd*)
11070     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11071       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11072       wlarc=
11073       hardcode_libdir_flag_spec_CXX='-R$libdir'
11074       hardcode_direct_CXX=yes
11075       hardcode_shlibpath_var_CXX=no
11076     fi
11077     # Workaround some broken pre-1.5 toolchains
11078     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11079     ;;
11080   openbsd2*)
11081     # C++ shared libraries are fairly broken
11082     ld_shlibs_CXX=no
11083     ;;
11084   openbsd*)
11085     hardcode_direct_CXX=yes
11086     hardcode_shlibpath_var_CXX=no
11087     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11088     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11089     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11090       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11091       export_dynamic_flag_spec_CXX='${wl}-E'
11092       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11093     fi
11094     output_verbose_link_cmd='echo'
11095     ;;
11096   osf3*)
11097     case $cc_basename in
11098       KCC*)
11099         # Kuck and Associates, Inc. (KAI) C++ Compiler
11100
11101         # KCC will only create a shared library if the output file
11102         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11103         # to its proper name (with version) after linking.
11104         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'
11105
11106         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11107         hardcode_libdir_separator_CXX=:
11108
11109         # Archives containing C++ object files must be created using
11110         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11111         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11112
11113         ;;
11114       RCC*)
11115         # Rational C++ 2.4.1
11116         # FIXME: insert proper C++ library support
11117         ld_shlibs_CXX=no
11118         ;;
11119       cxx*)
11120         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11121         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 ${output_objdir}/so_locations -o $lib'
11122
11123         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11124         hardcode_libdir_separator_CXX=:
11125
11126         # Commands to make compiler produce verbose output that lists
11127         # what "hidden" libraries, object files and flags are used when
11128         # linking a shared library.
11129         #
11130         # There doesn't appear to be a way to prevent this compiler from
11131         # explicitly linking system object files so we need to strip them
11132         # from the output so that they don't get included in the library
11133         # dependencies.
11134         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'
11135         ;;
11136       *)
11137         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11138           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11139           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}${output_objdir}/so_locations -o $lib'
11140
11141           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11142           hardcode_libdir_separator_CXX=:
11143
11144           # Commands to make compiler produce verbose output that lists
11145           # what "hidden" libraries, object files and flags are used when
11146           # linking a shared library.
11147           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11148
11149         else
11150           # FIXME: insert proper C++ library support
11151           ld_shlibs_CXX=no
11152         fi
11153         ;;
11154     esac
11155     ;;
11156   osf4* | osf5*)
11157     case $cc_basename in
11158       KCC*)
11159         # Kuck and Associates, Inc. (KAI) C++ Compiler
11160
11161         # KCC will only create a shared library if the output file
11162         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11163         # to its proper name (with version) after linking.
11164         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'
11165
11166         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11167         hardcode_libdir_separator_CXX=:
11168
11169         # Archives containing C++ object files must be created using
11170         # the KAI C++ compiler.
11171         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11172         ;;
11173       RCC*)
11174         # Rational C++ 2.4.1
11175         # FIXME: insert proper C++ library support
11176         ld_shlibs_CXX=no
11177         ;;
11178       cxx*)
11179         allow_undefined_flag_CXX=' -expect_unresolved \*'
11180         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 ${output_objdir}/so_locations -o $lib'
11181         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11182           echo "-hidden">> $lib.exp~
11183           $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 ${output_objdir}/so_locations -o $lib~
11184           $rm $lib.exp'
11185
11186         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11187         hardcode_libdir_separator_CXX=:
11188
11189         # Commands to make compiler produce verbose output that lists
11190         # what "hidden" libraries, object files and flags are used when
11191         # linking a shared library.
11192         #
11193         # There doesn't appear to be a way to prevent this compiler from
11194         # explicitly linking system object files so we need to strip them
11195         # from the output so that they don't get included in the library
11196         # dependencies.
11197         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'
11198         ;;
11199       *)
11200         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11201           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11202          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}${output_objdir}/so_locations -o $lib'
11203
11204           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11205           hardcode_libdir_separator_CXX=:
11206
11207           # Commands to make compiler produce verbose output that lists
11208           # what "hidden" libraries, object files and flags are used when
11209           # linking a shared library.
11210           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11211
11212         else
11213           # FIXME: insert proper C++ library support
11214           ld_shlibs_CXX=no
11215         fi
11216         ;;
11217     esac
11218     ;;
11219   psos*)
11220     # FIXME: insert proper C++ library support
11221     ld_shlibs_CXX=no
11222     ;;
11223   sunos4*)
11224     case $cc_basename in
11225       CC*)
11226         # Sun C++ 4.x
11227         # FIXME: insert proper C++ library support
11228         ld_shlibs_CXX=no
11229         ;;
11230       lcc*)
11231         # Lucid
11232         # FIXME: insert proper C++ library support
11233         ld_shlibs_CXX=no
11234         ;;
11235       *)
11236         # FIXME: insert proper C++ library support
11237         ld_shlibs_CXX=no
11238         ;;
11239     esac
11240     ;;
11241   solaris*)
11242     case $cc_basename in
11243       CC*)
11244         # Sun C++ 4.2, 5.x and Centerline C++
11245         archive_cmds_need_lc_CXX=yes
11246         no_undefined_flag_CXX=' -zdefs'
11247         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11248         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11249         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11250
11251         hardcode_libdir_flag_spec_CXX='-R$libdir'
11252         hardcode_shlibpath_var_CXX=no
11253         case $host_os in
11254           solaris2.[0-5] | solaris2.[0-5].*) ;;
11255           *)
11256             # The C++ compiler is used as linker so we must use $wl
11257             # flag to pass the commands to the underlying system
11258             # linker. We must also pass each convience library through
11259             # to the system linker between allextract/defaultextract.
11260             # The C++ compiler will combine linker options so we
11261             # cannot just pass the convience library names through
11262             # without $wl.
11263             # Supported since Solaris 2.6 (maybe 2.5.1?)
11264             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11265             ;;
11266         esac
11267         link_all_deplibs_CXX=yes
11268
11269         output_verbose_link_cmd='echo'
11270
11271         # Archives containing C++ object files must be created using
11272         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11273         # necessary to make sure instantiated templates are included
11274         # in the archive.
11275         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11276         ;;
11277       gcx*)
11278         # Green Hills C++ Compiler
11279         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11280
11281         # The C++ compiler must be used to create the archive.
11282         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11283         ;;
11284       *)
11285         # GNU C++ compiler with Solaris linker
11286         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11287           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11288           if $CC --version | grep -v '^2\.7' > /dev/null; then
11289             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11290             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11291                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11292
11293             # Commands to make compiler produce verbose output that lists
11294             # what "hidden" libraries, object files and flags are used when
11295             # linking a shared library.
11296             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11297           else
11298             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11299             # platform.
11300             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11301             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11302                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11303
11304             # Commands to make compiler produce verbose output that lists
11305             # what "hidden" libraries, object files and flags are used when
11306             # linking a shared library.
11307             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11308           fi
11309
11310           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11311         fi
11312         ;;
11313     esac
11314     ;;
11315   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11316     no_undefined_flag_CXX='${wl}-z,text'
11317     archive_cmds_need_lc_CXX=no
11318     hardcode_shlibpath_var_CXX=no
11319     runpath_var='LD_RUN_PATH'
11320
11321     case $cc_basename in
11322       CC*)
11323         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11324         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11325         ;;
11326       *)
11327         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329         ;;
11330     esac
11331     ;;
11332   sysv5* | sco3.2v5* | sco5v6*)
11333     # Note: We can NOT use -z defs as we might desire, because we do not
11334     # link with -lc, and that would cause any symbols used from libc to
11335     # always be unresolved, which means just about no library would
11336     # ever link correctly.  If we're not using GNU ld we use -z text
11337     # though, which does catch some bad symbols but isn't as heavy-handed
11338     # as -z defs.
11339     # For security reasons, it is highly recommended that you always
11340     # use absolute paths for naming shared libraries, and exclude the
11341     # DT_RUNPATH tag from executables and libraries.  But doing so
11342     # requires that you compile everything twice, which is a pain.
11343     # So that behaviour is only enabled if SCOABSPATH is set to a
11344     # non-empty value in the environment.  Most likely only useful for
11345     # creating official distributions of packages.
11346     # This is a hack until libtool officially supports absolute path
11347     # names for shared libraries.
11348     no_undefined_flag_CXX='${wl}-z,text'
11349     allow_undefined_flag_CXX='${wl}-z,nodefs'
11350     archive_cmds_need_lc_CXX=no
11351     hardcode_shlibpath_var_CXX=no
11352     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11353     hardcode_libdir_separator_CXX=':'
11354     link_all_deplibs_CXX=yes
11355     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11356     runpath_var='LD_RUN_PATH'
11357
11358     case $cc_basename in
11359       CC*)
11360         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11361         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11362         ;;
11363       *)
11364         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11365         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11366         ;;
11367     esac
11368     ;;
11369   tandem*)
11370     case $cc_basename in
11371       NCC*)
11372         # NonStop-UX NCC 3.20
11373         # FIXME: insert proper C++ library support
11374         ld_shlibs_CXX=no
11375         ;;
11376       *)
11377         # FIXME: insert proper C++ library support
11378         ld_shlibs_CXX=no
11379         ;;
11380     esac
11381     ;;
11382   vxworks*)
11383     # FIXME: insert proper C++ library support
11384     ld_shlibs_CXX=no
11385     ;;
11386   *)
11387     # FIXME: insert proper C++ library support
11388     ld_shlibs_CXX=no
11389     ;;
11390 esac
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11392 $as_echo "$ld_shlibs_CXX" >&6; }
11393 test "$ld_shlibs_CXX" = no && can_build_shared=no
11394
11395 GCC_CXX="$GXX"
11396 LD_CXX="$LD"
11397
11398
11399 cat > conftest.$ac_ext <<EOF
11400 class Foo
11401 {
11402 public:
11403   Foo (void) { a = 0; }
11404 private:
11405   int a;
11406 };
11407 EOF
11408
11409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11410   (eval $ac_compile) 2>&5
11411   ac_status=$?
11412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11413   test $ac_status = 0; }; then
11414   # Parse the compiler output and extract the necessary
11415   # objects, libraries and library flags.
11416
11417   # Sentinel used to keep track of whether or not we are before
11418   # the conftest object file.
11419   pre_test_object_deps_done=no
11420
11421   # The `*' in the case matches for architectures that use `case' in
11422   # $output_verbose_cmd can trigger glob expansion during the loop
11423   # eval without this substitution.
11424   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11425
11426   for p in `eval $output_verbose_link_cmd`; do
11427     case $p in
11428
11429     -L* | -R* | -l*)
11430        # Some compilers place space between "-{L,R}" and the path.
11431        # Remove the space.
11432        if test $p = "-L" \
11433           || test $p = "-R"; then
11434          prev=$p
11435          continue
11436        else
11437          prev=
11438        fi
11439
11440        if test "$pre_test_object_deps_done" = no; then
11441          case $p in
11442          -L* | -R*)
11443            # Internal compiler library paths should come after those
11444            # provided the user.  The postdeps already come after the
11445            # user supplied libs so there is no need to process them.
11446            if test -z "$compiler_lib_search_path_CXX"; then
11447              compiler_lib_search_path_CXX="${prev}${p}"
11448            else
11449              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11450            fi
11451            ;;
11452          # The "-l" case would never come before the object being
11453          # linked, so don't bother handling this case.
11454          esac
11455        else
11456          if test -z "$postdeps_CXX"; then
11457            postdeps_CXX="${prev}${p}"
11458          else
11459            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11460          fi
11461        fi
11462        ;;
11463
11464     *.$objext)
11465        # This assumes that the test object file only shows up
11466        # once in the compiler output.
11467        if test "$p" = "conftest.$objext"; then
11468          pre_test_object_deps_done=yes
11469          continue
11470        fi
11471
11472        if test "$pre_test_object_deps_done" = no; then
11473          if test -z "$predep_objects_CXX"; then
11474            predep_objects_CXX="$p"
11475          else
11476            predep_objects_CXX="$predep_objects_CXX $p"
11477          fi
11478        else
11479          if test -z "$postdep_objects_CXX"; then
11480            postdep_objects_CXX="$p"
11481          else
11482            postdep_objects_CXX="$postdep_objects_CXX $p"
11483          fi
11484        fi
11485        ;;
11486
11487     *) ;; # Ignore the rest.
11488
11489     esac
11490   done
11491
11492   # Clean up.
11493   rm -f a.out a.exe
11494 else
11495   echo "libtool.m4: error: problem compiling CXX test program"
11496 fi
11497
11498 $rm -f confest.$objext
11499
11500 # PORTME: override above test on systems where it is broken
11501 case $host_os in
11502 interix3*)
11503   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11504   # hack all around it, let's just trust "g++" to DTRT.
11505   predep_objects_CXX=
11506   postdep_objects_CXX=
11507   postdeps_CXX=
11508   ;;
11509
11510 solaris*)
11511   case $cc_basename in
11512   CC*)
11513     # Adding this requires a known-good setup of shared libraries for
11514     # Sun compiler versions before 5.6, else PIC objects from an old
11515     # archive will be linked into the output, leading to subtle bugs.
11516     postdeps_CXX='-lCstd -lCrun'
11517     ;;
11518   esac
11519   ;;
11520 esac
11521
11522
11523 case " $postdeps_CXX " in
11524 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11525 esac
11526
11527 lt_prog_compiler_wl_CXX=
11528 lt_prog_compiler_pic_CXX=
11529 lt_prog_compiler_static_CXX=
11530
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11532 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11533
11534   # C++ specific cases for pic, static, wl, etc.
11535   if test "$GXX" = yes; then
11536     lt_prog_compiler_wl_CXX='-Wl,'
11537     lt_prog_compiler_static_CXX='-static'
11538
11539     case $host_os in
11540     aix*)
11541       # All AIX code is PIC.
11542       if test "$host_cpu" = ia64; then
11543         # AIX 5 now supports IA64 processor
11544         lt_prog_compiler_static_CXX='-Bstatic'
11545       fi
11546       ;;
11547     amigaos*)
11548       # FIXME: we need at least 68020 code to build shared libraries, but
11549       # adding the `-m68020' flag to GCC prevents building anything better,
11550       # like `-m68040'.
11551       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11552       ;;
11553     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11554       # PIC is the default for these OSes.
11555       ;;
11556     mingw* | os2* | pw32*)
11557       # This hack is so that the source file can tell whether it is being
11558       # built for inclusion in a dll (and should export symbols for example).
11559       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11560       ;;
11561     darwin* | rhapsody*)
11562       # PIC is the default on this platform
11563       # Common symbols not allowed in MH_DYLIB files
11564       lt_prog_compiler_pic_CXX='-fno-common'
11565       ;;
11566     *djgpp*)
11567       # DJGPP does not support shared libraries at all
11568       lt_prog_compiler_pic_CXX=
11569       ;;
11570     interix3*)
11571       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11572       # Instead, we relocate shared libraries at runtime.
11573       ;;
11574     sysv4*MP*)
11575       if test -d /usr/nec; then
11576         lt_prog_compiler_pic_CXX=-Kconform_pic
11577       fi
11578       ;;
11579     hpux*)
11580       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11581       # not for PA HP-UX.
11582       case $host_cpu in
11583       hppa*64*|ia64*)
11584         ;;
11585       *)
11586         lt_prog_compiler_pic_CXX='-fPIC'
11587         ;;
11588       esac
11589       ;;
11590     *)
11591       lt_prog_compiler_pic_CXX='-fPIC'
11592       ;;
11593     esac
11594   else
11595     case $host_os in
11596       aix4* | aix5*)
11597         # All AIX code is PIC.
11598         if test "$host_cpu" = ia64; then
11599           # AIX 5 now supports IA64 processor
11600           lt_prog_compiler_static_CXX='-Bstatic'
11601         else
11602           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11603         fi
11604         ;;
11605       chorus*)
11606         case $cc_basename in
11607         cxch68*)
11608           # Green Hills C++ Compiler
11609           # _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"
11610           ;;
11611         esac
11612         ;;
11613        darwin*)
11614          # PIC is the default on this platform
11615          # Common symbols not allowed in MH_DYLIB files
11616          case $cc_basename in
11617            xlc*)
11618            lt_prog_compiler_pic_CXX='-qnocommon'
11619            lt_prog_compiler_wl_CXX='-Wl,'
11620            ;;
11621          esac
11622        ;;
11623       dgux*)
11624         case $cc_basename in
11625           ec++*)
11626             lt_prog_compiler_pic_CXX='-KPIC'
11627             ;;
11628           ghcx*)
11629             # Green Hills C++ Compiler
11630             lt_prog_compiler_pic_CXX='-pic'
11631             ;;
11632           *)
11633             ;;
11634         esac
11635         ;;
11636       freebsd* | kfreebsd*-gnu | dragonfly*)
11637         # FreeBSD uses GNU C++
11638         ;;
11639       hpux9* | hpux10* | hpux11*)
11640         case $cc_basename in
11641           CC*)
11642             lt_prog_compiler_wl_CXX='-Wl,'
11643             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11644             if test "$host_cpu" != ia64; then
11645               lt_prog_compiler_pic_CXX='+Z'
11646             fi
11647             ;;
11648           aCC*)
11649             lt_prog_compiler_wl_CXX='-Wl,'
11650             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11651             case $host_cpu in
11652             hppa*64*|ia64*)
11653               # +Z the default
11654               ;;
11655             *)
11656               lt_prog_compiler_pic_CXX='+Z'
11657               ;;
11658             esac
11659             ;;
11660           *)
11661             ;;
11662         esac
11663         ;;
11664       interix*)
11665         # This is c89, which is MS Visual C++ (no shared libs)
11666         # Anyone wants to do a port?
11667         ;;
11668       irix5* | irix6* | nonstopux*)
11669         case $cc_basename in
11670           CC*)
11671             lt_prog_compiler_wl_CXX='-Wl,'
11672             lt_prog_compiler_static_CXX='-non_shared'
11673             # CC pic flag -KPIC is the default.
11674             ;;
11675           *)
11676             ;;
11677         esac
11678         ;;
11679       linux*)
11680         case $cc_basename in
11681           KCC*)
11682             # KAI C++ Compiler
11683             lt_prog_compiler_wl_CXX='--backend -Wl,'
11684             lt_prog_compiler_pic_CXX='-fPIC'
11685             ;;
11686           icpc* | ecpc*)
11687             # Intel C++
11688             lt_prog_compiler_wl_CXX='-Wl,'
11689             lt_prog_compiler_pic_CXX='-KPIC'
11690             lt_prog_compiler_static_CXX='-static'
11691             ;;
11692           pgCC*)
11693             # Portland Group C++ compiler.
11694             lt_prog_compiler_wl_CXX='-Wl,'
11695             lt_prog_compiler_pic_CXX='-fpic'
11696             lt_prog_compiler_static_CXX='-Bstatic'
11697             ;;
11698           cxx*)
11699             # Compaq C++
11700             # Make sure the PIC flag is empty.  It appears that all Alpha
11701             # Linux and Compaq Tru64 Unix objects are PIC.
11702             lt_prog_compiler_pic_CXX=
11703             lt_prog_compiler_static_CXX='-non_shared'
11704             ;;
11705           *)
11706             ;;
11707         esac
11708         ;;
11709       lynxos*)
11710         ;;
11711       m88k*)
11712         ;;
11713       mvs*)
11714         case $cc_basename in
11715           cxx*)
11716             lt_prog_compiler_pic_CXX='-W c,exportall'
11717             ;;
11718           *)
11719             ;;
11720         esac
11721         ;;
11722       netbsd*)
11723         ;;
11724       osf3* | osf4* | osf5*)
11725         case $cc_basename in
11726           KCC*)
11727             lt_prog_compiler_wl_CXX='--backend -Wl,'
11728             ;;
11729           RCC*)
11730             # Rational C++ 2.4.1
11731             lt_prog_compiler_pic_CXX='-pic'
11732             ;;
11733           cxx*)
11734             # Digital/Compaq C++
11735             lt_prog_compiler_wl_CXX='-Wl,'
11736             # Make sure the PIC flag is empty.  It appears that all Alpha
11737             # Linux and Compaq Tru64 Unix objects are PIC.
11738             lt_prog_compiler_pic_CXX=
11739             lt_prog_compiler_static_CXX='-non_shared'
11740             ;;
11741           *)
11742             ;;
11743         esac
11744         ;;
11745       psos*)
11746         ;;
11747       solaris*)
11748         case $cc_basename in
11749           CC*)
11750             # Sun C++ 4.2, 5.x and Centerline C++
11751             lt_prog_compiler_pic_CXX='-KPIC'
11752             lt_prog_compiler_static_CXX='-Bstatic'
11753             lt_prog_compiler_wl_CXX='-Qoption ld '
11754             ;;
11755           gcx*)
11756             # Green Hills C++ Compiler
11757             lt_prog_compiler_pic_CXX='-PIC'
11758             ;;
11759           *)
11760             ;;
11761         esac
11762         ;;
11763       sunos4*)
11764         case $cc_basename in
11765           CC*)
11766             # Sun C++ 4.x
11767             lt_prog_compiler_pic_CXX='-pic'
11768             lt_prog_compiler_static_CXX='-Bstatic'
11769             ;;
11770           lcc*)
11771             # Lucid
11772             lt_prog_compiler_pic_CXX='-pic'
11773             ;;
11774           *)
11775             ;;
11776         esac
11777         ;;
11778       tandem*)
11779         case $cc_basename in
11780           NCC*)
11781             # NonStop-UX NCC 3.20
11782             lt_prog_compiler_pic_CXX='-KPIC'
11783             ;;
11784           *)
11785             ;;
11786         esac
11787         ;;
11788       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11789         case $cc_basename in
11790           CC*)
11791             lt_prog_compiler_wl_CXX='-Wl,'
11792             lt_prog_compiler_pic_CXX='-KPIC'
11793             lt_prog_compiler_static_CXX='-Bstatic'
11794             ;;
11795         esac
11796         ;;
11797       vxworks*)
11798         ;;
11799       *)
11800         lt_prog_compiler_can_build_shared_CXX=no
11801         ;;
11802     esac
11803   fi
11804
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11806 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11807
11808 #
11809 # Check to make sure the PIC flag actually works.
11810 #
11811 if test -n "$lt_prog_compiler_pic_CXX"; then
11812
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11814 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11815 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11816   $as_echo_n "(cached) " >&6
11817 else
11818   lt_prog_compiler_pic_works_CXX=no
11819   ac_outfile=conftest.$ac_objext
11820    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11821    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11822    # Insert the option either (1) after the last *FLAGS variable, or
11823    # (2) before a word containing "conftest.", or (3) at the end.
11824    # Note that $ac_compile itself does not contain backslashes and begins
11825    # with a dollar sign (not a hyphen), so the echo should work correctly.
11826    # The option is referenced via a variable to avoid confusing sed.
11827    lt_compile=`echo "$ac_compile" | $SED \
11828    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11829    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11830    -e 's:$: $lt_compiler_flag:'`
11831    (eval echo "\"\$as_me:11831: $lt_compile\"" >&5)
11832    (eval "$lt_compile" 2>conftest.err)
11833    ac_status=$?
11834    cat conftest.err >&5
11835    echo "$as_me:11835: \$? = $ac_status" >&5
11836    if (exit $ac_status) && test -s "$ac_outfile"; then
11837      # The compiler can only warn and ignore the option if not recognized
11838      # So say no if there are warnings other than the usual output.
11839      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11840      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11841      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11842        lt_prog_compiler_pic_works_CXX=yes
11843      fi
11844    fi
11845    $rm conftest*
11846
11847 fi
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11849 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11850
11851 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11852     case $lt_prog_compiler_pic_CXX in
11853      "" | " "*) ;;
11854      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11855      esac
11856 else
11857     lt_prog_compiler_pic_CXX=
11858      lt_prog_compiler_can_build_shared_CXX=no
11859 fi
11860
11861 fi
11862 case $host_os in
11863   # For platforms which do not support PIC, -DPIC is meaningless:
11864   *djgpp*)
11865     lt_prog_compiler_pic_CXX=
11866     ;;
11867   *)
11868     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11869     ;;
11870 esac
11871
11872 #
11873 # Check to make sure the static flag actually works.
11874 #
11875 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11877 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11878 if ${lt_prog_compiler_static_works_CXX+:} false; then :
11879   $as_echo_n "(cached) " >&6
11880 else
11881   lt_prog_compiler_static_works_CXX=no
11882    save_LDFLAGS="$LDFLAGS"
11883    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11884    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11885    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11886      # The linker can only warn and ignore the option if not recognized
11887      # So say no if there are warnings
11888      if test -s conftest.err; then
11889        # Append any errors to the config.log.
11890        cat conftest.err 1>&5
11891        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11892        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11893        if diff conftest.exp conftest.er2 >/dev/null; then
11894          lt_prog_compiler_static_works_CXX=yes
11895        fi
11896      else
11897        lt_prog_compiler_static_works_CXX=yes
11898      fi
11899    fi
11900    $rm conftest*
11901    LDFLAGS="$save_LDFLAGS"
11902
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
11905 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
11906
11907 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11908     :
11909 else
11910     lt_prog_compiler_static_CXX=
11911 fi
11912
11913
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11916 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11917   $as_echo_n "(cached) " >&6
11918 else
11919   lt_cv_prog_compiler_c_o_CXX=no
11920    $rm -r conftest 2>/dev/null
11921    mkdir conftest
11922    cd conftest
11923    mkdir out
11924    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11925
11926    lt_compiler_flag="-o out/conftest2.$ac_objext"
11927    # Insert the option either (1) after the last *FLAGS variable, or
11928    # (2) before a word containing "conftest.", or (3) at the end.
11929    # Note that $ac_compile itself does not contain backslashes and begins
11930    # with a dollar sign (not a hyphen), so the echo should work correctly.
11931    lt_compile=`echo "$ac_compile" | $SED \
11932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11934    -e 's:$: $lt_compiler_flag:'`
11935    (eval echo "\"\$as_me:11935: $lt_compile\"" >&5)
11936    (eval "$lt_compile" 2>out/conftest.err)
11937    ac_status=$?
11938    cat out/conftest.err >&5
11939    echo "$as_me:11939: \$? = $ac_status" >&5
11940    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11941    then
11942      # The compiler can only warn and ignore the option if not recognized
11943      # So say no if there are warnings
11944      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11945      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11946      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11947        lt_cv_prog_compiler_c_o_CXX=yes
11948      fi
11949    fi
11950    chmod u+w . 2>&5
11951    $rm conftest*
11952    # SGI C++ compiler will create directory out/ii_files/ for
11953    # template instantiation
11954    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11955    $rm out/* && rmdir out
11956    cd ..
11957    rmdir conftest
11958    $rm conftest*
11959
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11962 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11963
11964
11965 hard_links="nottested"
11966 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11967   # do not overwrite the value of need_locks provided by the user
11968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11969 $as_echo_n "checking if we can lock with hard links... " >&6; }
11970   hard_links=yes
11971   $rm conftest*
11972   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11973   touch conftest.a
11974   ln conftest.a conftest.b 2>&5 || hard_links=no
11975   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11977 $as_echo "$hard_links" >&6; }
11978   if test "$hard_links" = no; then
11979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11980 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11981     need_locks=warn
11982   fi
11983 else
11984   need_locks=no
11985 fi
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11988 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11989
11990   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11991   case $host_os in
11992   aix4* | aix5*)
11993     # If we're using GNU nm, then we don't want the "-C" option.
11994     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11995     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11996       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'
11997     else
11998       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'
11999     fi
12000     ;;
12001   pw32*)
12002     export_symbols_cmds_CXX="$ltdll_cmds"
12003   ;;
12004   cygwin* | mingw*)
12005     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12006   ;;
12007   *)
12008     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12009   ;;
12010   esac
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12013 $as_echo "$ld_shlibs_CXX" >&6; }
12014 test "$ld_shlibs_CXX" = no && can_build_shared=no
12015
12016 #
12017 # Do we need to explicitly link libc?
12018 #
12019 case "x$archive_cmds_need_lc_CXX" in
12020 x|xyes)
12021   # Assume -lc should be added
12022   archive_cmds_need_lc_CXX=yes
12023
12024   if test "$enable_shared" = yes && test "$GCC" = yes; then
12025     case $archive_cmds_CXX in
12026     *'~'*)
12027       # FIXME: we may have to deal with multi-command sequences.
12028       ;;
12029     '$CC '*)
12030       # Test whether the compiler implicitly links with -lc since on some
12031       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12032       # to ld, don't add -lc before -lgcc.
12033       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12034 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12035       $rm conftest*
12036       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12037
12038       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12039   (eval $ac_compile) 2>&5
12040   ac_status=$?
12041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12042   test $ac_status = 0; } 2>conftest.err; then
12043         soname=conftest
12044         lib=conftest
12045         libobjs=conftest.$ac_objext
12046         deplibs=
12047         wl=$lt_prog_compiler_wl_CXX
12048         pic_flag=$lt_prog_compiler_pic_CXX
12049         compiler_flags=-v
12050         linker_flags=-v
12051         verstring=
12052         output_objdir=.
12053         libname=conftest
12054         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12055         allow_undefined_flag_CXX=
12056         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12057   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12058   ac_status=$?
12059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060   test $ac_status = 0; }
12061         then
12062           archive_cmds_need_lc_CXX=no
12063         else
12064           archive_cmds_need_lc_CXX=yes
12065         fi
12066         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12067       else
12068         cat conftest.err 1>&5
12069       fi
12070       $rm conftest*
12071       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12072 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12073       ;;
12074     esac
12075   fi
12076   ;;
12077 esac
12078
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12080 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12081 library_names_spec=
12082 libname_spec='lib$name'
12083 soname_spec=
12084 shrext_cmds=".so"
12085 postinstall_cmds=
12086 postuninstall_cmds=
12087 finish_cmds=
12088 finish_eval=
12089 shlibpath_var=
12090 shlibpath_overrides_runpath=unknown
12091 version_type=none
12092 dynamic_linker="$host_os ld.so"
12093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12094 if test "$GCC" = yes; then
12095   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12096   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12097     # if the path contains ";" then we assume it to be the separator
12098     # otherwise default to the standard path separator (i.e. ":") - it is
12099     # assumed that no part of a normal pathname contains ";" but that should
12100     # okay in the real world where ";" in dirpaths is itself problematic.
12101     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12102   else
12103     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12104   fi
12105 else
12106   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12107 fi
12108 need_lib_prefix=unknown
12109 hardcode_into_libs=no
12110
12111 # when you set need_version to no, make sure it does not cause -set_version
12112 # flags to be left without arguments
12113 need_version=unknown
12114
12115 case $host_os in
12116 aix3*)
12117   version_type=linux
12118   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12119   shlibpath_var=LIBPATH
12120
12121   # AIX 3 has no versioning support, so we append a major version to the name.
12122   soname_spec='${libname}${release}${shared_ext}$major'
12123   ;;
12124
12125 aix4* | aix5*)
12126   version_type=linux
12127   need_lib_prefix=no
12128   need_version=no
12129   hardcode_into_libs=yes
12130   if test "$host_cpu" = ia64; then
12131     # AIX 5 supports IA64
12132     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12133     shlibpath_var=LD_LIBRARY_PATH
12134   else
12135     # With GCC up to 2.95.x, collect2 would create an import file
12136     # for dependence libraries.  The import file would start with
12137     # the line `#! .'.  This would cause the generated library to
12138     # depend on `.', always an invalid library.  This was fixed in
12139     # development snapshots of GCC prior to 3.0.
12140     case $host_os in
12141       aix4 | aix4.[01] | aix4.[01].*)
12142       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12143            echo ' yes '
12144            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12145         :
12146       else
12147         can_build_shared=no
12148       fi
12149       ;;
12150     esac
12151     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12152     # soname into executable. Probably we can add versioning support to
12153     # collect2, so additional links can be useful in future.
12154     if test "$aix_use_runtimelinking" = yes; then
12155       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12156       # instead of lib<name>.a to let people know that these are not
12157       # typical AIX shared libraries.
12158       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12159     else
12160       # We preserve .a as extension for shared libraries through AIX4.2
12161       # and later when we are not doing run time linking.
12162       library_names_spec='${libname}${release}.a $libname.a'
12163       soname_spec='${libname}${release}${shared_ext}$major'
12164     fi
12165     shlibpath_var=LIBPATH
12166   fi
12167   ;;
12168
12169 amigaos*)
12170   library_names_spec='$libname.ixlibrary $libname.a'
12171   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12172   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'
12173   ;;
12174
12175 beos*)
12176   library_names_spec='${libname}${shared_ext}'
12177   dynamic_linker="$host_os ld.so"
12178   shlibpath_var=LIBRARY_PATH
12179   ;;
12180
12181 bsdi[45]*)
12182   version_type=linux
12183   need_version=no
12184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12185   soname_spec='${libname}${release}${shared_ext}$major'
12186   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12187   shlibpath_var=LD_LIBRARY_PATH
12188   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12189   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12190   # the default ld.so.conf also contains /usr/contrib/lib and
12191   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12192   # libtool to hard-code these into programs
12193   ;;
12194
12195 cygwin* | mingw* | pw32*)
12196   version_type=windows
12197   shrext_cmds=".dll"
12198   need_version=no
12199   need_lib_prefix=no
12200
12201   case $GCC,$host_os in
12202   yes,cygwin* | yes,mingw* | yes,pw32*)
12203     library_names_spec='$libname.dll.a'
12204     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12205     postinstall_cmds='base_file=`basename \${file}`~
12206       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12207       dldir=$destdir/`dirname \$dlpath`~
12208       test -d \$dldir || mkdir -p \$dldir~
12209       $install_prog $dir/$dlname \$dldir/$dlname~
12210       chmod a+x \$dldir/$dlname'
12211     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12212       dlpath=$dir/\$dldll~
12213        $rm \$dlpath'
12214     shlibpath_overrides_runpath=yes
12215
12216     case $host_os in
12217     cygwin*)
12218       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12219       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12220       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12221       ;;
12222     mingw*)
12223       # MinGW DLLs use traditional 'lib' prefix
12224       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12225       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12226       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12227         # It is most probably a Windows format PATH printed by
12228         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12229         # path with ; separators, and with drive letters. We can handle the
12230         # drive letters (cygwin fileutils understands them), so leave them,
12231         # especially as we might pass files found there to a mingw objdump,
12232         # which wouldn't understand a cygwinified path. Ahh.
12233         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12234       else
12235         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12236       fi
12237       ;;
12238     pw32*)
12239       # pw32 DLLs use 'pw' prefix rather than 'lib'
12240       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12241       ;;
12242     esac
12243     ;;
12244
12245   *)
12246     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12247     ;;
12248   esac
12249   dynamic_linker='Win32 ld.exe'
12250   # FIXME: first we should search . and the directory the executable is in
12251   shlibpath_var=PATH
12252   ;;
12253
12254 darwin* | rhapsody*)
12255   dynamic_linker="$host_os dyld"
12256   version_type=darwin
12257   need_lib_prefix=no
12258   need_version=no
12259   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12260   soname_spec='${libname}${release}${major}$shared_ext'
12261   shlibpath_overrides_runpath=yes
12262   shlibpath_var=DYLD_LIBRARY_PATH
12263   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12264   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12265   if test "$GCC" = yes; then
12266     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"`
12267   else
12268     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12269   fi
12270   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12271   ;;
12272
12273 dgux*)
12274   version_type=linux
12275   need_lib_prefix=no
12276   need_version=no
12277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12278   soname_spec='${libname}${release}${shared_ext}$major'
12279   shlibpath_var=LD_LIBRARY_PATH
12280   ;;
12281
12282 freebsd1*)
12283   dynamic_linker=no
12284   ;;
12285
12286 kfreebsd*-gnu)
12287   version_type=linux
12288   need_lib_prefix=no
12289   need_version=no
12290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12291   soname_spec='${libname}${release}${shared_ext}$major'
12292   shlibpath_var=LD_LIBRARY_PATH
12293   shlibpath_overrides_runpath=no
12294   hardcode_into_libs=yes
12295   dynamic_linker='GNU ld.so'
12296   ;;
12297
12298 freebsd* | dragonfly*)
12299   # DragonFly does not have aout.  When/if they implement a new
12300   # versioning mechanism, adjust this.
12301   if test -x /usr/bin/objformat; then
12302     objformat=`/usr/bin/objformat`
12303   else
12304     case $host_os in
12305     freebsd[123]*) objformat=aout ;;
12306     *) objformat=elf ;;
12307     esac
12308   fi
12309   version_type=freebsd-$objformat
12310   case $version_type in
12311     freebsd-elf*)
12312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12313       need_version=no
12314       need_lib_prefix=no
12315       ;;
12316     freebsd-*)
12317       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12318       need_version=yes
12319       ;;
12320   esac
12321   shlibpath_var=LD_LIBRARY_PATH
12322   case $host_os in
12323   freebsd2*)
12324     shlibpath_overrides_runpath=yes
12325     ;;
12326   freebsd3.[01]* | freebsdelf3.[01]*)
12327     shlibpath_overrides_runpath=yes
12328     hardcode_into_libs=yes
12329     ;;
12330   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12331   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12332     shlibpath_overrides_runpath=no
12333     hardcode_into_libs=yes
12334     ;;
12335   freebsd*) # from 4.6 on
12336     shlibpath_overrides_runpath=yes
12337     hardcode_into_libs=yes
12338     ;;
12339   esac
12340   ;;
12341
12342 gnu*)
12343   version_type=linux
12344   need_lib_prefix=no
12345   need_version=no
12346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12347   soname_spec='${libname}${release}${shared_ext}$major'
12348   shlibpath_var=LD_LIBRARY_PATH
12349   hardcode_into_libs=yes
12350   ;;
12351
12352 hpux9* | hpux10* | hpux11*)
12353   # Give a soname corresponding to the major version so that dld.sl refuses to
12354   # link against other versions.
12355   version_type=sunos
12356   need_lib_prefix=no
12357   need_version=no
12358   case $host_cpu in
12359   ia64*)
12360     shrext_cmds='.so'
12361     hardcode_into_libs=yes
12362     dynamic_linker="$host_os dld.so"
12363     shlibpath_var=LD_LIBRARY_PATH
12364     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366     soname_spec='${libname}${release}${shared_ext}$major'
12367     if test "X$HPUX_IA64_MODE" = X32; then
12368       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12369     else
12370       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12371     fi
12372     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12373     ;;
12374    hppa*64*)
12375      shrext_cmds='.sl'
12376      hardcode_into_libs=yes
12377      dynamic_linker="$host_os dld.sl"
12378      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12379      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12380      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12381      soname_spec='${libname}${release}${shared_ext}$major'
12382      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12383      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12384      ;;
12385    *)
12386     shrext_cmds='.sl'
12387     dynamic_linker="$host_os dld.sl"
12388     shlibpath_var=SHLIB_PATH
12389     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12390     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12391     soname_spec='${libname}${release}${shared_ext}$major'
12392     ;;
12393   esac
12394   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12395   postinstall_cmds='chmod 555 $lib'
12396   ;;
12397
12398 interix3*)
12399   version_type=linux
12400   need_lib_prefix=no
12401   need_version=no
12402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12403   soname_spec='${libname}${release}${shared_ext}$major'
12404   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12405   shlibpath_var=LD_LIBRARY_PATH
12406   shlibpath_overrides_runpath=no
12407   hardcode_into_libs=yes
12408   ;;
12409
12410 irix5* | irix6* | nonstopux*)
12411   case $host_os in
12412     nonstopux*) version_type=nonstopux ;;
12413     *)
12414         if test "$lt_cv_prog_gnu_ld" = yes; then
12415                 version_type=linux
12416         else
12417                 version_type=irix
12418         fi ;;
12419   esac
12420   need_lib_prefix=no
12421   need_version=no
12422   soname_spec='${libname}${release}${shared_ext}$major'
12423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12424   case $host_os in
12425   irix5* | nonstopux*)
12426     libsuff= shlibsuff=
12427     ;;
12428   *)
12429     case $LD in # libtool.m4 will add one of these switches to LD
12430     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12431       libsuff= shlibsuff= libmagic=32-bit;;
12432     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12433       libsuff=32 shlibsuff=N32 libmagic=N32;;
12434     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12435       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12436     *) libsuff= shlibsuff= libmagic=never-match;;
12437     esac
12438     ;;
12439   esac
12440   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12441   shlibpath_overrides_runpath=no
12442   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12443   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12444   hardcode_into_libs=yes
12445   ;;
12446
12447 # No shared lib support for Linux oldld, aout, or coff.
12448 linux*oldld* | linux*aout* | linux*coff*)
12449   dynamic_linker=no
12450   ;;
12451
12452 # This must be Linux ELF.
12453 linux*)
12454   version_type=linux
12455   need_lib_prefix=no
12456   need_version=no
12457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12458   soname_spec='${libname}${release}${shared_ext}$major'
12459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12460   shlibpath_var=LD_LIBRARY_PATH
12461   shlibpath_overrides_runpath=no
12462   # This implies no fast_install, which is unacceptable.
12463   # Some rework will be needed to allow for fast_install
12464   # before this can be enabled.
12465   hardcode_into_libs=yes
12466
12467   # Append ld.so.conf contents to the search path
12468   if test -f /etc/ld.so.conf; then
12469     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12470     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12471   fi
12472
12473   # We used to test for /lib/ld.so.1 and disable shared libraries on
12474   # powerpc, because MkLinux only supported shared libraries with the
12475   # GNU dynamic linker.  Since this was broken with cross compilers,
12476   # most powerpc-linux boxes support dynamic linking these days and
12477   # people can always --disable-shared, the test was removed, and we
12478   # assume the GNU/Linux dynamic linker is in use.
12479   dynamic_linker='GNU/Linux ld.so'
12480   ;;
12481
12482 knetbsd*-gnu)
12483   version_type=linux
12484   need_lib_prefix=no
12485   need_version=no
12486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12487   soname_spec='${libname}${release}${shared_ext}$major'
12488   shlibpath_var=LD_LIBRARY_PATH
12489   shlibpath_overrides_runpath=no
12490   hardcode_into_libs=yes
12491   dynamic_linker='GNU ld.so'
12492   ;;
12493
12494 netbsd*)
12495   version_type=sunos
12496   need_lib_prefix=no
12497   need_version=no
12498   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12500     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12501     dynamic_linker='NetBSD (a.out) ld.so'
12502   else
12503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12504     soname_spec='${libname}${release}${shared_ext}$major'
12505     dynamic_linker='NetBSD ld.elf_so'
12506   fi
12507   shlibpath_var=LD_LIBRARY_PATH
12508   shlibpath_overrides_runpath=yes
12509   hardcode_into_libs=yes
12510   ;;
12511
12512 newsos6)
12513   version_type=linux
12514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12515   shlibpath_var=LD_LIBRARY_PATH
12516   shlibpath_overrides_runpath=yes
12517   ;;
12518
12519 nto-qnx*)
12520   version_type=linux
12521   need_lib_prefix=no
12522   need_version=no
12523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12524   soname_spec='${libname}${release}${shared_ext}$major'
12525   shlibpath_var=LD_LIBRARY_PATH
12526   shlibpath_overrides_runpath=yes
12527   ;;
12528
12529 openbsd*)
12530   version_type=sunos
12531   sys_lib_dlsearch_path_spec="/usr/lib"
12532   need_lib_prefix=no
12533   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12534   case $host_os in
12535     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12536     *)                         need_version=no  ;;
12537   esac
12538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12539   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12540   shlibpath_var=LD_LIBRARY_PATH
12541   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12542     case $host_os in
12543       openbsd2.[89] | openbsd2.[89].*)
12544         shlibpath_overrides_runpath=no
12545         ;;
12546       *)
12547         shlibpath_overrides_runpath=yes
12548         ;;
12549       esac
12550   else
12551     shlibpath_overrides_runpath=yes
12552   fi
12553   ;;
12554
12555 os2*)
12556   libname_spec='$name'
12557   shrext_cmds=".dll"
12558   need_lib_prefix=no
12559   library_names_spec='$libname${shared_ext} $libname.a'
12560   dynamic_linker='OS/2 ld.exe'
12561   shlibpath_var=LIBPATH
12562   ;;
12563
12564 osf3* | osf4* | osf5*)
12565   version_type=osf
12566   need_lib_prefix=no
12567   need_version=no
12568   soname_spec='${libname}${release}${shared_ext}$major'
12569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570   shlibpath_var=LD_LIBRARY_PATH
12571   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12572   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12573   ;;
12574
12575 solaris*)
12576   version_type=linux
12577   need_lib_prefix=no
12578   need_version=no
12579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580   soname_spec='${libname}${release}${shared_ext}$major'
12581   shlibpath_var=LD_LIBRARY_PATH
12582   shlibpath_overrides_runpath=yes
12583   hardcode_into_libs=yes
12584   # ldd complains unless libraries are executable
12585   postinstall_cmds='chmod +x $lib'
12586   ;;
12587
12588 sunos4*)
12589   version_type=sunos
12590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12591   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12592   shlibpath_var=LD_LIBRARY_PATH
12593   shlibpath_overrides_runpath=yes
12594   if test "$with_gnu_ld" = yes; then
12595     need_lib_prefix=no
12596   fi
12597   need_version=yes
12598   ;;
12599
12600 sysv4 | sysv4.3*)
12601   version_type=linux
12602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12603   soname_spec='${libname}${release}${shared_ext}$major'
12604   shlibpath_var=LD_LIBRARY_PATH
12605   case $host_vendor in
12606     sni)
12607       shlibpath_overrides_runpath=no
12608       need_lib_prefix=no
12609       export_dynamic_flag_spec='${wl}-Blargedynsym'
12610       runpath_var=LD_RUN_PATH
12611       ;;
12612     siemens)
12613       need_lib_prefix=no
12614       ;;
12615     motorola)
12616       need_lib_prefix=no
12617       need_version=no
12618       shlibpath_overrides_runpath=no
12619       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12620       ;;
12621   esac
12622   ;;
12623
12624 sysv4*MP*)
12625   if test -d /usr/nec ;then
12626     version_type=linux
12627     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12628     soname_spec='$libname${shared_ext}.$major'
12629     shlibpath_var=LD_LIBRARY_PATH
12630   fi
12631   ;;
12632
12633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12634   version_type=freebsd-elf
12635   need_lib_prefix=no
12636   need_version=no
12637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12638   soname_spec='${libname}${release}${shared_ext}$major'
12639   shlibpath_var=LD_LIBRARY_PATH
12640   hardcode_into_libs=yes
12641   if test "$with_gnu_ld" = yes; then
12642     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12643     shlibpath_overrides_runpath=no
12644   else
12645     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12646     shlibpath_overrides_runpath=yes
12647     case $host_os in
12648       sco3.2v5*)
12649         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12650         ;;
12651     esac
12652   fi
12653   sys_lib_dlsearch_path_spec='/usr/lib'
12654   ;;
12655
12656 uts4*)
12657   version_type=linux
12658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12659   soname_spec='${libname}${release}${shared_ext}$major'
12660   shlibpath_var=LD_LIBRARY_PATH
12661   ;;
12662
12663 *)
12664   dynamic_linker=no
12665   ;;
12666 esac
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12668 $as_echo "$dynamic_linker" >&6; }
12669 test "$dynamic_linker" = no && can_build_shared=no
12670
12671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12672 if test "$GCC" = yes; then
12673   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12674 fi
12675
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12677 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12678 hardcode_action_CXX=
12679 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12680    test -n "$runpath_var_CXX" || \
12681    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12682
12683   # We can hardcode non-existant directories.
12684   if test "$hardcode_direct_CXX" != no &&
12685      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12686      # have to relink, otherwise we might link with an installed library
12687      # when we should be linking with a yet-to-be-installed one
12688      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12689      test "$hardcode_minus_L_CXX" != no; then
12690     # Linking always hardcodes the temporary library directory.
12691     hardcode_action_CXX=relink
12692   else
12693     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12694     hardcode_action_CXX=immediate
12695   fi
12696 else
12697   # We cannot hardcode anything, or else we can only hardcode existing
12698   # directories.
12699   hardcode_action_CXX=unsupported
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12702 $as_echo "$hardcode_action_CXX" >&6; }
12703
12704 if test "$hardcode_action_CXX" = relink; then
12705   # Fast installation is not supported
12706   enable_fast_install=no
12707 elif test "$shlibpath_overrides_runpath" = yes ||
12708      test "$enable_shared" = no; then
12709   # Fast installation is not necessary
12710   enable_fast_install=needless
12711 fi
12712
12713
12714 # The else clause should only fire when bootstrapping the
12715 # libtool distribution, otherwise you forgot to ship ltmain.sh
12716 # with your package, and you will get complaints that there are
12717 # no rules to generate ltmain.sh.
12718 if test -f "$ltmain"; then
12719   # See if we are running on zsh, and set the options which allow our commands through
12720   # without removal of \ escapes.
12721   if test -n "${ZSH_VERSION+set}" ; then
12722     setopt NO_GLOB_SUBST
12723   fi
12724   # Now quote all the things that may contain metacharacters while being
12725   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12726   # variables and quote the copies for generation of the libtool script.
12727   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12728     SED SHELL STRIP \
12729     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12730     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12731     deplibs_check_method reload_flag reload_cmds need_locks \
12732     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12733     lt_cv_sys_global_symbol_to_c_name_address \
12734     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12735     old_postinstall_cmds old_postuninstall_cmds \
12736     compiler_CXX \
12737     CC_CXX \
12738     LD_CXX \
12739     lt_prog_compiler_wl_CXX \
12740     lt_prog_compiler_pic_CXX \
12741     lt_prog_compiler_static_CXX \
12742     lt_prog_compiler_no_builtin_flag_CXX \
12743     export_dynamic_flag_spec_CXX \
12744     thread_safe_flag_spec_CXX \
12745     whole_archive_flag_spec_CXX \
12746     enable_shared_with_static_runtimes_CXX \
12747     old_archive_cmds_CXX \
12748     old_archive_from_new_cmds_CXX \
12749     predep_objects_CXX \
12750     postdep_objects_CXX \
12751     predeps_CXX \
12752     postdeps_CXX \
12753     compiler_lib_search_path_CXX \
12754     archive_cmds_CXX \
12755     archive_expsym_cmds_CXX \
12756     postinstall_cmds_CXX \
12757     postuninstall_cmds_CXX \
12758     old_archive_from_expsyms_cmds_CXX \
12759     allow_undefined_flag_CXX \
12760     no_undefined_flag_CXX \
12761     export_symbols_cmds_CXX \
12762     hardcode_libdir_flag_spec_CXX \
12763     hardcode_libdir_flag_spec_ld_CXX \
12764     hardcode_libdir_separator_CXX \
12765     hardcode_automatic_CXX \
12766     module_cmds_CXX \
12767     module_expsym_cmds_CXX \
12768     lt_cv_prog_compiler_c_o_CXX \
12769     exclude_expsyms_CXX \
12770     include_expsyms_CXX; do
12771
12772     case $var in
12773     old_archive_cmds_CXX | \
12774     old_archive_from_new_cmds_CXX | \
12775     archive_cmds_CXX | \
12776     archive_expsym_cmds_CXX | \
12777     module_cmds_CXX | \
12778     module_expsym_cmds_CXX | \
12779     old_archive_from_expsyms_cmds_CXX | \
12780     export_symbols_cmds_CXX | \
12781     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12782     postinstall_cmds | postuninstall_cmds | \
12783     old_postinstall_cmds | old_postuninstall_cmds | \
12784     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12785       # Double-quote double-evaled strings.
12786       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12787       ;;
12788     *)
12789       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12790       ;;
12791     esac
12792   done
12793
12794   case $lt_echo in
12795   *'\$0 --fallback-echo"')
12796     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12797     ;;
12798   esac
12799
12800 cfgfile="$ofile"
12801
12802   cat <<__EOF__ >> "$cfgfile"
12803 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12804
12805 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12806
12807 # Shell to use when invoking shell scripts.
12808 SHELL=$lt_SHELL
12809
12810 # Whether or not to build shared libraries.
12811 build_libtool_libs=$enable_shared
12812
12813 # Whether or not to build static libraries.
12814 build_old_libs=$enable_static
12815
12816 # Whether or not to add -lc for building shared libraries.
12817 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12818
12819 # Whether or not to disallow shared libs when runtime libs are static
12820 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12821
12822 # Whether or not to optimize for fast installation.
12823 fast_install=$enable_fast_install
12824
12825 # The host system.
12826 host_alias=$host_alias
12827 host=$host
12828 host_os=$host_os
12829
12830 # The build system.
12831 build_alias=$build_alias
12832 build=$build
12833 build_os=$build_os
12834
12835 # An echo program that does not interpret backslashes.
12836 echo=$lt_echo
12837
12838 # The archiver.
12839 AR=$lt_AR
12840 AR_FLAGS=$lt_AR_FLAGS
12841
12842 # A C compiler.
12843 LTCC=$lt_LTCC
12844
12845 # LTCC compiler flags.
12846 LTCFLAGS=$lt_LTCFLAGS
12847
12848 # A language-specific compiler.
12849 CC=$lt_compiler_CXX
12850
12851 # Is the compiler the GNU C compiler?
12852 with_gcc=$GCC_CXX
12853
12854 # An ERE matcher.
12855 EGREP=$lt_EGREP
12856
12857 # The linker used to build libraries.
12858 LD=$lt_LD_CXX
12859
12860 # Whether we need hard or soft links.
12861 LN_S=$lt_LN_S
12862
12863 # A BSD-compatible nm program.
12864 NM=$lt_NM
12865
12866 # A symbol stripping program
12867 STRIP=$lt_STRIP
12868
12869 # Used to examine libraries when file_magic_cmd begins "file"
12870 MAGIC_CMD=$MAGIC_CMD
12871
12872 # Used on cygwin: DLL creation program.
12873 DLLTOOL="$DLLTOOL"
12874
12875 # Used on cygwin: object dumper.
12876 OBJDUMP="$OBJDUMP"
12877
12878 # Used on cygwin: assembler.
12879 AS="$AS"
12880
12881 # The name of the directory that contains temporary libtool files.
12882 objdir=$objdir
12883
12884 # How to create reloadable object files.
12885 reload_flag=$lt_reload_flag
12886 reload_cmds=$lt_reload_cmds
12887
12888 # How to pass a linker flag through the compiler.
12889 wl=$lt_lt_prog_compiler_wl_CXX
12890
12891 # Object file suffix (normally "o").
12892 objext="$ac_objext"
12893
12894 # Old archive suffix (normally "a").
12895 libext="$libext"
12896
12897 # Shared library suffix (normally ".so").
12898 shrext_cmds='$shrext_cmds'
12899
12900 # Executable file suffix (normally "").
12901 exeext="$exeext"
12902
12903 # Additional compiler flags for building library objects.
12904 pic_flag=$lt_lt_prog_compiler_pic_CXX
12905 pic_mode=$pic_mode
12906
12907 # What is the maximum length of a command?
12908 max_cmd_len=$lt_cv_sys_max_cmd_len
12909
12910 # Does compiler simultaneously support -c and -o options?
12911 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12912
12913 # Must we lock files when doing compilation?
12914 need_locks=$lt_need_locks
12915
12916 # Do we need the lib prefix for modules?
12917 need_lib_prefix=$need_lib_prefix
12918
12919 # Do we need a version for libraries?
12920 need_version=$need_version
12921
12922 # Whether dlopen is supported.
12923 dlopen_support=$enable_dlopen
12924
12925 # Whether dlopen of programs is supported.
12926 dlopen_self=$enable_dlopen_self
12927
12928 # Whether dlopen of statically linked programs is supported.
12929 dlopen_self_static=$enable_dlopen_self_static
12930
12931 # Compiler flag to prevent dynamic linking.
12932 link_static_flag=$lt_lt_prog_compiler_static_CXX
12933
12934 # Compiler flag to turn off builtin functions.
12935 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12936
12937 # Compiler flag to allow reflexive dlopens.
12938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12939
12940 # Compiler flag to generate shared objects directly from archives.
12941 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12942
12943 # Compiler flag to generate thread-safe objects.
12944 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12945
12946 # Library versioning type.
12947 version_type=$version_type
12948
12949 # Format of library name prefix.
12950 libname_spec=$lt_libname_spec
12951
12952 # List of archive names.  First name is the real one, the rest are links.
12953 # The last name is the one that the linker finds with -lNAME.
12954 library_names_spec=$lt_library_names_spec
12955
12956 # The coded name of the library, if different from the real name.
12957 soname_spec=$lt_soname_spec
12958
12959 # Commands used to build and install an old-style archive.
12960 RANLIB=$lt_RANLIB
12961 old_archive_cmds=$lt_old_archive_cmds_CXX
12962 old_postinstall_cmds=$lt_old_postinstall_cmds
12963 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12964
12965 # Create an old-style archive from a shared archive.
12966 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12967
12968 # Create a temporary old-style archive to link instead of a shared archive.
12969 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12970
12971 # Commands used to build and install a shared archive.
12972 archive_cmds=$lt_archive_cmds_CXX
12973 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12974 postinstall_cmds=$lt_postinstall_cmds
12975 postuninstall_cmds=$lt_postuninstall_cmds
12976
12977 # Commands used to build a loadable module (assumed same as above if empty)
12978 module_cmds=$lt_module_cmds_CXX
12979 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12980
12981 # Commands to strip libraries.
12982 old_striplib=$lt_old_striplib
12983 striplib=$lt_striplib
12984
12985 # Dependencies to place before the objects being linked to create a
12986 # shared library.
12987 predep_objects=$lt_predep_objects_CXX
12988
12989 # Dependencies to place after the objects being linked to create a
12990 # shared library.
12991 postdep_objects=$lt_postdep_objects_CXX
12992
12993 # Dependencies to place before the objects being linked to create a
12994 # shared library.
12995 predeps=$lt_predeps_CXX
12996
12997 # Dependencies to place after the objects being linked to create a
12998 # shared library.
12999 postdeps=$lt_postdeps_CXX
13000
13001 # The library search path used internally by the compiler when linking
13002 # a shared library.
13003 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13004
13005 # Method to check whether dependent libraries are shared objects.
13006 deplibs_check_method=$lt_deplibs_check_method
13007
13008 # Command to use when deplibs_check_method == file_magic.
13009 file_magic_cmd=$lt_file_magic_cmd
13010
13011 # Flag that allows shared libraries with undefined symbols to be built.
13012 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13013
13014 # Flag that forces no undefined symbols.
13015 no_undefined_flag=$lt_no_undefined_flag_CXX
13016
13017 # Commands used to finish a libtool library installation in a directory.
13018 finish_cmds=$lt_finish_cmds
13019
13020 # Same as above, but a single script fragment to be evaled but not shown.
13021 finish_eval=$lt_finish_eval
13022
13023 # Take the output of nm and produce a listing of raw symbols and C names.
13024 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13025
13026 # Transform the output of nm in a proper C declaration
13027 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13028
13029 # Transform the output of nm in a C name address pair
13030 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13031
13032 # This is the shared library runtime path variable.
13033 runpath_var=$runpath_var
13034
13035 # This is the shared library path variable.
13036 shlibpath_var=$shlibpath_var
13037
13038 # Is shlibpath searched before the hard-coded library search path?
13039 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13040
13041 # How to hardcode a shared library path into an executable.
13042 hardcode_action=$hardcode_action_CXX
13043
13044 # Whether we should hardcode library paths into libraries.
13045 hardcode_into_libs=$hardcode_into_libs
13046
13047 # Flag to hardcode \$libdir into a binary during linking.
13048 # This must work even if \$libdir does not exist.
13049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13050
13051 # If ld is used when linking, flag to hardcode \$libdir into
13052 # a binary during linking. This must work even if \$libdir does
13053 # not exist.
13054 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13055
13056 # Whether we need a single -rpath flag with a separated argument.
13057 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13058
13059 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13060 # resulting binary.
13061 hardcode_direct=$hardcode_direct_CXX
13062
13063 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13064 # resulting binary.
13065 hardcode_minus_L=$hardcode_minus_L_CXX
13066
13067 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13068 # the resulting binary.
13069 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13070
13071 # Set to yes if building a shared library automatically hardcodes DIR into the library
13072 # and all subsequent libraries and executables linked against it.
13073 hardcode_automatic=$hardcode_automatic_CXX
13074
13075 # Variables whose values should be saved in libtool wrapper scripts and
13076 # restored at relink time.
13077 variables_saved_for_relink="$variables_saved_for_relink"
13078
13079 # Whether libtool must link a program against all its dependency libraries.
13080 link_all_deplibs=$link_all_deplibs_CXX
13081
13082 # Compile-time system search path for libraries
13083 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13084
13085 # Run-time system search path for libraries
13086 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13087
13088 # Fix the shell variable \$srcfile for the compiler.
13089 fix_srcfile_path="$fix_srcfile_path_CXX"
13090
13091 # Set to yes if exported symbols are required.
13092 always_export_symbols=$always_export_symbols_CXX
13093
13094 # The commands to list exported symbols.
13095 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13096
13097 # The commands to extract the exported symbol list from a shared archive.
13098 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13099
13100 # Symbols that should not be listed in the preloaded symbols.
13101 exclude_expsyms=$lt_exclude_expsyms_CXX
13102
13103 # Symbols that must always be exported.
13104 include_expsyms=$lt_include_expsyms_CXX
13105
13106 # ### END LIBTOOL TAG CONFIG: $tagname
13107
13108 __EOF__
13109
13110
13111 else
13112   # If there is no Makefile yet, we rely on a make rule to execute
13113   # `config.status --recheck' to rerun these tests and create the
13114   # libtool script then.
13115   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13116   if test -f "$ltmain_in"; then
13117     test -f Makefile && make "$ltmain"
13118   fi
13119 fi
13120
13121
13122 ac_ext=c
13123 ac_cpp='$CPP $CPPFLAGS'
13124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13127
13128 CC=$lt_save_CC
13129 LDCXX=$LD
13130 LD=$lt_save_LD
13131 GCC=$lt_save_GCC
13132 with_gnu_ldcxx=$with_gnu_ld
13133 with_gnu_ld=$lt_save_with_gnu_ld
13134 lt_cv_path_LDCXX=$lt_cv_path_LD
13135 lt_cv_path_LD=$lt_save_path_LD
13136 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13137 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13138
13139         else
13140           tagname=""
13141         fi
13142         ;;
13143
13144       F77)
13145         if test -n "$F77" && test "X$F77" != "Xno"; then
13146
13147 ac_ext=f
13148 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13149 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13150 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13151
13152
13153 archive_cmds_need_lc_F77=no
13154 allow_undefined_flag_F77=
13155 always_export_symbols_F77=no
13156 archive_expsym_cmds_F77=
13157 export_dynamic_flag_spec_F77=
13158 hardcode_direct_F77=no
13159 hardcode_libdir_flag_spec_F77=
13160 hardcode_libdir_flag_spec_ld_F77=
13161 hardcode_libdir_separator_F77=
13162 hardcode_minus_L_F77=no
13163 hardcode_automatic_F77=no
13164 module_cmds_F77=
13165 module_expsym_cmds_F77=
13166 link_all_deplibs_F77=unknown
13167 old_archive_cmds_F77=$old_archive_cmds
13168 no_undefined_flag_F77=
13169 whole_archive_flag_spec_F77=
13170 enable_shared_with_static_runtimes_F77=no
13171
13172 # Source file extension for f77 test sources.
13173 ac_ext=f
13174
13175 # Object file extension for compiled f77 test sources.
13176 objext=o
13177 objext_F77=$objext
13178
13179 # Code to be used in simple compile tests
13180 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13181
13182 # Code to be used in simple link tests
13183 lt_simple_link_test_code="      program t\n      end\n"
13184
13185 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13186
13187 # If no C compiler was specified, use CC.
13188 LTCC=${LTCC-"$CC"}
13189
13190 # If no C compiler flags were specified, use CFLAGS.
13191 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13192
13193 # Allow CC to be a program name with arguments.
13194 compiler=$CC
13195
13196
13197 # save warnings/boilerplate of simple test code
13198 ac_outfile=conftest.$ac_objext
13199 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13201 _lt_compiler_boilerplate=`cat conftest.err`
13202 $rm conftest*
13203
13204 ac_outfile=conftest.$ac_objext
13205 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13207 _lt_linker_boilerplate=`cat conftest.err`
13208 $rm conftest*
13209
13210
13211 # Allow CC to be a program name with arguments.
13212 lt_save_CC="$CC"
13213 CC=${F77-"f77"}
13214 compiler=$CC
13215 compiler_F77=$CC
13216 for cc_temp in $compiler""; do
13217   case $cc_temp in
13218     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13219     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13220     \-*) ;;
13221     *) break;;
13222   esac
13223 done
13224 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13225
13226
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13228 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13230 $as_echo "$can_build_shared" >&6; }
13231
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13233 $as_echo_n "checking whether to build shared libraries... " >&6; }
13234 test "$can_build_shared" = "no" && enable_shared=no
13235
13236 # On AIX, shared libraries and static libraries use the same namespace, and
13237 # are all built from PIC.
13238 case $host_os in
13239 aix3*)
13240   test "$enable_shared" = yes && enable_static=no
13241   if test -n "$RANLIB"; then
13242     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13243     postinstall_cmds='$RANLIB $lib'
13244   fi
13245   ;;
13246 aix4* | aix5*)
13247   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13248     test "$enable_shared" = yes && enable_static=no
13249   fi
13250   ;;
13251 esac
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13253 $as_echo "$enable_shared" >&6; }
13254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13256 $as_echo_n "checking whether to build static libraries... " >&6; }
13257 # Make sure either enable_shared or enable_static is yes.
13258 test "$enable_shared" = yes || enable_static=yes
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13260 $as_echo "$enable_static" >&6; }
13261
13262 GCC_F77="$G77"
13263 LD_F77="$LD"
13264
13265 lt_prog_compiler_wl_F77=
13266 lt_prog_compiler_pic_F77=
13267 lt_prog_compiler_static_F77=
13268
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13270 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13271
13272   if test "$GCC" = yes; then
13273     lt_prog_compiler_wl_F77='-Wl,'
13274     lt_prog_compiler_static_F77='-static'
13275
13276     case $host_os in
13277       aix*)
13278       # All AIX code is PIC.
13279       if test "$host_cpu" = ia64; then
13280         # AIX 5 now supports IA64 processor
13281         lt_prog_compiler_static_F77='-Bstatic'
13282       fi
13283       ;;
13284
13285     amigaos*)
13286       # FIXME: we need at least 68020 code to build shared libraries, but
13287       # adding the `-m68020' flag to GCC prevents building anything better,
13288       # like `-m68040'.
13289       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13290       ;;
13291
13292     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13293       # PIC is the default for these OSes.
13294       ;;
13295
13296     mingw* | pw32* | os2*)
13297       # This hack is so that the source file can tell whether it is being
13298       # built for inclusion in a dll (and should export symbols for example).
13299       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13300       ;;
13301
13302     darwin* | rhapsody*)
13303       # PIC is the default on this platform
13304       # Common symbols not allowed in MH_DYLIB files
13305       lt_prog_compiler_pic_F77='-fno-common'
13306       ;;
13307
13308     interix3*)
13309       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13310       # Instead, we relocate shared libraries at runtime.
13311       ;;
13312
13313     msdosdjgpp*)
13314       # Just because we use GCC doesn't mean we suddenly get shared libraries
13315       # on systems that don't support them.
13316       lt_prog_compiler_can_build_shared_F77=no
13317       enable_shared=no
13318       ;;
13319
13320     sysv4*MP*)
13321       if test -d /usr/nec; then
13322         lt_prog_compiler_pic_F77=-Kconform_pic
13323       fi
13324       ;;
13325
13326     hpux*)
13327       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13328       # not for PA HP-UX.
13329       case $host_cpu in
13330       hppa*64*|ia64*)
13331         # +Z the default
13332         ;;
13333       *)
13334         lt_prog_compiler_pic_F77='-fPIC'
13335         ;;
13336       esac
13337       ;;
13338
13339     *)
13340       lt_prog_compiler_pic_F77='-fPIC'
13341       ;;
13342     esac
13343   else
13344     # PORTME Check for flag to pass linker flags through the system compiler.
13345     case $host_os in
13346     aix*)
13347       lt_prog_compiler_wl_F77='-Wl,'
13348       if test "$host_cpu" = ia64; then
13349         # AIX 5 now supports IA64 processor
13350         lt_prog_compiler_static_F77='-Bstatic'
13351       else
13352         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13353       fi
13354       ;;
13355       darwin*)
13356         # PIC is the default on this platform
13357         # Common symbols not allowed in MH_DYLIB files
13358        case $cc_basename in
13359          xlc*)
13360          lt_prog_compiler_pic_F77='-qnocommon'
13361          lt_prog_compiler_wl_F77='-Wl,'
13362          ;;
13363        esac
13364        ;;
13365
13366     mingw* | pw32* | os2*)
13367       # This hack is so that the source file can tell whether it is being
13368       # built for inclusion in a dll (and should export symbols for example).
13369       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13370       ;;
13371
13372     hpux9* | hpux10* | hpux11*)
13373       lt_prog_compiler_wl_F77='-Wl,'
13374       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13375       # not for PA HP-UX.
13376       case $host_cpu in
13377       hppa*64*|ia64*)
13378         # +Z the default
13379         ;;
13380       *)
13381         lt_prog_compiler_pic_F77='+Z'
13382         ;;
13383       esac
13384       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13385       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13386       ;;
13387
13388     irix5* | irix6* | nonstopux*)
13389       lt_prog_compiler_wl_F77='-Wl,'
13390       # PIC (with -KPIC) is the default.
13391       lt_prog_compiler_static_F77='-non_shared'
13392       ;;
13393
13394     newsos6)
13395       lt_prog_compiler_pic_F77='-KPIC'
13396       lt_prog_compiler_static_F77='-Bstatic'
13397       ;;
13398
13399     linux*)
13400       case $cc_basename in
13401       icc* | ecc*)
13402         lt_prog_compiler_wl_F77='-Wl,'
13403         lt_prog_compiler_pic_F77='-KPIC'
13404         lt_prog_compiler_static_F77='-static'
13405         ;;
13406       pgcc* | pgf77* | pgf90* | pgf95*)
13407         # Portland Group compilers (*not* the Pentium gcc compiler,
13408         # which looks to be a dead project)
13409         lt_prog_compiler_wl_F77='-Wl,'
13410         lt_prog_compiler_pic_F77='-fpic'
13411         lt_prog_compiler_static_F77='-Bstatic'
13412         ;;
13413       ccc*)
13414         lt_prog_compiler_wl_F77='-Wl,'
13415         # All Alpha code is PIC.
13416         lt_prog_compiler_static_F77='-non_shared'
13417         ;;
13418       esac
13419       ;;
13420
13421     osf3* | osf4* | osf5*)
13422       lt_prog_compiler_wl_F77='-Wl,'
13423       # All OSF/1 code is PIC.
13424       lt_prog_compiler_static_F77='-non_shared'
13425       ;;
13426
13427     solaris*)
13428       lt_prog_compiler_pic_F77='-KPIC'
13429       lt_prog_compiler_static_F77='-Bstatic'
13430       case $cc_basename in
13431       f77* | f90* | f95*)
13432         lt_prog_compiler_wl_F77='-Qoption ld ';;
13433       *)
13434         lt_prog_compiler_wl_F77='-Wl,';;
13435       esac
13436       ;;
13437
13438     sunos4*)
13439       lt_prog_compiler_wl_F77='-Qoption ld '
13440       lt_prog_compiler_pic_F77='-PIC'
13441       lt_prog_compiler_static_F77='-Bstatic'
13442       ;;
13443
13444     sysv4 | sysv4.2uw2* | sysv4.3*)
13445       lt_prog_compiler_wl_F77='-Wl,'
13446       lt_prog_compiler_pic_F77='-KPIC'
13447       lt_prog_compiler_static_F77='-Bstatic'
13448       ;;
13449
13450     sysv4*MP*)
13451       if test -d /usr/nec ;then
13452         lt_prog_compiler_pic_F77='-Kconform_pic'
13453         lt_prog_compiler_static_F77='-Bstatic'
13454       fi
13455       ;;
13456
13457     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13458       lt_prog_compiler_wl_F77='-Wl,'
13459       lt_prog_compiler_pic_F77='-KPIC'
13460       lt_prog_compiler_static_F77='-Bstatic'
13461       ;;
13462
13463     unicos*)
13464       lt_prog_compiler_wl_F77='-Wl,'
13465       lt_prog_compiler_can_build_shared_F77=no
13466       ;;
13467
13468     uts4*)
13469       lt_prog_compiler_pic_F77='-pic'
13470       lt_prog_compiler_static_F77='-Bstatic'
13471       ;;
13472
13473     *)
13474       lt_prog_compiler_can_build_shared_F77=no
13475       ;;
13476     esac
13477   fi
13478
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13480 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13481
13482 #
13483 # Check to make sure the PIC flag actually works.
13484 #
13485 if test -n "$lt_prog_compiler_pic_F77"; then
13486
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13488 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13489 if ${lt_prog_compiler_pic_works_F77+:} false; then :
13490   $as_echo_n "(cached) " >&6
13491 else
13492   lt_prog_compiler_pic_works_F77=no
13493   ac_outfile=conftest.$ac_objext
13494    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13495    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13496    # Insert the option either (1) after the last *FLAGS variable, or
13497    # (2) before a word containing "conftest.", or (3) at the end.
13498    # Note that $ac_compile itself does not contain backslashes and begins
13499    # with a dollar sign (not a hyphen), so the echo should work correctly.
13500    # The option is referenced via a variable to avoid confusing sed.
13501    lt_compile=`echo "$ac_compile" | $SED \
13502    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13503    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13504    -e 's:$: $lt_compiler_flag:'`
13505    (eval echo "\"\$as_me:13505: $lt_compile\"" >&5)
13506    (eval "$lt_compile" 2>conftest.err)
13507    ac_status=$?
13508    cat conftest.err >&5
13509    echo "$as_me:13509: \$? = $ac_status" >&5
13510    if (exit $ac_status) && test -s "$ac_outfile"; then
13511      # The compiler can only warn and ignore the option if not recognized
13512      # So say no if there are warnings other than the usual output.
13513      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13514      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13515      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13516        lt_prog_compiler_pic_works_F77=yes
13517      fi
13518    fi
13519    $rm conftest*
13520
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13523 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13524
13525 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13526     case $lt_prog_compiler_pic_F77 in
13527      "" | " "*) ;;
13528      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13529      esac
13530 else
13531     lt_prog_compiler_pic_F77=
13532      lt_prog_compiler_can_build_shared_F77=no
13533 fi
13534
13535 fi
13536 case $host_os in
13537   # For platforms which do not support PIC, -DPIC is meaningless:
13538   *djgpp*)
13539     lt_prog_compiler_pic_F77=
13540     ;;
13541   *)
13542     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13543     ;;
13544 esac
13545
13546 #
13547 # Check to make sure the static flag actually works.
13548 #
13549 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13551 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13552 if ${lt_prog_compiler_static_works_F77+:} false; then :
13553   $as_echo_n "(cached) " >&6
13554 else
13555   lt_prog_compiler_static_works_F77=no
13556    save_LDFLAGS="$LDFLAGS"
13557    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13558    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13559    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13560      # The linker can only warn and ignore the option if not recognized
13561      # So say no if there are warnings
13562      if test -s conftest.err; then
13563        # Append any errors to the config.log.
13564        cat conftest.err 1>&5
13565        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13566        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13567        if diff conftest.exp conftest.er2 >/dev/null; then
13568          lt_prog_compiler_static_works_F77=yes
13569        fi
13570      else
13571        lt_prog_compiler_static_works_F77=yes
13572      fi
13573    fi
13574    $rm conftest*
13575    LDFLAGS="$save_LDFLAGS"
13576
13577 fi
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13579 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
13580
13581 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13582     :
13583 else
13584     lt_prog_compiler_static_F77=
13585 fi
13586
13587
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13590 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13591   $as_echo_n "(cached) " >&6
13592 else
13593   lt_cv_prog_compiler_c_o_F77=no
13594    $rm -r conftest 2>/dev/null
13595    mkdir conftest
13596    cd conftest
13597    mkdir out
13598    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13599
13600    lt_compiler_flag="-o out/conftest2.$ac_objext"
13601    # Insert the option either (1) after the last *FLAGS variable, or
13602    # (2) before a word containing "conftest.", or (3) at the end.
13603    # Note that $ac_compile itself does not contain backslashes and begins
13604    # with a dollar sign (not a hyphen), so the echo should work correctly.
13605    lt_compile=`echo "$ac_compile" | $SED \
13606    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13607    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13608    -e 's:$: $lt_compiler_flag:'`
13609    (eval echo "\"\$as_me:13609: $lt_compile\"" >&5)
13610    (eval "$lt_compile" 2>out/conftest.err)
13611    ac_status=$?
13612    cat out/conftest.err >&5
13613    echo "$as_me:13613: \$? = $ac_status" >&5
13614    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13615    then
13616      # The compiler can only warn and ignore the option if not recognized
13617      # So say no if there are warnings
13618      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13619      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13620      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13621        lt_cv_prog_compiler_c_o_F77=yes
13622      fi
13623    fi
13624    chmod u+w . 2>&5
13625    $rm conftest*
13626    # SGI C++ compiler will create directory out/ii_files/ for
13627    # template instantiation
13628    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13629    $rm out/* && rmdir out
13630    cd ..
13631    rmdir conftest
13632    $rm conftest*
13633
13634 fi
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13636 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13637
13638
13639 hard_links="nottested"
13640 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13641   # do not overwrite the value of need_locks provided by the user
13642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13643 $as_echo_n "checking if we can lock with hard links... " >&6; }
13644   hard_links=yes
13645   $rm conftest*
13646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13647   touch conftest.a
13648   ln conftest.a conftest.b 2>&5 || hard_links=no
13649   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13651 $as_echo "$hard_links" >&6; }
13652   if test "$hard_links" = no; then
13653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13654 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13655     need_locks=warn
13656   fi
13657 else
13658   need_locks=no
13659 fi
13660
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13662 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13663
13664   runpath_var=
13665   allow_undefined_flag_F77=
13666   enable_shared_with_static_runtimes_F77=no
13667   archive_cmds_F77=
13668   archive_expsym_cmds_F77=
13669   old_archive_From_new_cmds_F77=
13670   old_archive_from_expsyms_cmds_F77=
13671   export_dynamic_flag_spec_F77=
13672   whole_archive_flag_spec_F77=
13673   thread_safe_flag_spec_F77=
13674   hardcode_libdir_flag_spec_F77=
13675   hardcode_libdir_flag_spec_ld_F77=
13676   hardcode_libdir_separator_F77=
13677   hardcode_direct_F77=no
13678   hardcode_minus_L_F77=no
13679   hardcode_shlibpath_var_F77=unsupported
13680   link_all_deplibs_F77=unknown
13681   hardcode_automatic_F77=no
13682   module_cmds_F77=
13683   module_expsym_cmds_F77=
13684   always_export_symbols_F77=no
13685   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13686   # include_expsyms should be a list of space-separated symbols to be *always*
13687   # included in the symbol list
13688   include_expsyms_F77=
13689   # exclude_expsyms can be an extended regexp of symbols to exclude
13690   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13691   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13692   # as well as any symbol that contains `d'.
13693   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13694   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13695   # platforms (ab)use it in PIC code, but their linkers get confused if
13696   # the symbol is explicitly referenced.  Since portable code cannot
13697   # rely on this symbol name, it's probably fine to never include it in
13698   # preloaded symbol tables.
13699   extract_expsyms_cmds=
13700   # Just being paranoid about ensuring that cc_basename is set.
13701   for cc_temp in $compiler""; do
13702   case $cc_temp in
13703     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13704     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13705     \-*) ;;
13706     *) break;;
13707   esac
13708 done
13709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13710
13711   case $host_os in
13712   cygwin* | mingw* | pw32*)
13713     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13714     # When not using gcc, we currently assume that we are using
13715     # Microsoft Visual C++.
13716     if test "$GCC" != yes; then
13717       with_gnu_ld=no
13718     fi
13719     ;;
13720   interix*)
13721     # we just hope/assume this is gcc and not c89 (= MSVC++)
13722     with_gnu_ld=yes
13723     ;;
13724   openbsd*)
13725     with_gnu_ld=no
13726     ;;
13727   esac
13728
13729   ld_shlibs_F77=yes
13730   if test "$with_gnu_ld" = yes; then
13731     # If archive_cmds runs LD, not CC, wlarc should be empty
13732     wlarc='${wl}'
13733
13734     # Set some defaults for GNU ld with shared library support. These
13735     # are reset later if shared libraries are not supported. Putting them
13736     # here allows them to be overridden if necessary.
13737     runpath_var=LD_RUN_PATH
13738     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13739     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13740     # ancient GNU ld didn't support --whole-archive et. al.
13741     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13742         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13743       else
13744         whole_archive_flag_spec_F77=
13745     fi
13746     supports_anon_versioning=no
13747     case `$LD -v 2>/dev/null` in
13748       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13749       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13750       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13751       *\ 2.11.*) ;; # other 2.11 versions
13752       *) supports_anon_versioning=yes ;;
13753     esac
13754
13755     # See if GNU ld supports shared libraries.
13756     case $host_os in
13757     aix3* | aix4* | aix5*)
13758       # On AIX/PPC, the GNU linker is very broken
13759       if test "$host_cpu" != ia64; then
13760         ld_shlibs_F77=no
13761         cat <<EOF 1>&2
13762
13763 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13764 *** to be unable to reliably create shared libraries on AIX.
13765 *** Therefore, libtool is disabling shared libraries support.  If you
13766 *** really care for shared libraries, you may want to modify your PATH
13767 *** so that a non-GNU linker is found, and then restart.
13768
13769 EOF
13770       fi
13771       ;;
13772
13773     amigaos*)
13774       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)'
13775       hardcode_libdir_flag_spec_F77='-L$libdir'
13776       hardcode_minus_L_F77=yes
13777
13778       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13779       # that the semantics of dynamic libraries on AmigaOS, at least up
13780       # to version 4, is to share data among multiple programs linked
13781       # with the same dynamic library.  Since this doesn't match the
13782       # behavior of shared libraries on other platforms, we can't use
13783       # them.
13784       ld_shlibs_F77=no
13785       ;;
13786
13787     beos*)
13788       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13789         allow_undefined_flag_F77=unsupported
13790         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13791         # support --undefined.  This deserves some investigation.  FIXME
13792         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13793       else
13794         ld_shlibs_F77=no
13795       fi
13796       ;;
13797
13798     cygwin* | mingw* | pw32*)
13799       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13800       # as there is no search path for DLLs.
13801       hardcode_libdir_flag_spec_F77='-L$libdir'
13802       allow_undefined_flag_F77=unsupported
13803       always_export_symbols_F77=no
13804       enable_shared_with_static_runtimes_F77=yes
13805       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13806
13807       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13808         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13809         # If the export-symbols file already is a .def file (1st line
13810         # is EXPORTS), use it as is; otherwise, prepend...
13811         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13812           cp $export_symbols $output_objdir/$soname.def;
13813         else
13814           echo EXPORTS > $output_objdir/$soname.def;
13815           cat $export_symbols >> $output_objdir/$soname.def;
13816         fi~
13817         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13818       else
13819         ld_shlibs_F77=no
13820       fi
13821       ;;
13822
13823     interix3*)
13824       hardcode_direct_F77=no
13825       hardcode_shlibpath_var_F77=no
13826       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13827       export_dynamic_flag_spec_F77='${wl}-E'
13828       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13829       # Instead, shared libraries are loaded at an image base (0x10000000 by
13830       # default) and relocated if they conflict, which is a slow very memory
13831       # consuming and fragmenting process.  To avoid this, we pick a random,
13832       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13833       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13834       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13835       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13836       ;;
13837
13838     linux*)
13839       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13840         tmp_addflag=
13841         case $cc_basename,$host_cpu in
13842         pgcc*)                          # Portland Group C compiler
13843           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13844           tmp_addflag=' $pic_flag'
13845           ;;
13846         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13847           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13848           tmp_addflag=' $pic_flag -Mnomain' ;;
13849         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13850           tmp_addflag=' -i_dynamic' ;;
13851         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13852           tmp_addflag=' -i_dynamic -nofor_main' ;;
13853         ifc* | ifort*)                  # Intel Fortran compiler
13854           tmp_addflag=' -nofor_main' ;;
13855         esac
13856         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13857
13858         if test $supports_anon_versioning = yes; then
13859           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13860   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13861   $echo "local: *; };" >> $output_objdir/$libname.ver~
13862           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13863         fi
13864       else
13865         ld_shlibs_F77=no
13866       fi
13867       ;;
13868
13869     netbsd*)
13870       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13871         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13872         wlarc=
13873       else
13874         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13875         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13876       fi
13877       ;;
13878
13879     solaris*)
13880       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13881         ld_shlibs_F77=no
13882         cat <<EOF 1>&2
13883
13884 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13885 *** create shared libraries on Solaris systems.  Therefore, libtool
13886 *** is disabling shared libraries support.  We urge you to upgrade GNU
13887 *** binutils to release 2.9.1 or newer.  Another option is to modify
13888 *** your PATH or compiler configuration so that the native linker is
13889 *** used, and then restart.
13890
13891 EOF
13892       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13893         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13895       else
13896         ld_shlibs_F77=no
13897       fi
13898       ;;
13899
13900     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13901       case `$LD -v 2>&1` in
13902         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13903         ld_shlibs_F77=no
13904         cat <<_LT_EOF 1>&2
13905
13906 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13907 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13908 *** is disabling shared libraries support.  We urge you to upgrade GNU
13909 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13910 *** your PATH or compiler configuration so that the native linker is
13911 *** used, and then restart.
13912
13913 _LT_EOF
13914         ;;
13915         *)
13916           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13917             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13918             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13919             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13920           else
13921             ld_shlibs_F77=no
13922           fi
13923         ;;
13924       esac
13925       ;;
13926
13927     sunos4*)
13928       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13929       wlarc=
13930       hardcode_direct_F77=yes
13931       hardcode_shlibpath_var_F77=no
13932       ;;
13933
13934     *)
13935       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13936         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13938       else
13939         ld_shlibs_F77=no
13940       fi
13941       ;;
13942     esac
13943
13944     if test "$ld_shlibs_F77" = no; then
13945       runpath_var=
13946       hardcode_libdir_flag_spec_F77=
13947       export_dynamic_flag_spec_F77=
13948       whole_archive_flag_spec_F77=
13949     fi
13950   else
13951     # PORTME fill in a description of your system's linker (not GNU ld)
13952     case $host_os in
13953     aix3*)
13954       allow_undefined_flag_F77=unsupported
13955       always_export_symbols_F77=yes
13956       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'
13957       # Note: this linker hardcodes the directories in LIBPATH if there
13958       # are no directories specified by -L.
13959       hardcode_minus_L_F77=yes
13960       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13961         # Neither direct hardcoding nor static linking is supported with a
13962         # broken collect2.
13963         hardcode_direct_F77=unsupported
13964       fi
13965       ;;
13966
13967     aix4* | aix5*)
13968       if test "$host_cpu" = ia64; then
13969         # On IA64, the linker does run time linking by default, so we don't
13970         # have to do anything special.
13971         aix_use_runtimelinking=no
13972         exp_sym_flag='-Bexport'
13973         no_entry_flag=""
13974       else
13975         # If we're using GNU nm, then we don't want the "-C" option.
13976         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13977         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13978           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'
13979         else
13980           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'
13981         fi
13982         aix_use_runtimelinking=no
13983
13984         # Test if we are trying to use run time linking or normal
13985         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13986         # need to do runtime linking.
13987         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13988           for ld_flag in $LDFLAGS; do
13989           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13990             aix_use_runtimelinking=yes
13991             break
13992           fi
13993           done
13994           ;;
13995         esac
13996
13997         exp_sym_flag='-bexport'
13998         no_entry_flag='-bnoentry'
13999       fi
14000
14001       # When large executables or shared objects are built, AIX ld can
14002       # have problems creating the table of contents.  If linking a library
14003       # or program results in "error TOC overflow" add -mminimal-toc to
14004       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14005       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14006
14007       archive_cmds_F77=''
14008       hardcode_direct_F77=yes
14009       hardcode_libdir_separator_F77=':'
14010       link_all_deplibs_F77=yes
14011
14012       if test "$GCC" = yes; then
14013         case $host_os in aix4.[012]|aix4.[012].*)
14014         # We only want to do this on AIX 4.2 and lower, the check
14015         # below for broken collect2 doesn't work under 4.3+
14016           collect2name=`${CC} -print-prog-name=collect2`
14017           if test -f "$collect2name" && \
14018            strings "$collect2name" | grep resolve_lib_name >/dev/null
14019           then
14020           # We have reworked collect2
14021           hardcode_direct_F77=yes
14022           else
14023           # We have old collect2
14024           hardcode_direct_F77=unsupported
14025           # It fails to find uninstalled libraries when the uninstalled
14026           # path is not listed in the libpath.  Setting hardcode_minus_L
14027           # to unsupported forces relinking
14028           hardcode_minus_L_F77=yes
14029           hardcode_libdir_flag_spec_F77='-L$libdir'
14030           hardcode_libdir_separator_F77=
14031           fi
14032           ;;
14033         esac
14034         shared_flag='-shared'
14035         if test "$aix_use_runtimelinking" = yes; then
14036           shared_flag="$shared_flag "'${wl}-G'
14037         fi
14038       else
14039         # not using gcc
14040         if test "$host_cpu" = ia64; then
14041         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14042         # chokes on -Wl,-G. The following line is correct:
14043           shared_flag='-G'
14044         else
14045           if test "$aix_use_runtimelinking" = yes; then
14046             shared_flag='${wl}-G'
14047           else
14048             shared_flag='${wl}-bM:SRE'
14049           fi
14050         fi
14051       fi
14052
14053       # It seems that -bexpall does not export symbols beginning with
14054       # underscore (_), so it is better to generate a list of symbols to export.
14055       always_export_symbols_F77=yes
14056       if test "$aix_use_runtimelinking" = yes; then
14057         # Warning - without using the other runtime loading flags (-brtl),
14058         # -berok will link without error, but may produce a broken library.
14059         allow_undefined_flag_F77='-berok'
14060        # Determine the default libpath from the value encoded in an empty executable.
14061        cat > conftest.$ac_ext <<_ACEOF
14062       program main
14063
14064       end
14065 _ACEOF
14066 if ac_fn_f77_try_link "$LINENO"; then :
14067
14068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14069 }'`
14070 # Check for a 64-bit object if we didn't find anything.
14071 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; }
14072 }'`; fi
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext \
14075     conftest$ac_exeext conftest.$ac_ext
14076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14077
14078        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14079         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14080        else
14081         if test "$host_cpu" = ia64; then
14082           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14083           allow_undefined_flag_F77="-z nodefs"
14084           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14085         else
14086          # Determine the default libpath from the value encoded in an empty executable.
14087          cat > conftest.$ac_ext <<_ACEOF
14088       program main
14089
14090       end
14091 _ACEOF
14092 if ac_fn_f77_try_link "$LINENO"; then :
14093
14094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14095 }'`
14096 # Check for a 64-bit object if we didn't find anything.
14097 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; }
14098 }'`; fi
14099 fi
14100 rm -f core conftest.err conftest.$ac_objext \
14101     conftest$ac_exeext conftest.$ac_ext
14102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14103
14104          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14105           # Warning - without using the other run time loading flags,
14106           # -berok will link without error, but may produce a broken library.
14107           no_undefined_flag_F77=' ${wl}-bernotok'
14108           allow_undefined_flag_F77=' ${wl}-berok'
14109           # Exported symbols can be pulled into shared objects from archives
14110           whole_archive_flag_spec_F77='$convenience'
14111           archive_cmds_need_lc_F77=yes
14112           # This is similar to how AIX traditionally builds its shared libraries.
14113           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14114         fi
14115       fi
14116       ;;
14117
14118     amigaos*)
14119       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)'
14120       hardcode_libdir_flag_spec_F77='-L$libdir'
14121       hardcode_minus_L_F77=yes
14122       # see comment about different semantics on the GNU ld section
14123       ld_shlibs_F77=no
14124       ;;
14125
14126     bsdi[45]*)
14127       export_dynamic_flag_spec_F77=-rdynamic
14128       ;;
14129
14130     cygwin* | mingw* | pw32*)
14131       # When not using gcc, we currently assume that we are using
14132       # Microsoft Visual C++.
14133       # hardcode_libdir_flag_spec is actually meaningless, as there is
14134       # no search path for DLLs.
14135       hardcode_libdir_flag_spec_F77=' '
14136       allow_undefined_flag_F77=unsupported
14137       # Tell ltmain to make .lib files, not .a files.
14138       libext=lib
14139       # Tell ltmain to make .dll files, not .so files.
14140       shrext_cmds=".dll"
14141       # FIXME: Setting linknames here is a bad hack.
14142       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14143       # The linker will automatically build a .lib file if we build a DLL.
14144       old_archive_From_new_cmds_F77='true'
14145       # FIXME: Should let the user specify the lib program.
14146       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14147       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14148       enable_shared_with_static_runtimes_F77=yes
14149       ;;
14150
14151     darwin* | rhapsody*)
14152       case $host_os in
14153         rhapsody* | darwin1.[012])
14154          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14155          ;;
14156        *) # Darwin 1.3 on
14157          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14158            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14159          else
14160            case ${MACOSX_DEPLOYMENT_TARGET} in
14161              10.[012])
14162                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14163                ;;
14164              10.*)
14165                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14166                ;;
14167            esac
14168          fi
14169          ;;
14170       esac
14171       archive_cmds_need_lc_F77=no
14172       hardcode_direct_F77=no
14173       hardcode_automatic_F77=yes
14174       hardcode_shlibpath_var_F77=unsupported
14175       whole_archive_flag_spec_F77=''
14176       link_all_deplibs_F77=yes
14177     if test "$GCC" = yes ; then
14178         output_verbose_link_cmd='echo'
14179         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14180       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14181       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14182       archive_expsym_cmds_F77='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}'
14183       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}'
14184     else
14185       case $cc_basename in
14186         xlc*)
14187          output_verbose_link_cmd='echo'
14188          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14189          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14190           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14191          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14192           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}'
14193           ;;
14194        *)
14195          ld_shlibs_F77=no
14196           ;;
14197       esac
14198     fi
14199       ;;
14200
14201     dgux*)
14202       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203       hardcode_libdir_flag_spec_F77='-L$libdir'
14204       hardcode_shlibpath_var_F77=no
14205       ;;
14206
14207     freebsd1*)
14208       ld_shlibs_F77=no
14209       ;;
14210
14211     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14212     # support.  Future versions do this automatically, but an explicit c++rt0.o
14213     # does not break anything, and helps significantly (at the cost of a little
14214     # extra space).
14215     freebsd2.2*)
14216       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14217       hardcode_libdir_flag_spec_F77='-R$libdir'
14218       hardcode_direct_F77=yes
14219       hardcode_shlibpath_var_F77=no
14220       ;;
14221
14222     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14223     freebsd2*)
14224       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14225       hardcode_direct_F77=yes
14226       hardcode_minus_L_F77=yes
14227       hardcode_shlibpath_var_F77=no
14228       ;;
14229
14230     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14231     freebsd* | kfreebsd*-gnu | dragonfly*)
14232       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14233       hardcode_libdir_flag_spec_F77='-R$libdir'
14234       hardcode_direct_F77=yes
14235       hardcode_shlibpath_var_F77=no
14236       ;;
14237
14238     hpux9*)
14239       if test "$GCC" = yes; then
14240         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'
14241       else
14242         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'
14243       fi
14244       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14245       hardcode_libdir_separator_F77=:
14246       hardcode_direct_F77=yes
14247
14248       # hardcode_minus_L: Not really in the search PATH,
14249       # but as the default location of the library.
14250       hardcode_minus_L_F77=yes
14251       export_dynamic_flag_spec_F77='${wl}-E'
14252       ;;
14253
14254     hpux10*)
14255       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14256         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14257       else
14258         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14259       fi
14260       if test "$with_gnu_ld" = no; then
14261         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14262         hardcode_libdir_separator_F77=:
14263
14264         hardcode_direct_F77=yes
14265         export_dynamic_flag_spec_F77='${wl}-E'
14266
14267         # hardcode_minus_L: Not really in the search PATH,
14268         # but as the default location of the library.
14269         hardcode_minus_L_F77=yes
14270       fi
14271       ;;
14272
14273     hpux11*)
14274       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14275         case $host_cpu in
14276         hppa*64*)
14277           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14278           ;;
14279         ia64*)
14280           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14281           ;;
14282         *)
14283           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14284           ;;
14285         esac
14286       else
14287         case $host_cpu in
14288         hppa*64*)
14289           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14290           ;;
14291         ia64*)
14292           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14293           ;;
14294         *)
14295           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14296           ;;
14297         esac
14298       fi
14299       if test "$with_gnu_ld" = no; then
14300         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14301         hardcode_libdir_separator_F77=:
14302
14303         case $host_cpu in
14304         hppa*64*|ia64*)
14305           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14306           hardcode_direct_F77=no
14307           hardcode_shlibpath_var_F77=no
14308           ;;
14309         *)
14310           hardcode_direct_F77=yes
14311           export_dynamic_flag_spec_F77='${wl}-E'
14312
14313           # hardcode_minus_L: Not really in the search PATH,
14314           # but as the default location of the library.
14315           hardcode_minus_L_F77=yes
14316           ;;
14317         esac
14318       fi
14319       ;;
14320
14321     irix5* | irix6* | nonstopux*)
14322       if test "$GCC" = yes; then
14323         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'
14324       else
14325         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'
14326         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14327       fi
14328       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14329       hardcode_libdir_separator_F77=:
14330       link_all_deplibs_F77=yes
14331       ;;
14332
14333     netbsd*)
14334       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14335         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14336       else
14337         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14338       fi
14339       hardcode_libdir_flag_spec_F77='-R$libdir'
14340       hardcode_direct_F77=yes
14341       hardcode_shlibpath_var_F77=no
14342       ;;
14343
14344     newsos6)
14345       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14346       hardcode_direct_F77=yes
14347       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14348       hardcode_libdir_separator_F77=:
14349       hardcode_shlibpath_var_F77=no
14350       ;;
14351
14352     openbsd*)
14353       hardcode_direct_F77=yes
14354       hardcode_shlibpath_var_F77=no
14355       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14356         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14357         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14358         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14359         export_dynamic_flag_spec_F77='${wl}-E'
14360       else
14361        case $host_os in
14362          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14363            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14364            hardcode_libdir_flag_spec_F77='-R$libdir'
14365            ;;
14366          *)
14367            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14368            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14369            ;;
14370        esac
14371       fi
14372       ;;
14373
14374     os2*)
14375       hardcode_libdir_flag_spec_F77='-L$libdir'
14376       hardcode_minus_L_F77=yes
14377       allow_undefined_flag_F77=unsupported
14378       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'
14379       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14380       ;;
14381
14382     osf3*)
14383       if test "$GCC" = yes; then
14384         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14385         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'
14386       else
14387         allow_undefined_flag_F77=' -expect_unresolved \*'
14388         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'
14389       fi
14390       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14391       hardcode_libdir_separator_F77=:
14392       ;;
14393
14394     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14395       if test "$GCC" = yes; then
14396         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14397         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'
14398         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14399       else
14400         allow_undefined_flag_F77=' -expect_unresolved \*'
14401         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'
14402         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~
14403         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14404
14405         # Both c and cxx compiler support -rpath directly
14406         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14407       fi
14408       hardcode_libdir_separator_F77=:
14409       ;;
14410
14411     solaris*)
14412       no_undefined_flag_F77=' -z text'
14413       if test "$GCC" = yes; then
14414         wlarc='${wl}'
14415         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14416         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14417           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14418       else
14419         wlarc=''
14420         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14421         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14422         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14423       fi
14424       hardcode_libdir_flag_spec_F77='-R$libdir'
14425       hardcode_shlibpath_var_F77=no
14426       case $host_os in
14427       solaris2.[0-5] | solaris2.[0-5].*) ;;
14428       *)
14429         # The compiler driver will combine linker options so we
14430         # cannot just pass the convience library names through
14431         # without $wl, iff we do not link with $LD.
14432         # Luckily, gcc supports the same syntax we need for Sun Studio.
14433         # Supported since Solaris 2.6 (maybe 2.5.1?)
14434         case $wlarc in
14435         '')
14436           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14437         *)
14438           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14439         esac ;;
14440       esac
14441       link_all_deplibs_F77=yes
14442       ;;
14443
14444     sunos4*)
14445       if test "x$host_vendor" = xsequent; then
14446         # Use $CC to link under sequent, because it throws in some extra .o
14447         # files that make .init and .fini sections work.
14448         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14449       else
14450         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14451       fi
14452       hardcode_libdir_flag_spec_F77='-L$libdir'
14453       hardcode_direct_F77=yes
14454       hardcode_minus_L_F77=yes
14455       hardcode_shlibpath_var_F77=no
14456       ;;
14457
14458     sysv4)
14459       case $host_vendor in
14460         sni)
14461           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462           hardcode_direct_F77=yes # is this really true???
14463         ;;
14464         siemens)
14465           ## LD is ld it makes a PLAMLIB
14466           ## CC just makes a GrossModule.
14467           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14468           reload_cmds_F77='$CC -r -o $output$reload_objs'
14469           hardcode_direct_F77=no
14470         ;;
14471         motorola)
14472           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14474         ;;
14475       esac
14476       runpath_var='LD_RUN_PATH'
14477       hardcode_shlibpath_var_F77=no
14478       ;;
14479
14480     sysv4.3*)
14481       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482       hardcode_shlibpath_var_F77=no
14483       export_dynamic_flag_spec_F77='-Bexport'
14484       ;;
14485
14486     sysv4*MP*)
14487       if test -d /usr/nec; then
14488         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14489         hardcode_shlibpath_var_F77=no
14490         runpath_var=LD_RUN_PATH
14491         hardcode_runpath_var=yes
14492         ld_shlibs_F77=yes
14493       fi
14494       ;;
14495
14496     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14497       no_undefined_flag_F77='${wl}-z,text'
14498       archive_cmds_need_lc_F77=no
14499       hardcode_shlibpath_var_F77=no
14500       runpath_var='LD_RUN_PATH'
14501
14502       if test "$GCC" = yes; then
14503         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14505       else
14506         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14508       fi
14509       ;;
14510
14511     sysv5* | sco3.2v5* | sco5v6*)
14512       # Note: We can NOT use -z defs as we might desire, because we do not
14513       # link with -lc, and that would cause any symbols used from libc to
14514       # always be unresolved, which means just about no library would
14515       # ever link correctly.  If we're not using GNU ld we use -z text
14516       # though, which does catch some bad symbols but isn't as heavy-handed
14517       # as -z defs.
14518       no_undefined_flag_F77='${wl}-z,text'
14519       allow_undefined_flag_F77='${wl}-z,nodefs'
14520       archive_cmds_need_lc_F77=no
14521       hardcode_shlibpath_var_F77=no
14522       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14523       hardcode_libdir_separator_F77=':'
14524       link_all_deplibs_F77=yes
14525       export_dynamic_flag_spec_F77='${wl}-Bexport'
14526       runpath_var='LD_RUN_PATH'
14527
14528       if test "$GCC" = yes; then
14529         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14531       else
14532         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14533         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14534       fi
14535       ;;
14536
14537     uts4*)
14538       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14539       hardcode_libdir_flag_spec_F77='-L$libdir'
14540       hardcode_shlibpath_var_F77=no
14541       ;;
14542
14543     *)
14544       ld_shlibs_F77=no
14545       ;;
14546     esac
14547   fi
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14550 $as_echo "$ld_shlibs_F77" >&6; }
14551 test "$ld_shlibs_F77" = no && can_build_shared=no
14552
14553 #
14554 # Do we need to explicitly link libc?
14555 #
14556 case "x$archive_cmds_need_lc_F77" in
14557 x|xyes)
14558   # Assume -lc should be added
14559   archive_cmds_need_lc_F77=yes
14560
14561   if test "$enable_shared" = yes && test "$GCC" = yes; then
14562     case $archive_cmds_F77 in
14563     *'~'*)
14564       # FIXME: we may have to deal with multi-command sequences.
14565       ;;
14566     '$CC '*)
14567       # Test whether the compiler implicitly links with -lc since on some
14568       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14569       # to ld, don't add -lc before -lgcc.
14570       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14571 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14572       $rm conftest*
14573       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14574
14575       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14576   (eval $ac_compile) 2>&5
14577   ac_status=$?
14578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14579   test $ac_status = 0; } 2>conftest.err; then
14580         soname=conftest
14581         lib=conftest
14582         libobjs=conftest.$ac_objext
14583         deplibs=
14584         wl=$lt_prog_compiler_wl_F77
14585         pic_flag=$lt_prog_compiler_pic_F77
14586         compiler_flags=-v
14587         linker_flags=-v
14588         verstring=
14589         output_objdir=.
14590         libname=conftest
14591         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14592         allow_undefined_flag_F77=
14593         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14594   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14595   ac_status=$?
14596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597   test $ac_status = 0; }
14598         then
14599           archive_cmds_need_lc_F77=no
14600         else
14601           archive_cmds_need_lc_F77=yes
14602         fi
14603         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14604       else
14605         cat conftest.err 1>&5
14606       fi
14607       $rm conftest*
14608       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14609 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14610       ;;
14611     esac
14612   fi
14613   ;;
14614 esac
14615
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14617 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14618 library_names_spec=
14619 libname_spec='lib$name'
14620 soname_spec=
14621 shrext_cmds=".so"
14622 postinstall_cmds=
14623 postuninstall_cmds=
14624 finish_cmds=
14625 finish_eval=
14626 shlibpath_var=
14627 shlibpath_overrides_runpath=unknown
14628 version_type=none
14629 dynamic_linker="$host_os ld.so"
14630 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14631 if test "$GCC" = yes; then
14632   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14633   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14634     # if the path contains ";" then we assume it to be the separator
14635     # otherwise default to the standard path separator (i.e. ":") - it is
14636     # assumed that no part of a normal pathname contains ";" but that should
14637     # okay in the real world where ";" in dirpaths is itself problematic.
14638     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14639   else
14640     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14641   fi
14642 else
14643   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14644 fi
14645 need_lib_prefix=unknown
14646 hardcode_into_libs=no
14647
14648 # when you set need_version to no, make sure it does not cause -set_version
14649 # flags to be left without arguments
14650 need_version=unknown
14651
14652 case $host_os in
14653 aix3*)
14654   version_type=linux
14655   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14656   shlibpath_var=LIBPATH
14657
14658   # AIX 3 has no versioning support, so we append a major version to the name.
14659   soname_spec='${libname}${release}${shared_ext}$major'
14660   ;;
14661
14662 aix4* | aix5*)
14663   version_type=linux
14664   need_lib_prefix=no
14665   need_version=no
14666   hardcode_into_libs=yes
14667   if test "$host_cpu" = ia64; then
14668     # AIX 5 supports IA64
14669     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14670     shlibpath_var=LD_LIBRARY_PATH
14671   else
14672     # With GCC up to 2.95.x, collect2 would create an import file
14673     # for dependence libraries.  The import file would start with
14674     # the line `#! .'.  This would cause the generated library to
14675     # depend on `.', always an invalid library.  This was fixed in
14676     # development snapshots of GCC prior to 3.0.
14677     case $host_os in
14678       aix4 | aix4.[01] | aix4.[01].*)
14679       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14680            echo ' yes '
14681            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14682         :
14683       else
14684         can_build_shared=no
14685       fi
14686       ;;
14687     esac
14688     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14689     # soname into executable. Probably we can add versioning support to
14690     # collect2, so additional links can be useful in future.
14691     if test "$aix_use_runtimelinking" = yes; then
14692       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14693       # instead of lib<name>.a to let people know that these are not
14694       # typical AIX shared libraries.
14695       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696     else
14697       # We preserve .a as extension for shared libraries through AIX4.2
14698       # and later when we are not doing run time linking.
14699       library_names_spec='${libname}${release}.a $libname.a'
14700       soname_spec='${libname}${release}${shared_ext}$major'
14701     fi
14702     shlibpath_var=LIBPATH
14703   fi
14704   ;;
14705
14706 amigaos*)
14707   library_names_spec='$libname.ixlibrary $libname.a'
14708   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14709   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'
14710   ;;
14711
14712 beos*)
14713   library_names_spec='${libname}${shared_ext}'
14714   dynamic_linker="$host_os ld.so"
14715   shlibpath_var=LIBRARY_PATH
14716   ;;
14717
14718 bsdi[45]*)
14719   version_type=linux
14720   need_version=no
14721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722   soname_spec='${libname}${release}${shared_ext}$major'
14723   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14724   shlibpath_var=LD_LIBRARY_PATH
14725   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14726   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14727   # the default ld.so.conf also contains /usr/contrib/lib and
14728   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14729   # libtool to hard-code these into programs
14730   ;;
14731
14732 cygwin* | mingw* | pw32*)
14733   version_type=windows
14734   shrext_cmds=".dll"
14735   need_version=no
14736   need_lib_prefix=no
14737
14738   case $GCC,$host_os in
14739   yes,cygwin* | yes,mingw* | yes,pw32*)
14740     library_names_spec='$libname.dll.a'
14741     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14742     postinstall_cmds='base_file=`basename \${file}`~
14743       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14744       dldir=$destdir/`dirname \$dlpath`~
14745       test -d \$dldir || mkdir -p \$dldir~
14746       $install_prog $dir/$dlname \$dldir/$dlname~
14747       chmod a+x \$dldir/$dlname'
14748     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14749       dlpath=$dir/\$dldll~
14750        $rm \$dlpath'
14751     shlibpath_overrides_runpath=yes
14752
14753     case $host_os in
14754     cygwin*)
14755       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14756       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14757       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14758       ;;
14759     mingw*)
14760       # MinGW DLLs use traditional 'lib' prefix
14761       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14762       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14763       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14764         # It is most probably a Windows format PATH printed by
14765         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14766         # path with ; separators, and with drive letters. We can handle the
14767         # drive letters (cygwin fileutils understands them), so leave them,
14768         # especially as we might pass files found there to a mingw objdump,
14769         # which wouldn't understand a cygwinified path. Ahh.
14770         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14771       else
14772         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14773       fi
14774       ;;
14775     pw32*)
14776       # pw32 DLLs use 'pw' prefix rather than 'lib'
14777       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14778       ;;
14779     esac
14780     ;;
14781
14782   *)
14783     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14784     ;;
14785   esac
14786   dynamic_linker='Win32 ld.exe'
14787   # FIXME: first we should search . and the directory the executable is in
14788   shlibpath_var=PATH
14789   ;;
14790
14791 darwin* | rhapsody*)
14792   dynamic_linker="$host_os dyld"
14793   version_type=darwin
14794   need_lib_prefix=no
14795   need_version=no
14796   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14797   soname_spec='${libname}${release}${major}$shared_ext'
14798   shlibpath_overrides_runpath=yes
14799   shlibpath_var=DYLD_LIBRARY_PATH
14800   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14801   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14802   if test "$GCC" = yes; then
14803     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"`
14804   else
14805     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14806   fi
14807   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14808   ;;
14809
14810 dgux*)
14811   version_type=linux
14812   need_lib_prefix=no
14813   need_version=no
14814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14815   soname_spec='${libname}${release}${shared_ext}$major'
14816   shlibpath_var=LD_LIBRARY_PATH
14817   ;;
14818
14819 freebsd1*)
14820   dynamic_linker=no
14821   ;;
14822
14823 kfreebsd*-gnu)
14824   version_type=linux
14825   need_lib_prefix=no
14826   need_version=no
14827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14828   soname_spec='${libname}${release}${shared_ext}$major'
14829   shlibpath_var=LD_LIBRARY_PATH
14830   shlibpath_overrides_runpath=no
14831   hardcode_into_libs=yes
14832   dynamic_linker='GNU ld.so'
14833   ;;
14834
14835 freebsd* | dragonfly*)
14836   # DragonFly does not have aout.  When/if they implement a new
14837   # versioning mechanism, adjust this.
14838   if test -x /usr/bin/objformat; then
14839     objformat=`/usr/bin/objformat`
14840   else
14841     case $host_os in
14842     freebsd[123]*) objformat=aout ;;
14843     *) objformat=elf ;;
14844     esac
14845   fi
14846   version_type=freebsd-$objformat
14847   case $version_type in
14848     freebsd-elf*)
14849       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14850       need_version=no
14851       need_lib_prefix=no
14852       ;;
14853     freebsd-*)
14854       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14855       need_version=yes
14856       ;;
14857   esac
14858   shlibpath_var=LD_LIBRARY_PATH
14859   case $host_os in
14860   freebsd2*)
14861     shlibpath_overrides_runpath=yes
14862     ;;
14863   freebsd3.[01]* | freebsdelf3.[01]*)
14864     shlibpath_overrides_runpath=yes
14865     hardcode_into_libs=yes
14866     ;;
14867   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14868   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14869     shlibpath_overrides_runpath=no
14870     hardcode_into_libs=yes
14871     ;;
14872   freebsd*) # from 4.6 on
14873     shlibpath_overrides_runpath=yes
14874     hardcode_into_libs=yes
14875     ;;
14876   esac
14877   ;;
14878
14879 gnu*)
14880   version_type=linux
14881   need_lib_prefix=no
14882   need_version=no
14883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14884   soname_spec='${libname}${release}${shared_ext}$major'
14885   shlibpath_var=LD_LIBRARY_PATH
14886   hardcode_into_libs=yes
14887   ;;
14888
14889 hpux9* | hpux10* | hpux11*)
14890   # Give a soname corresponding to the major version so that dld.sl refuses to
14891   # link against other versions.
14892   version_type=sunos
14893   need_lib_prefix=no
14894   need_version=no
14895   case $host_cpu in
14896   ia64*)
14897     shrext_cmds='.so'
14898     hardcode_into_libs=yes
14899     dynamic_linker="$host_os dld.so"
14900     shlibpath_var=LD_LIBRARY_PATH
14901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903     soname_spec='${libname}${release}${shared_ext}$major'
14904     if test "X$HPUX_IA64_MODE" = X32; then
14905       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14906     else
14907       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14908     fi
14909     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14910     ;;
14911    hppa*64*)
14912      shrext_cmds='.sl'
14913      hardcode_into_libs=yes
14914      dynamic_linker="$host_os dld.sl"
14915      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14916      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14917      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918      soname_spec='${libname}${release}${shared_ext}$major'
14919      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14920      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14921      ;;
14922    *)
14923     shrext_cmds='.sl'
14924     dynamic_linker="$host_os dld.sl"
14925     shlibpath_var=SHLIB_PATH
14926     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928     soname_spec='${libname}${release}${shared_ext}$major'
14929     ;;
14930   esac
14931   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14932   postinstall_cmds='chmod 555 $lib'
14933   ;;
14934
14935 interix3*)
14936   version_type=linux
14937   need_lib_prefix=no
14938   need_version=no
14939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14940   soname_spec='${libname}${release}${shared_ext}$major'
14941   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14942   shlibpath_var=LD_LIBRARY_PATH
14943   shlibpath_overrides_runpath=no
14944   hardcode_into_libs=yes
14945   ;;
14946
14947 irix5* | irix6* | nonstopux*)
14948   case $host_os in
14949     nonstopux*) version_type=nonstopux ;;
14950     *)
14951         if test "$lt_cv_prog_gnu_ld" = yes; then
14952                 version_type=linux
14953         else
14954                 version_type=irix
14955         fi ;;
14956   esac
14957   need_lib_prefix=no
14958   need_version=no
14959   soname_spec='${libname}${release}${shared_ext}$major'
14960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14961   case $host_os in
14962   irix5* | nonstopux*)
14963     libsuff= shlibsuff=
14964     ;;
14965   *)
14966     case $LD in # libtool.m4 will add one of these switches to LD
14967     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14968       libsuff= shlibsuff= libmagic=32-bit;;
14969     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14970       libsuff=32 shlibsuff=N32 libmagic=N32;;
14971     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14972       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14973     *) libsuff= shlibsuff= libmagic=never-match;;
14974     esac
14975     ;;
14976   esac
14977   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14978   shlibpath_overrides_runpath=no
14979   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14980   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14981   hardcode_into_libs=yes
14982   ;;
14983
14984 # No shared lib support for Linux oldld, aout, or coff.
14985 linux*oldld* | linux*aout* | linux*coff*)
14986   dynamic_linker=no
14987   ;;
14988
14989 # This must be Linux ELF.
14990 linux*)
14991   version_type=linux
14992   need_lib_prefix=no
14993   need_version=no
14994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995   soname_spec='${libname}${release}${shared_ext}$major'
14996   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14997   shlibpath_var=LD_LIBRARY_PATH
14998   shlibpath_overrides_runpath=no
14999   # This implies no fast_install, which is unacceptable.
15000   # Some rework will be needed to allow for fast_install
15001   # before this can be enabled.
15002   hardcode_into_libs=yes
15003
15004   # Append ld.so.conf contents to the search path
15005   if test -f /etc/ld.so.conf; then
15006     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15007     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15008   fi
15009
15010   # We used to test for /lib/ld.so.1 and disable shared libraries on
15011   # powerpc, because MkLinux only supported shared libraries with the
15012   # GNU dynamic linker.  Since this was broken with cross compilers,
15013   # most powerpc-linux boxes support dynamic linking these days and
15014   # people can always --disable-shared, the test was removed, and we
15015   # assume the GNU/Linux dynamic linker is in use.
15016   dynamic_linker='GNU/Linux ld.so'
15017   ;;
15018
15019 knetbsd*-gnu)
15020   version_type=linux
15021   need_lib_prefix=no
15022   need_version=no
15023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15024   soname_spec='${libname}${release}${shared_ext}$major'
15025   shlibpath_var=LD_LIBRARY_PATH
15026   shlibpath_overrides_runpath=no
15027   hardcode_into_libs=yes
15028   dynamic_linker='GNU ld.so'
15029   ;;
15030
15031 netbsd*)
15032   version_type=sunos
15033   need_lib_prefix=no
15034   need_version=no
15035   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15036     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15037     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15038     dynamic_linker='NetBSD (a.out) ld.so'
15039   else
15040     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15041     soname_spec='${libname}${release}${shared_ext}$major'
15042     dynamic_linker='NetBSD ld.elf_so'
15043   fi
15044   shlibpath_var=LD_LIBRARY_PATH
15045   shlibpath_overrides_runpath=yes
15046   hardcode_into_libs=yes
15047   ;;
15048
15049 newsos6)
15050   version_type=linux
15051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15052   shlibpath_var=LD_LIBRARY_PATH
15053   shlibpath_overrides_runpath=yes
15054   ;;
15055
15056 nto-qnx*)
15057   version_type=linux
15058   need_lib_prefix=no
15059   need_version=no
15060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061   soname_spec='${libname}${release}${shared_ext}$major'
15062   shlibpath_var=LD_LIBRARY_PATH
15063   shlibpath_overrides_runpath=yes
15064   ;;
15065
15066 openbsd*)
15067   version_type=sunos
15068   sys_lib_dlsearch_path_spec="/usr/lib"
15069   need_lib_prefix=no
15070   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15071   case $host_os in
15072     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15073     *)                         need_version=no  ;;
15074   esac
15075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15076   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15077   shlibpath_var=LD_LIBRARY_PATH
15078   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15079     case $host_os in
15080       openbsd2.[89] | openbsd2.[89].*)
15081         shlibpath_overrides_runpath=no
15082         ;;
15083       *)
15084         shlibpath_overrides_runpath=yes
15085         ;;
15086       esac
15087   else
15088     shlibpath_overrides_runpath=yes
15089   fi
15090   ;;
15091
15092 os2*)
15093   libname_spec='$name'
15094   shrext_cmds=".dll"
15095   need_lib_prefix=no
15096   library_names_spec='$libname${shared_ext} $libname.a'
15097   dynamic_linker='OS/2 ld.exe'
15098   shlibpath_var=LIBPATH
15099   ;;
15100
15101 osf3* | osf4* | osf5*)
15102   version_type=osf
15103   need_lib_prefix=no
15104   need_version=no
15105   soname_spec='${libname}${release}${shared_ext}$major'
15106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107   shlibpath_var=LD_LIBRARY_PATH
15108   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15109   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15110   ;;
15111
15112 solaris*)
15113   version_type=linux
15114   need_lib_prefix=no
15115   need_version=no
15116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117   soname_spec='${libname}${release}${shared_ext}$major'
15118   shlibpath_var=LD_LIBRARY_PATH
15119   shlibpath_overrides_runpath=yes
15120   hardcode_into_libs=yes
15121   # ldd complains unless libraries are executable
15122   postinstall_cmds='chmod +x $lib'
15123   ;;
15124
15125 sunos4*)
15126   version_type=sunos
15127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15128   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15129   shlibpath_var=LD_LIBRARY_PATH
15130   shlibpath_overrides_runpath=yes
15131   if test "$with_gnu_ld" = yes; then
15132     need_lib_prefix=no
15133   fi
15134   need_version=yes
15135   ;;
15136
15137 sysv4 | sysv4.3*)
15138   version_type=linux
15139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15140   soname_spec='${libname}${release}${shared_ext}$major'
15141   shlibpath_var=LD_LIBRARY_PATH
15142   case $host_vendor in
15143     sni)
15144       shlibpath_overrides_runpath=no
15145       need_lib_prefix=no
15146       export_dynamic_flag_spec='${wl}-Blargedynsym'
15147       runpath_var=LD_RUN_PATH
15148       ;;
15149     siemens)
15150       need_lib_prefix=no
15151       ;;
15152     motorola)
15153       need_lib_prefix=no
15154       need_version=no
15155       shlibpath_overrides_runpath=no
15156       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15157       ;;
15158   esac
15159   ;;
15160
15161 sysv4*MP*)
15162   if test -d /usr/nec ;then
15163     version_type=linux
15164     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15165     soname_spec='$libname${shared_ext}.$major'
15166     shlibpath_var=LD_LIBRARY_PATH
15167   fi
15168   ;;
15169
15170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15171   version_type=freebsd-elf
15172   need_lib_prefix=no
15173   need_version=no
15174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15175   soname_spec='${libname}${release}${shared_ext}$major'
15176   shlibpath_var=LD_LIBRARY_PATH
15177   hardcode_into_libs=yes
15178   if test "$with_gnu_ld" = yes; then
15179     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15180     shlibpath_overrides_runpath=no
15181   else
15182     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15183     shlibpath_overrides_runpath=yes
15184     case $host_os in
15185       sco3.2v5*)
15186         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15187         ;;
15188     esac
15189   fi
15190   sys_lib_dlsearch_path_spec='/usr/lib'
15191   ;;
15192
15193 uts4*)
15194   version_type=linux
15195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196   soname_spec='${libname}${release}${shared_ext}$major'
15197   shlibpath_var=LD_LIBRARY_PATH
15198   ;;
15199
15200 *)
15201   dynamic_linker=no
15202   ;;
15203 esac
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15205 $as_echo "$dynamic_linker" >&6; }
15206 test "$dynamic_linker" = no && can_build_shared=no
15207
15208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15209 if test "$GCC" = yes; then
15210   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15211 fi
15212
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15214 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15215 hardcode_action_F77=
15216 if test -n "$hardcode_libdir_flag_spec_F77" || \
15217    test -n "$runpath_var_F77" || \
15218    test "X$hardcode_automatic_F77" = "Xyes" ; then
15219
15220   # We can hardcode non-existant directories.
15221   if test "$hardcode_direct_F77" != no &&
15222      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15223      # have to relink, otherwise we might link with an installed library
15224      # when we should be linking with a yet-to-be-installed one
15225      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15226      test "$hardcode_minus_L_F77" != no; then
15227     # Linking always hardcodes the temporary library directory.
15228     hardcode_action_F77=relink
15229   else
15230     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15231     hardcode_action_F77=immediate
15232   fi
15233 else
15234   # We cannot hardcode anything, or else we can only hardcode existing
15235   # directories.
15236   hardcode_action_F77=unsupported
15237 fi
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15239 $as_echo "$hardcode_action_F77" >&6; }
15240
15241 if test "$hardcode_action_F77" = relink; then
15242   # Fast installation is not supported
15243   enable_fast_install=no
15244 elif test "$shlibpath_overrides_runpath" = yes ||
15245      test "$enable_shared" = no; then
15246   # Fast installation is not necessary
15247   enable_fast_install=needless
15248 fi
15249
15250
15251 # The else clause should only fire when bootstrapping the
15252 # libtool distribution, otherwise you forgot to ship ltmain.sh
15253 # with your package, and you will get complaints that there are
15254 # no rules to generate ltmain.sh.
15255 if test -f "$ltmain"; then
15256   # See if we are running on zsh, and set the options which allow our commands through
15257   # without removal of \ escapes.
15258   if test -n "${ZSH_VERSION+set}" ; then
15259     setopt NO_GLOB_SUBST
15260   fi
15261   # Now quote all the things that may contain metacharacters while being
15262   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15263   # variables and quote the copies for generation of the libtool script.
15264   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15265     SED SHELL STRIP \
15266     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15267     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15268     deplibs_check_method reload_flag reload_cmds need_locks \
15269     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15270     lt_cv_sys_global_symbol_to_c_name_address \
15271     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15272     old_postinstall_cmds old_postuninstall_cmds \
15273     compiler_F77 \
15274     CC_F77 \
15275     LD_F77 \
15276     lt_prog_compiler_wl_F77 \
15277     lt_prog_compiler_pic_F77 \
15278     lt_prog_compiler_static_F77 \
15279     lt_prog_compiler_no_builtin_flag_F77 \
15280     export_dynamic_flag_spec_F77 \
15281     thread_safe_flag_spec_F77 \
15282     whole_archive_flag_spec_F77 \
15283     enable_shared_with_static_runtimes_F77 \
15284     old_archive_cmds_F77 \
15285     old_archive_from_new_cmds_F77 \
15286     predep_objects_F77 \
15287     postdep_objects_F77 \
15288     predeps_F77 \
15289     postdeps_F77 \
15290     compiler_lib_search_path_F77 \
15291     archive_cmds_F77 \
15292     archive_expsym_cmds_F77 \
15293     postinstall_cmds_F77 \
15294     postuninstall_cmds_F77 \
15295     old_archive_from_expsyms_cmds_F77 \
15296     allow_undefined_flag_F77 \
15297     no_undefined_flag_F77 \
15298     export_symbols_cmds_F77 \
15299     hardcode_libdir_flag_spec_F77 \
15300     hardcode_libdir_flag_spec_ld_F77 \
15301     hardcode_libdir_separator_F77 \
15302     hardcode_automatic_F77 \
15303     module_cmds_F77 \
15304     module_expsym_cmds_F77 \
15305     lt_cv_prog_compiler_c_o_F77 \
15306     exclude_expsyms_F77 \
15307     include_expsyms_F77; do
15308
15309     case $var in
15310     old_archive_cmds_F77 | \
15311     old_archive_from_new_cmds_F77 | \
15312     archive_cmds_F77 | \
15313     archive_expsym_cmds_F77 | \
15314     module_cmds_F77 | \
15315     module_expsym_cmds_F77 | \
15316     old_archive_from_expsyms_cmds_F77 | \
15317     export_symbols_cmds_F77 | \
15318     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15319     postinstall_cmds | postuninstall_cmds | \
15320     old_postinstall_cmds | old_postuninstall_cmds | \
15321     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15322       # Double-quote double-evaled strings.
15323       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15324       ;;
15325     *)
15326       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15327       ;;
15328     esac
15329   done
15330
15331   case $lt_echo in
15332   *'\$0 --fallback-echo"')
15333     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15334     ;;
15335   esac
15336
15337 cfgfile="$ofile"
15338
15339   cat <<__EOF__ >> "$cfgfile"
15340 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15341
15342 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15343
15344 # Shell to use when invoking shell scripts.
15345 SHELL=$lt_SHELL
15346
15347 # Whether or not to build shared libraries.
15348 build_libtool_libs=$enable_shared
15349
15350 # Whether or not to build static libraries.
15351 build_old_libs=$enable_static
15352
15353 # Whether or not to add -lc for building shared libraries.
15354 build_libtool_need_lc=$archive_cmds_need_lc_F77
15355
15356 # Whether or not to disallow shared libs when runtime libs are static
15357 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15358
15359 # Whether or not to optimize for fast installation.
15360 fast_install=$enable_fast_install
15361
15362 # The host system.
15363 host_alias=$host_alias
15364 host=$host
15365 host_os=$host_os
15366
15367 # The build system.
15368 build_alias=$build_alias
15369 build=$build
15370 build_os=$build_os
15371
15372 # An echo program that does not interpret backslashes.
15373 echo=$lt_echo
15374
15375 # The archiver.
15376 AR=$lt_AR
15377 AR_FLAGS=$lt_AR_FLAGS
15378
15379 # A C compiler.
15380 LTCC=$lt_LTCC
15381
15382 # LTCC compiler flags.
15383 LTCFLAGS=$lt_LTCFLAGS
15384
15385 # A language-specific compiler.
15386 CC=$lt_compiler_F77
15387
15388 # Is the compiler the GNU C compiler?
15389 with_gcc=$GCC_F77
15390
15391 # An ERE matcher.
15392 EGREP=$lt_EGREP
15393
15394 # The linker used to build libraries.
15395 LD=$lt_LD_F77
15396
15397 # Whether we need hard or soft links.
15398 LN_S=$lt_LN_S
15399
15400 # A BSD-compatible nm program.
15401 NM=$lt_NM
15402
15403 # A symbol stripping program
15404 STRIP=$lt_STRIP
15405
15406 # Used to examine libraries when file_magic_cmd begins "file"
15407 MAGIC_CMD=$MAGIC_CMD
15408
15409 # Used on cygwin: DLL creation program.
15410 DLLTOOL="$DLLTOOL"
15411
15412 # Used on cygwin: object dumper.
15413 OBJDUMP="$OBJDUMP"
15414
15415 # Used on cygwin: assembler.
15416 AS="$AS"
15417
15418 # The name of the directory that contains temporary libtool files.
15419 objdir=$objdir
15420
15421 # How to create reloadable object files.
15422 reload_flag=$lt_reload_flag
15423 reload_cmds=$lt_reload_cmds
15424
15425 # How to pass a linker flag through the compiler.
15426 wl=$lt_lt_prog_compiler_wl_F77
15427
15428 # Object file suffix (normally "o").
15429 objext="$ac_objext"
15430
15431 # Old archive suffix (normally "a").
15432 libext="$libext"
15433
15434 # Shared library suffix (normally ".so").
15435 shrext_cmds='$shrext_cmds'
15436
15437 # Executable file suffix (normally "").
15438 exeext="$exeext"
15439
15440 # Additional compiler flags for building library objects.
15441 pic_flag=$lt_lt_prog_compiler_pic_F77
15442 pic_mode=$pic_mode
15443
15444 # What is the maximum length of a command?
15445 max_cmd_len=$lt_cv_sys_max_cmd_len
15446
15447 # Does compiler simultaneously support -c and -o options?
15448 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15449
15450 # Must we lock files when doing compilation?
15451 need_locks=$lt_need_locks
15452
15453 # Do we need the lib prefix for modules?
15454 need_lib_prefix=$need_lib_prefix
15455
15456 # Do we need a version for libraries?
15457 need_version=$need_version
15458
15459 # Whether dlopen is supported.
15460 dlopen_support=$enable_dlopen
15461
15462 # Whether dlopen of programs is supported.
15463 dlopen_self=$enable_dlopen_self
15464
15465 # Whether dlopen of statically linked programs is supported.
15466 dlopen_self_static=$enable_dlopen_self_static
15467
15468 # Compiler flag to prevent dynamic linking.
15469 link_static_flag=$lt_lt_prog_compiler_static_F77
15470
15471 # Compiler flag to turn off builtin functions.
15472 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15473
15474 # Compiler flag to allow reflexive dlopens.
15475 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15476
15477 # Compiler flag to generate shared objects directly from archives.
15478 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15479
15480 # Compiler flag to generate thread-safe objects.
15481 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15482
15483 # Library versioning type.
15484 version_type=$version_type
15485
15486 # Format of library name prefix.
15487 libname_spec=$lt_libname_spec
15488
15489 # List of archive names.  First name is the real one, the rest are links.
15490 # The last name is the one that the linker finds with -lNAME.
15491 library_names_spec=$lt_library_names_spec
15492
15493 # The coded name of the library, if different from the real name.
15494 soname_spec=$lt_soname_spec
15495
15496 # Commands used to build and install an old-style archive.
15497 RANLIB=$lt_RANLIB
15498 old_archive_cmds=$lt_old_archive_cmds_F77
15499 old_postinstall_cmds=$lt_old_postinstall_cmds
15500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15501
15502 # Create an old-style archive from a shared archive.
15503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15504
15505 # Create a temporary old-style archive to link instead of a shared archive.
15506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15507
15508 # Commands used to build and install a shared archive.
15509 archive_cmds=$lt_archive_cmds_F77
15510 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15511 postinstall_cmds=$lt_postinstall_cmds
15512 postuninstall_cmds=$lt_postuninstall_cmds
15513
15514 # Commands used to build a loadable module (assumed same as above if empty)
15515 module_cmds=$lt_module_cmds_F77
15516 module_expsym_cmds=$lt_module_expsym_cmds_F77
15517
15518 # Commands to strip libraries.
15519 old_striplib=$lt_old_striplib
15520 striplib=$lt_striplib
15521
15522 # Dependencies to place before the objects being linked to create a
15523 # shared library.
15524 predep_objects=$lt_predep_objects_F77
15525
15526 # Dependencies to place after the objects being linked to create a
15527 # shared library.
15528 postdep_objects=$lt_postdep_objects_F77
15529
15530 # Dependencies to place before the objects being linked to create a
15531 # shared library.
15532 predeps=$lt_predeps_F77
15533
15534 # Dependencies to place after the objects being linked to create a
15535 # shared library.
15536 postdeps=$lt_postdeps_F77
15537
15538 # The library search path used internally by the compiler when linking
15539 # a shared library.
15540 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15541
15542 # Method to check whether dependent libraries are shared objects.
15543 deplibs_check_method=$lt_deplibs_check_method
15544
15545 # Command to use when deplibs_check_method == file_magic.
15546 file_magic_cmd=$lt_file_magic_cmd
15547
15548 # Flag that allows shared libraries with undefined symbols to be built.
15549 allow_undefined_flag=$lt_allow_undefined_flag_F77
15550
15551 # Flag that forces no undefined symbols.
15552 no_undefined_flag=$lt_no_undefined_flag_F77
15553
15554 # Commands used to finish a libtool library installation in a directory.
15555 finish_cmds=$lt_finish_cmds
15556
15557 # Same as above, but a single script fragment to be evaled but not shown.
15558 finish_eval=$lt_finish_eval
15559
15560 # Take the output of nm and produce a listing of raw symbols and C names.
15561 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15562
15563 # Transform the output of nm in a proper C declaration
15564 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15565
15566 # Transform the output of nm in a C name address pair
15567 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15568
15569 # This is the shared library runtime path variable.
15570 runpath_var=$runpath_var
15571
15572 # This is the shared library path variable.
15573 shlibpath_var=$shlibpath_var
15574
15575 # Is shlibpath searched before the hard-coded library search path?
15576 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15577
15578 # How to hardcode a shared library path into an executable.
15579 hardcode_action=$hardcode_action_F77
15580
15581 # Whether we should hardcode library paths into libraries.
15582 hardcode_into_libs=$hardcode_into_libs
15583
15584 # Flag to hardcode \$libdir into a binary during linking.
15585 # This must work even if \$libdir does not exist.
15586 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15587
15588 # If ld is used when linking, flag to hardcode \$libdir into
15589 # a binary during linking. This must work even if \$libdir does
15590 # not exist.
15591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15592
15593 # Whether we need a single -rpath flag with a separated argument.
15594 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15595
15596 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15597 # resulting binary.
15598 hardcode_direct=$hardcode_direct_F77
15599
15600 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15601 # resulting binary.
15602 hardcode_minus_L=$hardcode_minus_L_F77
15603
15604 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15605 # the resulting binary.
15606 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15607
15608 # Set to yes if building a shared library automatically hardcodes DIR into the library
15609 # and all subsequent libraries and executables linked against it.
15610 hardcode_automatic=$hardcode_automatic_F77
15611
15612 # Variables whose values should be saved in libtool wrapper scripts and
15613 # restored at relink time.
15614 variables_saved_for_relink="$variables_saved_for_relink"
15615
15616 # Whether libtool must link a program against all its dependency libraries.
15617 link_all_deplibs=$link_all_deplibs_F77
15618
15619 # Compile-time system search path for libraries
15620 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15621
15622 # Run-time system search path for libraries
15623 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15624
15625 # Fix the shell variable \$srcfile for the compiler.
15626 fix_srcfile_path="$fix_srcfile_path_F77"
15627
15628 # Set to yes if exported symbols are required.
15629 always_export_symbols=$always_export_symbols_F77
15630
15631 # The commands to list exported symbols.
15632 export_symbols_cmds=$lt_export_symbols_cmds_F77
15633
15634 # The commands to extract the exported symbol list from a shared archive.
15635 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15636
15637 # Symbols that should not be listed in the preloaded symbols.
15638 exclude_expsyms=$lt_exclude_expsyms_F77
15639
15640 # Symbols that must always be exported.
15641 include_expsyms=$lt_include_expsyms_F77
15642
15643 # ### END LIBTOOL TAG CONFIG: $tagname
15644
15645 __EOF__
15646
15647
15648 else
15649   # If there is no Makefile yet, we rely on a make rule to execute
15650   # `config.status --recheck' to rerun these tests and create the
15651   # libtool script then.
15652   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15653   if test -f "$ltmain_in"; then
15654     test -f Makefile && make "$ltmain"
15655   fi
15656 fi
15657
15658
15659 ac_ext=c
15660 ac_cpp='$CPP $CPPFLAGS'
15661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15664
15665 CC="$lt_save_CC"
15666
15667         else
15668           tagname=""
15669         fi
15670         ;;
15671
15672       GCJ)
15673         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15674
15675
15676 # Source file extension for Java test sources.
15677 ac_ext=java
15678
15679 # Object file extension for compiled Java test sources.
15680 objext=o
15681 objext_GCJ=$objext
15682
15683 # Code to be used in simple compile tests
15684 lt_simple_compile_test_code="class foo {}\n"
15685
15686 # Code to be used in simple link tests
15687 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15688
15689 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15690
15691 # If no C compiler was specified, use CC.
15692 LTCC=${LTCC-"$CC"}
15693
15694 # If no C compiler flags were specified, use CFLAGS.
15695 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15696
15697 # Allow CC to be a program name with arguments.
15698 compiler=$CC
15699
15700
15701 # save warnings/boilerplate of simple test code
15702 ac_outfile=conftest.$ac_objext
15703 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15704 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15705 _lt_compiler_boilerplate=`cat conftest.err`
15706 $rm conftest*
15707
15708 ac_outfile=conftest.$ac_objext
15709 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15710 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15711 _lt_linker_boilerplate=`cat conftest.err`
15712 $rm conftest*
15713
15714
15715 # Allow CC to be a program name with arguments.
15716 lt_save_CC="$CC"
15717 CC=${GCJ-"gcj"}
15718 compiler=$CC
15719 compiler_GCJ=$CC
15720 for cc_temp in $compiler""; do
15721   case $cc_temp in
15722     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15723     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15724     \-*) ;;
15725     *) break;;
15726   esac
15727 done
15728 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15729
15730
15731 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15732 archive_cmds_need_lc_GCJ=no
15733
15734 old_archive_cmds_GCJ=$old_archive_cmds
15735
15736
15737 lt_prog_compiler_no_builtin_flag_GCJ=
15738
15739 if test "$GCC" = yes; then
15740   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15741
15742
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15744 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15745 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15746   $as_echo_n "(cached) " >&6
15747 else
15748   lt_cv_prog_compiler_rtti_exceptions=no
15749   ac_outfile=conftest.$ac_objext
15750    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751    lt_compiler_flag="-fno-rtti -fno-exceptions"
15752    # Insert the option either (1) after the last *FLAGS variable, or
15753    # (2) before a word containing "conftest.", or (3) at the end.
15754    # Note that $ac_compile itself does not contain backslashes and begins
15755    # with a dollar sign (not a hyphen), so the echo should work correctly.
15756    # The option is referenced via a variable to avoid confusing sed.
15757    lt_compile=`echo "$ac_compile" | $SED \
15758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15760    -e 's:$: $lt_compiler_flag:'`
15761    (eval echo "\"\$as_me:15761: $lt_compile\"" >&5)
15762    (eval "$lt_compile" 2>conftest.err)
15763    ac_status=$?
15764    cat conftest.err >&5
15765    echo "$as_me:15765: \$? = $ac_status" >&5
15766    if (exit $ac_status) && test -s "$ac_outfile"; then
15767      # The compiler can only warn and ignore the option if not recognized
15768      # So say no if there are warnings other than the usual output.
15769      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15770      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15771      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15772        lt_cv_prog_compiler_rtti_exceptions=yes
15773      fi
15774    fi
15775    $rm conftest*
15776
15777 fi
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15779 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15780
15781 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15782     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15783 else
15784     :
15785 fi
15786
15787 fi
15788
15789 lt_prog_compiler_wl_GCJ=
15790 lt_prog_compiler_pic_GCJ=
15791 lt_prog_compiler_static_GCJ=
15792
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15794 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15795
15796   if test "$GCC" = yes; then
15797     lt_prog_compiler_wl_GCJ='-Wl,'
15798     lt_prog_compiler_static_GCJ='-static'
15799
15800     case $host_os in
15801       aix*)
15802       # All AIX code is PIC.
15803       if test "$host_cpu" = ia64; then
15804         # AIX 5 now supports IA64 processor
15805         lt_prog_compiler_static_GCJ='-Bstatic'
15806       fi
15807       ;;
15808
15809     amigaos*)
15810       # FIXME: we need at least 68020 code to build shared libraries, but
15811       # adding the `-m68020' flag to GCC prevents building anything better,
15812       # like `-m68040'.
15813       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15814       ;;
15815
15816     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15817       # PIC is the default for these OSes.
15818       ;;
15819
15820     mingw* | pw32* | os2*)
15821       # This hack is so that the source file can tell whether it is being
15822       # built for inclusion in a dll (and should export symbols for example).
15823       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15824       ;;
15825
15826     darwin* | rhapsody*)
15827       # PIC is the default on this platform
15828       # Common symbols not allowed in MH_DYLIB files
15829       lt_prog_compiler_pic_GCJ='-fno-common'
15830       ;;
15831
15832     interix3*)
15833       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15834       # Instead, we relocate shared libraries at runtime.
15835       ;;
15836
15837     msdosdjgpp*)
15838       # Just because we use GCC doesn't mean we suddenly get shared libraries
15839       # on systems that don't support them.
15840       lt_prog_compiler_can_build_shared_GCJ=no
15841       enable_shared=no
15842       ;;
15843
15844     sysv4*MP*)
15845       if test -d /usr/nec; then
15846         lt_prog_compiler_pic_GCJ=-Kconform_pic
15847       fi
15848       ;;
15849
15850     hpux*)
15851       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15852       # not for PA HP-UX.
15853       case $host_cpu in
15854       hppa*64*|ia64*)
15855         # +Z the default
15856         ;;
15857       *)
15858         lt_prog_compiler_pic_GCJ='-fPIC'
15859         ;;
15860       esac
15861       ;;
15862
15863     *)
15864       lt_prog_compiler_pic_GCJ='-fPIC'
15865       ;;
15866     esac
15867   else
15868     # PORTME Check for flag to pass linker flags through the system compiler.
15869     case $host_os in
15870     aix*)
15871       lt_prog_compiler_wl_GCJ='-Wl,'
15872       if test "$host_cpu" = ia64; then
15873         # AIX 5 now supports IA64 processor
15874         lt_prog_compiler_static_GCJ='-Bstatic'
15875       else
15876         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15877       fi
15878       ;;
15879       darwin*)
15880         # PIC is the default on this platform
15881         # Common symbols not allowed in MH_DYLIB files
15882        case $cc_basename in
15883          xlc*)
15884          lt_prog_compiler_pic_GCJ='-qnocommon'
15885          lt_prog_compiler_wl_GCJ='-Wl,'
15886          ;;
15887        esac
15888        ;;
15889
15890     mingw* | pw32* | os2*)
15891       # This hack is so that the source file can tell whether it is being
15892       # built for inclusion in a dll (and should export symbols for example).
15893       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15894       ;;
15895
15896     hpux9* | hpux10* | hpux11*)
15897       lt_prog_compiler_wl_GCJ='-Wl,'
15898       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15899       # not for PA HP-UX.
15900       case $host_cpu in
15901       hppa*64*|ia64*)
15902         # +Z the default
15903         ;;
15904       *)
15905         lt_prog_compiler_pic_GCJ='+Z'
15906         ;;
15907       esac
15908       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15909       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15910       ;;
15911
15912     irix5* | irix6* | nonstopux*)
15913       lt_prog_compiler_wl_GCJ='-Wl,'
15914       # PIC (with -KPIC) is the default.
15915       lt_prog_compiler_static_GCJ='-non_shared'
15916       ;;
15917
15918     newsos6)
15919       lt_prog_compiler_pic_GCJ='-KPIC'
15920       lt_prog_compiler_static_GCJ='-Bstatic'
15921       ;;
15922
15923     linux*)
15924       case $cc_basename in
15925       icc* | ecc*)
15926         lt_prog_compiler_wl_GCJ='-Wl,'
15927         lt_prog_compiler_pic_GCJ='-KPIC'
15928         lt_prog_compiler_static_GCJ='-static'
15929         ;;
15930       pgcc* | pgf77* | pgf90* | pgf95*)
15931         # Portland Group compilers (*not* the Pentium gcc compiler,
15932         # which looks to be a dead project)
15933         lt_prog_compiler_wl_GCJ='-Wl,'
15934         lt_prog_compiler_pic_GCJ='-fpic'
15935         lt_prog_compiler_static_GCJ='-Bstatic'
15936         ;;
15937       ccc*)
15938         lt_prog_compiler_wl_GCJ='-Wl,'
15939         # All Alpha code is PIC.
15940         lt_prog_compiler_static_GCJ='-non_shared'
15941         ;;
15942       esac
15943       ;;
15944
15945     osf3* | osf4* | osf5*)
15946       lt_prog_compiler_wl_GCJ='-Wl,'
15947       # All OSF/1 code is PIC.
15948       lt_prog_compiler_static_GCJ='-non_shared'
15949       ;;
15950
15951     solaris*)
15952       lt_prog_compiler_pic_GCJ='-KPIC'
15953       lt_prog_compiler_static_GCJ='-Bstatic'
15954       case $cc_basename in
15955       f77* | f90* | f95*)
15956         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15957       *)
15958         lt_prog_compiler_wl_GCJ='-Wl,';;
15959       esac
15960       ;;
15961
15962     sunos4*)
15963       lt_prog_compiler_wl_GCJ='-Qoption ld '
15964       lt_prog_compiler_pic_GCJ='-PIC'
15965       lt_prog_compiler_static_GCJ='-Bstatic'
15966       ;;
15967
15968     sysv4 | sysv4.2uw2* | sysv4.3*)
15969       lt_prog_compiler_wl_GCJ='-Wl,'
15970       lt_prog_compiler_pic_GCJ='-KPIC'
15971       lt_prog_compiler_static_GCJ='-Bstatic'
15972       ;;
15973
15974     sysv4*MP*)
15975       if test -d /usr/nec ;then
15976         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15977         lt_prog_compiler_static_GCJ='-Bstatic'
15978       fi
15979       ;;
15980
15981     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15982       lt_prog_compiler_wl_GCJ='-Wl,'
15983       lt_prog_compiler_pic_GCJ='-KPIC'
15984       lt_prog_compiler_static_GCJ='-Bstatic'
15985       ;;
15986
15987     unicos*)
15988       lt_prog_compiler_wl_GCJ='-Wl,'
15989       lt_prog_compiler_can_build_shared_GCJ=no
15990       ;;
15991
15992     uts4*)
15993       lt_prog_compiler_pic_GCJ='-pic'
15994       lt_prog_compiler_static_GCJ='-Bstatic'
15995       ;;
15996
15997     *)
15998       lt_prog_compiler_can_build_shared_GCJ=no
15999       ;;
16000     esac
16001   fi
16002
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16004 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16005
16006 #
16007 # Check to make sure the PIC flag actually works.
16008 #
16009 if test -n "$lt_prog_compiler_pic_GCJ"; then
16010
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16012 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16013 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16014   $as_echo_n "(cached) " >&6
16015 else
16016   lt_prog_compiler_pic_works_GCJ=no
16017   ac_outfile=conftest.$ac_objext
16018    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16019    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16020    # Insert the option either (1) after the last *FLAGS variable, or
16021    # (2) before a word containing "conftest.", or (3) at the end.
16022    # Note that $ac_compile itself does not contain backslashes and begins
16023    # with a dollar sign (not a hyphen), so the echo should work correctly.
16024    # The option is referenced via a variable to avoid confusing sed.
16025    lt_compile=`echo "$ac_compile" | $SED \
16026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16028    -e 's:$: $lt_compiler_flag:'`
16029    (eval echo "\"\$as_me:16029: $lt_compile\"" >&5)
16030    (eval "$lt_compile" 2>conftest.err)
16031    ac_status=$?
16032    cat conftest.err >&5
16033    echo "$as_me:16033: \$? = $ac_status" >&5
16034    if (exit $ac_status) && test -s "$ac_outfile"; then
16035      # The compiler can only warn and ignore the option if not recognized
16036      # So say no if there are warnings other than the usual output.
16037      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16038      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16039      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16040        lt_prog_compiler_pic_works_GCJ=yes
16041      fi
16042    fi
16043    $rm conftest*
16044
16045 fi
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16047 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16048
16049 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16050     case $lt_prog_compiler_pic_GCJ in
16051      "" | " "*) ;;
16052      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16053      esac
16054 else
16055     lt_prog_compiler_pic_GCJ=
16056      lt_prog_compiler_can_build_shared_GCJ=no
16057 fi
16058
16059 fi
16060 case $host_os in
16061   # For platforms which do not support PIC, -DPIC is meaningless:
16062   *djgpp*)
16063     lt_prog_compiler_pic_GCJ=
16064     ;;
16065   *)
16066     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16067     ;;
16068 esac
16069
16070 #
16071 # Check to make sure the static flag actually works.
16072 #
16073 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16075 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16076 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16077   $as_echo_n "(cached) " >&6
16078 else
16079   lt_prog_compiler_static_works_GCJ=no
16080    save_LDFLAGS="$LDFLAGS"
16081    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16082    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16083    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16084      # The linker can only warn and ignore the option if not recognized
16085      # So say no if there are warnings
16086      if test -s conftest.err; then
16087        # Append any errors to the config.log.
16088        cat conftest.err 1>&5
16089        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16090        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16091        if diff conftest.exp conftest.er2 >/dev/null; then
16092          lt_prog_compiler_static_works_GCJ=yes
16093        fi
16094      else
16095        lt_prog_compiler_static_works_GCJ=yes
16096      fi
16097    fi
16098    $rm conftest*
16099    LDFLAGS="$save_LDFLAGS"
16100
16101 fi
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16103 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16104
16105 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16106     :
16107 else
16108     lt_prog_compiler_static_GCJ=
16109 fi
16110
16111
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16113 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16114 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16115   $as_echo_n "(cached) " >&6
16116 else
16117   lt_cv_prog_compiler_c_o_GCJ=no
16118    $rm -r conftest 2>/dev/null
16119    mkdir conftest
16120    cd conftest
16121    mkdir out
16122    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16123
16124    lt_compiler_flag="-o out/conftest2.$ac_objext"
16125    # Insert the option either (1) after the last *FLAGS variable, or
16126    # (2) before a word containing "conftest.", or (3) at the end.
16127    # Note that $ac_compile itself does not contain backslashes and begins
16128    # with a dollar sign (not a hyphen), so the echo should work correctly.
16129    lt_compile=`echo "$ac_compile" | $SED \
16130    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16131    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16132    -e 's:$: $lt_compiler_flag:'`
16133    (eval echo "\"\$as_me:16133: $lt_compile\"" >&5)
16134    (eval "$lt_compile" 2>out/conftest.err)
16135    ac_status=$?
16136    cat out/conftest.err >&5
16137    echo "$as_me:16137: \$? = $ac_status" >&5
16138    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16139    then
16140      # The compiler can only warn and ignore the option if not recognized
16141      # So say no if there are warnings
16142      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16143      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16144      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16145        lt_cv_prog_compiler_c_o_GCJ=yes
16146      fi
16147    fi
16148    chmod u+w . 2>&5
16149    $rm conftest*
16150    # SGI C++ compiler will create directory out/ii_files/ for
16151    # template instantiation
16152    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16153    $rm out/* && rmdir out
16154    cd ..
16155    rmdir conftest
16156    $rm conftest*
16157
16158 fi
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16160 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16161
16162
16163 hard_links="nottested"
16164 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16165   # do not overwrite the value of need_locks provided by the user
16166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16167 $as_echo_n "checking if we can lock with hard links... " >&6; }
16168   hard_links=yes
16169   $rm conftest*
16170   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16171   touch conftest.a
16172   ln conftest.a conftest.b 2>&5 || hard_links=no
16173   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16175 $as_echo "$hard_links" >&6; }
16176   if test "$hard_links" = no; then
16177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16178 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16179     need_locks=warn
16180   fi
16181 else
16182   need_locks=no
16183 fi
16184
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16186 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16187
16188   runpath_var=
16189   allow_undefined_flag_GCJ=
16190   enable_shared_with_static_runtimes_GCJ=no
16191   archive_cmds_GCJ=
16192   archive_expsym_cmds_GCJ=
16193   old_archive_From_new_cmds_GCJ=
16194   old_archive_from_expsyms_cmds_GCJ=
16195   export_dynamic_flag_spec_GCJ=
16196   whole_archive_flag_spec_GCJ=
16197   thread_safe_flag_spec_GCJ=
16198   hardcode_libdir_flag_spec_GCJ=
16199   hardcode_libdir_flag_spec_ld_GCJ=
16200   hardcode_libdir_separator_GCJ=
16201   hardcode_direct_GCJ=no
16202   hardcode_minus_L_GCJ=no
16203   hardcode_shlibpath_var_GCJ=unsupported
16204   link_all_deplibs_GCJ=unknown
16205   hardcode_automatic_GCJ=no
16206   module_cmds_GCJ=
16207   module_expsym_cmds_GCJ=
16208   always_export_symbols_GCJ=no
16209   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16210   # include_expsyms should be a list of space-separated symbols to be *always*
16211   # included in the symbol list
16212   include_expsyms_GCJ=
16213   # exclude_expsyms can be an extended regexp of symbols to exclude
16214   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16215   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16216   # as well as any symbol that contains `d'.
16217   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16218   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16219   # platforms (ab)use it in PIC code, but their linkers get confused if
16220   # the symbol is explicitly referenced.  Since portable code cannot
16221   # rely on this symbol name, it's probably fine to never include it in
16222   # preloaded symbol tables.
16223   extract_expsyms_cmds=
16224   # Just being paranoid about ensuring that cc_basename is set.
16225   for cc_temp in $compiler""; do
16226   case $cc_temp in
16227     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16228     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16229     \-*) ;;
16230     *) break;;
16231   esac
16232 done
16233 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16234
16235   case $host_os in
16236   cygwin* | mingw* | pw32*)
16237     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16238     # When not using gcc, we currently assume that we are using
16239     # Microsoft Visual C++.
16240     if test "$GCC" != yes; then
16241       with_gnu_ld=no
16242     fi
16243     ;;
16244   interix*)
16245     # we just hope/assume this is gcc and not c89 (= MSVC++)
16246     with_gnu_ld=yes
16247     ;;
16248   openbsd*)
16249     with_gnu_ld=no
16250     ;;
16251   esac
16252
16253   ld_shlibs_GCJ=yes
16254   if test "$with_gnu_ld" = yes; then
16255     # If archive_cmds runs LD, not CC, wlarc should be empty
16256     wlarc='${wl}'
16257
16258     # Set some defaults for GNU ld with shared library support. These
16259     # are reset later if shared libraries are not supported. Putting them
16260     # here allows them to be overridden if necessary.
16261     runpath_var=LD_RUN_PATH
16262     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16263     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16264     # ancient GNU ld didn't support --whole-archive et. al.
16265     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16266         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16267       else
16268         whole_archive_flag_spec_GCJ=
16269     fi
16270     supports_anon_versioning=no
16271     case `$LD -v 2>/dev/null` in
16272       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16273       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16274       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16275       *\ 2.11.*) ;; # other 2.11 versions
16276       *) supports_anon_versioning=yes ;;
16277     esac
16278
16279     # See if GNU ld supports shared libraries.
16280     case $host_os in
16281     aix3* | aix4* | aix5*)
16282       # On AIX/PPC, the GNU linker is very broken
16283       if test "$host_cpu" != ia64; then
16284         ld_shlibs_GCJ=no
16285         cat <<EOF 1>&2
16286
16287 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16288 *** to be unable to reliably create shared libraries on AIX.
16289 *** Therefore, libtool is disabling shared libraries support.  If you
16290 *** really care for shared libraries, you may want to modify your PATH
16291 *** so that a non-GNU linker is found, and then restart.
16292
16293 EOF
16294       fi
16295       ;;
16296
16297     amigaos*)
16298       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)'
16299       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16300       hardcode_minus_L_GCJ=yes
16301
16302       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16303       # that the semantics of dynamic libraries on AmigaOS, at least up
16304       # to version 4, is to share data among multiple programs linked
16305       # with the same dynamic library.  Since this doesn't match the
16306       # behavior of shared libraries on other platforms, we can't use
16307       # them.
16308       ld_shlibs_GCJ=no
16309       ;;
16310
16311     beos*)
16312       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16313         allow_undefined_flag_GCJ=unsupported
16314         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16315         # support --undefined.  This deserves some investigation.  FIXME
16316         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16317       else
16318         ld_shlibs_GCJ=no
16319       fi
16320       ;;
16321
16322     cygwin* | mingw* | pw32*)
16323       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16324       # as there is no search path for DLLs.
16325       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16326       allow_undefined_flag_GCJ=unsupported
16327       always_export_symbols_GCJ=no
16328       enable_shared_with_static_runtimes_GCJ=yes
16329       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16330
16331       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16332         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16333         # If the export-symbols file already is a .def file (1st line
16334         # is EXPORTS), use it as is; otherwise, prepend...
16335         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16336           cp $export_symbols $output_objdir/$soname.def;
16337         else
16338           echo EXPORTS > $output_objdir/$soname.def;
16339           cat $export_symbols >> $output_objdir/$soname.def;
16340         fi~
16341         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16342       else
16343         ld_shlibs_GCJ=no
16344       fi
16345       ;;
16346
16347     interix3*)
16348       hardcode_direct_GCJ=no
16349       hardcode_shlibpath_var_GCJ=no
16350       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16351       export_dynamic_flag_spec_GCJ='${wl}-E'
16352       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16353       # Instead, shared libraries are loaded at an image base (0x10000000 by
16354       # default) and relocated if they conflict, which is a slow very memory
16355       # consuming and fragmenting process.  To avoid this, we pick a random,
16356       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16357       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16358       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16359       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16360       ;;
16361
16362     linux*)
16363       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16364         tmp_addflag=
16365         case $cc_basename,$host_cpu in
16366         pgcc*)                          # Portland Group C compiler
16367           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16368           tmp_addflag=' $pic_flag'
16369           ;;
16370         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16371           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16372           tmp_addflag=' $pic_flag -Mnomain' ;;
16373         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16374           tmp_addflag=' -i_dynamic' ;;
16375         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16376           tmp_addflag=' -i_dynamic -nofor_main' ;;
16377         ifc* | ifort*)                  # Intel Fortran compiler
16378           tmp_addflag=' -nofor_main' ;;
16379         esac
16380         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16381
16382         if test $supports_anon_versioning = yes; then
16383           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16384   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16385   $echo "local: *; };" >> $output_objdir/$libname.ver~
16386           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16387         fi
16388       else
16389         ld_shlibs_GCJ=no
16390       fi
16391       ;;
16392
16393     netbsd*)
16394       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16395         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16396         wlarc=
16397       else
16398         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16399         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16400       fi
16401       ;;
16402
16403     solaris*)
16404       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16405         ld_shlibs_GCJ=no
16406         cat <<EOF 1>&2
16407
16408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16409 *** create shared libraries on Solaris systems.  Therefore, libtool
16410 *** is disabling shared libraries support.  We urge you to upgrade GNU
16411 *** binutils to release 2.9.1 or newer.  Another option is to modify
16412 *** your PATH or compiler configuration so that the native linker is
16413 *** used, and then restart.
16414
16415 EOF
16416       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16417         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16418         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16419       else
16420         ld_shlibs_GCJ=no
16421       fi
16422       ;;
16423
16424     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16425       case `$LD -v 2>&1` in
16426         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16427         ld_shlibs_GCJ=no
16428         cat <<_LT_EOF 1>&2
16429
16430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16431 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16432 *** is disabling shared libraries support.  We urge you to upgrade GNU
16433 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16434 *** your PATH or compiler configuration so that the native linker is
16435 *** used, and then restart.
16436
16437 _LT_EOF
16438         ;;
16439         *)
16440           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16441             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16442             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16443             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16444           else
16445             ld_shlibs_GCJ=no
16446           fi
16447         ;;
16448       esac
16449       ;;
16450
16451     sunos4*)
16452       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16453       wlarc=
16454       hardcode_direct_GCJ=yes
16455       hardcode_shlibpath_var_GCJ=no
16456       ;;
16457
16458     *)
16459       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16460         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16461         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16462       else
16463         ld_shlibs_GCJ=no
16464       fi
16465       ;;
16466     esac
16467
16468     if test "$ld_shlibs_GCJ" = no; then
16469       runpath_var=
16470       hardcode_libdir_flag_spec_GCJ=
16471       export_dynamic_flag_spec_GCJ=
16472       whole_archive_flag_spec_GCJ=
16473     fi
16474   else
16475     # PORTME fill in a description of your system's linker (not GNU ld)
16476     case $host_os in
16477     aix3*)
16478       allow_undefined_flag_GCJ=unsupported
16479       always_export_symbols_GCJ=yes
16480       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'
16481       # Note: this linker hardcodes the directories in LIBPATH if there
16482       # are no directories specified by -L.
16483       hardcode_minus_L_GCJ=yes
16484       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16485         # Neither direct hardcoding nor static linking is supported with a
16486         # broken collect2.
16487         hardcode_direct_GCJ=unsupported
16488       fi
16489       ;;
16490
16491     aix4* | aix5*)
16492       if test "$host_cpu" = ia64; then
16493         # On IA64, the linker does run time linking by default, so we don't
16494         # have to do anything special.
16495         aix_use_runtimelinking=no
16496         exp_sym_flag='-Bexport'
16497         no_entry_flag=""
16498       else
16499         # If we're using GNU nm, then we don't want the "-C" option.
16500         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16501         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16502           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'
16503         else
16504           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'
16505         fi
16506         aix_use_runtimelinking=no
16507
16508         # Test if we are trying to use run time linking or normal
16509         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16510         # need to do runtime linking.
16511         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16512           for ld_flag in $LDFLAGS; do
16513           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16514             aix_use_runtimelinking=yes
16515             break
16516           fi
16517           done
16518           ;;
16519         esac
16520
16521         exp_sym_flag='-bexport'
16522         no_entry_flag='-bnoentry'
16523       fi
16524
16525       # When large executables or shared objects are built, AIX ld can
16526       # have problems creating the table of contents.  If linking a library
16527       # or program results in "error TOC overflow" add -mminimal-toc to
16528       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16529       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16530
16531       archive_cmds_GCJ=''
16532       hardcode_direct_GCJ=yes
16533       hardcode_libdir_separator_GCJ=':'
16534       link_all_deplibs_GCJ=yes
16535
16536       if test "$GCC" = yes; then
16537         case $host_os in aix4.[012]|aix4.[012].*)
16538         # We only want to do this on AIX 4.2 and lower, the check
16539         # below for broken collect2 doesn't work under 4.3+
16540           collect2name=`${CC} -print-prog-name=collect2`
16541           if test -f "$collect2name" && \
16542            strings "$collect2name" | grep resolve_lib_name >/dev/null
16543           then
16544           # We have reworked collect2
16545           hardcode_direct_GCJ=yes
16546           else
16547           # We have old collect2
16548           hardcode_direct_GCJ=unsupported
16549           # It fails to find uninstalled libraries when the uninstalled
16550           # path is not listed in the libpath.  Setting hardcode_minus_L
16551           # to unsupported forces relinking
16552           hardcode_minus_L_GCJ=yes
16553           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16554           hardcode_libdir_separator_GCJ=
16555           fi
16556           ;;
16557         esac
16558         shared_flag='-shared'
16559         if test "$aix_use_runtimelinking" = yes; then
16560           shared_flag="$shared_flag "'${wl}-G'
16561         fi
16562       else
16563         # not using gcc
16564         if test "$host_cpu" = ia64; then
16565         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16566         # chokes on -Wl,-G. The following line is correct:
16567           shared_flag='-G'
16568         else
16569           if test "$aix_use_runtimelinking" = yes; then
16570             shared_flag='${wl}-G'
16571           else
16572             shared_flag='${wl}-bM:SRE'
16573           fi
16574         fi
16575       fi
16576
16577       # It seems that -bexpall does not export symbols beginning with
16578       # underscore (_), so it is better to generate a list of symbols to export.
16579       always_export_symbols_GCJ=yes
16580       if test "$aix_use_runtimelinking" = yes; then
16581         # Warning - without using the other runtime loading flags (-brtl),
16582         # -berok will link without error, but may produce a broken library.
16583         allow_undefined_flag_GCJ='-berok'
16584        # Determine the default libpath from the value encoded in an empty executable.
16585        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h.  */
16587
16588 int
16589 main ()
16590 {
16591
16592   ;
16593   return 0;
16594 }
16595 _ACEOF
16596 if ac_fn_c_try_link "$LINENO"; then :
16597
16598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16599 }'`
16600 # Check for a 64-bit object if we didn't find anything.
16601 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; }
16602 }'`; fi
16603 fi
16604 rm -f core conftest.err conftest.$ac_objext \
16605     conftest$ac_exeext conftest.$ac_ext
16606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16607
16608        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16609         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16610        else
16611         if test "$host_cpu" = ia64; then
16612           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16613           allow_undefined_flag_GCJ="-z nodefs"
16614           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16615         else
16616          # Determine the default libpath from the value encoded in an empty executable.
16617          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h.  */
16619
16620 int
16621 main ()
16622 {
16623
16624   ;
16625   return 0;
16626 }
16627 _ACEOF
16628 if ac_fn_c_try_link "$LINENO"; then :
16629
16630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16631 }'`
16632 # Check for a 64-bit object if we didn't find anything.
16633 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; }
16634 }'`; fi
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext \
16637     conftest$ac_exeext conftest.$ac_ext
16638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16639
16640          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16641           # Warning - without using the other run time loading flags,
16642           # -berok will link without error, but may produce a broken library.
16643           no_undefined_flag_GCJ=' ${wl}-bernotok'
16644           allow_undefined_flag_GCJ=' ${wl}-berok'
16645           # Exported symbols can be pulled into shared objects from archives
16646           whole_archive_flag_spec_GCJ='$convenience'
16647           archive_cmds_need_lc_GCJ=yes
16648           # This is similar to how AIX traditionally builds its shared libraries.
16649           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16650         fi
16651       fi
16652       ;;
16653
16654     amigaos*)
16655       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)'
16656       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16657       hardcode_minus_L_GCJ=yes
16658       # see comment about different semantics on the GNU ld section
16659       ld_shlibs_GCJ=no
16660       ;;
16661
16662     bsdi[45]*)
16663       export_dynamic_flag_spec_GCJ=-rdynamic
16664       ;;
16665
16666     cygwin* | mingw* | pw32*)
16667       # When not using gcc, we currently assume that we are using
16668       # Microsoft Visual C++.
16669       # hardcode_libdir_flag_spec is actually meaningless, as there is
16670       # no search path for DLLs.
16671       hardcode_libdir_flag_spec_GCJ=' '
16672       allow_undefined_flag_GCJ=unsupported
16673       # Tell ltmain to make .lib files, not .a files.
16674       libext=lib
16675       # Tell ltmain to make .dll files, not .so files.
16676       shrext_cmds=".dll"
16677       # FIXME: Setting linknames here is a bad hack.
16678       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16679       # The linker will automatically build a .lib file if we build a DLL.
16680       old_archive_From_new_cmds_GCJ='true'
16681       # FIXME: Should let the user specify the lib program.
16682       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16683       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16684       enable_shared_with_static_runtimes_GCJ=yes
16685       ;;
16686
16687     darwin* | rhapsody*)
16688       case $host_os in
16689         rhapsody* | darwin1.[012])
16690          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16691          ;;
16692        *) # Darwin 1.3 on
16693          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16694            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16695          else
16696            case ${MACOSX_DEPLOYMENT_TARGET} in
16697              10.[012])
16698                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16699                ;;
16700              10.*)
16701                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16702                ;;
16703            esac
16704          fi
16705          ;;
16706       esac
16707       archive_cmds_need_lc_GCJ=no
16708       hardcode_direct_GCJ=no
16709       hardcode_automatic_GCJ=yes
16710       hardcode_shlibpath_var_GCJ=unsupported
16711       whole_archive_flag_spec_GCJ=''
16712       link_all_deplibs_GCJ=yes
16713     if test "$GCC" = yes ; then
16714         output_verbose_link_cmd='echo'
16715         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16716       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16717       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16718       archive_expsym_cmds_GCJ='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}'
16719       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}'
16720     else
16721       case $cc_basename in
16722         xlc*)
16723          output_verbose_link_cmd='echo'
16724          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16725          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16726           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16727          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16728           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}'
16729           ;;
16730        *)
16731          ld_shlibs_GCJ=no
16732           ;;
16733       esac
16734     fi
16735       ;;
16736
16737     dgux*)
16738       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16740       hardcode_shlibpath_var_GCJ=no
16741       ;;
16742
16743     freebsd1*)
16744       ld_shlibs_GCJ=no
16745       ;;
16746
16747     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16748     # support.  Future versions do this automatically, but an explicit c++rt0.o
16749     # does not break anything, and helps significantly (at the cost of a little
16750     # extra space).
16751     freebsd2.2*)
16752       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16753       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16754       hardcode_direct_GCJ=yes
16755       hardcode_shlibpath_var_GCJ=no
16756       ;;
16757
16758     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16759     freebsd2*)
16760       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16761       hardcode_direct_GCJ=yes
16762       hardcode_minus_L_GCJ=yes
16763       hardcode_shlibpath_var_GCJ=no
16764       ;;
16765
16766     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16767     freebsd* | kfreebsd*-gnu | dragonfly*)
16768       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16769       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16770       hardcode_direct_GCJ=yes
16771       hardcode_shlibpath_var_GCJ=no
16772       ;;
16773
16774     hpux9*)
16775       if test "$GCC" = yes; then
16776         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'
16777       else
16778         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'
16779       fi
16780       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16781       hardcode_libdir_separator_GCJ=:
16782       hardcode_direct_GCJ=yes
16783
16784       # hardcode_minus_L: Not really in the search PATH,
16785       # but as the default location of the library.
16786       hardcode_minus_L_GCJ=yes
16787       export_dynamic_flag_spec_GCJ='${wl}-E'
16788       ;;
16789
16790     hpux10*)
16791       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16792         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16793       else
16794         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16795       fi
16796       if test "$with_gnu_ld" = no; then
16797         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16798         hardcode_libdir_separator_GCJ=:
16799
16800         hardcode_direct_GCJ=yes
16801         export_dynamic_flag_spec_GCJ='${wl}-E'
16802
16803         # hardcode_minus_L: Not really in the search PATH,
16804         # but as the default location of the library.
16805         hardcode_minus_L_GCJ=yes
16806       fi
16807       ;;
16808
16809     hpux11*)
16810       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16811         case $host_cpu in
16812         hppa*64*)
16813           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16814           ;;
16815         ia64*)
16816           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16817           ;;
16818         *)
16819           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16820           ;;
16821         esac
16822       else
16823         case $host_cpu in
16824         hppa*64*)
16825           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16826           ;;
16827         ia64*)
16828           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16829           ;;
16830         *)
16831           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16832           ;;
16833         esac
16834       fi
16835       if test "$with_gnu_ld" = no; then
16836         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16837         hardcode_libdir_separator_GCJ=:
16838
16839         case $host_cpu in
16840         hppa*64*|ia64*)
16841           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16842           hardcode_direct_GCJ=no
16843           hardcode_shlibpath_var_GCJ=no
16844           ;;
16845         *)
16846           hardcode_direct_GCJ=yes
16847           export_dynamic_flag_spec_GCJ='${wl}-E'
16848
16849           # hardcode_minus_L: Not really in the search PATH,
16850           # but as the default location of the library.
16851           hardcode_minus_L_GCJ=yes
16852           ;;
16853         esac
16854       fi
16855       ;;
16856
16857     irix5* | irix6* | nonstopux*)
16858       if test "$GCC" = yes; then
16859         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'
16860       else
16861         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'
16862         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16863       fi
16864       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16865       hardcode_libdir_separator_GCJ=:
16866       link_all_deplibs_GCJ=yes
16867       ;;
16868
16869     netbsd*)
16870       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16871         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16872       else
16873         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16874       fi
16875       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16876       hardcode_direct_GCJ=yes
16877       hardcode_shlibpath_var_GCJ=no
16878       ;;
16879
16880     newsos6)
16881       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16882       hardcode_direct_GCJ=yes
16883       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16884       hardcode_libdir_separator_GCJ=:
16885       hardcode_shlibpath_var_GCJ=no
16886       ;;
16887
16888     openbsd*)
16889       hardcode_direct_GCJ=yes
16890       hardcode_shlibpath_var_GCJ=no
16891       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16892         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16893         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16894         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16895         export_dynamic_flag_spec_GCJ='${wl}-E'
16896       else
16897        case $host_os in
16898          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16899            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16900            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16901            ;;
16902          *)
16903            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16904            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16905            ;;
16906        esac
16907       fi
16908       ;;
16909
16910     os2*)
16911       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16912       hardcode_minus_L_GCJ=yes
16913       allow_undefined_flag_GCJ=unsupported
16914       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'
16915       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16916       ;;
16917
16918     osf3*)
16919       if test "$GCC" = yes; then
16920         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16921         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'
16922       else
16923         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16924         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'
16925       fi
16926       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16927       hardcode_libdir_separator_GCJ=:
16928       ;;
16929
16930     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16931       if test "$GCC" = yes; then
16932         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16933         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'
16934         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16935       else
16936         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16937         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'
16938         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~
16939         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16940
16941         # Both c and cxx compiler support -rpath directly
16942         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16943       fi
16944       hardcode_libdir_separator_GCJ=:
16945       ;;
16946
16947     solaris*)
16948       no_undefined_flag_GCJ=' -z text'
16949       if test "$GCC" = yes; then
16950         wlarc='${wl}'
16951         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16952         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16953           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16954       else
16955         wlarc=''
16956         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16957         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16958         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16959       fi
16960       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16961       hardcode_shlibpath_var_GCJ=no
16962       case $host_os in
16963       solaris2.[0-5] | solaris2.[0-5].*) ;;
16964       *)
16965         # The compiler driver will combine linker options so we
16966         # cannot just pass the convience library names through
16967         # without $wl, iff we do not link with $LD.
16968         # Luckily, gcc supports the same syntax we need for Sun Studio.
16969         # Supported since Solaris 2.6 (maybe 2.5.1?)
16970         case $wlarc in
16971         '')
16972           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16973         *)
16974           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16975         esac ;;
16976       esac
16977       link_all_deplibs_GCJ=yes
16978       ;;
16979
16980     sunos4*)
16981       if test "x$host_vendor" = xsequent; then
16982         # Use $CC to link under sequent, because it throws in some extra .o
16983         # files that make .init and .fini sections work.
16984         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16985       else
16986         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16987       fi
16988       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16989       hardcode_direct_GCJ=yes
16990       hardcode_minus_L_GCJ=yes
16991       hardcode_shlibpath_var_GCJ=no
16992       ;;
16993
16994     sysv4)
16995       case $host_vendor in
16996         sni)
16997           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16998           hardcode_direct_GCJ=yes # is this really true???
16999         ;;
17000         siemens)
17001           ## LD is ld it makes a PLAMLIB
17002           ## CC just makes a GrossModule.
17003           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17004           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17005           hardcode_direct_GCJ=no
17006         ;;
17007         motorola)
17008           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17009           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17010         ;;
17011       esac
17012       runpath_var='LD_RUN_PATH'
17013       hardcode_shlibpath_var_GCJ=no
17014       ;;
17015
17016     sysv4.3*)
17017       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17018       hardcode_shlibpath_var_GCJ=no
17019       export_dynamic_flag_spec_GCJ='-Bexport'
17020       ;;
17021
17022     sysv4*MP*)
17023       if test -d /usr/nec; then
17024         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025         hardcode_shlibpath_var_GCJ=no
17026         runpath_var=LD_RUN_PATH
17027         hardcode_runpath_var=yes
17028         ld_shlibs_GCJ=yes
17029       fi
17030       ;;
17031
17032     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17033       no_undefined_flag_GCJ='${wl}-z,text'
17034       archive_cmds_need_lc_GCJ=no
17035       hardcode_shlibpath_var_GCJ=no
17036       runpath_var='LD_RUN_PATH'
17037
17038       if test "$GCC" = yes; then
17039         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17040         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17041       else
17042         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17043         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044       fi
17045       ;;
17046
17047     sysv5* | sco3.2v5* | sco5v6*)
17048       # Note: We can NOT use -z defs as we might desire, because we do not
17049       # link with -lc, and that would cause any symbols used from libc to
17050       # always be unresolved, which means just about no library would
17051       # ever link correctly.  If we're not using GNU ld we use -z text
17052       # though, which does catch some bad symbols but isn't as heavy-handed
17053       # as -z defs.
17054       no_undefined_flag_GCJ='${wl}-z,text'
17055       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17056       archive_cmds_need_lc_GCJ=no
17057       hardcode_shlibpath_var_GCJ=no
17058       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17059       hardcode_libdir_separator_GCJ=':'
17060       link_all_deplibs_GCJ=yes
17061       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17062       runpath_var='LD_RUN_PATH'
17063
17064       if test "$GCC" = yes; then
17065         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17066         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17067       else
17068         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17069         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17070       fi
17071       ;;
17072
17073     uts4*)
17074       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17075       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17076       hardcode_shlibpath_var_GCJ=no
17077       ;;
17078
17079     *)
17080       ld_shlibs_GCJ=no
17081       ;;
17082     esac
17083   fi
17084
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17086 $as_echo "$ld_shlibs_GCJ" >&6; }
17087 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17088
17089 #
17090 # Do we need to explicitly link libc?
17091 #
17092 case "x$archive_cmds_need_lc_GCJ" in
17093 x|xyes)
17094   # Assume -lc should be added
17095   archive_cmds_need_lc_GCJ=yes
17096
17097   if test "$enable_shared" = yes && test "$GCC" = yes; then
17098     case $archive_cmds_GCJ in
17099     *'~'*)
17100       # FIXME: we may have to deal with multi-command sequences.
17101       ;;
17102     '$CC '*)
17103       # Test whether the compiler implicitly links with -lc since on some
17104       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17105       # to ld, don't add -lc before -lgcc.
17106       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17107 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17108       $rm conftest*
17109       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17110
17111       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17112   (eval $ac_compile) 2>&5
17113   ac_status=$?
17114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115   test $ac_status = 0; } 2>conftest.err; then
17116         soname=conftest
17117         lib=conftest
17118         libobjs=conftest.$ac_objext
17119         deplibs=
17120         wl=$lt_prog_compiler_wl_GCJ
17121         pic_flag=$lt_prog_compiler_pic_GCJ
17122         compiler_flags=-v
17123         linker_flags=-v
17124         verstring=
17125         output_objdir=.
17126         libname=conftest
17127         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17128         allow_undefined_flag_GCJ=
17129         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17130   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17131   ac_status=$?
17132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17133   test $ac_status = 0; }
17134         then
17135           archive_cmds_need_lc_GCJ=no
17136         else
17137           archive_cmds_need_lc_GCJ=yes
17138         fi
17139         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17140       else
17141         cat conftest.err 1>&5
17142       fi
17143       $rm conftest*
17144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17145 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17146       ;;
17147     esac
17148   fi
17149   ;;
17150 esac
17151
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17153 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17154 library_names_spec=
17155 libname_spec='lib$name'
17156 soname_spec=
17157 shrext_cmds=".so"
17158 postinstall_cmds=
17159 postuninstall_cmds=
17160 finish_cmds=
17161 finish_eval=
17162 shlibpath_var=
17163 shlibpath_overrides_runpath=unknown
17164 version_type=none
17165 dynamic_linker="$host_os ld.so"
17166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17167 if test "$GCC" = yes; then
17168   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17169   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17170     # if the path contains ";" then we assume it to be the separator
17171     # otherwise default to the standard path separator (i.e. ":") - it is
17172     # assumed that no part of a normal pathname contains ";" but that should
17173     # okay in the real world where ";" in dirpaths is itself problematic.
17174     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17175   else
17176     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17177   fi
17178 else
17179   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17180 fi
17181 need_lib_prefix=unknown
17182 hardcode_into_libs=no
17183
17184 # when you set need_version to no, make sure it does not cause -set_version
17185 # flags to be left without arguments
17186 need_version=unknown
17187
17188 case $host_os in
17189 aix3*)
17190   version_type=linux
17191   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17192   shlibpath_var=LIBPATH
17193
17194   # AIX 3 has no versioning support, so we append a major version to the name.
17195   soname_spec='${libname}${release}${shared_ext}$major'
17196   ;;
17197
17198 aix4* | aix5*)
17199   version_type=linux
17200   need_lib_prefix=no
17201   need_version=no
17202   hardcode_into_libs=yes
17203   if test "$host_cpu" = ia64; then
17204     # AIX 5 supports IA64
17205     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17206     shlibpath_var=LD_LIBRARY_PATH
17207   else
17208     # With GCC up to 2.95.x, collect2 would create an import file
17209     # for dependence libraries.  The import file would start with
17210     # the line `#! .'.  This would cause the generated library to
17211     # depend on `.', always an invalid library.  This was fixed in
17212     # development snapshots of GCC prior to 3.0.
17213     case $host_os in
17214       aix4 | aix4.[01] | aix4.[01].*)
17215       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17216            echo ' yes '
17217            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17218         :
17219       else
17220         can_build_shared=no
17221       fi
17222       ;;
17223     esac
17224     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17225     # soname into executable. Probably we can add versioning support to
17226     # collect2, so additional links can be useful in future.
17227     if test "$aix_use_runtimelinking" = yes; then
17228       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17229       # instead of lib<name>.a to let people know that these are not
17230       # typical AIX shared libraries.
17231       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232     else
17233       # We preserve .a as extension for shared libraries through AIX4.2
17234       # and later when we are not doing run time linking.
17235       library_names_spec='${libname}${release}.a $libname.a'
17236       soname_spec='${libname}${release}${shared_ext}$major'
17237     fi
17238     shlibpath_var=LIBPATH
17239   fi
17240   ;;
17241
17242 amigaos*)
17243   library_names_spec='$libname.ixlibrary $libname.a'
17244   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17245   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'
17246   ;;
17247
17248 beos*)
17249   library_names_spec='${libname}${shared_ext}'
17250   dynamic_linker="$host_os ld.so"
17251   shlibpath_var=LIBRARY_PATH
17252   ;;
17253
17254 bsdi[45]*)
17255   version_type=linux
17256   need_version=no
17257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17258   soname_spec='${libname}${release}${shared_ext}$major'
17259   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17260   shlibpath_var=LD_LIBRARY_PATH
17261   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17262   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17263   # the default ld.so.conf also contains /usr/contrib/lib and
17264   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17265   # libtool to hard-code these into programs
17266   ;;
17267
17268 cygwin* | mingw* | pw32*)
17269   version_type=windows
17270   shrext_cmds=".dll"
17271   need_version=no
17272   need_lib_prefix=no
17273
17274   case $GCC,$host_os in
17275   yes,cygwin* | yes,mingw* | yes,pw32*)
17276     library_names_spec='$libname.dll.a'
17277     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17278     postinstall_cmds='base_file=`basename \${file}`~
17279       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17280       dldir=$destdir/`dirname \$dlpath`~
17281       test -d \$dldir || mkdir -p \$dldir~
17282       $install_prog $dir/$dlname \$dldir/$dlname~
17283       chmod a+x \$dldir/$dlname'
17284     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17285       dlpath=$dir/\$dldll~
17286        $rm \$dlpath'
17287     shlibpath_overrides_runpath=yes
17288
17289     case $host_os in
17290     cygwin*)
17291       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17292       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17293       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17294       ;;
17295     mingw*)
17296       # MinGW DLLs use traditional 'lib' prefix
17297       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17298       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17299       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17300         # It is most probably a Windows format PATH printed by
17301         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17302         # path with ; separators, and with drive letters. We can handle the
17303         # drive letters (cygwin fileutils understands them), so leave them,
17304         # especially as we might pass files found there to a mingw objdump,
17305         # which wouldn't understand a cygwinified path. Ahh.
17306         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17307       else
17308         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17309       fi
17310       ;;
17311     pw32*)
17312       # pw32 DLLs use 'pw' prefix rather than 'lib'
17313       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17314       ;;
17315     esac
17316     ;;
17317
17318   *)
17319     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17320     ;;
17321   esac
17322   dynamic_linker='Win32 ld.exe'
17323   # FIXME: first we should search . and the directory the executable is in
17324   shlibpath_var=PATH
17325   ;;
17326
17327 darwin* | rhapsody*)
17328   dynamic_linker="$host_os dyld"
17329   version_type=darwin
17330   need_lib_prefix=no
17331   need_version=no
17332   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17333   soname_spec='${libname}${release}${major}$shared_ext'
17334   shlibpath_overrides_runpath=yes
17335   shlibpath_var=DYLD_LIBRARY_PATH
17336   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17337   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17338   if test "$GCC" = yes; then
17339     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"`
17340   else
17341     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17342   fi
17343   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17344   ;;
17345
17346 dgux*)
17347   version_type=linux
17348   need_lib_prefix=no
17349   need_version=no
17350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17351   soname_spec='${libname}${release}${shared_ext}$major'
17352   shlibpath_var=LD_LIBRARY_PATH
17353   ;;
17354
17355 freebsd1*)
17356   dynamic_linker=no
17357   ;;
17358
17359 kfreebsd*-gnu)
17360   version_type=linux
17361   need_lib_prefix=no
17362   need_version=no
17363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17364   soname_spec='${libname}${release}${shared_ext}$major'
17365   shlibpath_var=LD_LIBRARY_PATH
17366   shlibpath_overrides_runpath=no
17367   hardcode_into_libs=yes
17368   dynamic_linker='GNU ld.so'
17369   ;;
17370
17371 freebsd* | dragonfly*)
17372   # DragonFly does not have aout.  When/if they implement a new
17373   # versioning mechanism, adjust this.
17374   if test -x /usr/bin/objformat; then
17375     objformat=`/usr/bin/objformat`
17376   else
17377     case $host_os in
17378     freebsd[123]*) objformat=aout ;;
17379     *) objformat=elf ;;
17380     esac
17381   fi
17382   version_type=freebsd-$objformat
17383   case $version_type in
17384     freebsd-elf*)
17385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17386       need_version=no
17387       need_lib_prefix=no
17388       ;;
17389     freebsd-*)
17390       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17391       need_version=yes
17392       ;;
17393   esac
17394   shlibpath_var=LD_LIBRARY_PATH
17395   case $host_os in
17396   freebsd2*)
17397     shlibpath_overrides_runpath=yes
17398     ;;
17399   freebsd3.[01]* | freebsdelf3.[01]*)
17400     shlibpath_overrides_runpath=yes
17401     hardcode_into_libs=yes
17402     ;;
17403   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17404   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17405     shlibpath_overrides_runpath=no
17406     hardcode_into_libs=yes
17407     ;;
17408   freebsd*) # from 4.6 on
17409     shlibpath_overrides_runpath=yes
17410     hardcode_into_libs=yes
17411     ;;
17412   esac
17413   ;;
17414
17415 gnu*)
17416   version_type=linux
17417   need_lib_prefix=no
17418   need_version=no
17419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17420   soname_spec='${libname}${release}${shared_ext}$major'
17421   shlibpath_var=LD_LIBRARY_PATH
17422   hardcode_into_libs=yes
17423   ;;
17424
17425 hpux9* | hpux10* | hpux11*)
17426   # Give a soname corresponding to the major version so that dld.sl refuses to
17427   # link against other versions.
17428   version_type=sunos
17429   need_lib_prefix=no
17430   need_version=no
17431   case $host_cpu in
17432   ia64*)
17433     shrext_cmds='.so'
17434     hardcode_into_libs=yes
17435     dynamic_linker="$host_os dld.so"
17436     shlibpath_var=LD_LIBRARY_PATH
17437     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17439     soname_spec='${libname}${release}${shared_ext}$major'
17440     if test "X$HPUX_IA64_MODE" = X32; then
17441       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17442     else
17443       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17444     fi
17445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17446     ;;
17447    hppa*64*)
17448      shrext_cmds='.sl'
17449      hardcode_into_libs=yes
17450      dynamic_linker="$host_os dld.sl"
17451      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17452      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17453      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454      soname_spec='${libname}${release}${shared_ext}$major'
17455      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17456      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17457      ;;
17458    *)
17459     shrext_cmds='.sl'
17460     dynamic_linker="$host_os dld.sl"
17461     shlibpath_var=SHLIB_PATH
17462     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464     soname_spec='${libname}${release}${shared_ext}$major'
17465     ;;
17466   esac
17467   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17468   postinstall_cmds='chmod 555 $lib'
17469   ;;
17470
17471 interix3*)
17472   version_type=linux
17473   need_lib_prefix=no
17474   need_version=no
17475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17476   soname_spec='${libname}${release}${shared_ext}$major'
17477   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17478   shlibpath_var=LD_LIBRARY_PATH
17479   shlibpath_overrides_runpath=no
17480   hardcode_into_libs=yes
17481   ;;
17482
17483 irix5* | irix6* | nonstopux*)
17484   case $host_os in
17485     nonstopux*) version_type=nonstopux ;;
17486     *)
17487         if test "$lt_cv_prog_gnu_ld" = yes; then
17488                 version_type=linux
17489         else
17490                 version_type=irix
17491         fi ;;
17492   esac
17493   need_lib_prefix=no
17494   need_version=no
17495   soname_spec='${libname}${release}${shared_ext}$major'
17496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17497   case $host_os in
17498   irix5* | nonstopux*)
17499     libsuff= shlibsuff=
17500     ;;
17501   *)
17502     case $LD in # libtool.m4 will add one of these switches to LD
17503     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17504       libsuff= shlibsuff= libmagic=32-bit;;
17505     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17506       libsuff=32 shlibsuff=N32 libmagic=N32;;
17507     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17508       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17509     *) libsuff= shlibsuff= libmagic=never-match;;
17510     esac
17511     ;;
17512   esac
17513   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17514   shlibpath_overrides_runpath=no
17515   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17516   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17517   hardcode_into_libs=yes
17518   ;;
17519
17520 # No shared lib support for Linux oldld, aout, or coff.
17521 linux*oldld* | linux*aout* | linux*coff*)
17522   dynamic_linker=no
17523   ;;
17524
17525 # This must be Linux ELF.
17526 linux*)
17527   version_type=linux
17528   need_lib_prefix=no
17529   need_version=no
17530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531   soname_spec='${libname}${release}${shared_ext}$major'
17532   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17533   shlibpath_var=LD_LIBRARY_PATH
17534   shlibpath_overrides_runpath=no
17535   # This implies no fast_install, which is unacceptable.
17536   # Some rework will be needed to allow for fast_install
17537   # before this can be enabled.
17538   hardcode_into_libs=yes
17539
17540   # Append ld.so.conf contents to the search path
17541   if test -f /etc/ld.so.conf; then
17542     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17543     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17544   fi
17545
17546   # We used to test for /lib/ld.so.1 and disable shared libraries on
17547   # powerpc, because MkLinux only supported shared libraries with the
17548   # GNU dynamic linker.  Since this was broken with cross compilers,
17549   # most powerpc-linux boxes support dynamic linking these days and
17550   # people can always --disable-shared, the test was removed, and we
17551   # assume the GNU/Linux dynamic linker is in use.
17552   dynamic_linker='GNU/Linux ld.so'
17553   ;;
17554
17555 knetbsd*-gnu)
17556   version_type=linux
17557   need_lib_prefix=no
17558   need_version=no
17559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17560   soname_spec='${libname}${release}${shared_ext}$major'
17561   shlibpath_var=LD_LIBRARY_PATH
17562   shlibpath_overrides_runpath=no
17563   hardcode_into_libs=yes
17564   dynamic_linker='GNU ld.so'
17565   ;;
17566
17567 netbsd*)
17568   version_type=sunos
17569   need_lib_prefix=no
17570   need_version=no
17571   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17573     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17574     dynamic_linker='NetBSD (a.out) ld.so'
17575   else
17576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17577     soname_spec='${libname}${release}${shared_ext}$major'
17578     dynamic_linker='NetBSD ld.elf_so'
17579   fi
17580   shlibpath_var=LD_LIBRARY_PATH
17581   shlibpath_overrides_runpath=yes
17582   hardcode_into_libs=yes
17583   ;;
17584
17585 newsos6)
17586   version_type=linux
17587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588   shlibpath_var=LD_LIBRARY_PATH
17589   shlibpath_overrides_runpath=yes
17590   ;;
17591
17592 nto-qnx*)
17593   version_type=linux
17594   need_lib_prefix=no
17595   need_version=no
17596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597   soname_spec='${libname}${release}${shared_ext}$major'
17598   shlibpath_var=LD_LIBRARY_PATH
17599   shlibpath_overrides_runpath=yes
17600   ;;
17601
17602 openbsd*)
17603   version_type=sunos
17604   sys_lib_dlsearch_path_spec="/usr/lib"
17605   need_lib_prefix=no
17606   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17607   case $host_os in
17608     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17609     *)                         need_version=no  ;;
17610   esac
17611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17612   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17613   shlibpath_var=LD_LIBRARY_PATH
17614   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17615     case $host_os in
17616       openbsd2.[89] | openbsd2.[89].*)
17617         shlibpath_overrides_runpath=no
17618         ;;
17619       *)
17620         shlibpath_overrides_runpath=yes
17621         ;;
17622       esac
17623   else
17624     shlibpath_overrides_runpath=yes
17625   fi
17626   ;;
17627
17628 os2*)
17629   libname_spec='$name'
17630   shrext_cmds=".dll"
17631   need_lib_prefix=no
17632   library_names_spec='$libname${shared_ext} $libname.a'
17633   dynamic_linker='OS/2 ld.exe'
17634   shlibpath_var=LIBPATH
17635   ;;
17636
17637 osf3* | osf4* | osf5*)
17638   version_type=osf
17639   need_lib_prefix=no
17640   need_version=no
17641   soname_spec='${libname}${release}${shared_ext}$major'
17642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643   shlibpath_var=LD_LIBRARY_PATH
17644   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17645   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17646   ;;
17647
17648 solaris*)
17649   version_type=linux
17650   need_lib_prefix=no
17651   need_version=no
17652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17653   soname_spec='${libname}${release}${shared_ext}$major'
17654   shlibpath_var=LD_LIBRARY_PATH
17655   shlibpath_overrides_runpath=yes
17656   hardcode_into_libs=yes
17657   # ldd complains unless libraries are executable
17658   postinstall_cmds='chmod +x $lib'
17659   ;;
17660
17661 sunos4*)
17662   version_type=sunos
17663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17664   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17665   shlibpath_var=LD_LIBRARY_PATH
17666   shlibpath_overrides_runpath=yes
17667   if test "$with_gnu_ld" = yes; then
17668     need_lib_prefix=no
17669   fi
17670   need_version=yes
17671   ;;
17672
17673 sysv4 | sysv4.3*)
17674   version_type=linux
17675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17676   soname_spec='${libname}${release}${shared_ext}$major'
17677   shlibpath_var=LD_LIBRARY_PATH
17678   case $host_vendor in
17679     sni)
17680       shlibpath_overrides_runpath=no
17681       need_lib_prefix=no
17682       export_dynamic_flag_spec='${wl}-Blargedynsym'
17683       runpath_var=LD_RUN_PATH
17684       ;;
17685     siemens)
17686       need_lib_prefix=no
17687       ;;
17688     motorola)
17689       need_lib_prefix=no
17690       need_version=no
17691       shlibpath_overrides_runpath=no
17692       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17693       ;;
17694   esac
17695   ;;
17696
17697 sysv4*MP*)
17698   if test -d /usr/nec ;then
17699     version_type=linux
17700     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17701     soname_spec='$libname${shared_ext}.$major'
17702     shlibpath_var=LD_LIBRARY_PATH
17703   fi
17704   ;;
17705
17706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17707   version_type=freebsd-elf
17708   need_lib_prefix=no
17709   need_version=no
17710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17711   soname_spec='${libname}${release}${shared_ext}$major'
17712   shlibpath_var=LD_LIBRARY_PATH
17713   hardcode_into_libs=yes
17714   if test "$with_gnu_ld" = yes; then
17715     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17716     shlibpath_overrides_runpath=no
17717   else
17718     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17719     shlibpath_overrides_runpath=yes
17720     case $host_os in
17721       sco3.2v5*)
17722         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17723         ;;
17724     esac
17725   fi
17726   sys_lib_dlsearch_path_spec='/usr/lib'
17727   ;;
17728
17729 uts4*)
17730   version_type=linux
17731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732   soname_spec='${libname}${release}${shared_ext}$major'
17733   shlibpath_var=LD_LIBRARY_PATH
17734   ;;
17735
17736 *)
17737   dynamic_linker=no
17738   ;;
17739 esac
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17741 $as_echo "$dynamic_linker" >&6; }
17742 test "$dynamic_linker" = no && can_build_shared=no
17743
17744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17745 if test "$GCC" = yes; then
17746   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17747 fi
17748
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17750 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17751 hardcode_action_GCJ=
17752 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17753    test -n "$runpath_var_GCJ" || \
17754    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17755
17756   # We can hardcode non-existant directories.
17757   if test "$hardcode_direct_GCJ" != no &&
17758      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17759      # have to relink, otherwise we might link with an installed library
17760      # when we should be linking with a yet-to-be-installed one
17761      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17762      test "$hardcode_minus_L_GCJ" != no; then
17763     # Linking always hardcodes the temporary library directory.
17764     hardcode_action_GCJ=relink
17765   else
17766     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17767     hardcode_action_GCJ=immediate
17768   fi
17769 else
17770   # We cannot hardcode anything, or else we can only hardcode existing
17771   # directories.
17772   hardcode_action_GCJ=unsupported
17773 fi
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17775 $as_echo "$hardcode_action_GCJ" >&6; }
17776
17777 if test "$hardcode_action_GCJ" = relink; then
17778   # Fast installation is not supported
17779   enable_fast_install=no
17780 elif test "$shlibpath_overrides_runpath" = yes ||
17781      test "$enable_shared" = no; then
17782   # Fast installation is not necessary
17783   enable_fast_install=needless
17784 fi
17785
17786
17787 # The else clause should only fire when bootstrapping the
17788 # libtool distribution, otherwise you forgot to ship ltmain.sh
17789 # with your package, and you will get complaints that there are
17790 # no rules to generate ltmain.sh.
17791 if test -f "$ltmain"; then
17792   # See if we are running on zsh, and set the options which allow our commands through
17793   # without removal of \ escapes.
17794   if test -n "${ZSH_VERSION+set}" ; then
17795     setopt NO_GLOB_SUBST
17796   fi
17797   # Now quote all the things that may contain metacharacters while being
17798   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17799   # variables and quote the copies for generation of the libtool script.
17800   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17801     SED SHELL STRIP \
17802     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17803     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17804     deplibs_check_method reload_flag reload_cmds need_locks \
17805     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17806     lt_cv_sys_global_symbol_to_c_name_address \
17807     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17808     old_postinstall_cmds old_postuninstall_cmds \
17809     compiler_GCJ \
17810     CC_GCJ \
17811     LD_GCJ \
17812     lt_prog_compiler_wl_GCJ \
17813     lt_prog_compiler_pic_GCJ \
17814     lt_prog_compiler_static_GCJ \
17815     lt_prog_compiler_no_builtin_flag_GCJ \
17816     export_dynamic_flag_spec_GCJ \
17817     thread_safe_flag_spec_GCJ \
17818     whole_archive_flag_spec_GCJ \
17819     enable_shared_with_static_runtimes_GCJ \
17820     old_archive_cmds_GCJ \
17821     old_archive_from_new_cmds_GCJ \
17822     predep_objects_GCJ \
17823     postdep_objects_GCJ \
17824     predeps_GCJ \
17825     postdeps_GCJ \
17826     compiler_lib_search_path_GCJ \
17827     archive_cmds_GCJ \
17828     archive_expsym_cmds_GCJ \
17829     postinstall_cmds_GCJ \
17830     postuninstall_cmds_GCJ \
17831     old_archive_from_expsyms_cmds_GCJ \
17832     allow_undefined_flag_GCJ \
17833     no_undefined_flag_GCJ \
17834     export_symbols_cmds_GCJ \
17835     hardcode_libdir_flag_spec_GCJ \
17836     hardcode_libdir_flag_spec_ld_GCJ \
17837     hardcode_libdir_separator_GCJ \
17838     hardcode_automatic_GCJ \
17839     module_cmds_GCJ \
17840     module_expsym_cmds_GCJ \
17841     lt_cv_prog_compiler_c_o_GCJ \
17842     exclude_expsyms_GCJ \
17843     include_expsyms_GCJ; do
17844
17845     case $var in
17846     old_archive_cmds_GCJ | \
17847     old_archive_from_new_cmds_GCJ | \
17848     archive_cmds_GCJ | \
17849     archive_expsym_cmds_GCJ | \
17850     module_cmds_GCJ | \
17851     module_expsym_cmds_GCJ | \
17852     old_archive_from_expsyms_cmds_GCJ | \
17853     export_symbols_cmds_GCJ | \
17854     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17855     postinstall_cmds | postuninstall_cmds | \
17856     old_postinstall_cmds | old_postuninstall_cmds | \
17857     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17858       # Double-quote double-evaled strings.
17859       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17860       ;;
17861     *)
17862       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17863       ;;
17864     esac
17865   done
17866
17867   case $lt_echo in
17868   *'\$0 --fallback-echo"')
17869     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17870     ;;
17871   esac
17872
17873 cfgfile="$ofile"
17874
17875   cat <<__EOF__ >> "$cfgfile"
17876 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17877
17878 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17879
17880 # Shell to use when invoking shell scripts.
17881 SHELL=$lt_SHELL
17882
17883 # Whether or not to build shared libraries.
17884 build_libtool_libs=$enable_shared
17885
17886 # Whether or not to build static libraries.
17887 build_old_libs=$enable_static
17888
17889 # Whether or not to add -lc for building shared libraries.
17890 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17891
17892 # Whether or not to disallow shared libs when runtime libs are static
17893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17894
17895 # Whether or not to optimize for fast installation.
17896 fast_install=$enable_fast_install
17897
17898 # The host system.
17899 host_alias=$host_alias
17900 host=$host
17901 host_os=$host_os
17902
17903 # The build system.
17904 build_alias=$build_alias
17905 build=$build
17906 build_os=$build_os
17907
17908 # An echo program that does not interpret backslashes.
17909 echo=$lt_echo
17910
17911 # The archiver.
17912 AR=$lt_AR
17913 AR_FLAGS=$lt_AR_FLAGS
17914
17915 # A C compiler.
17916 LTCC=$lt_LTCC
17917
17918 # LTCC compiler flags.
17919 LTCFLAGS=$lt_LTCFLAGS
17920
17921 # A language-specific compiler.
17922 CC=$lt_compiler_GCJ
17923
17924 # Is the compiler the GNU C compiler?
17925 with_gcc=$GCC_GCJ
17926
17927 # An ERE matcher.
17928 EGREP=$lt_EGREP
17929
17930 # The linker used to build libraries.
17931 LD=$lt_LD_GCJ
17932
17933 # Whether we need hard or soft links.
17934 LN_S=$lt_LN_S
17935
17936 # A BSD-compatible nm program.
17937 NM=$lt_NM
17938
17939 # A symbol stripping program
17940 STRIP=$lt_STRIP
17941
17942 # Used to examine libraries when file_magic_cmd begins "file"
17943 MAGIC_CMD=$MAGIC_CMD
17944
17945 # Used on cygwin: DLL creation program.
17946 DLLTOOL="$DLLTOOL"
17947
17948 # Used on cygwin: object dumper.
17949 OBJDUMP="$OBJDUMP"
17950
17951 # Used on cygwin: assembler.
17952 AS="$AS"
17953
17954 # The name of the directory that contains temporary libtool files.
17955 objdir=$objdir
17956
17957 # How to create reloadable object files.
17958 reload_flag=$lt_reload_flag
17959 reload_cmds=$lt_reload_cmds
17960
17961 # How to pass a linker flag through the compiler.
17962 wl=$lt_lt_prog_compiler_wl_GCJ
17963
17964 # Object file suffix (normally "o").
17965 objext="$ac_objext"
17966
17967 # Old archive suffix (normally "a").
17968 libext="$libext"
17969
17970 # Shared library suffix (normally ".so").
17971 shrext_cmds='$shrext_cmds'
17972
17973 # Executable file suffix (normally "").
17974 exeext="$exeext"
17975
17976 # Additional compiler flags for building library objects.
17977 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17978 pic_mode=$pic_mode
17979
17980 # What is the maximum length of a command?
17981 max_cmd_len=$lt_cv_sys_max_cmd_len
17982
17983 # Does compiler simultaneously support -c and -o options?
17984 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17985
17986 # Must we lock files when doing compilation?
17987 need_locks=$lt_need_locks
17988
17989 # Do we need the lib prefix for modules?
17990 need_lib_prefix=$need_lib_prefix
17991
17992 # Do we need a version for libraries?
17993 need_version=$need_version
17994
17995 # Whether dlopen is supported.
17996 dlopen_support=$enable_dlopen
17997
17998 # Whether dlopen of programs is supported.
17999 dlopen_self=$enable_dlopen_self
18000
18001 # Whether dlopen of statically linked programs is supported.
18002 dlopen_self_static=$enable_dlopen_self_static
18003
18004 # Compiler flag to prevent dynamic linking.
18005 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18006
18007 # Compiler flag to turn off builtin functions.
18008 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18009
18010 # Compiler flag to allow reflexive dlopens.
18011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18012
18013 # Compiler flag to generate shared objects directly from archives.
18014 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18015
18016 # Compiler flag to generate thread-safe objects.
18017 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18018
18019 # Library versioning type.
18020 version_type=$version_type
18021
18022 # Format of library name prefix.
18023 libname_spec=$lt_libname_spec
18024
18025 # List of archive names.  First name is the real one, the rest are links.
18026 # The last name is the one that the linker finds with -lNAME.
18027 library_names_spec=$lt_library_names_spec
18028
18029 # The coded name of the library, if different from the real name.
18030 soname_spec=$lt_soname_spec
18031
18032 # Commands used to build and install an old-style archive.
18033 RANLIB=$lt_RANLIB
18034 old_archive_cmds=$lt_old_archive_cmds_GCJ
18035 old_postinstall_cmds=$lt_old_postinstall_cmds
18036 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18037
18038 # Create an old-style archive from a shared archive.
18039 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18040
18041 # Create a temporary old-style archive to link instead of a shared archive.
18042 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18043
18044 # Commands used to build and install a shared archive.
18045 archive_cmds=$lt_archive_cmds_GCJ
18046 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18047 postinstall_cmds=$lt_postinstall_cmds
18048 postuninstall_cmds=$lt_postuninstall_cmds
18049
18050 # Commands used to build a loadable module (assumed same as above if empty)
18051 module_cmds=$lt_module_cmds_GCJ
18052 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18053
18054 # Commands to strip libraries.
18055 old_striplib=$lt_old_striplib
18056 striplib=$lt_striplib
18057
18058 # Dependencies to place before the objects being linked to create a
18059 # shared library.
18060 predep_objects=$lt_predep_objects_GCJ
18061
18062 # Dependencies to place after the objects being linked to create a
18063 # shared library.
18064 postdep_objects=$lt_postdep_objects_GCJ
18065
18066 # Dependencies to place before the objects being linked to create a
18067 # shared library.
18068 predeps=$lt_predeps_GCJ
18069
18070 # Dependencies to place after the objects being linked to create a
18071 # shared library.
18072 postdeps=$lt_postdeps_GCJ
18073
18074 # The library search path used internally by the compiler when linking
18075 # a shared library.
18076 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18077
18078 # Method to check whether dependent libraries are shared objects.
18079 deplibs_check_method=$lt_deplibs_check_method
18080
18081 # Command to use when deplibs_check_method == file_magic.
18082 file_magic_cmd=$lt_file_magic_cmd
18083
18084 # Flag that allows shared libraries with undefined symbols to be built.
18085 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18086
18087 # Flag that forces no undefined symbols.
18088 no_undefined_flag=$lt_no_undefined_flag_GCJ
18089
18090 # Commands used to finish a libtool library installation in a directory.
18091 finish_cmds=$lt_finish_cmds
18092
18093 # Same as above, but a single script fragment to be evaled but not shown.
18094 finish_eval=$lt_finish_eval
18095
18096 # Take the output of nm and produce a listing of raw symbols and C names.
18097 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18098
18099 # Transform the output of nm in a proper C declaration
18100 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18101
18102 # Transform the output of nm in a C name address pair
18103 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18104
18105 # This is the shared library runtime path variable.
18106 runpath_var=$runpath_var
18107
18108 # This is the shared library path variable.
18109 shlibpath_var=$shlibpath_var
18110
18111 # Is shlibpath searched before the hard-coded library search path?
18112 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18113
18114 # How to hardcode a shared library path into an executable.
18115 hardcode_action=$hardcode_action_GCJ
18116
18117 # Whether we should hardcode library paths into libraries.
18118 hardcode_into_libs=$hardcode_into_libs
18119
18120 # Flag to hardcode \$libdir into a binary during linking.
18121 # This must work even if \$libdir does not exist.
18122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18123
18124 # If ld is used when linking, flag to hardcode \$libdir into
18125 # a binary during linking. This must work even if \$libdir does
18126 # not exist.
18127 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18128
18129 # Whether we need a single -rpath flag with a separated argument.
18130 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18131
18132 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18133 # resulting binary.
18134 hardcode_direct=$hardcode_direct_GCJ
18135
18136 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18137 # resulting binary.
18138 hardcode_minus_L=$hardcode_minus_L_GCJ
18139
18140 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18141 # the resulting binary.
18142 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18143
18144 # Set to yes if building a shared library automatically hardcodes DIR into the library
18145 # and all subsequent libraries and executables linked against it.
18146 hardcode_automatic=$hardcode_automatic_GCJ
18147
18148 # Variables whose values should be saved in libtool wrapper scripts and
18149 # restored at relink time.
18150 variables_saved_for_relink="$variables_saved_for_relink"
18151
18152 # Whether libtool must link a program against all its dependency libraries.
18153 link_all_deplibs=$link_all_deplibs_GCJ
18154
18155 # Compile-time system search path for libraries
18156 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18157
18158 # Run-time system search path for libraries
18159 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18160
18161 # Fix the shell variable \$srcfile for the compiler.
18162 fix_srcfile_path="$fix_srcfile_path_GCJ"
18163
18164 # Set to yes if exported symbols are required.
18165 always_export_symbols=$always_export_symbols_GCJ
18166
18167 # The commands to list exported symbols.
18168 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18169
18170 # The commands to extract the exported symbol list from a shared archive.
18171 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18172
18173 # Symbols that should not be listed in the preloaded symbols.
18174 exclude_expsyms=$lt_exclude_expsyms_GCJ
18175
18176 # Symbols that must always be exported.
18177 include_expsyms=$lt_include_expsyms_GCJ
18178
18179 # ### END LIBTOOL TAG CONFIG: $tagname
18180
18181 __EOF__
18182
18183
18184 else
18185   # If there is no Makefile yet, we rely on a make rule to execute
18186   # `config.status --recheck' to rerun these tests and create the
18187   # libtool script then.
18188   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18189   if test -f "$ltmain_in"; then
18190     test -f Makefile && make "$ltmain"
18191   fi
18192 fi
18193
18194
18195 ac_ext=c
18196 ac_cpp='$CPP $CPPFLAGS'
18197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18200
18201 CC="$lt_save_CC"
18202
18203         else
18204           tagname=""
18205         fi
18206         ;;
18207
18208       RC)
18209
18210
18211 # Source file extension for RC test sources.
18212 ac_ext=rc
18213
18214 # Object file extension for compiled RC test sources.
18215 objext=o
18216 objext_RC=$objext
18217
18218 # Code to be used in simple compile tests
18219 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18220
18221 # Code to be used in simple link tests
18222 lt_simple_link_test_code="$lt_simple_compile_test_code"
18223
18224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18225
18226 # If no C compiler was specified, use CC.
18227 LTCC=${LTCC-"$CC"}
18228
18229 # If no C compiler flags were specified, use CFLAGS.
18230 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18231
18232 # Allow CC to be a program name with arguments.
18233 compiler=$CC
18234
18235
18236 # save warnings/boilerplate of simple test code
18237 ac_outfile=conftest.$ac_objext
18238 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18239 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18240 _lt_compiler_boilerplate=`cat conftest.err`
18241 $rm conftest*
18242
18243 ac_outfile=conftest.$ac_objext
18244 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18245 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18246 _lt_linker_boilerplate=`cat conftest.err`
18247 $rm conftest*
18248
18249
18250 # Allow CC to be a program name with arguments.
18251 lt_save_CC="$CC"
18252 CC=${RC-"windres"}
18253 compiler=$CC
18254 compiler_RC=$CC
18255 for cc_temp in $compiler""; do
18256   case $cc_temp in
18257     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18258     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18259     \-*) ;;
18260     *) break;;
18261   esac
18262 done
18263 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18264
18265 lt_cv_prog_compiler_c_o_RC=yes
18266
18267 # The else clause should only fire when bootstrapping the
18268 # libtool distribution, otherwise you forgot to ship ltmain.sh
18269 # with your package, and you will get complaints that there are
18270 # no rules to generate ltmain.sh.
18271 if test -f "$ltmain"; then
18272   # See if we are running on zsh, and set the options which allow our commands through
18273   # without removal of \ escapes.
18274   if test -n "${ZSH_VERSION+set}" ; then
18275     setopt NO_GLOB_SUBST
18276   fi
18277   # Now quote all the things that may contain metacharacters while being
18278   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18279   # variables and quote the copies for generation of the libtool script.
18280   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18281     SED SHELL STRIP \
18282     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18283     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18284     deplibs_check_method reload_flag reload_cmds need_locks \
18285     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18286     lt_cv_sys_global_symbol_to_c_name_address \
18287     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18288     old_postinstall_cmds old_postuninstall_cmds \
18289     compiler_RC \
18290     CC_RC \
18291     LD_RC \
18292     lt_prog_compiler_wl_RC \
18293     lt_prog_compiler_pic_RC \
18294     lt_prog_compiler_static_RC \
18295     lt_prog_compiler_no_builtin_flag_RC \
18296     export_dynamic_flag_spec_RC \
18297     thread_safe_flag_spec_RC \
18298     whole_archive_flag_spec_RC \
18299     enable_shared_with_static_runtimes_RC \
18300     old_archive_cmds_RC \
18301     old_archive_from_new_cmds_RC \
18302     predep_objects_RC \
18303     postdep_objects_RC \
18304     predeps_RC \
18305     postdeps_RC \
18306     compiler_lib_search_path_RC \
18307     archive_cmds_RC \
18308     archive_expsym_cmds_RC \
18309     postinstall_cmds_RC \
18310     postuninstall_cmds_RC \
18311     old_archive_from_expsyms_cmds_RC \
18312     allow_undefined_flag_RC \
18313     no_undefined_flag_RC \
18314     export_symbols_cmds_RC \
18315     hardcode_libdir_flag_spec_RC \
18316     hardcode_libdir_flag_spec_ld_RC \
18317     hardcode_libdir_separator_RC \
18318     hardcode_automatic_RC \
18319     module_cmds_RC \
18320     module_expsym_cmds_RC \
18321     lt_cv_prog_compiler_c_o_RC \
18322     exclude_expsyms_RC \
18323     include_expsyms_RC; do
18324
18325     case $var in
18326     old_archive_cmds_RC | \
18327     old_archive_from_new_cmds_RC | \
18328     archive_cmds_RC | \
18329     archive_expsym_cmds_RC | \
18330     module_cmds_RC | \
18331     module_expsym_cmds_RC | \
18332     old_archive_from_expsyms_cmds_RC | \
18333     export_symbols_cmds_RC | \
18334     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18335     postinstall_cmds | postuninstall_cmds | \
18336     old_postinstall_cmds | old_postuninstall_cmds | \
18337     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18338       # Double-quote double-evaled strings.
18339       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18340       ;;
18341     *)
18342       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18343       ;;
18344     esac
18345   done
18346
18347   case $lt_echo in
18348   *'\$0 --fallback-echo"')
18349     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18350     ;;
18351   esac
18352
18353 cfgfile="$ofile"
18354
18355   cat <<__EOF__ >> "$cfgfile"
18356 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18357
18358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18359
18360 # Shell to use when invoking shell scripts.
18361 SHELL=$lt_SHELL
18362
18363 # Whether or not to build shared libraries.
18364 build_libtool_libs=$enable_shared
18365
18366 # Whether or not to build static libraries.
18367 build_old_libs=$enable_static
18368
18369 # Whether or not to add -lc for building shared libraries.
18370 build_libtool_need_lc=$archive_cmds_need_lc_RC
18371
18372 # Whether or not to disallow shared libs when runtime libs are static
18373 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18374
18375 # Whether or not to optimize for fast installation.
18376 fast_install=$enable_fast_install
18377
18378 # The host system.
18379 host_alias=$host_alias
18380 host=$host
18381 host_os=$host_os
18382
18383 # The build system.
18384 build_alias=$build_alias
18385 build=$build
18386 build_os=$build_os
18387
18388 # An echo program that does not interpret backslashes.
18389 echo=$lt_echo
18390
18391 # The archiver.
18392 AR=$lt_AR
18393 AR_FLAGS=$lt_AR_FLAGS
18394
18395 # A C compiler.
18396 LTCC=$lt_LTCC
18397
18398 # LTCC compiler flags.
18399 LTCFLAGS=$lt_LTCFLAGS
18400
18401 # A language-specific compiler.
18402 CC=$lt_compiler_RC
18403
18404 # Is the compiler the GNU C compiler?
18405 with_gcc=$GCC_RC
18406
18407 # An ERE matcher.
18408 EGREP=$lt_EGREP
18409
18410 # The linker used to build libraries.
18411 LD=$lt_LD_RC
18412
18413 # Whether we need hard or soft links.
18414 LN_S=$lt_LN_S
18415
18416 # A BSD-compatible nm program.
18417 NM=$lt_NM
18418
18419 # A symbol stripping program
18420 STRIP=$lt_STRIP
18421
18422 # Used to examine libraries when file_magic_cmd begins "file"
18423 MAGIC_CMD=$MAGIC_CMD
18424
18425 # Used on cygwin: DLL creation program.
18426 DLLTOOL="$DLLTOOL"
18427
18428 # Used on cygwin: object dumper.
18429 OBJDUMP="$OBJDUMP"
18430
18431 # Used on cygwin: assembler.
18432 AS="$AS"
18433
18434 # The name of the directory that contains temporary libtool files.
18435 objdir=$objdir
18436
18437 # How to create reloadable object files.
18438 reload_flag=$lt_reload_flag
18439 reload_cmds=$lt_reload_cmds
18440
18441 # How to pass a linker flag through the compiler.
18442 wl=$lt_lt_prog_compiler_wl_RC
18443
18444 # Object file suffix (normally "o").
18445 objext="$ac_objext"
18446
18447 # Old archive suffix (normally "a").
18448 libext="$libext"
18449
18450 # Shared library suffix (normally ".so").
18451 shrext_cmds='$shrext_cmds'
18452
18453 # Executable file suffix (normally "").
18454 exeext="$exeext"
18455
18456 # Additional compiler flags for building library objects.
18457 pic_flag=$lt_lt_prog_compiler_pic_RC
18458 pic_mode=$pic_mode
18459
18460 # What is the maximum length of a command?
18461 max_cmd_len=$lt_cv_sys_max_cmd_len
18462
18463 # Does compiler simultaneously support -c and -o options?
18464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18465
18466 # Must we lock files when doing compilation?
18467 need_locks=$lt_need_locks
18468
18469 # Do we need the lib prefix for modules?
18470 need_lib_prefix=$need_lib_prefix
18471
18472 # Do we need a version for libraries?
18473 need_version=$need_version
18474
18475 # Whether dlopen is supported.
18476 dlopen_support=$enable_dlopen
18477
18478 # Whether dlopen of programs is supported.
18479 dlopen_self=$enable_dlopen_self
18480
18481 # Whether dlopen of statically linked programs is supported.
18482 dlopen_self_static=$enable_dlopen_self_static
18483
18484 # Compiler flag to prevent dynamic linking.
18485 link_static_flag=$lt_lt_prog_compiler_static_RC
18486
18487 # Compiler flag to turn off builtin functions.
18488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18489
18490 # Compiler flag to allow reflexive dlopens.
18491 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18492
18493 # Compiler flag to generate shared objects directly from archives.
18494 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18495
18496 # Compiler flag to generate thread-safe objects.
18497 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18498
18499 # Library versioning type.
18500 version_type=$version_type
18501
18502 # Format of library name prefix.
18503 libname_spec=$lt_libname_spec
18504
18505 # List of archive names.  First name is the real one, the rest are links.
18506 # The last name is the one that the linker finds with -lNAME.
18507 library_names_spec=$lt_library_names_spec
18508
18509 # The coded name of the library, if different from the real name.
18510 soname_spec=$lt_soname_spec
18511
18512 # Commands used to build and install an old-style archive.
18513 RANLIB=$lt_RANLIB
18514 old_archive_cmds=$lt_old_archive_cmds_RC
18515 old_postinstall_cmds=$lt_old_postinstall_cmds
18516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18517
18518 # Create an old-style archive from a shared archive.
18519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18520
18521 # Create a temporary old-style archive to link instead of a shared archive.
18522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18523
18524 # Commands used to build and install a shared archive.
18525 archive_cmds=$lt_archive_cmds_RC
18526 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18527 postinstall_cmds=$lt_postinstall_cmds
18528 postuninstall_cmds=$lt_postuninstall_cmds
18529
18530 # Commands used to build a loadable module (assumed same as above if empty)
18531 module_cmds=$lt_module_cmds_RC
18532 module_expsym_cmds=$lt_module_expsym_cmds_RC
18533
18534 # Commands to strip libraries.
18535 old_striplib=$lt_old_striplib
18536 striplib=$lt_striplib
18537
18538 # Dependencies to place before the objects being linked to create a
18539 # shared library.
18540 predep_objects=$lt_predep_objects_RC
18541
18542 # Dependencies to place after the objects being linked to create a
18543 # shared library.
18544 postdep_objects=$lt_postdep_objects_RC
18545
18546 # Dependencies to place before the objects being linked to create a
18547 # shared library.
18548 predeps=$lt_predeps_RC
18549
18550 # Dependencies to place after the objects being linked to create a
18551 # shared library.
18552 postdeps=$lt_postdeps_RC
18553
18554 # The library search path used internally by the compiler when linking
18555 # a shared library.
18556 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18557
18558 # Method to check whether dependent libraries are shared objects.
18559 deplibs_check_method=$lt_deplibs_check_method
18560
18561 # Command to use when deplibs_check_method == file_magic.
18562 file_magic_cmd=$lt_file_magic_cmd
18563
18564 # Flag that allows shared libraries with undefined symbols to be built.
18565 allow_undefined_flag=$lt_allow_undefined_flag_RC
18566
18567 # Flag that forces no undefined symbols.
18568 no_undefined_flag=$lt_no_undefined_flag_RC
18569
18570 # Commands used to finish a libtool library installation in a directory.
18571 finish_cmds=$lt_finish_cmds
18572
18573 # Same as above, but a single script fragment to be evaled but not shown.
18574 finish_eval=$lt_finish_eval
18575
18576 # Take the output of nm and produce a listing of raw symbols and C names.
18577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18578
18579 # Transform the output of nm in a proper C declaration
18580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18581
18582 # Transform the output of nm in a C name address pair
18583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18584
18585 # This is the shared library runtime path variable.
18586 runpath_var=$runpath_var
18587
18588 # This is the shared library path variable.
18589 shlibpath_var=$shlibpath_var
18590
18591 # Is shlibpath searched before the hard-coded library search path?
18592 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18593
18594 # How to hardcode a shared library path into an executable.
18595 hardcode_action=$hardcode_action_RC
18596
18597 # Whether we should hardcode library paths into libraries.
18598 hardcode_into_libs=$hardcode_into_libs
18599
18600 # Flag to hardcode \$libdir into a binary during linking.
18601 # This must work even if \$libdir does not exist.
18602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18603
18604 # If ld is used when linking, flag to hardcode \$libdir into
18605 # a binary during linking. This must work even if \$libdir does
18606 # not exist.
18607 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18608
18609 # Whether we need a single -rpath flag with a separated argument.
18610 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18611
18612 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18613 # resulting binary.
18614 hardcode_direct=$hardcode_direct_RC
18615
18616 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18617 # resulting binary.
18618 hardcode_minus_L=$hardcode_minus_L_RC
18619
18620 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18621 # the resulting binary.
18622 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18623
18624 # Set to yes if building a shared library automatically hardcodes DIR into the library
18625 # and all subsequent libraries and executables linked against it.
18626 hardcode_automatic=$hardcode_automatic_RC
18627
18628 # Variables whose values should be saved in libtool wrapper scripts and
18629 # restored at relink time.
18630 variables_saved_for_relink="$variables_saved_for_relink"
18631
18632 # Whether libtool must link a program against all its dependency libraries.
18633 link_all_deplibs=$link_all_deplibs_RC
18634
18635 # Compile-time system search path for libraries
18636 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18637
18638 # Run-time system search path for libraries
18639 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18640
18641 # Fix the shell variable \$srcfile for the compiler.
18642 fix_srcfile_path="$fix_srcfile_path_RC"
18643
18644 # Set to yes if exported symbols are required.
18645 always_export_symbols=$always_export_symbols_RC
18646
18647 # The commands to list exported symbols.
18648 export_symbols_cmds=$lt_export_symbols_cmds_RC
18649
18650 # The commands to extract the exported symbol list from a shared archive.
18651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18652
18653 # Symbols that should not be listed in the preloaded symbols.
18654 exclude_expsyms=$lt_exclude_expsyms_RC
18655
18656 # Symbols that must always be exported.
18657 include_expsyms=$lt_include_expsyms_RC
18658
18659 # ### END LIBTOOL TAG CONFIG: $tagname
18660
18661 __EOF__
18662
18663
18664 else
18665   # If there is no Makefile yet, we rely on a make rule to execute
18666   # `config.status --recheck' to rerun these tests and create the
18667   # libtool script then.
18668   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18669   if test -f "$ltmain_in"; then
18670     test -f Makefile && make "$ltmain"
18671   fi
18672 fi
18673
18674
18675 ac_ext=c
18676 ac_cpp='$CPP $CPPFLAGS'
18677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18680
18681 CC="$lt_save_CC"
18682
18683         ;;
18684
18685       *)
18686         as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18687         ;;
18688       esac
18689
18690       # Append the new tag name to the list of available tags.
18691       if test -n "$tagname" ; then
18692       available_tags="$available_tags $tagname"
18693     fi
18694     fi
18695   done
18696   IFS="$lt_save_ifs"
18697
18698   # Now substitute the updated list of available tags.
18699   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18700     mv "${ofile}T" "$ofile"
18701     chmod +x "$ofile"
18702   else
18703     rm -f "${ofile}T"
18704     as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18705   fi
18706 fi
18707
18708
18709
18710 # This can be used to rebuild libtool when needed
18711 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18712
18713 # Always use our own libtool.
18714 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18715
18716 # Prevent multiple expansion
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738 CC_NOUNDEFINED
18739
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18741 $as_echo_n "checking for ANSI C header files... " >&6; }
18742 if ${ac_cv_header_stdc+:} false; then :
18743   $as_echo_n "(cached) " >&6
18744 else
18745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h.  */
18747 #include <stdlib.h>
18748 #include <stdarg.h>
18749 #include <string.h>
18750 #include <float.h>
18751
18752 int
18753 main ()
18754 {
18755
18756   ;
18757   return 0;
18758 }
18759 _ACEOF
18760 if ac_fn_c_try_compile "$LINENO"; then :
18761   ac_cv_header_stdc=yes
18762 else
18763   ac_cv_header_stdc=no
18764 fi
18765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18766
18767 if test $ac_cv_header_stdc = yes; then
18768   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h.  */
18771 #include <string.h>
18772
18773 _ACEOF
18774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18775   $EGREP "memchr" >/dev/null 2>&1; then :
18776
18777 else
18778   ac_cv_header_stdc=no
18779 fi
18780 rm -f conftest*
18781
18782 fi
18783
18784 if test $ac_cv_header_stdc = yes; then
18785   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h.  */
18788 #include <stdlib.h>
18789
18790 _ACEOF
18791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18792   $EGREP "free" >/dev/null 2>&1; then :
18793
18794 else
18795   ac_cv_header_stdc=no
18796 fi
18797 rm -f conftest*
18798
18799 fi
18800
18801 if test $ac_cv_header_stdc = yes; then
18802   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18803   if test "$cross_compiling" = yes; then :
18804   :
18805 else
18806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18807 /* end confdefs.h.  */
18808 #include <ctype.h>
18809 #include <stdlib.h>
18810 #if ((' ' & 0x0FF) == 0x020)
18811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18813 #else
18814 # define ISLOWER(c) \
18815                    (('a' <= (c) && (c) <= 'i') \
18816                      || ('j' <= (c) && (c) <= 'r') \
18817                      || ('s' <= (c) && (c) <= 'z'))
18818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18819 #endif
18820
18821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18822 int
18823 main ()
18824 {
18825   int i;
18826   for (i = 0; i < 256; i++)
18827     if (XOR (islower (i), ISLOWER (i))
18828         || toupper (i) != TOUPPER (i))
18829       return 2;
18830   return 0;
18831 }
18832 _ACEOF
18833 if ac_fn_c_try_run "$LINENO"; then :
18834
18835 else
18836   ac_cv_header_stdc=no
18837 fi
18838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18839   conftest.$ac_objext conftest.beam conftest.$ac_ext
18840 fi
18841
18842 fi
18843 fi
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18845 $as_echo "$ac_cv_header_stdc" >&6; }
18846 if test $ac_cv_header_stdc = yes; then
18847
18848 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18849
18850 fi
18851
18852 ac_config_headers="$ac_config_headers include/config.h"
18853
18854
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18856 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18857 if ${ac_cv_c_const+:} false; then :
18858   $as_echo_n "(cached) " >&6
18859 else
18860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861 /* end confdefs.h.  */
18862
18863 int
18864 main ()
18865 {
18866 /* FIXME: Include the comments suggested by Paul. */
18867 #ifndef __cplusplus
18868   /* Ultrix mips cc rejects this.  */
18869   typedef int charset[2];
18870   const charset cs;
18871   /* SunOS 4.1.1 cc rejects this.  */
18872   char const *const *pcpcc;
18873   char **ppc;
18874   /* NEC SVR4.0.2 mips cc rejects this.  */
18875   struct point {int x, y;};
18876   static struct point const zero = {0,0};
18877   /* AIX XL C 1.02.0.0 rejects this.
18878      It does not let you subtract one const X* pointer from another in
18879      an arm of an if-expression whose if-part is not a constant
18880      expression */
18881   const char *g = "string";
18882   pcpcc = &g + (g ? g-g : 0);
18883   /* HPUX 7.0 cc rejects these. */
18884   ++pcpcc;
18885   ppc = (char**) pcpcc;
18886   pcpcc = (char const *const *) ppc;
18887   { /* SCO 3.2v4 cc rejects this.  */
18888     char *t;
18889     char const *s = 0 ? (char *) 0 : (char const *) 0;
18890
18891     *t++ = 0;
18892     if (s) return 0;
18893   }
18894   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18895     int x[] = {25, 17};
18896     const int *foo = &x[0];
18897     ++foo;
18898   }
18899   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18900     typedef const int *iptr;
18901     iptr p = 0;
18902     ++p;
18903   }
18904   { /* AIX XL C 1.02.0.0 rejects this saying
18905        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18906     struct s { int j; const int *ap[3]; };
18907     struct s *b; b->j = 5;
18908   }
18909   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18910     const int foo = 10;
18911     if (!foo) return 0;
18912   }
18913   return !cs[0] && !zero.x;
18914 #endif
18915
18916   ;
18917   return 0;
18918 }
18919 _ACEOF
18920 if ac_fn_c_try_compile "$LINENO"; then :
18921   ac_cv_c_const=yes
18922 else
18923   ac_cv_c_const=no
18924 fi
18925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18926 fi
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18928 $as_echo "$ac_cv_c_const" >&6; }
18929 if test $ac_cv_c_const = no; then
18930
18931 $as_echo "#define const /**/" >>confdefs.h
18932
18933 fi
18934
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18936 $as_echo_n "checking for inline... " >&6; }
18937 if ${ac_cv_c_inline+:} false; then :
18938   $as_echo_n "(cached) " >&6
18939 else
18940   ac_cv_c_inline=no
18941 for ac_kw in inline __inline__ __inline; do
18942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18943 /* end confdefs.h.  */
18944 #ifndef __cplusplus
18945 typedef int foo_t;
18946 static $ac_kw foo_t static_foo () {return 0; }
18947 $ac_kw foo_t foo () {return 0; }
18948 #endif
18949
18950 _ACEOF
18951 if ac_fn_c_try_compile "$LINENO"; then :
18952   ac_cv_c_inline=$ac_kw
18953 fi
18954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18955   test "$ac_cv_c_inline" != no && break
18956 done
18957
18958 fi
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18960 $as_echo "$ac_cv_c_inline" >&6; }
18961
18962 case $ac_cv_c_inline in
18963   inline | yes) ;;
18964   *)
18965     case $ac_cv_c_inline in
18966       no) ac_val=;;
18967       *) ac_val=$ac_cv_c_inline;;
18968     esac
18969     cat >>confdefs.h <<_ACEOF
18970 #ifndef __cplusplus
18971 #define inline $ac_val
18972 #endif
18973 _ACEOF
18974     ;;
18975 esac
18976
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18978 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18979 if ${ac_cv_header_time+:} false; then :
18980   $as_echo_n "(cached) " >&6
18981 else
18982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h.  */
18984 #include <sys/types.h>
18985 #include <sys/time.h>
18986 #include <time.h>
18987
18988 int
18989 main ()
18990 {
18991 if ((struct tm *) 0)
18992 return 0;
18993   ;
18994   return 0;
18995 }
18996 _ACEOF
18997 if ac_fn_c_try_compile "$LINENO"; then :
18998   ac_cv_header_time=yes
18999 else
19000   ac_cv_header_time=no
19001 fi
19002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19003 fi
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19005 $as_echo "$ac_cv_header_time" >&6; }
19006 if test $ac_cv_header_time = yes; then
19007
19008 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19009
19010 fi
19011
19012
19013 if test $ac_cv_c_compiler_gnu = yes; then
19014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19015 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19016 if ${ac_cv_prog_gcc_traditional+:} false; then :
19017   $as_echo_n "(cached) " >&6
19018 else
19019     ac_pattern="Autoconf.*'x'"
19020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021 /* end confdefs.h.  */
19022 #include <sgtty.h>
19023 Autoconf TIOCGETP
19024 _ACEOF
19025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19026   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19027   ac_cv_prog_gcc_traditional=yes
19028 else
19029   ac_cv_prog_gcc_traditional=no
19030 fi
19031 rm -f conftest*
19032
19033
19034   if test $ac_cv_prog_gcc_traditional = no; then
19035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h.  */
19037 #include <termio.h>
19038 Autoconf TCGETA
19039 _ACEOF
19040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19041   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19042   ac_cv_prog_gcc_traditional=yes
19043 fi
19044 rm -f conftest*
19045
19046   fi
19047 fi
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19049 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19050   if test $ac_cv_prog_gcc_traditional = yes; then
19051     CC="$CC -traditional"
19052   fi
19053 fi
19054
19055 ac_fn_c_check_func "$LINENO" "hsearch_r" "ac_cv_func_hsearch_r"
19056 if test "x$ac_cv_func_hsearch_r" = xyes; then :
19057   HAVE_HSEARCH_R=yes
19058 fi
19059
19060  if test "x$HAVE_HSEARCH_R" != xyes; then
19061   ALSA_HSEARCH_R_TRUE=
19062   ALSA_HSEARCH_R_FALSE='#'
19063 else
19064   ALSA_HSEARCH_R_TRUE='#'
19065   ALSA_HSEARCH_R_FALSE=
19066 fi
19067
19068 for ac_func in uselocale
19069 do :
19070   ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
19071 if test "x$ac_cv_func_uselocale" = xyes; then :
19072   cat >>confdefs.h <<_ACEOF
19073 #define HAVE_USELOCALE 1
19074 _ACEOF
19075
19076 fi
19077 done
19078
19079
19080
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library version" >&5
19082 $as_echo_n "checking for library version... " >&6; }
19083 SND_LIB_VERSION=$VERSION
19084 echo $VERSION > $srcdir/version
19085
19086 cat >>confdefs.h <<_ACEOF
19087 #define VERSION "$SND_LIB_VERSION"
19088 _ACEOF
19089
19090
19091 SND_LIB_MAJOR=`echo $VERSION | cut -d . -f 1`
19092
19093 SND_LIB_MINOR=`echo $VERSION | cut -d . -f 2`
19094
19095 SND_LIB_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\(.*\)$/\1/g'`
19096
19097 SND_LIB_EXTRASTR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\2/g'`
19098 SND_LIB_EXTRAVER=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\3/g'`
19099 case "$SND_LIB_EXTRASTR" in
19100   pre)   SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 00000` ;;
19101   alpha) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 10000` ;;
19102   beta)  SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 20000` ;;
19103   rc)    SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 100000` ;;
19104   *)     SND_LIB_EXTRAVER=1000000 ;;
19105 esac
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: major $SND_LIB_MAJOR minor $SND_LIB_MINOR subminor $SND_LIB_SUBMINOR extrastr $SND_LIB_EXTRASTR extraver $SND_LIB_EXTRAVER" >&5
19107 $as_echo "major $SND_LIB_MAJOR minor $SND_LIB_MINOR subminor $SND_LIB_SUBMINOR extrastr $SND_LIB_EXTRASTR extraver $SND_LIB_EXTRAVER" >&6; }
19108
19109
19110
19111
19112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19113
19114 if test "$enable_static" = "$enable_shared" -a "$enable_static" = "yes"; then
19115 cat <<EOF
19116   Please, do not try to compile static and shared libraries together.
19117   See INSTALL file for more details (do not use --enable-shared=yes with
19118   --enable-static=yes).
19119 EOF
19120   exit 1
19121 fi
19122
19123
19124 # Check whether --with-configdir was given.
19125 if test "${with_configdir+set}" = set; then :
19126   withval=$with_configdir; confdir="$withval"
19127 else
19128   confdir=""
19129 fi
19130
19131 if test -z "$confdir"; then
19132     eval dir="$datadir"
19133     case "$dir" in
19134     /*) ;;
19135     *) dir="$prefix/share"
19136     esac
19137     confdir="$dir/alsa"
19138 fi
19139 ALSA_CONFIG_DIR="$confdir"
19140
19141 cat >>confdefs.h <<_ACEOF
19142 #define ALSA_CONFIG_DIR "$confdir"
19143 _ACEOF
19144
19145
19146
19147 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
19148
19149
19150 # Check whether --with-plugindir was given.
19151 if test "${with_plugindir+set}" = set; then :
19152   withval=$with_plugindir; plugindir="$withval"
19153 else
19154   plugindir=""
19155 fi
19156
19157 if test -z "$plugindir"; then
19158     eval dir="$libdir"
19159     case "$dir" in
19160     /*) ;;
19161     *) dir="$dir"
19162     esac
19163     plugindir="$dir/$PACKAGE"
19164 fi
19165
19166 cat >>confdefs.h <<_ACEOF
19167 #define ALSA_PLUGIN_DIR "$plugindir"
19168 _ACEOF
19169
19170 ALSA_PLUGIN_DIR="$plugindir"
19171
19172
19173
19174 # Check whether --with-pkgconfdir was given.
19175 if test "${with_pkgconfdir+set}" = set; then :
19176   withval=$with_pkgconfdir; pkgconfdir="$withval"
19177 else
19178   pkgconfdir=""
19179 fi
19180
19181 if test -z "$pkgconfdir"; then
19182     eval dir="$libdir"
19183     case "$dir" in
19184     /*) ;;
19185     *) dir="$dir"
19186     esac
19187     pkgconfdir="$dir/pkgconfig"
19188 fi
19189
19190 cat >>confdefs.h <<_ACEOF
19191 #define ALSA_PKGCONF_DIR "$pkgconfdir"
19192 _ACEOF
19193
19194 ALSA_PKGCONF_DIR="$pkgconfdir"
19195
19196
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for versioned symbols" >&5
19198 $as_echo_n "checking for versioned symbols... " >&6; }
19199
19200 # Check whether --with-versioned was given.
19201 if test "${with_versioned+set}" = set; then :
19202   withval=$with_versioned; versioned="$withval"
19203 else
19204   versioned="yes"
19205 fi
19206
19207 if test "$versioned" = "yes"; then
19208   # it seems that GNU ld versions since 2.10 are not broken
19209   xres=`grep '^VERSION=' ${srcdir}/ltmain.sh | cut -d = -f 2 | cut -d \" -f 2`
19210   major=`echo $xres | cut -d . -f 1`
19211   minor=`echo $xres | cut -d . -f 2`
19212   pass=0
19213   if test $major -eq 1 && test $minor -gt 3; then
19214     pass=1
19215   else
19216     if test $major -gt 1; then
19217       pass=1
19218     fi
19219   fi
19220   if test $pass -eq 1; then
19221
19222 $as_echo "#define VERSIONED_SYMBOLS /**/" >>confdefs.h
19223
19224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19225 $as_echo "yes" >&6; }
19226   else
19227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken libtool - use libtool v1.4+; no versions" >&5
19228 $as_echo "broken libtool - use libtool v1.4+; no versions" >&6; }
19229   fi
19230 else
19231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232 $as_echo "no" >&6; }
19233 fi
19234  if test x$versioned = xyes; then
19235   VERSIONED_SYMBOLS_TRUE=
19236   VERSIONED_SYMBOLS_FALSE='#'
19237 else
19238   VERSIONED_SYMBOLS_TRUE='#'
19239   VERSIONED_SYMBOLS_FALSE=
19240 fi
19241
19242
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbolic-functions" >&5
19244 $as_echo_n "checking for symbolic-functions... " >&6; }
19245 # Check whether --enable-symbolic-functions was given.
19246 if test "${enable_symbolic_functions+set}" = set; then :
19247   enableval=$enable_symbolic_functions; symfuncs="$enableval"
19248 else
19249   symfuncs="no"
19250 fi
19251
19252 if test "$symfuncs" = "yes"; then
19253   if ld --help | grep -q -- '-Bsymbolic-functions'; then
19254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 $as_echo "yes" >&6; }
19256   else
19257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported by ld" >&5
19258 $as_echo "not supported by ld" >&6; }
19259     symfuncs="no"
19260   fi
19261 else
19262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19263 $as_echo "no" >&6; }
19264 fi
19265  if test x"$symfuncs" = xyes; then
19266   SYMBOLIC_FUNCTIONS_TRUE=
19267   SYMBOLIC_FUNCTIONS_FALSE='#'
19268 else
19269   SYMBOLIC_FUNCTIONS_TRUE='#'
19270   SYMBOLIC_FUNCTIONS_FALSE=
19271 fi
19272
19273
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom symbol prefixes" >&5
19275 $as_echo_n "checking for custom symbol prefixes... " >&6; }
19276 SYMBOL_PREFIX=` \
19277         echo "PREFIX=__USER_LABEL_PREFIX__" \
19278                 | ${CPP-${CC-gcc} -E} - 2>&1 \
19279                 | ${EGREP-grep} "^PREFIX=" \
19280                 | ${SED-sed} "s:^PREFIX=::"`
19281
19282 cat >>confdefs.h <<_ACEOF
19283 #define __SYMBOL_PREFIX "$SYMBOL_PREFIX"
19284 _ACEOF
19285
19286
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
19288 $as_echo "$SYMBOL_PREFIX" >&6; }
19289
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
19291 $as_echo_n "checking for debug... " >&6; }
19292
19293 # Check whether --with-debug was given.
19294 if test "${with_debug+set}" = set; then :
19295   withval=$with_debug; debug="$withval"
19296 else
19297   debug="yes"
19298 fi
19299
19300 if test "$debug" = "yes"; then
19301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19302 $as_echo "yes" >&6; }
19303 else
19304
19305 $as_echo "#define NDEBUG /**/" >>confdefs.h
19306
19307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19308 $as_echo "no" >&6; }
19309 fi
19310
19311 if test "$debug" = "yes"; then
19312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug assert" >&5
19313 $as_echo_n "checking for debug assert... " >&6; }
19314   # Check whether --enable-debug-assert was given.
19315 if test "${enable_debug_assert+set}" = set; then :
19316   enableval=$enable_debug_assert; debug_assert="$enableval"
19317 else
19318   debug_assert="no"
19319 fi
19320
19321   if test "$debug_assert" = "yes"; then
19322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19323 $as_echo "yes" >&6; }
19324
19325 $as_echo "#define ALSA_DEBUG_ASSERT /**/" >>confdefs.h
19326
19327   else
19328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19329 $as_echo "no" >&6; }
19330   fi
19331 fi
19332
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tmpdir" >&5
19334 $as_echo_n "checking for tmpdir... " >&6; }
19335
19336 # Check whether --with-tmpdir was given.
19337 if test "${with_tmpdir+set}" = set; then :
19338   withval=$with_tmpdir; tmpdir="$withval"
19339 else
19340   tmpdir="/tmp"
19341 fi
19342
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmpdir" >&5
19344 $as_echo "$tmpdir" >&6; }
19345
19346 cat >>confdefs.h <<_ACEOF
19347 #define TMPDIR "$tmpdir"
19348 _ACEOF
19349
19350
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for softfloat" >&5
19352 $as_echo_n "checking for softfloat... " >&6; }
19353
19354 # Check whether --with-softfloat was given.
19355 if test "${with_softfloat+set}" = set; then :
19356   withval=$with_softfloat; case "$withval" in
19357         y|yes) softfloat=yes ;;
19358         *) softfloat=no ;;
19359    esac
19360 fi
19361
19362 if test "$softfloat" = "yes" ; then
19363
19364 $as_echo "#define HAVE_SOFT_FLOAT \"1\"" >>confdefs.h
19365
19366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19367 $as_echo "yes" >&6; }
19368 else
19369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19370 $as_echo "no" >&6; }
19371 fi
19372
19373 ALSA_DEPLIBS=""
19374 if test "$softfloat" != "yes"; then
19375   ALSA_DEPLIBS="-lm"
19376 fi
19377
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
19379 $as_echo_n "checking for libdl... " >&6; }
19380
19381 # Check whether --with-libdl was given.
19382 if test "${with_libdl+set}" = set; then :
19383   withval=$with_libdl;  have_libdl="$withval"
19384 else
19385    have_libdl="yes"
19386 fi
19387
19388 if test "$have_libdl" = "yes"; then
19389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
19390 $as_echo_n "checking for dlsym in -ldl... " >&6; }
19391 if ${ac_cv_lib_dl_dlsym+:} false; then :
19392   $as_echo_n "(cached) " >&6
19393 else
19394   ac_check_lib_save_LIBS=$LIBS
19395 LIBS="-ldl  $LIBS"
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h.  */
19398
19399 /* Override any GCC internal prototype to avoid an error.
19400    Use char because int might match the return type of a GCC
19401    builtin and then its argument prototype would still apply.  */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 char dlsym ();
19406 int
19407 main ()
19408 {
19409 return dlsym ();
19410   ;
19411   return 0;
19412 }
19413 _ACEOF
19414 if ac_fn_c_try_link "$LINENO"; then :
19415   ac_cv_lib_dl_dlsym=yes
19416 else
19417   ac_cv_lib_dl_dlsym=no
19418 fi
19419 rm -f core conftest.err conftest.$ac_objext \
19420     conftest$ac_exeext conftest.$ac_ext
19421 LIBS=$ac_check_lib_save_LIBS
19422 fi
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
19424 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
19425 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
19426   HAVE_LIBDL="yes"
19427 fi
19428
19429   if test "$HAVE_LIBDL" = "yes" ; then
19430     ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl"
19431
19432 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19433
19434   fi
19435 else
19436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19437 $as_echo "no" >&6; }
19438 fi
19439  if test "$HAVE_LIBDL"="yes"; then
19440   BUILD_MODULES_TRUE=
19441   BUILD_MODULES_FALSE='#'
19442 else
19443   BUILD_MODULES_TRUE='#'
19444   BUILD_MODULES_FALSE=
19445 fi
19446
19447
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread" >&5
19449 $as_echo_n "checking for pthread... " >&6; }
19450
19451 # Check whether --with-pthread was given.
19452 if test "${with_pthread+set}" = set; then :
19453   withval=$with_pthread;  have_pthread="$withval"
19454 else
19455    have_pthread="yes"
19456 fi
19457
19458 if test "$have_pthread" = "yes"; then
19459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
19460 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
19461 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
19462   $as_echo_n "(cached) " >&6
19463 else
19464   ac_check_lib_save_LIBS=$LIBS
19465 LIBS="-lpthread  $LIBS"
19466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19467 /* end confdefs.h.  */
19468
19469 /* Override any GCC internal prototype to avoid an error.
19470    Use char because int might match the return type of a GCC
19471    builtin and then its argument prototype would still apply.  */
19472 #ifdef __cplusplus
19473 extern "C"
19474 #endif
19475 char pthread_join ();
19476 int
19477 main ()
19478 {
19479 return pthread_join ();
19480   ;
19481   return 0;
19482 }
19483 _ACEOF
19484 if ac_fn_c_try_link "$LINENO"; then :
19485   ac_cv_lib_pthread_pthread_join=yes
19486 else
19487   ac_cv_lib_pthread_pthread_join=no
19488 fi
19489 rm -f core conftest.err conftest.$ac_objext \
19490     conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19492 fi
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
19494 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
19495 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
19496   HAVE_LIBPTHREAD="yes"
19497 fi
19498
19499   if test "$HAVE_LIBPTHREAD" = "yes"; then
19500     ALSA_DEPLIBS="$ALSA_DEPLIBS -lpthread"
19501
19502 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
19503
19504   fi
19505 else
19506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19507 $as_echo "no" >&6; }
19508 fi
19509
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
19511 $as_echo_n "checking for librt... " >&6; }
19512
19513 # Check whether --with-librt was given.
19514 if test "${with_librt+set}" = set; then :
19515   withval=$with_librt;  have_librt="$withval"
19516 else
19517    have_librt="yes"
19518 fi
19519
19520 if test "$have_librt" = "yes"; then
19521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
19522 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
19523 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
19524   $as_echo_n "(cached) " >&6
19525 else
19526   ac_check_lib_save_LIBS=$LIBS
19527 LIBS="-lrt  $LIBS"
19528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19529 /* end confdefs.h.  */
19530
19531 /* Override any GCC internal prototype to avoid an error.
19532    Use char because int might match the return type of a GCC
19533    builtin and then its argument prototype would still apply.  */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 char clock_gettime ();
19538 int
19539 main ()
19540 {
19541 return clock_gettime ();
19542   ;
19543   return 0;
19544 }
19545 _ACEOF
19546 if ac_fn_c_try_link "$LINENO"; then :
19547   ac_cv_lib_rt_clock_gettime=yes
19548 else
19549   ac_cv_lib_rt_clock_gettime=no
19550 fi
19551 rm -f core conftest.err conftest.$ac_objext \
19552     conftest$ac_exeext conftest.$ac_ext
19553 LIBS=$ac_check_lib_save_LIBS
19554 fi
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
19556 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
19557 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
19558   HAVE_LIBRT="yes"
19559 fi
19560
19561   if test "$HAVE_LIBRT" = "yes" ; then
19562     ALSA_DEPLIBS="$ALSA_DEPLIBS -lrt"
19563
19564 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
19565
19566
19567 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19568
19569   fi
19570 else
19571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19572 $as_echo "no" >&6; }
19573 fi
19574
19575
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5
19578 $as_echo_n "checking for architecture... " >&6; }
19579 case "$host" in
19580 i?86*)
19581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86" >&5
19582 $as_echo "x86" >&6; }
19583   ;;
19584 x86_64*)
19585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86" >&5
19586 $as_echo "x86" >&6; }
19587   ;;
19588 alpha*)
19589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: alpha" >&5
19590 $as_echo "alpha" >&6; }
19591   ;;
19592 powerpc*|ppc*)
19593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ppc" >&5
19594 $as_echo "ppc" >&6; }
19595   CPPFLAGS="$CPPFLAGS -D__ppc__"
19596   ;;
19597 ia64*)
19598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ia64" >&5
19599 $as_echo "ia64" >&6; }
19600   CPPFLAGS="$CPPFLAGS -D__ia64__"
19601   ;;
19602 mips*)
19603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: mips" >&5
19604 $as_echo "mips" >&6; }
19605   CPPFLAGS="$CPPFLAGS -D__mips__"
19606   ;;
19607 arm*)
19608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arm" >&5
19609 $as_echo "arm" >&6; }
19610   CPPFLAGS="$CPPFLAGS -D__arm__"
19611   ;;
19612 *)
19613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
19614 $as_echo "$host_cpu" >&6; }
19615   echo "No atomic operations supported.."
19616   ;;
19617 esac
19618
19619 for ac_header in wordexp.h
19620 do :
19621   ac_fn_c_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default"
19622 if test "x$ac_cv_header_wordexp_h" = xyes; then :
19623   cat >>confdefs.h <<_ACEOF
19624 #define HAVE_WORDEXP_H 1
19625 _ACEOF
19626
19627 fi
19628
19629 done
19630
19631
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resmgr support" >&5
19633 $as_echo_n "checking for resmgr support... " >&6; }
19634 # Check whether --enable-resmgr was given.
19635 if test "${enable_resmgr+set}" = set; then :
19636   enableval=$enable_resmgr; resmgr="$enableval"
19637 else
19638   resmgr="no"
19639 fi
19640
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $resmgr" >&5
19642 $as_echo "$resmgr" >&6; }
19643 if test "$resmgr" = "yes"; then
19644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_open_device in -lresmgr" >&5
19645 $as_echo_n "checking for rsm_open_device in -lresmgr... " >&6; }
19646 if ${ac_cv_lib_resmgr_rsm_open_device+:} false; then :
19647   $as_echo_n "(cached) " >&6
19648 else
19649   ac_check_lib_save_LIBS=$LIBS
19650 LIBS="-lresmgr  $LIBS"
19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h.  */
19653
19654 /* Override any GCC internal prototype to avoid an error.
19655    Use char because int might match the return type of a GCC
19656    builtin and then its argument prototype would still apply.  */
19657 #ifdef __cplusplus
19658 extern "C"
19659 #endif
19660 char rsm_open_device ();
19661 int
19662 main ()
19663 {
19664 return rsm_open_device ();
19665   ;
19666   return 0;
19667 }
19668 _ACEOF
19669 if ac_fn_c_try_link "$LINENO"; then :
19670   ac_cv_lib_resmgr_rsm_open_device=yes
19671 else
19672   ac_cv_lib_resmgr_rsm_open_device=no
19673 fi
19674 rm -f core conftest.err conftest.$ac_objext \
19675     conftest$ac_exeext conftest.$ac_ext
19676 LIBS=$ac_check_lib_save_LIBS
19677 fi
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_open_device" >&5
19679 $as_echo "$ac_cv_lib_resmgr_rsm_open_device" >&6; }
19680 if test "x$ac_cv_lib_resmgr_rsm_open_device" = xyes; then :
19681   cat >>confdefs.h <<_ACEOF
19682 #define HAVE_LIBRESMGR 1
19683 _ACEOF
19684
19685   LIBS="-lresmgr $LIBS"
19686
19687 else
19688   as_fn_error $? "Cannot find libresmgr" "$LINENO" 5
19689 fi
19690
19691
19692 $as_echo "#define SUPPORT_RESMGR \"1\"" >>confdefs.h
19693
19694 fi
19695
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* support" >&5
19697 $as_echo_n "checking for aload* support... " >&6; }
19698 # Check whether --enable-aload was given.
19699 if test "${enable_aload+set}" = set; then :
19700   enableval=$enable_aload; aload="$enableval"
19701 else
19702   aload="yes"
19703 fi
19704
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload" >&5
19706 $as_echo "$aload" >&6; }
19707 if test "$aload" = "yes"; then
19708
19709 $as_echo "#define SUPPORT_ALOAD \"1\"" >>confdefs.h
19710
19711 fi
19712
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA device file directory" >&5
19714 $as_echo_n "checking for ALSA device file directory... " >&6; }
19715
19716 # Check whether --with-alsa-devdir was given.
19717 if test "${with_alsa_devdir+set}" = set; then :
19718   withval=$with_alsa_devdir; alsa_dev_dir="$withval"
19719 else
19720   alsa_dev_dir="/dev/snd"
19721 fi
19722
19723 if echo "$alsa_dev_dir" | grep -v '/$' > /dev/null; then
19724   alsa_dev_dir="$alsa_dev_dir/"
19725 fi
19726
19727 cat >>confdefs.h <<_ACEOF
19728 #define ALSA_DEVICE_DIRECTORY "$alsa_dev_dir"
19729 _ACEOF
19730
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alsa_dev_dir" >&5
19732 $as_echo "$alsa_dev_dir" >&6; }
19733
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* device file directory" >&5
19735 $as_echo_n "checking for aload* device file directory... " >&6; }
19736
19737 # Check whether --with-aload-devdir was given.
19738 if test "${with_aload_devdir+set}" = set; then :
19739   withval=$with_aload_devdir; aload_dev_dir="$withval"
19740 else
19741   aload_dev_dir="/dev"
19742 fi
19743
19744 if echo "$aload_dev_dir" | grep -v '/$' > /dev/null; then
19745   aload_dev_dir="$aload_dev_dir/"
19746 fi
19747
19748 cat >>confdefs.h <<_ACEOF
19749 #define ALOAD_DEVICE_DIRECTORY "$aload_dev_dir"
19750 _ACEOF
19751
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload_dev_dir" >&5
19753 $as_echo "$aload_dev_dir" >&6; }
19754
19755 # Check whether --enable-mixer was given.
19756 if test "${enable_mixer+set}" = set; then :
19757   enableval=$enable_mixer; build_mixer="$enableval"
19758 else
19759   build_mixer="yes"
19760 fi
19761
19762 # Check whether --enable-pcm was given.
19763 if test "${enable_pcm+set}" = set; then :
19764   enableval=$enable_pcm; build_pcm="$enableval"
19765 else
19766   build_pcm="yes"
19767 fi
19768
19769 # Check whether --enable-rawmidi was given.
19770 if test "${enable_rawmidi+set}" = set; then :
19771   enableval=$enable_rawmidi; build_rawmidi="$enableval"
19772 else
19773   build_rawmidi="yes"
19774 fi
19775
19776 # Check whether --enable-hwdep was given.
19777 if test "${enable_hwdep+set}" = set; then :
19778   enableval=$enable_hwdep; build_hwdep="$enableval"
19779 else
19780   build_hwdep="yes"
19781 fi
19782
19783 # Check whether --enable-seq was given.
19784 if test "${enable_seq+set}" = set; then :
19785   enableval=$enable_seq; build_seq="$enableval"
19786 else
19787   build_seq="yes"
19788 fi
19789
19790 # Check whether --enable-ucm was given.
19791 if test "${enable_ucm+set}" = set; then :
19792   enableval=$enable_ucm; build_ucm="$enableval"
19793 else
19794   build_ucm="yes"
19795 fi
19796
19797 # Check whether --enable-alisp was given.
19798 if test "${enable_alisp+set}" = set; then :
19799   enableval=$enable_alisp; build_alisp="$enableval"
19800 else
19801   build_alisp="yes"
19802 fi
19803
19804 test "$softfloat" = "yes" && build_alisp="no"
19805 # Check whether --enable-old-symbols was given.
19806 if test "${enable_old_symbols+set}" = set; then :
19807   enableval=$enable_old_symbols; keep_old_symbols="$enableval"
19808 else
19809   keep_old_symbols="yes"
19810 fi
19811
19812  if test x$keep_old_symbols = xyes; then
19813   KEEP_OLD_SYMBOLS_TRUE=
19814   KEEP_OLD_SYMBOLS_FALSE='#'
19815 else
19816   KEEP_OLD_SYMBOLS_TRUE='#'
19817   KEEP_OLD_SYMBOLS_FALSE=
19818 fi
19819
19820
19821 # Check whether --enable-python was given.
19822 if test "${enable_python+set}" = set; then :
19823   enableval=$enable_python; build_python="$enableval"
19824 else
19825   build_python="yes"
19826 fi
19827
19828 PYTHON_LIBS=""
19829 PYTHON_INCLUDES=""
19830 if test "$build_python" = "yes"; then
19831
19832 # Check whether --with-pythonlibs was given.
19833 if test "${with_pythonlibs+set}" = set; then :
19834   withval=$with_pythonlibs; pythonlibs="$withval"
19835 else
19836   pythonlibs=`python-config --libs`
19837 fi
19838
19839
19840 # Check whether --with-pythonincludes was given.
19841 if test "${with_pythonincludes+set}" = set; then :
19842   withval=$with_pythonincludes; pythonincludes="$withval"
19843 else
19844   pythonincludes=`python-config --includes`
19845 fi
19846
19847   if test -z "$pythonlibs"; then
19848     echo "Unable to determine python libraries! Probably python-config is not"
19849     echo "available on this system. Please, use --with-pythonlibs and"
19850     echo "--with-pythonincludes options. Python components are disabled in this build."
19851     build_python="no"
19852   else
19853     PYTHON_LIBS="$pythonlibs"
19854     PYTHON_INCLUDES="$pythonincludes"
19855   fi
19856 fi
19857
19858
19859
19860  if test x$build_mixer = xyes; then
19861   BUILD_MIXER_TRUE=
19862   BUILD_MIXER_FALSE='#'
19863 else
19864   BUILD_MIXER_TRUE='#'
19865   BUILD_MIXER_FALSE=
19866 fi
19867
19868  if test x$build_pcm = xyes; then
19869   BUILD_PCM_TRUE=
19870   BUILD_PCM_FALSE='#'
19871 else
19872   BUILD_PCM_TRUE='#'
19873   BUILD_PCM_FALSE=
19874 fi
19875
19876  if test x$build_rawmidi = xyes; then
19877   BUILD_RAWMIDI_TRUE=
19878   BUILD_RAWMIDI_FALSE='#'
19879 else
19880   BUILD_RAWMIDI_TRUE='#'
19881   BUILD_RAWMIDI_FALSE=
19882 fi
19883
19884  if test x$build_hwdep = xyes; then
19885   BUILD_HWDEP_TRUE=
19886   BUILD_HWDEP_FALSE='#'
19887 else
19888   BUILD_HWDEP_TRUE='#'
19889   BUILD_HWDEP_FALSE=
19890 fi
19891
19892  if test x$build_seq = xyes; then
19893   BUILD_SEQ_TRUE=
19894   BUILD_SEQ_FALSE='#'
19895 else
19896   BUILD_SEQ_TRUE='#'
19897   BUILD_SEQ_FALSE=
19898 fi
19899
19900  if test x$build_ucm = xyes; then
19901   BUILD_UCM_TRUE=
19902   BUILD_UCM_FALSE='#'
19903 else
19904   BUILD_UCM_TRUE='#'
19905   BUILD_UCM_FALSE=
19906 fi
19907
19908  if test x$build_alisp = xyes; then
19909   BUILD_ALISP_TRUE=
19910   BUILD_ALISP_FALSE='#'
19911 else
19912   BUILD_ALISP_TRUE='#'
19913   BUILD_ALISP_FALSE=
19914 fi
19915
19916  if test x$build_python = xyes; then
19917   BUILD_PYTHON_TRUE=
19918   BUILD_PYTHON_FALSE='#'
19919 else
19920   BUILD_PYTHON_TRUE='#'
19921   BUILD_PYTHON_FALSE=
19922 fi
19923
19924
19925 if test "$build_mixer" = "yes"; then
19926
19927 $as_echo "#define BUILD_MIXER \"1\"" >>confdefs.h
19928
19929 fi
19930 if test "$build_pcm" = "yes"; then
19931
19932 $as_echo "#define BUILD_PCM \"1\"" >>confdefs.h
19933
19934 fi
19935 if test "$build_rawmidi" = "yes"; then
19936
19937 $as_echo "#define BUILD_RAWMIDI \"1\"" >>confdefs.h
19938
19939 fi
19940 if test "$build_hwdep" = "yes"; then
19941
19942 $as_echo "#define BUILD_HWDEP \"1\"" >>confdefs.h
19943
19944 fi
19945 if test "$build_seq" = "yes"; then
19946
19947 $as_echo "#define BUILD_SEQ \"1\"" >>confdefs.h
19948
19949 fi
19950 if test "$build_ucm" = "yes"; then
19951
19952 $as_echo "#define BUILD_UCM \"1\"" >>confdefs.h
19953
19954 fi
19955
19956
19957 if test "$build_pcm" = "yes"; then
19958
19959 # Check whether --with-pcm-plugins was given.
19960 if test "${with_pcm_plugins+set}" = set; then :
19961   withval=$with_pcm_plugins; pcm_plugins="$withval"
19962 else
19963   pcm_plugins="all"
19964 fi
19965
19966 else
19967 pcm_plugins=""
19968 fi
19969
19970 PCM_PLUGIN_LIST="copy linear route mulaw alaw adpcm rate plug multi shm file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug mmap_emul"
19971
19972 build_pcm_plugin="no"
19973 for t in $PCM_PLUGIN_LIST; do
19974   eval build_pcm_$t="no"
19975 done
19976
19977 pcm_plugins=`echo $pcm_plugins | sed 's/,/ /g'`
19978 for p in $pcm_plugins; do
19979   for t in $PCM_PLUGIN_LIST; do
19980     if test "$p" = "$t" -o "$p" = "all"; then
19981       eval build_pcm_$t="yes"
19982       build_pcm_plugin="yes"
19983     fi
19984   done
19985 done
19986
19987 if test "$build_pcm_plug" = "yes"; then
19988   build_pcm_linear="yes"
19989   build_pcm_copy="yes"
19990 fi
19991
19992 if test "$build_pcm_ioplug" = "yes"; then
19993   build_pcm_extplug="yes"
19994 fi
19995
19996 if test "$HAVE_LIBDL" != "yes"; then
19997   build_pcm_meter="no"
19998   build_pcm_ladspa="no"
19999   build_pcm_pcm_ioplug="no"
20000   build_pcm_pcm_extplug="no"
20001 fi
20002
20003 if test "$HAVE_LIBPTHREAD" != "yes"; then
20004   build_pcm_share="no"
20005 fi
20006
20007 if test "$softfloat" = "yes"; then
20008   build_pcm_lfloat="no"
20009   build_pcm_ladspa="no"
20010 fi
20011
20012  if test x$build_pcm_plugin = xyes; then
20013   BUILD_PCM_PLUGIN_TRUE=
20014   BUILD_PCM_PLUGIN_FALSE='#'
20015 else
20016   BUILD_PCM_PLUGIN_TRUE='#'
20017   BUILD_PCM_PLUGIN_FALSE=
20018 fi
20019
20020  if test x$build_pcm_copy = xyes; then
20021   BUILD_PCM_PLUGIN_COPY_TRUE=
20022   BUILD_PCM_PLUGIN_COPY_FALSE='#'
20023 else
20024   BUILD_PCM_PLUGIN_COPY_TRUE='#'
20025   BUILD_PCM_PLUGIN_COPY_FALSE=
20026 fi
20027
20028  if test x$build_pcm_linear = xyes; then
20029   BUILD_PCM_PLUGIN_LINEAR_TRUE=
20030   BUILD_PCM_PLUGIN_LINEAR_FALSE='#'
20031 else
20032   BUILD_PCM_PLUGIN_LINEAR_TRUE='#'
20033   BUILD_PCM_PLUGIN_LINEAR_FALSE=
20034 fi
20035
20036  if test x$build_pcm_route = xyes; then
20037   BUILD_PCM_PLUGIN_ROUTE_TRUE=
20038   BUILD_PCM_PLUGIN_ROUTE_FALSE='#'
20039 else
20040   BUILD_PCM_PLUGIN_ROUTE_TRUE='#'
20041   BUILD_PCM_PLUGIN_ROUTE_FALSE=
20042 fi
20043
20044  if test x$build_pcm_mulaw = xyes; then
20045   BUILD_PCM_PLUGIN_MULAW_TRUE=
20046   BUILD_PCM_PLUGIN_MULAW_FALSE='#'
20047 else
20048   BUILD_PCM_PLUGIN_MULAW_TRUE='#'
20049   BUILD_PCM_PLUGIN_MULAW_FALSE=
20050 fi
20051
20052  if test x$build_pcm_alaw = xyes; then
20053   BUILD_PCM_PLUGIN_ALAW_TRUE=
20054   BUILD_PCM_PLUGIN_ALAW_FALSE='#'
20055 else
20056   BUILD_PCM_PLUGIN_ALAW_TRUE='#'
20057   BUILD_PCM_PLUGIN_ALAW_FALSE=
20058 fi
20059
20060  if test x$build_pcm_adpcm = xyes; then
20061   BUILD_PCM_PLUGIN_ADPCM_TRUE=
20062   BUILD_PCM_PLUGIN_ADPCM_FALSE='#'
20063 else
20064   BUILD_PCM_PLUGIN_ADPCM_TRUE='#'
20065   BUILD_PCM_PLUGIN_ADPCM_FALSE=
20066 fi
20067
20068  if test x$build_pcm_rate = xyes; then
20069   BUILD_PCM_PLUGIN_RATE_TRUE=
20070   BUILD_PCM_PLUGIN_RATE_FALSE='#'
20071 else
20072   BUILD_PCM_PLUGIN_RATE_TRUE='#'
20073   BUILD_PCM_PLUGIN_RATE_FALSE=
20074 fi
20075
20076  if test x$build_pcm_plug = xyes; then
20077   BUILD_PCM_PLUGIN_PLUG_TRUE=
20078   BUILD_PCM_PLUGIN_PLUG_FALSE='#'
20079 else
20080   BUILD_PCM_PLUGIN_PLUG_TRUE='#'
20081   BUILD_PCM_PLUGIN_PLUG_FALSE=
20082 fi
20083
20084  if test x$build_pcm_multi = xyes; then
20085   BUILD_PCM_PLUGIN_MULTI_TRUE=
20086   BUILD_PCM_PLUGIN_MULTI_FALSE='#'
20087 else
20088   BUILD_PCM_PLUGIN_MULTI_TRUE='#'
20089   BUILD_PCM_PLUGIN_MULTI_FALSE=
20090 fi
20091
20092  if test x$build_pcm_shm = xyes; then
20093   BUILD_PCM_PLUGIN_SHM_TRUE=
20094   BUILD_PCM_PLUGIN_SHM_FALSE='#'
20095 else
20096   BUILD_PCM_PLUGIN_SHM_TRUE='#'
20097   BUILD_PCM_PLUGIN_SHM_FALSE=
20098 fi
20099
20100  if test x$build_pcm_file = xyes; then
20101   BUILD_PCM_PLUGIN_FILE_TRUE=
20102   BUILD_PCM_PLUGIN_FILE_FALSE='#'
20103 else
20104   BUILD_PCM_PLUGIN_FILE_TRUE='#'
20105   BUILD_PCM_PLUGIN_FILE_FALSE=
20106 fi
20107
20108  if test x$build_pcm_null = xyes; then
20109   BUILD_PCM_PLUGIN_NULL_TRUE=
20110   BUILD_PCM_PLUGIN_NULL_FALSE='#'
20111 else
20112   BUILD_PCM_PLUGIN_NULL_TRUE='#'
20113   BUILD_PCM_PLUGIN_NULL_FALSE=
20114 fi
20115
20116  if test x$build_pcm_empty = xyes; then
20117   BUILD_PCM_PLUGIN_EMPTY_TRUE=
20118   BUILD_PCM_PLUGIN_EMPTY_FALSE='#'
20119 else
20120   BUILD_PCM_PLUGIN_EMPTY_TRUE='#'
20121   BUILD_PCM_PLUGIN_EMPTY_FALSE=
20122 fi
20123
20124  if test x$build_pcm_share = xyes; then
20125   BUILD_PCM_PLUGIN_SHARE_TRUE=
20126   BUILD_PCM_PLUGIN_SHARE_FALSE='#'
20127 else
20128   BUILD_PCM_PLUGIN_SHARE_TRUE='#'
20129   BUILD_PCM_PLUGIN_SHARE_FALSE=
20130 fi
20131
20132  if test x$build_pcm_meter = xyes; then
20133   BUILD_PCM_PLUGIN_METER_TRUE=
20134   BUILD_PCM_PLUGIN_METER_FALSE='#'
20135 else
20136   BUILD_PCM_PLUGIN_METER_TRUE='#'
20137   BUILD_PCM_PLUGIN_METER_FALSE=
20138 fi
20139
20140  if test x$build_pcm_hooks = xyes; then
20141   BUILD_PCM_PLUGIN_HOOKS_TRUE=
20142   BUILD_PCM_PLUGIN_HOOKS_FALSE='#'
20143 else
20144   BUILD_PCM_PLUGIN_HOOKS_TRUE='#'
20145   BUILD_PCM_PLUGIN_HOOKS_FALSE=
20146 fi
20147
20148  if test x$build_pcm_lfloat = xyes; then
20149   BUILD_PCM_PLUGIN_LFLOAT_TRUE=
20150   BUILD_PCM_PLUGIN_LFLOAT_FALSE='#'
20151 else
20152   BUILD_PCM_PLUGIN_LFLOAT_TRUE='#'
20153   BUILD_PCM_PLUGIN_LFLOAT_FALSE=
20154 fi
20155
20156  if test x$build_pcm_ladspa = xyes; then
20157   BUILD_PCM_PLUGIN_LADSPA_TRUE=
20158   BUILD_PCM_PLUGIN_LADSPA_FALSE='#'
20159 else
20160   BUILD_PCM_PLUGIN_LADSPA_TRUE='#'
20161   BUILD_PCM_PLUGIN_LADSPA_FALSE=
20162 fi
20163
20164  if test x$build_pcm_dmix = xyes; then
20165   BUILD_PCM_PLUGIN_DMIX_TRUE=
20166   BUILD_PCM_PLUGIN_DMIX_FALSE='#'
20167 else
20168   BUILD_PCM_PLUGIN_DMIX_TRUE='#'
20169   BUILD_PCM_PLUGIN_DMIX_FALSE=
20170 fi
20171
20172  if test x$build_pcm_dshare = xyes; then
20173   BUILD_PCM_PLUGIN_DSHARE_TRUE=
20174   BUILD_PCM_PLUGIN_DSHARE_FALSE='#'
20175 else
20176   BUILD_PCM_PLUGIN_DSHARE_TRUE='#'
20177   BUILD_PCM_PLUGIN_DSHARE_FALSE=
20178 fi
20179
20180  if test x$build_pcm_dsnoop = xyes; then
20181   BUILD_PCM_PLUGIN_DSNOOP_TRUE=
20182   BUILD_PCM_PLUGIN_DSNOOP_FALSE='#'
20183 else
20184   BUILD_PCM_PLUGIN_DSNOOP_TRUE='#'
20185   BUILD_PCM_PLUGIN_DSNOOP_FALSE=
20186 fi
20187
20188  if test x$build_pcm_asym = xyes; then
20189   BUILD_PCM_PLUGIN_ASYM_TRUE=
20190   BUILD_PCM_PLUGIN_ASYM_FALSE='#'
20191 else
20192   BUILD_PCM_PLUGIN_ASYM_TRUE='#'
20193   BUILD_PCM_PLUGIN_ASYM_FALSE=
20194 fi
20195
20196  if test x$build_pcm_iec958 = xyes; then
20197   BUILD_PCM_PLUGIN_IEC958_TRUE=
20198   BUILD_PCM_PLUGIN_IEC958_FALSE='#'
20199 else
20200   BUILD_PCM_PLUGIN_IEC958_TRUE='#'
20201   BUILD_PCM_PLUGIN_IEC958_FALSE=
20202 fi
20203
20204  if test x$build_pcm_softvol = xyes; then
20205   BUILD_PCM_PLUGIN_SOFTVOL_TRUE=
20206   BUILD_PCM_PLUGIN_SOFTVOL_FALSE='#'
20207 else
20208   BUILD_PCM_PLUGIN_SOFTVOL_TRUE='#'
20209   BUILD_PCM_PLUGIN_SOFTVOL_FALSE=
20210 fi
20211
20212  if test x$build_pcm_extplug = xyes; then
20213   BUILD_PCM_PLUGIN_EXTPLUG_TRUE=
20214   BUILD_PCM_PLUGIN_EXTPLUG_FALSE='#'
20215 else
20216   BUILD_PCM_PLUGIN_EXTPLUG_TRUE='#'
20217   BUILD_PCM_PLUGIN_EXTPLUG_FALSE=
20218 fi
20219
20220  if test x$build_pcm_ioplug = xyes; then
20221   BUILD_PCM_PLUGIN_IOPLUG_TRUE=
20222   BUILD_PCM_PLUGIN_IOPLUG_FALSE='#'
20223 else
20224   BUILD_PCM_PLUGIN_IOPLUG_TRUE='#'
20225   BUILD_PCM_PLUGIN_IOPLUG_FALSE=
20226 fi
20227
20228  if test x$build_pcm_mmap_emul = xyes; then
20229   BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE=
20230   BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE='#'
20231 else
20232   BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE='#'
20233   BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE=
20234 fi
20235
20236
20237 if test "$build_pcm_rate" = "yes"; then
20238
20239 $as_echo "#define BUILD_PCM_PLUGIN_RATE \"1\"" >>confdefs.h
20240
20241 fi
20242 if test "$build_pcm_route" = "yes"; then
20243
20244 $as_echo "#define BUILD_PCM_PLUGIN_ROUTE \"1\"" >>confdefs.h
20245
20246 fi
20247 if test "$build_pcm_lfloat" = "yes"; then
20248
20249 $as_echo "#define BUILD_PCM_PLUGIN_LFLOAT \"1\"" >>confdefs.h
20250
20251 fi
20252 if test "$build_pcm_adpcm" = "yes"; then
20253
20254 $as_echo "#define BUILD_PCM_PLUGIN_ADPCM \"1\"" >>confdefs.h
20255
20256 fi
20257 if test "$build_pcm_mulaw" = "yes"; then
20258
20259 $as_echo "#define BUILD_PCM_PLUGIN_MULAW \"1\"" >>confdefs.h
20260
20261 fi
20262 if test "$build_pcm_alaw" = "yes"; then
20263
20264 $as_echo "#define BUILD_PCM_PLUGIN_ALAW \"1\"" >>confdefs.h
20265
20266 fi
20267 if test "$build_pcm_mmap_emul" = "yes"; then
20268
20269 $as_echo "#define BUILD_PCM_PLUGIN_MMAP_EMUL \"1\"" >>confdefs.h
20270
20271 fi
20272
20273
20274 rm -f "$srcdir"/src/pcm/pcm_symbols_list.c
20275 touch "$srcdir"/src/pcm/pcm_symbols_list.c
20276 for t in $PCM_PLUGIN_LIST; do
20277   if eval test \$build_pcm_$t = yes; then
20278     echo \&_snd_module_pcm_$t, >> "$srcdir"/src/pcm/pcm_symbols_list.c
20279   fi
20280 done
20281
20282
20283
20284 # Check whether --with-ctl-plugins was given.
20285 if test "${with_ctl_plugins+set}" = set; then :
20286   withval=$with_ctl_plugins; ctl_plugins="$withval"
20287 else
20288   ctl_plugins="all"
20289 fi
20290
20291
20292 CTL_PLUGIN_LIST="shm ext"
20293
20294 build_ctl_plugin="no"
20295 for t in $CTL_PLUGIN_LIST; do
20296   eval build_ctl_$t="no"
20297 done
20298
20299 ctl_plugins=`echo $ctl_plugins | sed 's/,/ /g'`
20300 for p in $ctl_plugins; do
20301   for t in $CTL_PLUGIN_LIST; do
20302     if test "$p" = "$t" -o "$p" = "all"; then
20303       eval build_ctl_$t="yes"
20304       build_ctl_plugin="yes"
20305     fi
20306   done
20307 done
20308
20309  if test x$build_ctl_plugin = xyes; then
20310   BUILD_CTL_PLUGIN_TRUE=
20311   BUILD_CTL_PLUGIN_FALSE='#'
20312 else
20313   BUILD_CTL_PLUGIN_TRUE='#'
20314   BUILD_CTL_PLUGIN_FALSE=
20315 fi
20316
20317  if test x$build_ctl_shm = xyes; then
20318   BUILD_CTL_PLUGIN_SHM_TRUE=
20319   BUILD_CTL_PLUGIN_SHM_FALSE='#'
20320 else
20321   BUILD_CTL_PLUGIN_SHM_TRUE='#'
20322   BUILD_CTL_PLUGIN_SHM_FALSE=
20323 fi
20324
20325  if test x$build_ctl_ext = xyes; then
20326   BUILD_CTL_PLUGIN_EXT_TRUE=
20327   BUILD_CTL_PLUGIN_EXT_FALSE='#'
20328 else
20329   BUILD_CTL_PLUGIN_EXT_TRUE='#'
20330   BUILD_CTL_PLUGIN_EXT_FALSE=
20331 fi
20332
20333
20334 rm -f "$srcdir"/src/control/ctl_symbols_list.c
20335 touch "$srcdir"/src/control/ctl_symbols_list.c
20336 for t in $CTL_PLUGIN_LIST; do
20337   if eval test \$build_ctl_$t = yes; then
20338     echo \&_snd_module_control_$t, >> "$srcdir"/src/control/ctl_symbols_list.c
20339   fi
20340 done
20341
20342 if test ! -L "$srcdir"/include/alsa ; then
20343   echo "Making a symlink include/alsa"
20344   rm -f "$srcdir"/include/alsa
20345   ln -sf . "$srcdir"/include/alsa
20346 fi
20347
20348 ac_config_files="$ac_config_files Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg include/Makefile include/sound/Makefile src/Versions src/Makefile src/control/Makefile src/mixer/Makefile src/pcm/Makefile src/pcm/scopes/Makefile src/rawmidi/Makefile src/timer/Makefile src/hwdep/Makefile src/seq/Makefile src/ucm/Makefile src/compat/Makefile src/alisp/Makefile src/conf/Makefile src/conf/alsa.conf.d/Makefile src/conf/cards/Makefile src/conf/pcm/Makefile modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile alsalisp/Makefile aserver/Makefile test/Makefile test/lsb/Makefile utils/Makefile utils/alsa-lib.spec utils/alsa.pc"
20349
20350 cat >confcache <<\_ACEOF
20351 # This file is a shell script that caches the results of configure
20352 # tests run on this system so they can be shared between configure
20353 # scripts and configure runs, see configure's option --config-cache.
20354 # It is not useful on other systems.  If it contains results you don't
20355 # want to keep, you may remove or edit it.
20356 #
20357 # config.status only pays attention to the cache file if you give it
20358 # the --recheck option to rerun configure.
20359 #
20360 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20361 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20362 # following values.
20363
20364 _ACEOF
20365
20366 # The following way of writing the cache mishandles newlines in values,
20367 # but we know of no workaround that is simple, portable, and efficient.
20368 # So, we kill variables containing newlines.
20369 # Ultrix sh set writes to stderr and can't be redirected directly,
20370 # and sets the high bit in the cache file unless we assign to the vars.
20371 (
20372   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20373     eval ac_val=\$$ac_var
20374     case $ac_val in #(
20375     *${as_nl}*)
20376       case $ac_var in #(
20377       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20379       esac
20380       case $ac_var in #(
20381       _ | IFS | as_nl) ;; #(
20382       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20383       *) { eval $ac_var=; unset $ac_var;} ;;
20384       esac ;;
20385     esac
20386   done
20387
20388   (set) 2>&1 |
20389     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20390     *${as_nl}ac_space=\ *)
20391       # `set' does not quote correctly, so add quotes: double-quote
20392       # substitution turns \\\\ into \\, and sed turns \\ into \.
20393       sed -n \
20394         "s/'/'\\\\''/g;
20395           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20396       ;; #(
20397     *)
20398       # `set' quotes correctly as required by POSIX, so do not add quotes.
20399       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20400       ;;
20401     esac |
20402     sort
20403 ) |
20404   sed '
20405      /^ac_cv_env_/b end
20406      t clear
20407      :clear
20408      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20409      t end
20410      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20411      :end' >>confcache
20412 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20413   if test -w "$cache_file"; then
20414     if test "x$cache_file" != "x/dev/null"; then
20415       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20416 $as_echo "$as_me: updating cache $cache_file" >&6;}
20417       if test ! -f "$cache_file" || test -h "$cache_file"; then
20418         cat confcache >"$cache_file"
20419       else
20420         case $cache_file in #(
20421         */* | ?:*)
20422           mv -f confcache "$cache_file"$$ &&
20423           mv -f "$cache_file"$$ "$cache_file" ;; #(
20424         *)
20425           mv -f confcache "$cache_file" ;;
20426         esac
20427       fi
20428     fi
20429   else
20430     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20431 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20432   fi
20433 fi
20434 rm -f confcache
20435
20436 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20437 # Let make expand exec_prefix.
20438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20439
20440 DEFS=-DHAVE_CONFIG_H
20441
20442 ac_libobjs=
20443 ac_ltlibobjs=
20444 U=
20445 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20446   # 1. Remove the extension, and $U if already installed.
20447   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20448   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20449   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20450   #    will be set to the directory where LIBOBJS objects are built.
20451   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20452   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20453 done
20454 LIBOBJS=$ac_libobjs
20455
20456 LTLIBOBJS=$ac_ltlibobjs
20457
20458
20459  if test -n "$EXEEXT"; then
20460   am__EXEEXT_TRUE=
20461   am__EXEEXT_FALSE='#'
20462 else
20463   am__EXEEXT_TRUE='#'
20464   am__EXEEXT_FALSE=
20465 fi
20466
20467 if test -z "${INSTALL_M4_TRUE}" && test -z "${INSTALL_M4_FALSE}"; then
20468   as_fn_error $? "conditional \"INSTALL_M4\" was never defined.
20469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20470 fi
20471 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20472   as_fn_error $? "conditional \"AMDEP\" was never defined.
20473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20474 fi
20475 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20476   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20478 fi
20479 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20480   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20482 fi
20483 if test -z "${ALSA_HSEARCH_R_TRUE}" && test -z "${ALSA_HSEARCH_R_FALSE}"; then
20484   as_fn_error $? "conditional \"ALSA_HSEARCH_R\" was never defined.
20485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20486 fi
20487 if test -z "${VERSIONED_SYMBOLS_TRUE}" && test -z "${VERSIONED_SYMBOLS_FALSE}"; then
20488   as_fn_error $? "conditional \"VERSIONED_SYMBOLS\" was never defined.
20489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20490 fi
20491 if test -z "${SYMBOLIC_FUNCTIONS_TRUE}" && test -z "${SYMBOLIC_FUNCTIONS_FALSE}"; then
20492   as_fn_error $? "conditional \"SYMBOLIC_FUNCTIONS\" was never defined.
20493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20494 fi
20495 if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
20496   as_fn_error $? "conditional \"BUILD_MODULES\" was never defined.
20497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20498 fi
20499 if test -z "${KEEP_OLD_SYMBOLS_TRUE}" && test -z "${KEEP_OLD_SYMBOLS_FALSE}"; then
20500   as_fn_error $? "conditional \"KEEP_OLD_SYMBOLS\" was never defined.
20501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20502 fi
20503 if test -z "${BUILD_MIXER_TRUE}" && test -z "${BUILD_MIXER_FALSE}"; then
20504   as_fn_error $? "conditional \"BUILD_MIXER\" was never defined.
20505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20506 fi
20507 if test -z "${BUILD_PCM_TRUE}" && test -z "${BUILD_PCM_FALSE}"; then
20508   as_fn_error $? "conditional \"BUILD_PCM\" was never defined.
20509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20510 fi
20511 if test -z "${BUILD_RAWMIDI_TRUE}" && test -z "${BUILD_RAWMIDI_FALSE}"; then
20512   as_fn_error $? "conditional \"BUILD_RAWMIDI\" was never defined.
20513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20514 fi
20515 if test -z "${BUILD_HWDEP_TRUE}" && test -z "${BUILD_HWDEP_FALSE}"; then
20516   as_fn_error $? "conditional \"BUILD_HWDEP\" was never defined.
20517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20518 fi
20519 if test -z "${BUILD_SEQ_TRUE}" && test -z "${BUILD_SEQ_FALSE}"; then
20520   as_fn_error $? "conditional \"BUILD_SEQ\" was never defined.
20521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20522 fi
20523 if test -z "${BUILD_UCM_TRUE}" && test -z "${BUILD_UCM_FALSE}"; then
20524   as_fn_error $? "conditional \"BUILD_UCM\" was never defined.
20525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20526 fi
20527 if test -z "${BUILD_ALISP_TRUE}" && test -z "${BUILD_ALISP_FALSE}"; then
20528   as_fn_error $? "conditional \"BUILD_ALISP\" was never defined.
20529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20530 fi
20531 if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then
20532   as_fn_error $? "conditional \"BUILD_PYTHON\" was never defined.
20533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20534 fi
20535 if test -z "${BUILD_PCM_PLUGIN_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FALSE}"; then
20536   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN\" was never defined.
20537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20538 fi
20539 if test -z "${BUILD_PCM_PLUGIN_COPY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_COPY_FALSE}"; then
20540   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_COPY\" was never defined.
20541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20542 fi
20543 if test -z "${BUILD_PCM_PLUGIN_LINEAR_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LINEAR_FALSE}"; then
20544   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LINEAR\" was never defined.
20545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20546 fi
20547 if test -z "${BUILD_PCM_PLUGIN_ROUTE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ROUTE_FALSE}"; then
20548   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ROUTE\" was never defined.
20549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20550 fi
20551 if test -z "${BUILD_PCM_PLUGIN_MULAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULAW_FALSE}"; then
20552   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULAW\" was never defined.
20553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20554 fi
20555 if test -z "${BUILD_PCM_PLUGIN_ALAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ALAW_FALSE}"; then
20556   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ALAW\" was never defined.
20557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20558 fi
20559 if test -z "${BUILD_PCM_PLUGIN_ADPCM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ADPCM_FALSE}"; then
20560   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ADPCM\" was never defined.
20561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20562 fi
20563 if test -z "${BUILD_PCM_PLUGIN_RATE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_RATE_FALSE}"; then
20564   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_RATE\" was never defined.
20565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20566 fi
20567 if test -z "${BUILD_PCM_PLUGIN_PLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_PLUG_FALSE}"; then
20568   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_PLUG\" was never defined.
20569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20570 fi
20571 if test -z "${BUILD_PCM_PLUGIN_MULTI_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULTI_FALSE}"; then
20572   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULTI\" was never defined.
20573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20574 fi
20575 if test -z "${BUILD_PCM_PLUGIN_SHM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHM_FALSE}"; then
20576   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHM\" was never defined.
20577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20578 fi
20579 if test -z "${BUILD_PCM_PLUGIN_FILE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FILE_FALSE}"; then
20580   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_FILE\" was never defined.
20581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20582 fi
20583 if test -z "${BUILD_PCM_PLUGIN_NULL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_NULL_FALSE}"; then
20584   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_NULL\" was never defined.
20585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20586 fi
20587 if test -z "${BUILD_PCM_PLUGIN_EMPTY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EMPTY_FALSE}"; then
20588   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EMPTY\" was never defined.
20589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20590 fi
20591 if test -z "${BUILD_PCM_PLUGIN_SHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHARE_FALSE}"; then
20592   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHARE\" was never defined.
20593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20594 fi
20595 if test -z "${BUILD_PCM_PLUGIN_METER_TRUE}" && test -z "${BUILD_PCM_PLUGIN_METER_FALSE}"; then
20596   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_METER\" was never defined.
20597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20598 fi
20599 if test -z "${BUILD_PCM_PLUGIN_HOOKS_TRUE}" && test -z "${BUILD_PCM_PLUGIN_HOOKS_FALSE}"; then
20600   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_HOOKS\" was never defined.
20601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20602 fi
20603 if test -z "${BUILD_PCM_PLUGIN_LFLOAT_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LFLOAT_FALSE}"; then
20604   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LFLOAT\" was never defined.
20605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20606 fi
20607 if test -z "${BUILD_PCM_PLUGIN_LADSPA_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LADSPA_FALSE}"; then
20608   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LADSPA\" was never defined.
20609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20610 fi
20611 if test -z "${BUILD_PCM_PLUGIN_DMIX_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DMIX_FALSE}"; then
20612   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DMIX\" was never defined.
20613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20614 fi
20615 if test -z "${BUILD_PCM_PLUGIN_DSHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSHARE_FALSE}"; then
20616   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSHARE\" was never defined.
20617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20618 fi
20619 if test -z "${BUILD_PCM_PLUGIN_DSNOOP_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSNOOP_FALSE}"; then
20620   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSNOOP\" was never defined.
20621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20622 fi
20623 if test -z "${BUILD_PCM_PLUGIN_ASYM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ASYM_FALSE}"; then
20624   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ASYM\" was never defined.
20625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20626 fi
20627 if test -z "${BUILD_PCM_PLUGIN_IEC958_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IEC958_FALSE}"; then
20628   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IEC958\" was never defined.
20629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20630 fi
20631 if test -z "${BUILD_PCM_PLUGIN_SOFTVOL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SOFTVOL_FALSE}"; then
20632   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SOFTVOL\" was never defined.
20633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20634 fi
20635 if test -z "${BUILD_PCM_PLUGIN_EXTPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EXTPLUG_FALSE}"; then
20636   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EXTPLUG\" was never defined.
20637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20638 fi
20639 if test -z "${BUILD_PCM_PLUGIN_IOPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IOPLUG_FALSE}"; then
20640   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IOPLUG\" was never defined.
20641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20642 fi
20643 if test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE}"; then
20644   as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MMAP_EMUL\" was never defined.
20645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20646 fi
20647 if test -z "${BUILD_CTL_PLUGIN_TRUE}" && test -z "${BUILD_CTL_PLUGIN_FALSE}"; then
20648   as_fn_error $? "conditional \"BUILD_CTL_PLUGIN\" was never defined.
20649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20650 fi
20651 if test -z "${BUILD_CTL_PLUGIN_SHM_TRUE}" && test -z "${BUILD_CTL_PLUGIN_SHM_FALSE}"; then
20652   as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_SHM\" was never defined.
20653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20654 fi
20655 if test -z "${BUILD_CTL_PLUGIN_EXT_TRUE}" && test -z "${BUILD_CTL_PLUGIN_EXT_FALSE}"; then
20656   as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_EXT\" was never defined.
20657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20658 fi
20659
20660 : "${CONFIG_STATUS=./config.status}"
20661 ac_write_fail=0
20662 ac_clean_files_save=$ac_clean_files
20663 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20665 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20666 as_write_fail=0
20667 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20668 #! $SHELL
20669 # Generated by $as_me.
20670 # Run this file to recreate the current configuration.
20671 # Compiler output produced by configure, useful for debugging
20672 # configure, is in config.log if it exists.
20673
20674 debug=false
20675 ac_cs_recheck=false
20676 ac_cs_silent=false
20677
20678 SHELL=\${CONFIG_SHELL-$SHELL}
20679 export SHELL
20680 _ASEOF
20681 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20682 ## -------------------- ##
20683 ## M4sh Initialization. ##
20684 ## -------------------- ##
20685
20686 # Be more Bourne compatible
20687 DUALCASE=1; export DUALCASE # for MKS sh
20688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20689   emulate sh
20690   NULLCMD=:
20691   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20692   # is contrary to our usage.  Disable this feature.
20693   alias -g '${1+"$@"}'='"$@"'
20694   setopt NO_GLOB_SUBST
20695 else
20696   case `(set -o) 2>/dev/null` in #(
20697   *posix*) :
20698     set -o posix ;; #(
20699   *) :
20700      ;;
20701 esac
20702 fi
20703
20704
20705 as_nl='
20706 '
20707 export as_nl
20708 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20709 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20710 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20712 # Prefer a ksh shell builtin over an external printf program on Solaris,
20713 # but without wasting forks for bash or zsh.
20714 if test -z "$BASH_VERSION$ZSH_VERSION" \
20715     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20716   as_echo='print -r --'
20717   as_echo_n='print -rn --'
20718 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20719   as_echo='printf %s\n'
20720   as_echo_n='printf %s'
20721 else
20722   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20723     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20724     as_echo_n='/usr/ucb/echo -n'
20725   else
20726     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20727     as_echo_n_body='eval
20728       arg=$1;
20729       case $arg in #(
20730       *"$as_nl"*)
20731         expr "X$arg" : "X\\(.*\\)$as_nl";
20732         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20733       esac;
20734       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20735     '
20736     export as_echo_n_body
20737     as_echo_n='sh -c $as_echo_n_body as_echo'
20738   fi
20739   export as_echo_body
20740   as_echo='sh -c $as_echo_body as_echo'
20741 fi
20742
20743 # The user is always right.
20744 if test "${PATH_SEPARATOR+set}" != set; then
20745   PATH_SEPARATOR=:
20746   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20747     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20748       PATH_SEPARATOR=';'
20749   }
20750 fi
20751
20752
20753 # IFS
20754 # We need space, tab and new line, in precisely that order.  Quoting is
20755 # there to prevent editors from complaining about space-tab.
20756 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20757 # splitting by setting IFS to empty value.)
20758 IFS=" ""        $as_nl"
20759
20760 # Find who we are.  Look in the path if we contain no directory separator.
20761 as_myself=
20762 case $0 in #((
20763   *[\\/]* ) as_myself=$0 ;;
20764   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20765 for as_dir in $PATH
20766 do
20767   IFS=$as_save_IFS
20768   test -z "$as_dir" && as_dir=.
20769     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20770   done
20771 IFS=$as_save_IFS
20772
20773      ;;
20774 esac
20775 # We did not find ourselves, most probably we were run as `sh COMMAND'
20776 # in which case we are not to be found in the path.
20777 if test "x$as_myself" = x; then
20778   as_myself=$0
20779 fi
20780 if test ! -f "$as_myself"; then
20781   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20782   exit 1
20783 fi
20784
20785 # Unset variables that we do not need and which cause bugs (e.g. in
20786 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20787 # suppresses any "Segmentation fault" message there.  '((' could
20788 # trigger a bug in pdksh 5.2.14.
20789 for as_var in BASH_ENV ENV MAIL MAILPATH
20790 do eval test x\${$as_var+set} = xset \
20791   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20792 done
20793 PS1='$ '
20794 PS2='> '
20795 PS4='+ '
20796
20797 # NLS nuisances.
20798 LC_ALL=C
20799 export LC_ALL
20800 LANGUAGE=C
20801 export LANGUAGE
20802
20803 # CDPATH.
20804 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20805
20806
20807 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20808 # ----------------------------------------
20809 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20810 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20811 # script with STATUS, using 1 if that was 0.
20812 as_fn_error ()
20813 {
20814   as_status=$1; test $as_status -eq 0 && as_status=1
20815   if test "$4"; then
20816     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20817     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20818   fi
20819   $as_echo "$as_me: error: $2" >&2
20820   as_fn_exit $as_status
20821 } # as_fn_error
20822
20823
20824 # as_fn_set_status STATUS
20825 # -----------------------
20826 # Set $? to STATUS, without forking.
20827 as_fn_set_status ()
20828 {
20829   return $1
20830 } # as_fn_set_status
20831
20832 # as_fn_exit STATUS
20833 # -----------------
20834 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20835 as_fn_exit ()
20836 {
20837   set +e
20838   as_fn_set_status $1
20839   exit $1
20840 } # as_fn_exit
20841
20842 # as_fn_unset VAR
20843 # ---------------
20844 # Portably unset VAR.
20845 as_fn_unset ()
20846 {
20847   { eval $1=; unset $1;}
20848 }
20849 as_unset=as_fn_unset
20850 # as_fn_append VAR VALUE
20851 # ----------------------
20852 # Append the text in VALUE to the end of the definition contained in VAR. Take
20853 # advantage of any shell optimizations that allow amortized linear growth over
20854 # repeated appends, instead of the typical quadratic growth present in naive
20855 # implementations.
20856 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20857   eval 'as_fn_append ()
20858   {
20859     eval $1+=\$2
20860   }'
20861 else
20862   as_fn_append ()
20863   {
20864     eval $1=\$$1\$2
20865   }
20866 fi # as_fn_append
20867
20868 # as_fn_arith ARG...
20869 # ------------------
20870 # Perform arithmetic evaluation on the ARGs, and store the result in the
20871 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20872 # must be portable across $(()) and expr.
20873 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20874   eval 'as_fn_arith ()
20875   {
20876     as_val=$(( $* ))
20877   }'
20878 else
20879   as_fn_arith ()
20880   {
20881     as_val=`expr "$@" || test $? -eq 1`
20882   }
20883 fi # as_fn_arith
20884
20885
20886 if expr a : '\(a\)' >/dev/null 2>&1 &&
20887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20888   as_expr=expr
20889 else
20890   as_expr=false
20891 fi
20892
20893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20894   as_basename=basename
20895 else
20896   as_basename=false
20897 fi
20898
20899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20900   as_dirname=dirname
20901 else
20902   as_dirname=false
20903 fi
20904
20905 as_me=`$as_basename -- "$0" ||
20906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20907          X"$0" : 'X\(//\)$' \| \
20908          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20909 $as_echo X/"$0" |
20910     sed '/^.*\/\([^/][^/]*\)\/*$/{
20911             s//\1/
20912             q
20913           }
20914           /^X\/\(\/\/\)$/{
20915             s//\1/
20916             q
20917           }
20918           /^X\/\(\/\).*/{
20919             s//\1/
20920             q
20921           }
20922           s/.*/./; q'`
20923
20924 # Avoid depending upon Character Ranges.
20925 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20926 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20927 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20928 as_cr_digits='0123456789'
20929 as_cr_alnum=$as_cr_Letters$as_cr_digits
20930
20931 ECHO_C= ECHO_N= ECHO_T=
20932 case `echo -n x` in #(((((
20933 -n*)
20934   case `echo 'xy\c'` in
20935   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20936   xy)  ECHO_C='\c';;
20937   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20938        ECHO_T=' ';;
20939   esac;;
20940 *)
20941   ECHO_N='-n';;
20942 esac
20943
20944 rm -f conf$$ conf$$.exe conf$$.file
20945 if test -d conf$$.dir; then
20946   rm -f conf$$.dir/conf$$.file
20947 else
20948   rm -f conf$$.dir
20949   mkdir conf$$.dir 2>/dev/null
20950 fi
20951 if (echo >conf$$.file) 2>/dev/null; then
20952   if ln -s conf$$.file conf$$ 2>/dev/null; then
20953     as_ln_s='ln -s'
20954     # ... but there are two gotchas:
20955     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20956     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20957     # In both cases, we have to default to `cp -p'.
20958     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20959       as_ln_s='cp -p'
20960   elif ln conf$$.file conf$$ 2>/dev/null; then
20961     as_ln_s=ln
20962   else
20963     as_ln_s='cp -p'
20964   fi
20965 else
20966   as_ln_s='cp -p'
20967 fi
20968 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20969 rmdir conf$$.dir 2>/dev/null
20970
20971
20972 # as_fn_mkdir_p
20973 # -------------
20974 # Create "$as_dir" as a directory, including parents if necessary.
20975 as_fn_mkdir_p ()
20976 {
20977
20978   case $as_dir in #(
20979   -*) as_dir=./$as_dir;;
20980   esac
20981   test -d "$as_dir" || eval $as_mkdir_p || {
20982     as_dirs=
20983     while :; do
20984       case $as_dir in #(
20985       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20986       *) as_qdir=$as_dir;;
20987       esac
20988       as_dirs="'$as_qdir' $as_dirs"
20989       as_dir=`$as_dirname -- "$as_dir" ||
20990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20991          X"$as_dir" : 'X\(//\)[^/]' \| \
20992          X"$as_dir" : 'X\(//\)$' \| \
20993          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20994 $as_echo X"$as_dir" |
20995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20996             s//\1/
20997             q
20998           }
20999           /^X\(\/\/\)[^/].*/{
21000             s//\1/
21001             q
21002           }
21003           /^X\(\/\/\)$/{
21004             s//\1/
21005             q
21006           }
21007           /^X\(\/\).*/{
21008             s//\1/
21009             q
21010           }
21011           s/.*/./; q'`
21012       test -d "$as_dir" && break
21013     done
21014     test -z "$as_dirs" || eval "mkdir $as_dirs"
21015   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21016
21017
21018 } # as_fn_mkdir_p
21019 if mkdir -p . 2>/dev/null; then
21020   as_mkdir_p='mkdir -p "$as_dir"'
21021 else
21022   test -d ./-p && rmdir ./-p
21023   as_mkdir_p=false
21024 fi
21025
21026 if test -x / >/dev/null 2>&1; then
21027   as_test_x='test -x'
21028 else
21029   if ls -dL / >/dev/null 2>&1; then
21030     as_ls_L_option=L
21031   else
21032     as_ls_L_option=
21033   fi
21034   as_test_x='
21035     eval sh -c '\''
21036       if test -d "$1"; then
21037         test -d "$1/.";
21038       else
21039         case $1 in #(
21040         -*)set "./$1";;
21041         esac;
21042         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21043         ???[sx]*):;;*)false;;esac;fi
21044     '\'' sh
21045   '
21046 fi
21047 as_executable_p=$as_test_x
21048
21049 # Sed expression to map a string onto a valid CPP name.
21050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21051
21052 # Sed expression to map a string onto a valid variable name.
21053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21054
21055
21056 exec 6>&1
21057 ## ----------------------------------- ##
21058 ## Main body of $CONFIG_STATUS script. ##
21059 ## ----------------------------------- ##
21060 _ASEOF
21061 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21062
21063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21064 # Save the log message, to keep $0 and so on meaningful, and to
21065 # report actual input values of CONFIG_FILES etc. instead of their
21066 # values after options handling.
21067 ac_log="
21068 This file was extended by $as_me, which was
21069 generated by GNU Autoconf 2.68.  Invocation command line was
21070
21071   CONFIG_FILES    = $CONFIG_FILES
21072   CONFIG_HEADERS  = $CONFIG_HEADERS
21073   CONFIG_LINKS    = $CONFIG_LINKS
21074   CONFIG_COMMANDS = $CONFIG_COMMANDS
21075   $ $0 $@
21076
21077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21078 "
21079
21080 _ACEOF
21081
21082 case $ac_config_files in *"
21083 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21084 esac
21085
21086 case $ac_config_headers in *"
21087 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21088 esac
21089
21090
21091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21092 # Files that config.status was made for.
21093 config_files="$ac_config_files"
21094 config_headers="$ac_config_headers"
21095 config_commands="$ac_config_commands"
21096
21097 _ACEOF
21098
21099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21100 ac_cs_usage="\
21101 \`$as_me' instantiates files and other configuration actions
21102 from templates according to the current configuration.  Unless the files
21103 and actions are specified as TAGs, all are instantiated by default.
21104
21105 Usage: $0 [OPTION]... [TAG]...
21106
21107   -h, --help       print this help, then exit
21108   -V, --version    print version number and configuration settings, then exit
21109       --config     print configuration, then exit
21110   -q, --quiet, --silent
21111                    do not print progress messages
21112   -d, --debug      don't remove temporary files
21113       --recheck    update $as_me by reconfiguring in the same conditions
21114       --file=FILE[:TEMPLATE]
21115                    instantiate the configuration file FILE
21116       --header=FILE[:TEMPLATE]
21117                    instantiate the configuration header FILE
21118
21119 Configuration files:
21120 $config_files
21121
21122 Configuration headers:
21123 $config_headers
21124
21125 Configuration commands:
21126 $config_commands
21127
21128 Report bugs to the package provider."
21129
21130 _ACEOF
21131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21132 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21133 ac_cs_version="\\
21134 config.status
21135 configured by $0, generated by GNU Autoconf 2.68,
21136   with options \\"\$ac_cs_config\\"
21137
21138 Copyright (C) 2010 Free Software Foundation, Inc.
21139 This config.status script is free software; the Free Software Foundation
21140 gives unlimited permission to copy, distribute and modify it."
21141
21142 ac_pwd='$ac_pwd'
21143 srcdir='$srcdir'
21144 INSTALL='$INSTALL'
21145 MKDIR_P='$MKDIR_P'
21146 AWK='$AWK'
21147 test -n "\$AWK" || AWK=awk
21148 _ACEOF
21149
21150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21151 # The default lists apply if the user does not specify any file.
21152 ac_need_defaults=:
21153 while test $# != 0
21154 do
21155   case $1 in
21156   --*=?*)
21157     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21158     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21159     ac_shift=:
21160     ;;
21161   --*=)
21162     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21163     ac_optarg=
21164     ac_shift=:
21165     ;;
21166   *)
21167     ac_option=$1
21168     ac_optarg=$2
21169     ac_shift=shift
21170     ;;
21171   esac
21172
21173   case $ac_option in
21174   # Handling of the options.
21175   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21176     ac_cs_recheck=: ;;
21177   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21178     $as_echo "$ac_cs_version"; exit ;;
21179   --config | --confi | --conf | --con | --co | --c )
21180     $as_echo "$ac_cs_config"; exit ;;
21181   --debug | --debu | --deb | --de | --d | -d )
21182     debug=: ;;
21183   --file | --fil | --fi | --f )
21184     $ac_shift
21185     case $ac_optarg in
21186     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21187     '') as_fn_error $? "missing file argument" ;;
21188     esac
21189     as_fn_append CONFIG_FILES " '$ac_optarg'"
21190     ac_need_defaults=false;;
21191   --header | --heade | --head | --hea )
21192     $ac_shift
21193     case $ac_optarg in
21194     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21195     esac
21196     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21197     ac_need_defaults=false;;
21198   --he | --h)
21199     # Conflict between --help and --header
21200     as_fn_error $? "ambiguous option: \`$1'
21201 Try \`$0 --help' for more information.";;
21202   --help | --hel | -h )
21203     $as_echo "$ac_cs_usage"; exit ;;
21204   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21205   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21206     ac_cs_silent=: ;;
21207
21208   # This is an error.
21209   -*) as_fn_error $? "unrecognized option: \`$1'
21210 Try \`$0 --help' for more information." ;;
21211
21212   *) as_fn_append ac_config_targets " $1"
21213      ac_need_defaults=false ;;
21214
21215   esac
21216   shift
21217 done
21218
21219 ac_configure_extra_args=
21220
21221 if $ac_cs_silent; then
21222   exec 6>/dev/null
21223   ac_configure_extra_args="$ac_configure_extra_args --silent"
21224 fi
21225
21226 _ACEOF
21227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21228 if \$ac_cs_recheck; then
21229   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21230   shift
21231   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21232   CONFIG_SHELL='$SHELL'
21233   export CONFIG_SHELL
21234   exec "\$@"
21235 fi
21236
21237 _ACEOF
21238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21239 exec 5>>config.log
21240 {
21241   echo
21242   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21243 ## Running $as_me. ##
21244 _ASBOX
21245   $as_echo "$ac_log"
21246 } >&5
21247
21248 _ACEOF
21249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21250 #
21251 # INIT-COMMANDS
21252 #
21253 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21254
21255 _ACEOF
21256
21257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21258
21259 # Handling of arguments.
21260 for ac_config_target in $ac_config_targets
21261 do
21262   case $ac_config_target in
21263     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21264     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21265     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21266     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21267     "doc/pictures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/pictures/Makefile" ;;
21268     "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
21269     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21270     "include/sound/Makefile") CONFIG_FILES="$CONFIG_FILES include/sound/Makefile" ;;
21271     "src/Versions") CONFIG_FILES="$CONFIG_FILES src/Versions" ;;
21272     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21273     "src/control/Makefile") CONFIG_FILES="$CONFIG_FILES src/control/Makefile" ;;
21274     "src/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES src/mixer/Makefile" ;;
21275     "src/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/Makefile" ;;
21276     "src/pcm/scopes/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/scopes/Makefile" ;;
21277     "src/rawmidi/Makefile") CONFIG_FILES="$CONFIG_FILES src/rawmidi/Makefile" ;;
21278     "src/timer/Makefile") CONFIG_FILES="$CONFIG_FILES src/timer/Makefile" ;;
21279     "src/hwdep/Makefile") CONFIG_FILES="$CONFIG_FILES src/hwdep/Makefile" ;;
21280     "src/seq/Makefile") CONFIG_FILES="$CONFIG_FILES src/seq/Makefile" ;;
21281     "src/ucm/Makefile") CONFIG_FILES="$CONFIG_FILES src/ucm/Makefile" ;;
21282     "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
21283     "src/alisp/Makefile") CONFIG_FILES="$CONFIG_FILES src/alisp/Makefile" ;;
21284     "src/conf/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/Makefile" ;;
21285     "src/conf/alsa.conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/alsa.conf.d/Makefile" ;;
21286     "src/conf/cards/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/cards/Makefile" ;;
21287     "src/conf/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/pcm/Makefile" ;;
21288     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
21289     "modules/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/Makefile" ;;
21290     "modules/mixer/simple/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/simple/Makefile" ;;
21291     "alsalisp/Makefile") CONFIG_FILES="$CONFIG_FILES alsalisp/Makefile" ;;
21292     "aserver/Makefile") CONFIG_FILES="$CONFIG_FILES aserver/Makefile" ;;
21293     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21294     "test/lsb/Makefile") CONFIG_FILES="$CONFIG_FILES test/lsb/Makefile" ;;
21295     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21296     "utils/alsa-lib.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-lib.spec" ;;
21297     "utils/alsa.pc") CONFIG_FILES="$CONFIG_FILES utils/alsa.pc" ;;
21298
21299   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21300   esac
21301 done
21302
21303
21304 # If the user did not use the arguments to specify the items to instantiate,
21305 # then the envvar interface is used.  Set only those that are not.
21306 # We use the long form for the default assignment because of an extremely
21307 # bizarre bug on SunOS 4.1.3.
21308 if $ac_need_defaults; then
21309   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21310   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21311   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21312 fi
21313
21314 # Have a temporary directory for convenience.  Make it in the build tree
21315 # simply because there is no reason against having it here, and in addition,
21316 # creating and moving files from /tmp can sometimes cause problems.
21317 # Hook for its removal unless debugging.
21318 # Note that there is a small window in which the directory will not be cleaned:
21319 # after its creation but before its name has been assigned to `$tmp'.
21320 $debug ||
21321 {
21322   tmp= ac_tmp=
21323   trap 'exit_status=$?
21324   : "${ac_tmp:=$tmp}"
21325   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21326 ' 0
21327   trap 'as_fn_exit 1' 1 2 13 15
21328 }
21329 # Create a (secure) tmp directory for tmp files.
21330
21331 {
21332   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21333   test -d "$tmp"
21334 }  ||
21335 {
21336   tmp=./conf$$-$RANDOM
21337   (umask 077 && mkdir "$tmp")
21338 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21339 ac_tmp=$tmp
21340
21341 # Set up the scripts for CONFIG_FILES section.
21342 # No need to generate them if there are no CONFIG_FILES.
21343 # This happens for instance with `./config.status config.h'.
21344 if test -n "$CONFIG_FILES"; then
21345
21346
21347 ac_cr=`echo X | tr X '\015'`
21348 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21349 # But we know of no other shell where ac_cr would be empty at this
21350 # point, so we can use a bashism as a fallback.
21351 if test "x$ac_cr" = x; then
21352   eval ac_cr=\$\'\\r\'
21353 fi
21354 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21355 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21356   ac_cs_awk_cr='\\r'
21357 else
21358   ac_cs_awk_cr=$ac_cr
21359 fi
21360
21361 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21362 _ACEOF
21363
21364
21365 {
21366   echo "cat >conf$$subs.awk <<_ACEOF" &&
21367   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21368   echo "_ACEOF"
21369 } >conf$$subs.sh ||
21370   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21371 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21372 ac_delim='%!_!# '
21373 for ac_last_try in false false false false false :; do
21374   . ./conf$$subs.sh ||
21375     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21376
21377   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21378   if test $ac_delim_n = $ac_delim_num; then
21379     break
21380   elif $ac_last_try; then
21381     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21382   else
21383     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21384   fi
21385 done
21386 rm -f conf$$subs.sh
21387
21388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21389 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21390 _ACEOF
21391 sed -n '
21392 h
21393 s/^/S["/; s/!.*/"]=/
21394 p
21395 g
21396 s/^[^!]*!//
21397 :repl
21398 t repl
21399 s/'"$ac_delim"'$//
21400 t delim
21401 :nl
21402 h
21403 s/\(.\{148\}\)..*/\1/
21404 t more1
21405 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21406 p
21407 n
21408 b repl
21409 :more1
21410 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21411 p
21412 g
21413 s/.\{148\}//
21414 t nl
21415 :delim
21416 h
21417 s/\(.\{148\}\)..*/\1/
21418 t more2
21419 s/["\\]/\\&/g; s/^/"/; s/$/"/
21420 p
21421 b
21422 :more2
21423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21424 p
21425 g
21426 s/.\{148\}//
21427 t delim
21428 ' <conf$$subs.awk | sed '
21429 /^[^""]/{
21430   N
21431   s/\n//
21432 }
21433 ' >>$CONFIG_STATUS || ac_write_fail=1
21434 rm -f conf$$subs.awk
21435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21436 _ACAWK
21437 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21438   for (key in S) S_is_set[key] = 1
21439   FS = "\a"
21440
21441 }
21442 {
21443   line = $ 0
21444   nfields = split(line, field, "@")
21445   substed = 0
21446   len = length(field[1])
21447   for (i = 2; i < nfields; i++) {
21448     key = field[i]
21449     keylen = length(key)
21450     if (S_is_set[key]) {
21451       value = S[key]
21452       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21453       len += length(value) + length(field[++i])
21454       substed = 1
21455     } else
21456       len += 1 + keylen
21457   }
21458
21459   print line
21460 }
21461
21462 _ACAWK
21463 _ACEOF
21464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21465 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21466   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21467 else
21468   cat
21469 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21470   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21471 _ACEOF
21472
21473 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21474 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21475 # trailing colons and then remove the whole line if VPATH becomes empty
21476 # (actually we leave an empty line to preserve line numbers).
21477 if test "x$srcdir" = x.; then
21478   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21479 h
21480 s///
21481 s/^/:/
21482 s/[      ]*$/:/
21483 s/:\$(srcdir):/:/g
21484 s/:\${srcdir}:/:/g
21485 s/:@srcdir@:/:/g
21486 s/^:*//
21487 s/:*$//
21488 x
21489 s/\(=[   ]*\).*/\1/
21490 G
21491 s/\n//
21492 s/^[^=]*=[       ]*$//
21493 }'
21494 fi
21495
21496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21497 fi # test -n "$CONFIG_FILES"
21498
21499 # Set up the scripts for CONFIG_HEADERS section.
21500 # No need to generate them if there are no CONFIG_HEADERS.
21501 # This happens for instance with `./config.status Makefile'.
21502 if test -n "$CONFIG_HEADERS"; then
21503 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21504 BEGIN {
21505 _ACEOF
21506
21507 # Transform confdefs.h into an awk script `defines.awk', embedded as
21508 # here-document in config.status, that substitutes the proper values into
21509 # config.h.in to produce config.h.
21510
21511 # Create a delimiter string that does not exist in confdefs.h, to ease
21512 # handling of long lines.
21513 ac_delim='%!_!# '
21514 for ac_last_try in false false :; do
21515   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21516   if test -z "$ac_tt"; then
21517     break
21518   elif $ac_last_try; then
21519     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21520   else
21521     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21522   fi
21523 done
21524
21525 # For the awk script, D is an array of macro values keyed by name,
21526 # likewise P contains macro parameters if any.  Preserve backslash
21527 # newline sequences.
21528
21529 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21530 sed -n '
21531 s/.\{148\}/&'"$ac_delim"'/g
21532 t rset
21533 :rset
21534 s/^[     ]*#[    ]*define[       ][      ]*/ /
21535 t def
21536 d
21537 :def
21538 s/\\$//
21539 t bsnl
21540 s/["\\]/\\&/g
21541 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21542 D["\1"]=" \3"/p
21543 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21544 d
21545 :bsnl
21546 s/["\\]/\\&/g
21547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21548 D["\1"]=" \3\\\\\\n"\\/p
21549 t cont
21550 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21551 t cont
21552 d
21553 :cont
21554 n
21555 s/.\{148\}/&'"$ac_delim"'/g
21556 t clear
21557 :clear
21558 s/\\$//
21559 t bsnlc
21560 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21561 d
21562 :bsnlc
21563 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21564 b cont
21565 ' <confdefs.h | sed '
21566 s/'"$ac_delim"'/"\\\
21567 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21568
21569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21570   for (key in D) D_is_set[key] = 1
21571   FS = "\a"
21572 }
21573 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21574   line = \$ 0
21575   split(line, arg, " ")
21576   if (arg[1] == "#") {
21577     defundef = arg[2]
21578     mac1 = arg[3]
21579   } else {
21580     defundef = substr(arg[1], 2)
21581     mac1 = arg[2]
21582   }
21583   split(mac1, mac2, "(") #)
21584   macro = mac2[1]
21585   prefix = substr(line, 1, index(line, defundef) - 1)
21586   if (D_is_set[macro]) {
21587     # Preserve the white space surrounding the "#".
21588     print prefix "define", macro P[macro] D[macro]
21589     next
21590   } else {
21591     # Replace #undef with comments.  This is necessary, for example,
21592     # in the case of _POSIX_SOURCE, which is predefined and required
21593     # on some systems where configure will not decide to define it.
21594     if (defundef == "undef") {
21595       print "/*", prefix defundef, macro, "*/"
21596       next
21597     }
21598   }
21599 }
21600 { print }
21601 _ACAWK
21602 _ACEOF
21603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21604   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21605 fi # test -n "$CONFIG_HEADERS"
21606
21607
21608 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21609 shift
21610 for ac_tag
21611 do
21612   case $ac_tag in
21613   :[FHLC]) ac_mode=$ac_tag; continue;;
21614   esac
21615   case $ac_mode$ac_tag in
21616   :[FHL]*:*);;
21617   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21618   :[FH]-) ac_tag=-:-;;
21619   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21620   esac
21621   ac_save_IFS=$IFS
21622   IFS=:
21623   set x $ac_tag
21624   IFS=$ac_save_IFS
21625   shift
21626   ac_file=$1
21627   shift
21628
21629   case $ac_mode in
21630   :L) ac_source=$1;;
21631   :[FH])
21632     ac_file_inputs=
21633     for ac_f
21634     do
21635       case $ac_f in
21636       -) ac_f="$ac_tmp/stdin";;
21637       *) # Look for the file first in the build tree, then in the source tree
21638          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21639          # because $ac_f cannot contain `:'.
21640          test -f "$ac_f" ||
21641            case $ac_f in
21642            [\\/$]*) false;;
21643            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21644            esac ||
21645            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21646       esac
21647       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21648       as_fn_append ac_file_inputs " '$ac_f'"
21649     done
21650
21651     # Let's still pretend it is `configure' which instantiates (i.e., don't
21652     # use $as_me), people would be surprised to read:
21653     #    /* config.h.  Generated by config.status.  */
21654     configure_input='Generated from '`
21655           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21656         `' by configure.'
21657     if test x"$ac_file" != x-; then
21658       configure_input="$ac_file.  $configure_input"
21659       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21660 $as_echo "$as_me: creating $ac_file" >&6;}
21661     fi
21662     # Neutralize special characters interpreted by sed in replacement strings.
21663     case $configure_input in #(
21664     *\&* | *\|* | *\\* )
21665        ac_sed_conf_input=`$as_echo "$configure_input" |
21666        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21667     *) ac_sed_conf_input=$configure_input;;
21668     esac
21669
21670     case $ac_tag in
21671     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21672       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21673     esac
21674     ;;
21675   esac
21676
21677   ac_dir=`$as_dirname -- "$ac_file" ||
21678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21679          X"$ac_file" : 'X\(//\)[^/]' \| \
21680          X"$ac_file" : 'X\(//\)$' \| \
21681          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21682 $as_echo X"$ac_file" |
21683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21684             s//\1/
21685             q
21686           }
21687           /^X\(\/\/\)[^/].*/{
21688             s//\1/
21689             q
21690           }
21691           /^X\(\/\/\)$/{
21692             s//\1/
21693             q
21694           }
21695           /^X\(\/\).*/{
21696             s//\1/
21697             q
21698           }
21699           s/.*/./; q'`
21700   as_dir="$ac_dir"; as_fn_mkdir_p
21701   ac_builddir=.
21702
21703 case "$ac_dir" in
21704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21705 *)
21706   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21707   # A ".." for each directory in $ac_dir_suffix.
21708   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21709   case $ac_top_builddir_sub in
21710   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21711   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21712   esac ;;
21713 esac
21714 ac_abs_top_builddir=$ac_pwd
21715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21716 # for backward compatibility:
21717 ac_top_builddir=$ac_top_build_prefix
21718
21719 case $srcdir in
21720   .)  # We are building in place.
21721     ac_srcdir=.
21722     ac_top_srcdir=$ac_top_builddir_sub
21723     ac_abs_top_srcdir=$ac_pwd ;;
21724   [\\/]* | ?:[\\/]* )  # Absolute name.
21725     ac_srcdir=$srcdir$ac_dir_suffix;
21726     ac_top_srcdir=$srcdir
21727     ac_abs_top_srcdir=$srcdir ;;
21728   *) # Relative name.
21729     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21730     ac_top_srcdir=$ac_top_build_prefix$srcdir
21731     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21732 esac
21733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21734
21735
21736   case $ac_mode in
21737   :F)
21738   #
21739   # CONFIG_FILE
21740   #
21741
21742   case $INSTALL in
21743   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21744   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21745   esac
21746   ac_MKDIR_P=$MKDIR_P
21747   case $MKDIR_P in
21748   [\\/$]* | ?:[\\/]* ) ;;
21749   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21750   esac
21751 _ACEOF
21752
21753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21754 # If the template does not know about datarootdir, expand it.
21755 # FIXME: This hack should be removed a few years after 2.60.
21756 ac_datarootdir_hack=; ac_datarootdir_seen=
21757 ac_sed_dataroot='
21758 /datarootdir/ {
21759   p
21760   q
21761 }
21762 /@datadir@/p
21763 /@docdir@/p
21764 /@infodir@/p
21765 /@localedir@/p
21766 /@mandir@/p'
21767 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21768 *datarootdir*) ac_datarootdir_seen=yes;;
21769 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21770   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21771 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21772 _ACEOF
21773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21774   ac_datarootdir_hack='
21775   s&@datadir@&$datadir&g
21776   s&@docdir@&$docdir&g
21777   s&@infodir@&$infodir&g
21778   s&@localedir@&$localedir&g
21779   s&@mandir@&$mandir&g
21780   s&\\\${datarootdir}&$datarootdir&g' ;;
21781 esac
21782 _ACEOF
21783
21784 # Neutralize VPATH when `$srcdir' = `.'.
21785 # Shell code in configure.ac might set extrasub.
21786 # FIXME: do we really want to maintain this feature?
21787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21788 ac_sed_extra="$ac_vpsub
21789 $extrasub
21790 _ACEOF
21791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21792 :t
21793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21794 s|@configure_input@|$ac_sed_conf_input|;t t
21795 s&@top_builddir@&$ac_top_builddir_sub&;t t
21796 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21797 s&@srcdir@&$ac_srcdir&;t t
21798 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21799 s&@top_srcdir@&$ac_top_srcdir&;t t
21800 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21801 s&@builddir@&$ac_builddir&;t t
21802 s&@abs_builddir@&$ac_abs_builddir&;t t
21803 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21804 s&@INSTALL@&$ac_INSTALL&;t t
21805 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21806 $ac_datarootdir_hack
21807 "
21808 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21809   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21810
21811 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21812   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21813   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21814       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21815   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21816 which seems to be undefined.  Please make sure it is defined" >&5
21817 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21818 which seems to be undefined.  Please make sure it is defined" >&2;}
21819
21820   rm -f "$ac_tmp/stdin"
21821   case $ac_file in
21822   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21823   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21824   esac \
21825   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21826  ;;
21827   :H)
21828   #
21829   # CONFIG_HEADER
21830   #
21831   if test x"$ac_file" != x-; then
21832     {
21833       $as_echo "/* $configure_input  */" \
21834       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21835     } >"$ac_tmp/config.h" \
21836       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21837     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21838       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21839 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21840     else
21841       rm -f "$ac_file"
21842       mv "$ac_tmp/config.h" "$ac_file" \
21843         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21844     fi
21845   else
21846     $as_echo "/* $configure_input  */" \
21847       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21848       || as_fn_error $? "could not create -" "$LINENO" 5
21849   fi
21850 # Compute "$ac_file"'s index in $config_headers.
21851 _am_arg="$ac_file"
21852 _am_stamp_count=1
21853 for _am_header in $config_headers :; do
21854   case $_am_header in
21855     $_am_arg | $_am_arg:* )
21856       break ;;
21857     * )
21858       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21859   esac
21860 done
21861 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21862 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21863          X"$_am_arg" : 'X\(//\)[^/]' \| \
21864          X"$_am_arg" : 'X\(//\)$' \| \
21865          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21866 $as_echo X"$_am_arg" |
21867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21868             s//\1/
21869             q
21870           }
21871           /^X\(\/\/\)[^/].*/{
21872             s//\1/
21873             q
21874           }
21875           /^X\(\/\/\)$/{
21876             s//\1/
21877             q
21878           }
21879           /^X\(\/\).*/{
21880             s//\1/
21881             q
21882           }
21883           s/.*/./; q'`/stamp-h$_am_stamp_count
21884  ;;
21885
21886   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21887 $as_echo "$as_me: executing $ac_file commands" >&6;}
21888  ;;
21889   esac
21890
21891
21892   case $ac_file$ac_mode in
21893     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21894   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21895   # are listed without --file.  Let's play safe and only enable the eval
21896   # if we detect the quoting.
21897   case $CONFIG_FILES in
21898   *\'*) eval set x "$CONFIG_FILES" ;;
21899   *)   set x $CONFIG_FILES ;;
21900   esac
21901   shift
21902   for mf
21903   do
21904     # Strip MF so we end up with the name of the file.
21905     mf=`echo "$mf" | sed -e 's/:.*$//'`
21906     # Check whether this is an Automake generated Makefile or not.
21907     # We used to match only the files named `Makefile.in', but
21908     # some people rename them; so instead we look at the file content.
21909     # Grep'ing the first line is not enough: some people post-process
21910     # each Makefile.in and add a new line on top of each file to say so.
21911     # Grep'ing the whole file is not good either: AIX grep has a line
21912     # limit of 2048, but all sed's we know have understand at least 4000.
21913     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21914       dirpart=`$as_dirname -- "$mf" ||
21915 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21916          X"$mf" : 'X\(//\)[^/]' \| \
21917          X"$mf" : 'X\(//\)$' \| \
21918          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21919 $as_echo X"$mf" |
21920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21921             s//\1/
21922             q
21923           }
21924           /^X\(\/\/\)[^/].*/{
21925             s//\1/
21926             q
21927           }
21928           /^X\(\/\/\)$/{
21929             s//\1/
21930             q
21931           }
21932           /^X\(\/\).*/{
21933             s//\1/
21934             q
21935           }
21936           s/.*/./; q'`
21937     else
21938       continue
21939     fi
21940     # Extract the definition of DEPDIR, am__include, and am__quote
21941     # from the Makefile without running `make'.
21942     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21943     test -z "$DEPDIR" && continue
21944     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21945     test -z "am__include" && continue
21946     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21947     # When using ansi2knr, U may be empty or an underscore; expand it
21948     U=`sed -n 's/^U = //p' < "$mf"`
21949     # Find all dependency output files, they are included files with
21950     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21951     # simplest approach to changing $(DEPDIR) to its actual value in the
21952     # expansion.
21953     for file in `sed -n "
21954       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21955          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21956       # Make sure the directory exists.
21957       test -f "$dirpart/$file" && continue
21958       fdir=`$as_dirname -- "$file" ||
21959 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21960          X"$file" : 'X\(//\)[^/]' \| \
21961          X"$file" : 'X\(//\)$' \| \
21962          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21963 $as_echo X"$file" |
21964     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21965             s//\1/
21966             q
21967           }
21968           /^X\(\/\/\)[^/].*/{
21969             s//\1/
21970             q
21971           }
21972           /^X\(\/\/\)$/{
21973             s//\1/
21974             q
21975           }
21976           /^X\(\/\).*/{
21977             s//\1/
21978             q
21979           }
21980           s/.*/./; q'`
21981       as_dir=$dirpart/$fdir; as_fn_mkdir_p
21982       # echo "creating $dirpart/$file"
21983       echo '# dummy' > "$dirpart/$file"
21984     done
21985   done
21986 }
21987  ;;
21988
21989   esac
21990 done # for ac_tag
21991
21992
21993 as_fn_exit 0
21994 _ACEOF
21995 ac_clean_files=$ac_clean_files_save
21996
21997 test $ac_write_fail = 0 ||
21998   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21999
22000
22001 # configure is writing to config.log, and then calls config.status.
22002 # config.status does its own redirection, appending to config.log.
22003 # Unfortunately, on DOS this fails, as config.log is still kept open
22004 # by configure, so config.status won't be able to write to it; its
22005 # output is simply discarded.  So we exec the FD to /dev/null,
22006 # effectively closing config.log, so it can be properly (re)opened and
22007 # appended to by config.status.  When coming back to configure, we
22008 # need to make the FD available again.
22009 if test "$no_create" != yes; then
22010   ac_cs_success=:
22011   ac_config_status_args=
22012   test "$silent" = yes &&
22013     ac_config_status_args="$ac_config_status_args --quiet"
22014   exec 5>/dev/null
22015   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22016   exec 5>>config.log
22017   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22018   # would make configure fail if this is the last instruction.
22019   $ac_cs_success || as_fn_exit 1
22020 fi
22021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22022   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22023 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22024 fi
22025
22026
22027 echo "Creating asoundlib.h..."
22028 cp "$srcdir"/include/asoundlib-head.h include/asoundlib.h
22029 test "$build_pcm" = "yes" && echo "#include <alsa/pcm.h>" >> include/asoundlib.h
22030 test "$build_rawmidi" = "yes" && echo "#include <alsa/rawmidi.h>" >> include/asoundlib.h
22031 test "$build_pcm" = "yes" && echo "#include <alsa/timer.h>" >> include/asoundlib.h
22032 test "$build_hwdep" = "yes" && echo "#include <alsa/hwdep.h>" >> include/asoundlib.h
22033 echo "#include <alsa/control.h>" >> include/asoundlib.h
22034 test "$build_mixer" = "yes" && echo "#include <alsa/mixer.h>" >> include/asoundlib.h
22035 test "$build_seq" = "yes" && echo "#include <alsa/seq_event.h>" >> include/asoundlib.h
22036 test "$build_seq" = "yes" && echo "#include <alsa/seq.h>" >> include/asoundlib.h
22037 test "$build_seq" = "yes" && echo "#include <alsa/seqmid.h>" >> include/asoundlib.h
22038 test "$build_seq" = "yes" && echo "#include <alsa/seq_midi_event.h>" >> include/asoundlib.h
22039 cat "$srcdir"/include/asoundlib-tail.h >> include/asoundlib.h
22040