Imported Upstream version 2.9.2
[platform/upstream/libsigc++.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsigc++ 2.9.2.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='libsigc++'
593 PACKAGE_TARNAME='libsigc++'
594 PACKAGE_VERSION='2.9.2'
595 PACKAGE_STRING='libsigc++ 2.9.2'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B'
597 PACKAGE_URL='http://libsigc.sourceforge.net/'
598
599 ac_unique_file="sigc++/sigc++.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 DISABLE_DEPRECATED_API_FALSE
641 DISABLE_DEPRECATED_API_TRUE
642 SIGC_WXXFLAGS
643 PKG_CONFIG_LIBDIR
644 PKG_CONFIG_PATH
645 PKG_CONFIG
646 DOCINSTALL_FLAGS
647 DOXYGEN_TAGFILES
648 ENABLE_DOCUMENTATION_FALSE
649 ENABLE_DOCUMENTATION_TRUE
650 XSLTPROC
651 DOXYGEN
652 DOT
653 PERL
654 M4
655 CXXCPP
656 CPP
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 EGREP
673 GREP
674 SED
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 ac_ct_CC
679 CFLAGS
680 CC
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 LIBTOOL
690 OBJDUMP
691 DLLTOOL
692 AS
693 HAVE_CXX11
694 am__fastdepCXX_FALSE
695 am__fastdepCXX_TRUE
696 CXXDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CXX
707 CPPFLAGS
708 LDFLAGS
709 CXXFLAGS
710 CXX
711 MMDOCTOOLDIR
712 DIST_DOCTOOLS_FALSE
713 DIST_DOCTOOLS_TRUE
714 SIGCXX_MICRO_VERSION
715 SIGCXX_MINOR_VERSION
716 SIGCXX_MAJOR_VERSION
717 SIGCXX_API_VERSION
718 SIGCXX_VERSION
719 SIGCXX_MODULE_NAME
720 ACLOCAL_FLAGS
721 MAINT
722 MAINTAINER_MODE_FALSE
723 MAINTAINER_MODE_TRUE
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_maintainer_mode
794 enable_dependency_tracking
795 enable_static
796 enable_shared
797 with_pic
798 enable_fast_install
799 with_gnu_ld
800 with_sysroot
801 enable_libtool_lock
802 enable_documentation
803 with_libstdc_doc
804 enable_warnings
805 enable_deprecated_api
806 '
807       ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 ACLOCAL_FLAGS
811 CXX
812 CXXFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CCC
817 CC
818 CFLAGS
819 CPP
820 CXXCPP
821 M4
822 PERL
823 DOT
824 DOXYGEN
825 XSLTPROC
826 PKG_CONFIG
827 PKG_CONFIG_PATH
828 PKG_CONFIG_LIBDIR'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883   # If the previous option needs an argument, assign it.
884   if test -n "$ac_prev"; then
885     eval $ac_prev=\$ac_option
886     ac_prev=
887     continue
888   fi
889
890   case $ac_option in
891   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892   *=)   ac_optarg= ;;
893   *)    ac_optarg=yes ;;
894   esac
895
896   # Accept the important Cygnus configure options, so we can diagnose typos.
897
898   case $ac_dashdash$ac_option in
899   --)
900     ac_dashdash=yes ;;
901
902   -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906
907   -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911
912   -cache-file | --cache-file | --cache-fil | --cache-fi \
913   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918
919   --config-cache | -C)
920     cache_file=config.cache ;;
921
922   -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924   -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926
927   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928   | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933
934   -disable-* | --disable-*)
935     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936     # Reject names that are not valid shell variable names.
937     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938       as_fn_error $? "invalid feature name: $ac_useropt"
939     ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942       *"
943 "enable_$ac_useropt"
944 "*) ;;
945       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946          ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=no ;;
949
950   -docdir | --docdir | --docdi | --doc | --do)
951     ac_prev=docdir ;;
952   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953     docdir=$ac_optarg ;;
954
955   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956     ac_prev=dvidir ;;
957   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958     dvidir=$ac_optarg ;;
959
960   -enable-* | --enable-*)
961     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962     # Reject names that are not valid shell variable names.
963     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964       as_fn_error $? "invalid feature name: $ac_useropt"
965     ac_useropt_orig=$ac_useropt
966     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967     case $ac_user_opts in
968       *"
969 "enable_$ac_useropt"
970 "*) ;;
971       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972          ac_unrecognized_sep=', ';;
973     esac
974     eval enable_$ac_useropt=\$ac_optarg ;;
975
976   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978   | --exec | --exe | --ex)
979     ac_prev=exec_prefix ;;
980   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982   | --exec=* | --exe=* | --ex=*)
983     exec_prefix=$ac_optarg ;;
984
985   -gas | --gas | --ga | --g)
986     # Obsolete; use --with-gas.
987     with_gas=yes ;;
988
989   -help | --help | --hel | --he | -h)
990     ac_init_help=long ;;
991   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992     ac_init_help=recursive ;;
993   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994     ac_init_help=short ;;
995
996   -host | --host | --hos | --ho)
997     ac_prev=host_alias ;;
998   -host=* | --host=* | --hos=* | --ho=*)
999     host_alias=$ac_optarg ;;
1000
1001   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002     ac_prev=htmldir ;;
1003   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004   | --ht=*)
1005     htmldir=$ac_optarg ;;
1006
1007   -includedir | --includedir | --includedi | --included | --include \
1008   | --includ | --inclu | --incl | --inc)
1009     ac_prev=includedir ;;
1010   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011   | --includ=* | --inclu=* | --incl=* | --inc=*)
1012     includedir=$ac_optarg ;;
1013
1014   -infodir | --infodir | --infodi | --infod | --info | --inf)
1015     ac_prev=infodir ;;
1016   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017     infodir=$ac_optarg ;;
1018
1019   -libdir | --libdir | --libdi | --libd)
1020     ac_prev=libdir ;;
1021   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022     libdir=$ac_optarg ;;
1023
1024   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025   | --libexe | --libex | --libe)
1026     ac_prev=libexecdir ;;
1027   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028   | --libexe=* | --libex=* | --libe=*)
1029     libexecdir=$ac_optarg ;;
1030
1031   -localedir | --localedir | --localedi | --localed | --locale)
1032     ac_prev=localedir ;;
1033   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034     localedir=$ac_optarg ;;
1035
1036   -localstatedir | --localstatedir | --localstatedi | --localstated \
1037   | --localstate | --localstat | --localsta | --localst | --locals)
1038     ac_prev=localstatedir ;;
1039   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041     localstatedir=$ac_optarg ;;
1042
1043   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044     ac_prev=mandir ;;
1045   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046     mandir=$ac_optarg ;;
1047
1048   -nfp | --nfp | --nf)
1049     # Obsolete; use --without-fp.
1050     with_fp=no ;;
1051
1052   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053   | --no-cr | --no-c | -n)
1054     no_create=yes ;;
1055
1056   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058     no_recursion=yes ;;
1059
1060   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062   | --oldin | --oldi | --old | --ol | --o)
1063     ac_prev=oldincludedir ;;
1064   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067     oldincludedir=$ac_optarg ;;
1068
1069   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070     ac_prev=prefix ;;
1071   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072     prefix=$ac_optarg ;;
1073
1074   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075   | --program-pre | --program-pr | --program-p)
1076     ac_prev=program_prefix ;;
1077   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079     program_prefix=$ac_optarg ;;
1080
1081   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082   | --program-suf | --program-su | --program-s)
1083     ac_prev=program_suffix ;;
1084   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086     program_suffix=$ac_optarg ;;
1087
1088   -program-transform-name | --program-transform-name \
1089   | --program-transform-nam | --program-transform-na \
1090   | --program-transform-n | --program-transform- \
1091   | --program-transform | --program-transfor \
1092   | --program-transfo | --program-transf \
1093   | --program-trans | --program-tran \
1094   | --progr-tra | --program-tr | --program-t)
1095     ac_prev=program_transform_name ;;
1096   -program-transform-name=* | --program-transform-name=* \
1097   | --program-transform-nam=* | --program-transform-na=* \
1098   | --program-transform-n=* | --program-transform-=* \
1099   | --program-transform=* | --program-transfor=* \
1100   | --program-transfo=* | --program-transf=* \
1101   | --program-trans=* | --program-tran=* \
1102   | --progr-tra=* | --program-tr=* | --program-t=*)
1103     program_transform_name=$ac_optarg ;;
1104
1105   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106     ac_prev=pdfdir ;;
1107   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108     pdfdir=$ac_optarg ;;
1109
1110   -psdir | --psdir | --psdi | --psd | --ps)
1111     ac_prev=psdir ;;
1112   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113     psdir=$ac_optarg ;;
1114
1115   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116   | -silent | --silent | --silen | --sile | --sil)
1117     silent=yes ;;
1118
1119   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120     ac_prev=sbindir ;;
1121   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122   | --sbi=* | --sb=*)
1123     sbindir=$ac_optarg ;;
1124
1125   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127   | --sharedst | --shareds | --shared | --share | --shar \
1128   | --sha | --sh)
1129     ac_prev=sharedstatedir ;;
1130   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133   | --sha=* | --sh=*)
1134     sharedstatedir=$ac_optarg ;;
1135
1136   -site | --site | --sit)
1137     ac_prev=site ;;
1138   -site=* | --site=* | --sit=*)
1139     site=$ac_optarg ;;
1140
1141   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142     ac_prev=srcdir ;;
1143   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144     srcdir=$ac_optarg ;;
1145
1146   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147   | --syscon | --sysco | --sysc | --sys | --sy)
1148     ac_prev=sysconfdir ;;
1149   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151     sysconfdir=$ac_optarg ;;
1152
1153   -target | --target | --targe | --targ | --tar | --ta | --t)
1154     ac_prev=target_alias ;;
1155   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156     target_alias=$ac_optarg ;;
1157
1158   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159     verbose=yes ;;
1160
1161   -version | --version | --versio | --versi | --vers | -V)
1162     ac_init_version=: ;;
1163
1164   -with-* | --with-*)
1165     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168       as_fn_error $? "invalid package name: $ac_useropt"
1169     ac_useropt_orig=$ac_useropt
1170     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171     case $ac_user_opts in
1172       *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176          ac_unrecognized_sep=', ';;
1177     esac
1178     eval with_$ac_useropt=\$ac_optarg ;;
1179
1180   -without-* | --without-*)
1181     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184       as_fn_error $? "invalid package name: $ac_useropt"
1185     ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188       *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192          ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=no ;;
1195
1196   --x)
1197     # Obsolete; use --with-x.
1198     with_x=yes ;;
1199
1200   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201   | --x-incl | --x-inc | --x-in | --x-i)
1202     ac_prev=x_includes ;;
1203   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205     x_includes=$ac_optarg ;;
1206
1207   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209     ac_prev=x_libraries ;;
1210   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212     x_libraries=$ac_optarg ;;
1213
1214   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1216     ;;
1217
1218   *=*)
1219     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220     # Reject names that are not valid shell variable names.
1221     case $ac_envvar in #(
1222       '' | [0-9]* | *[!_$as_cr_alnum]* )
1223       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224     esac
1225     eval $ac_envvar=\$ac_optarg
1226     export $ac_envvar ;;
1227
1228   *)
1229     # FIXME: should be removed in autoconf 3.0.
1230     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234     ;;
1235
1236   esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241   as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245   case $enable_option_checking in
1246     no) ;;
1247     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249   esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254                 datadir sysconfdir sharedstatedir localstatedir includedir \
1255                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256                 libdir localedir mandir
1257 do
1258   eval ac_val=\$$ac_var
1259   # Remove trailing slashes.
1260   case $ac_val in
1261     */ )
1262       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263       eval $ac_var=\$ac_val;;
1264   esac
1265   # Be sure to have absolute directory names.
1266   case $ac_val in
1267     [\\/$]* | ?:[\\/]* )  continue;;
1268     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269   esac
1270   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282   if test "x$build_alias" = x; then
1283     cross_compiling=maybe
1284   elif test "x$build_alias" != "x$host_alias"; then
1285     cross_compiling=yes
1286   fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298   as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300   as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305   ac_srcdir_defaulted=yes
1306   # Try the directory containing this script, then the parent directory.
1307   ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309          X"$as_myself" : 'X\(//\)[^/]' \| \
1310          X"$as_myself" : 'X\(//\)$' \| \
1311          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\/\)[^/].*/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\/\)$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\).*/{
1326             s//\1/
1327             q
1328           }
1329           s/.*/./; q'`
1330   srcdir=$ac_confdir
1331   if test ! -r "$srcdir/$ac_unique_file"; then
1332     srcdir=..
1333   fi
1334 else
1335   ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344         pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347   srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357   eval ac_env_${ac_var}_value=\$${ac_var}
1358   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366   # Omit some internal or obsolete options to make the list less imposing.
1367   # This message is too long to be a string in the A/UX 3.1 sh.
1368   cat <<_ACEOF
1369 \`configure' configures libsigc++ 2.9.2 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE.  See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379   -h, --help              display this help and exit
1380       --help=short        display options specific to this package
1381       --help=recursive    display the short help of all the included packages
1382   -V, --version           display version information and exit
1383   -q, --quiet, --silent   do not print \`checking ...' messages
1384       --cache-file=FILE   cache test results in FILE [disabled]
1385   -C, --config-cache      alias for \`--cache-file=config.cache'
1386   -n, --no-create         do not create output files
1387       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390   --prefix=PREFIX         install architecture-independent files in PREFIX
1391                           [$ac_default_prefix]
1392   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1393                           [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403   --bindir=DIR            user executables [EPREFIX/bin]
1404   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1405   --libexecdir=DIR        program executables [EPREFIX/libexec]
1406   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1407   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1408   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1409   --libdir=DIR            object code libraries [EPREFIX/lib]
1410   --includedir=DIR        C header files [PREFIX/include]
1411   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1412   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1413   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1414   --infodir=DIR           info documentation [DATAROOTDIR/info]
1415   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1416   --mandir=DIR            man documentation [DATAROOTDIR/man]
1417   --docdir=DIR            documentation root [DATAROOTDIR/doc/libsigc++]
1418   --htmldir=DIR           html documentation [DOCDIR]
1419   --dvidir=DIR            dvi documentation [DOCDIR]
1420   --pdfdir=DIR            pdf documentation [DOCDIR]
1421   --psdir=DIR             ps documentation [DOCDIR]
1422 _ACEOF
1423
1424   cat <<\_ACEOF
1425
1426 Program names:
1427   --program-prefix=PREFIX            prepend PREFIX to installed program names
1428   --program-suffix=SUFFIX            append SUFFIX to installed program names
1429   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1430
1431 System types:
1432   --build=BUILD     configure for building on BUILD [guessed]
1433   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438   case $ac_init_help in
1439      short | recursive ) echo "Configuration of libsigc++ 2.9.2:";;
1440    esac
1441   cat <<\_ACEOF
1442
1443 Optional Features:
1444   --disable-option-checking  ignore unrecognized --enable/--with options
1445   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447   --enable-silent-rules   less verbose build output (undo: "make V=1")
1448   --disable-silent-rules  verbose build output (undo: "make V=0")
1449   --enable-maintainer-mode
1450                           enable make rules and dependencies not useful (and
1451                           sometimes confusing) to the casual installer
1452   --enable-dependency-tracking
1453                           do not reject slow dependency extractors
1454   --disable-dependency-tracking
1455                           speeds up one-time build
1456   --enable-static[=PKGS]  build static libraries [default=no]
1457   --enable-shared[=PKGS]  build shared libraries [default=yes]
1458   --enable-fast-install[=PKGS]
1459                           optimize for fast installation [default=yes]
1460   --disable-libtool-lock  avoid locking (might break parallel builds)
1461   --disable-documentation do not build or install the documentation
1462   --enable-warnings[=min|max|fatal|no]
1463                           set compiler pedantry level [default=min]
1464   --disable-deprecated-api
1465                           omit deprecated API from the library
1466
1467 Optional Packages:
1468   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1469   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1470   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1471                           both]
1472   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1473   --with-sysroot=DIR Search for dependent libraries within DIR
1474                         (or the compiler's sysroot if not specified).
1475   --with-libstdc-doc=[TAGFILE@]HTMLREFDIR
1476                           Link to external libstdc documentation [auto]
1477
1478 Some influential environment variables:
1479   ACLOCAL_FLAGS
1480               aclocal flags, e.g. -I <macro dir>
1481   CXX         C++ compiler command
1482   CXXFLAGS    C++ compiler flags
1483   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1484               nonstandard directory <lib dir>
1485   LIBS        libraries to pass to the linker, e.g. -l<library>
1486   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487               you have headers in a nonstandard directory <include dir>
1488   CC          C compiler command
1489   CFLAGS      C compiler flags
1490   CPP         C preprocessor
1491   CXXCPP      C++ preprocessor
1492   M4          M4 macro processor command
1493   PERL        path to Perl interpreter
1494   DOT         path to dot utility
1495   DOXYGEN     path to Doxygen utility
1496   XSLTPROC    path to xsltproc utility
1497   PKG_CONFIG  path to pkg-config utility
1498   PKG_CONFIG_PATH
1499               directories to add to pkg-config's search path
1500   PKG_CONFIG_LIBDIR
1501               path overriding pkg-config's built-in search path
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B>.
1507 libsigc++ home page: <http://libsigc.sourceforge.net/>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513   # If there are subdirs, report their specific --help.
1514   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515     test -d "$ac_dir" ||
1516       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517       continue
1518     ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524   # A ".." for each directory in $ac_dir_suffix.
1525   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526   case $ac_top_builddir_sub in
1527   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529   esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537   .)  # We are building in place.
1538     ac_srcdir=.
1539     ac_top_srcdir=$ac_top_builddir_sub
1540     ac_abs_top_srcdir=$ac_pwd ;;
1541   [\\/]* | ?:[\\/]* )  # Absolute name.
1542     ac_srcdir=$srcdir$ac_dir_suffix;
1543     ac_top_srcdir=$srcdir
1544     ac_abs_top_srcdir=$srcdir ;;
1545   *) # Relative name.
1546     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547     ac_top_srcdir=$ac_top_build_prefix$srcdir
1548     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552     cd "$ac_dir" || { ac_status=$?; continue; }
1553     # Check for guested configure.
1554     if test -f "$ac_srcdir/configure.gnu"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557     elif test -f "$ac_srcdir/configure"; then
1558       echo &&
1559       $SHELL "$ac_srcdir/configure" --help=recursive
1560     else
1561       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562     fi || ac_status=$?
1563     cd "$ac_pwd" || { ac_status=$?; break; }
1564   done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569   cat <<\_ACEOF
1570 libsigc++ configure 2.9.2
1571 generated by GNU Autoconf 2.69
1572
1573 Copyright (C) 2012 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577   exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_cxx_try_compile LINENO
1585 # ----------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_cxx_try_compile ()
1588 {
1589   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590   rm -f conftest.$ac_objext
1591   if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594   *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598   (eval "$ac_compile") 2>conftest.err
1599   ac_status=$?
1600   if test -s conftest.err; then
1601     grep -v '^ *+' conftest.err >conftest.er1
1602     cat conftest.er1 >&5
1603     mv -f conftest.er1 conftest.err
1604   fi
1605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606   test $ac_status = 0; } && {
1607          test -z "$ac_cxx_werror_flag" ||
1608          test ! -s conftest.err
1609        } && test -s conftest.$ac_objext; then :
1610   ac_retval=0
1611 else
1612   $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615         ac_retval=1
1616 fi
1617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618   as_fn_set_status $ac_retval
1619
1620 } # ac_fn_cxx_try_compile
1621
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1626 {
1627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628   rm -f conftest.$ac_objext
1629   if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632   *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636   (eval "$ac_compile") 2>conftest.err
1637   ac_status=$?
1638   if test -s conftest.err; then
1639     grep -v '^ *+' conftest.err >conftest.er1
1640     cat conftest.er1 >&5
1641     mv -f conftest.er1 conftest.err
1642   fi
1643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644   test $ac_status = 0; } && {
1645          test -z "$ac_c_werror_flag" ||
1646          test ! -s conftest.err
1647        } && test -s conftest.$ac_objext; then :
1648   ac_retval=0
1649 else
1650   $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653         ac_retval=1
1654 fi
1655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656   as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_compile
1659
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1664 {
1665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666   rm -f conftest.$ac_objext conftest$ac_exeext
1667   if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670   *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674   (eval "$ac_link") 2>conftest.err
1675   ac_status=$?
1676   if test -s conftest.err; then
1677     grep -v '^ *+' conftest.err >conftest.er1
1678     cat conftest.er1 >&5
1679     mv -f conftest.er1 conftest.err
1680   fi
1681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682   test $ac_status = 0; } && {
1683          test -z "$ac_c_werror_flag" ||
1684          test ! -s conftest.err
1685        } && test -s conftest$ac_exeext && {
1686          test "$cross_compiling" = yes ||
1687          test -x conftest$ac_exeext
1688        }; then :
1689   ac_retval=0
1690 else
1691   $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694         ac_retval=1
1695 fi
1696   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698   # interfere with the next link command; also delete a directory that is
1699   # left behind by Apple's compiler.  We do this before executing the actions.
1700   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702   as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_link
1705
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1711 {
1712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716   $as_echo_n "(cached) " >&6
1717 else
1718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h.  */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724   eval "$3=yes"
1725 else
1726   eval "$3=no"
1727 fi
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 fi
1730 eval ac_res=\$$3
1731                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734
1735 } # ac_fn_c_check_header_compile
1736
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_cpp ()
1741 {
1742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743   if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 case "(($ac_try" in
1745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746   *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751   ac_status=$?
1752   if test -s conftest.err; then
1753     grep -v '^ *+' conftest.err >conftest.er1
1754     cat conftest.er1 >&5
1755     mv -f conftest.er1 conftest.err
1756   fi
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; } > conftest.i && {
1759          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760          test ! -s conftest.err
1761        }; then :
1762   ac_retval=0
1763 else
1764   $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767     ac_retval=1
1768 fi
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770   as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_cpp
1773
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1778 ac_fn_c_try_run ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784   *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788   (eval "$ac_link") 2>&5
1789   ac_status=$?
1790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792   { { case "(($ac_try" in
1793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794   *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798   (eval "$ac_try") 2>&5
1799   ac_status=$?
1800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801   test $ac_status = 0; }; }; then :
1802   ac_retval=0
1803 else
1804   $as_echo "$as_me: program exited with status $ac_status" >&5
1805        $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808        ac_retval=$ac_status
1809 fi
1810   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812   as_fn_set_status $ac_retval
1813
1814 } # ac_fn_c_try_run
1815
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825   $as_echo_n "(cached) " >&6
1826 else
1827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1831 #define $2 innocuous_$2
1832
1833 /* System header to define __stub macros and hopefully few prototypes,
1834     which can conflict with char $2 (); below.
1835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836     <limits.h> exists even on freestanding compilers.  */
1837
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1843
1844 #undef $2
1845
1846 /* Override any GCC internal prototype to avoid an error.
1847    Use char because int might match the return type of a GCC
1848    builtin and then its argument prototype would still apply.  */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854     to always fail with ENOSYS.  Some functions are actually named
1855     something starting with __ and the normal name is an alias.  */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1859
1860 int
1861 main ()
1862 {
1863 return $2 ();
1864   ;
1865   return 0;
1866 }
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869   eval "$3=yes"
1870 else
1871   eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext \
1874     conftest$ac_exeext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_func
1882
1883 # ac_fn_cxx_try_cpp LINENO
1884 # ------------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_cxx_try_cpp ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   if { { ac_try="$ac_cpp conftest.$ac_ext"
1890 case "(($ac_try" in
1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892   *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897   ac_status=$?
1898   if test -s conftest.err; then
1899     grep -v '^ *+' conftest.err >conftest.er1
1900     cat conftest.er1 >&5
1901     mv -f conftest.er1 conftest.err
1902   fi
1903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904   test $ac_status = 0; } > conftest.i && {
1905          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1906          test ! -s conftest.err
1907        }; then :
1908   ac_retval=0
1909 else
1910   $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913     ac_retval=1
1914 fi
1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916   as_fn_set_status $ac_retval
1917
1918 } # ac_fn_cxx_try_cpp
1919
1920 # ac_fn_cxx_try_link LINENO
1921 # -------------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_link ()
1924 {
1925   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926   rm -f conftest.$ac_objext conftest$ac_exeext
1927   if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930   *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934   (eval "$ac_link") 2>conftest.err
1935   ac_status=$?
1936   if test -s conftest.err; then
1937     grep -v '^ *+' conftest.err >conftest.er1
1938     cat conftest.er1 >&5
1939     mv -f conftest.er1 conftest.err
1940   fi
1941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942   test $ac_status = 0; } && {
1943          test -z "$ac_cxx_werror_flag" ||
1944          test ! -s conftest.err
1945        } && test -s conftest$ac_exeext && {
1946          test "$cross_compiling" = yes ||
1947          test -x conftest$ac_exeext
1948        }; then :
1949   ac_retval=0
1950 else
1951   $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954         ac_retval=1
1955 fi
1956   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958   # interfere with the next link command; also delete a directory that is
1959   # left behind by Apple's compiler.  We do this before executing the actions.
1960   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_cxx_try_link
1965 cat >config.log <<_ACEOF
1966 This file contains any messages produced by compilers while
1967 running configure, to aid debugging if configure makes a mistake.
1968
1969 It was created by libsigc++ $as_me 2.9.2, which was
1970 generated by GNU Autoconf 2.69.  Invocation command line was
1971
1972   $ $0 $@
1973
1974 _ACEOF
1975 exec 5>>config.log
1976 {
1977 cat <<_ASUNAME
1978 ## --------- ##
1979 ## Platform. ##
1980 ## --------- ##
1981
1982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987
1988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1989 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1990
1991 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1992 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1994 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1995 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1996 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1997 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1998
1999 _ASUNAME
2000
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006     $as_echo "PATH: $as_dir"
2007   done
2008 IFS=$as_save_IFS
2009
2010 } >&5
2011
2012 cat >&5 <<_ACEOF
2013
2014
2015 ## ----------- ##
2016 ## Core tests. ##
2017 ## ----------- ##
2018
2019 _ACEOF
2020
2021
2022 # Keep a trace of the command line.
2023 # Strip out --no-create and --no-recursion so they do not pile up.
2024 # Strip out --silent because we don't want to record it for future runs.
2025 # Also quote any args containing shell meta-characters.
2026 # Make two passes to allow for proper duplicate-argument suppression.
2027 ac_configure_args=
2028 ac_configure_args0=
2029 ac_configure_args1=
2030 ac_must_keep_next=false
2031 for ac_pass in 1 2
2032 do
2033   for ac_arg
2034   do
2035     case $ac_arg in
2036     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038     | -silent | --silent | --silen | --sile | --sil)
2039       continue ;;
2040     *\'*)
2041       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042     esac
2043     case $ac_pass in
2044     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045     2)
2046       as_fn_append ac_configure_args1 " '$ac_arg'"
2047       if test $ac_must_keep_next = true; then
2048         ac_must_keep_next=false # Got value, back to normal.
2049       else
2050         case $ac_arg in
2051           *=* | --config-cache | -C | -disable-* | --disable-* \
2052           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054           | -with-* | --with-* | -without-* | --without-* | --x)
2055             case "$ac_configure_args0 " in
2056               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057             esac
2058             ;;
2059           -* ) ac_must_keep_next=true ;;
2060         esac
2061       fi
2062       as_fn_append ac_configure_args " '$ac_arg'"
2063       ;;
2064     esac
2065   done
2066 done
2067 { ac_configure_args0=; unset ac_configure_args0;}
2068 { ac_configure_args1=; unset ac_configure_args1;}
2069
2070 # When interrupted or exit'd, cleanup temporary files, and complete
2071 # config.log.  We remove comments because anyway the quotes in there
2072 # would cause problems or look ugly.
2073 # WARNING: Use '\'' to represent an apostrophe within the trap.
2074 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075 trap 'exit_status=$?
2076   # Save into config.log some information that might help in debugging.
2077   {
2078     echo
2079
2080     $as_echo "## ---------------- ##
2081 ## Cache variables. ##
2082 ## ---------------- ##"
2083     echo
2084     # The following way of writing the cache mishandles newlines in values,
2085 (
2086   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087     eval ac_val=\$$ac_var
2088     case $ac_val in #(
2089     *${as_nl}*)
2090       case $ac_var in #(
2091       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093       esac
2094       case $ac_var in #(
2095       _ | IFS | as_nl) ;; #(
2096       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097       *) { eval $ac_var=; unset $ac_var;} ;;
2098       esac ;;
2099     esac
2100   done
2101   (set) 2>&1 |
2102     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103     *${as_nl}ac_space=\ *)
2104       sed -n \
2105         "s/'\''/'\''\\\\'\'''\''/g;
2106           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107       ;; #(
2108     *)
2109       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2110       ;;
2111     esac |
2112     sort
2113 )
2114     echo
2115
2116     $as_echo "## ----------------- ##
2117 ## Output variables. ##
2118 ## ----------------- ##"
2119     echo
2120     for ac_var in $ac_subst_vars
2121     do
2122       eval ac_val=\$$ac_var
2123       case $ac_val in
2124       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125       esac
2126       $as_echo "$ac_var='\''$ac_val'\''"
2127     done | sort
2128     echo
2129
2130     if test -n "$ac_subst_files"; then
2131       $as_echo "## ------------------- ##
2132 ## File substitutions. ##
2133 ## ------------------- ##"
2134       echo
2135       for ac_var in $ac_subst_files
2136       do
2137         eval ac_val=\$$ac_var
2138         case $ac_val in
2139         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140         esac
2141         $as_echo "$ac_var='\''$ac_val'\''"
2142       done | sort
2143       echo
2144     fi
2145
2146     if test -s confdefs.h; then
2147       $as_echo "## ----------- ##
2148 ## confdefs.h. ##
2149 ## ----------- ##"
2150       echo
2151       cat confdefs.h
2152       echo
2153     fi
2154     test "$ac_signal" != 0 &&
2155       $as_echo "$as_me: caught signal $ac_signal"
2156     $as_echo "$as_me: exit $exit_status"
2157   } >&5
2158   rm -f core *.core core.conftest.* &&
2159     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160     exit $exit_status
2161 ' 0
2162 for ac_signal in 1 2 13 15; do
2163   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2164 done
2165 ac_signal=0
2166
2167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2168 rm -f -r conftest* confdefs.h
2169
2170 $as_echo "/* confdefs.h */" > confdefs.h
2171
2172 # Predefined preprocessor variables.
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_NAME "$PACKAGE_NAME"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_STRING "$PACKAGE_STRING"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_URL "$PACKAGE_URL"
2196 _ACEOF
2197
2198
2199 # Let the site file select an alternate cache file if it wants to.
2200 # Prefer an explicitly selected file to automatically selected ones.
2201 ac_site_file1=NONE
2202 ac_site_file2=NONE
2203 if test -n "$CONFIG_SITE"; then
2204   # We do not want a PATH search for config.site.
2205   case $CONFIG_SITE in #((
2206     -*)  ac_site_file1=./$CONFIG_SITE;;
2207     */*) ac_site_file1=$CONFIG_SITE;;
2208     *)   ac_site_file1=./$CONFIG_SITE;;
2209   esac
2210 elif test "x$prefix" != xNONE; then
2211   ac_site_file1=$prefix/share/config.site
2212   ac_site_file2=$prefix/etc/config.site
2213 else
2214   ac_site_file1=$ac_default_prefix/share/config.site
2215   ac_site_file2=$ac_default_prefix/etc/config.site
2216 fi
2217 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2218 do
2219   test "x$ac_site_file" = xNONE && continue
2220   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2221     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223     sed 's/^/| /' "$ac_site_file" >&5
2224     . "$ac_site_file" \
2225       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 as_fn_error $? "failed to load site script $ac_site_file
2228 See \`config.log' for more details" "$LINENO" 5; }
2229   fi
2230 done
2231
2232 if test -r "$cache_file"; then
2233   # Some versions of bash will fail to source /dev/null (special files
2234   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2235   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2236     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237 $as_echo "$as_me: loading cache $cache_file" >&6;}
2238     case $cache_file in
2239       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240       *)                      . "./$cache_file";;
2241     esac
2242   fi
2243 else
2244   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245 $as_echo "$as_me: creating cache $cache_file" >&6;}
2246   >$cache_file
2247 fi
2248
2249 # Check that the precious variables saved in the cache have kept the same
2250 # value.
2251 ac_cache_corrupted=false
2252 for ac_var in $ac_precious_vars; do
2253   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2254   eval ac_new_set=\$ac_env_${ac_var}_set
2255   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2256   eval ac_new_val=\$ac_env_${ac_var}_value
2257   case $ac_old_set,$ac_new_set in
2258     set,)
2259       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2261       ac_cache_corrupted=: ;;
2262     ,set)
2263       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2265       ac_cache_corrupted=: ;;
2266     ,);;
2267     *)
2268       if test "x$ac_old_val" != "x$ac_new_val"; then
2269         # differences in whitespace do not lead to failure.
2270         ac_old_val_w=`echo x $ac_old_val`
2271         ac_new_val_w=`echo x $ac_new_val`
2272         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275           ac_cache_corrupted=:
2276         else
2277           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279           eval $ac_var=\$ac_old_val
2280         fi
2281         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2282 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2283         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2284 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2285       fi;;
2286   esac
2287   # Pass precious variables to config.status.
2288   if test "$ac_new_set" = set; then
2289     case $ac_new_val in
2290     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2291     *) ac_arg=$ac_var=$ac_new_val ;;
2292     esac
2293     case " $ac_configure_args " in
2294       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2295       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2296     esac
2297   fi
2298 done
2299 if $ac_cache_corrupted; then
2300   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2304   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2305 fi
2306 ## -------------------- ##
2307 ## Main body of script. ##
2308 ## -------------------- ##
2309
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
2316
2317
2318
2319
2320 ac_aux_dir=
2321 for ac_dir in build "$srcdir"/build; do
2322   if test -f "$ac_dir/install-sh"; then
2323     ac_aux_dir=$ac_dir
2324     ac_install_sh="$ac_aux_dir/install-sh -c"
2325     break
2326   elif test -f "$ac_dir/install.sh"; then
2327     ac_aux_dir=$ac_dir
2328     ac_install_sh="$ac_aux_dir/install.sh -c"
2329     break
2330   elif test -f "$ac_dir/shtool"; then
2331     ac_aux_dir=$ac_dir
2332     ac_install_sh="$ac_aux_dir/shtool install -c"
2333     break
2334   fi
2335 done
2336 if test -z "$ac_aux_dir"; then
2337   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2338 fi
2339
2340 # These three variables are undocumented and unsupported,
2341 # and are intended to be withdrawn in a future Autoconf release.
2342 # They can cause serious problems if a builder's source tree is in a directory
2343 # whose full name contains unusual characters.
2344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2346 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2347
2348
2349
2350 ac_config_headers="$ac_config_headers config.h sigc++config.h"
2351
2352
2353 am__api_version='1.15'
2354
2355 # Find a good install program.  We prefer a C program (faster),
2356 # so one script is as good as another.  But avoid the broken or
2357 # incompatible versions:
2358 # SysV /etc/install, /usr/sbin/install
2359 # SunOS /usr/etc/install
2360 # IRIX /sbin/install
2361 # AIX /bin/install
2362 # AmigaOS /C/install, which installs bootblocks on floppy discs
2363 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2364 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2365 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2366 # OS/2's system install, which has a completely different semantic
2367 # ./install, which can be erroneously created by make from ./install.sh.
2368 # Reject install programs that cannot install multiple files.
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2370 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2371 if test -z "$INSTALL"; then
2372 if ${ac_cv_path_install+:} false; then :
2373   $as_echo_n "(cached) " >&6
2374 else
2375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380     # Account for people who put trailing slashes in PATH elements.
2381 case $as_dir/ in #((
2382   ./ | .// | /[cC]/* | \
2383   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2384   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2385   /usr/ucb/* ) ;;
2386   *)
2387     # OSF1 and SCO ODT 3.0 have their own names for install.
2388     # Don't use installbsd from OSF since it installs stuff as root
2389     # by default.
2390     for ac_prog in ginstall scoinst install; do
2391       for ac_exec_ext in '' $ac_executable_extensions; do
2392         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2393           if test $ac_prog = install &&
2394             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395             # AIX install.  It has an incompatible calling convention.
2396             :
2397           elif test $ac_prog = install &&
2398             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2399             # program-specific install script used by HP pwplus--don't use.
2400             :
2401           else
2402             rm -rf conftest.one conftest.two conftest.dir
2403             echo one > conftest.one
2404             echo two > conftest.two
2405             mkdir conftest.dir
2406             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2407               test -s conftest.one && test -s conftest.two &&
2408               test -s conftest.dir/conftest.one &&
2409               test -s conftest.dir/conftest.two
2410             then
2411               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2412               break 3
2413             fi
2414           fi
2415         fi
2416       done
2417     done
2418     ;;
2419 esac
2420
2421   done
2422 IFS=$as_save_IFS
2423
2424 rm -rf conftest.one conftest.two conftest.dir
2425
2426 fi
2427   if test "${ac_cv_path_install+set}" = set; then
2428     INSTALL=$ac_cv_path_install
2429   else
2430     # As a last resort, use the slow shell script.  Don't cache a
2431     # value for INSTALL within a source directory, because that will
2432     # break other packages using the cache if that directory is
2433     # removed, or if the value is a relative name.
2434     INSTALL=$ac_install_sh
2435   fi
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2438 $as_echo "$INSTALL" >&6; }
2439
2440 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2441 # It thinks the first close brace ends the variable substitution.
2442 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2443
2444 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2445
2446 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2447
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2449 $as_echo_n "checking whether build environment is sane... " >&6; }
2450 # Reject unsafe characters in $srcdir or the absolute working directory
2451 # name.  Accept space and tab only in the latter.
2452 am_lf='
2453 '
2454 case `pwd` in
2455   *[\\\"\#\$\&\'\`$am_lf]*)
2456     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2457 esac
2458 case $srcdir in
2459   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2460     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2461 esac
2462
2463 # Do 'set' in a subshell so we don't clobber the current shell's
2464 # arguments.  Must try -L first in case configure is actually a
2465 # symlink; some systems play weird games with the mod time of symlinks
2466 # (eg FreeBSD returns the mod time of the symlink's containing
2467 # directory).
2468 if (
2469    am_has_slept=no
2470    for am_try in 1 2; do
2471      echo "timestamp, slept: $am_has_slept" > conftest.file
2472      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2473      if test "$*" = "X"; then
2474         # -L didn't work.
2475         set X `ls -t "$srcdir/configure" conftest.file`
2476      fi
2477      if test "$*" != "X $srcdir/configure conftest.file" \
2478         && test "$*" != "X conftest.file $srcdir/configure"; then
2479
2480         # If neither matched, then we have a broken ls.  This can happen
2481         # if, for instance, CONFIG_SHELL is bash and it inherits a
2482         # broken ls alias from the environment.  This has actually
2483         # happened.  Such a system could not be considered "sane".
2484         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2485   alias in your environment" "$LINENO" 5
2486      fi
2487      if test "$2" = conftest.file || test $am_try -eq 2; then
2488        break
2489      fi
2490      # Just in case.
2491      sleep 1
2492      am_has_slept=yes
2493    done
2494    test "$2" = conftest.file
2495    )
2496 then
2497    # Ok.
2498    :
2499 else
2500    as_fn_error $? "newly created file is older than distributed files!
2501 Check your system clock" "$LINENO" 5
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2504 $as_echo "yes" >&6; }
2505 # If we didn't sleep, we still need to ensure time stamps of config.status and
2506 # generated files are strictly newer.
2507 am_sleep_pid=
2508 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2509   ( sleep 1 ) &
2510   am_sleep_pid=$!
2511 fi
2512
2513 rm -f conftest.file
2514
2515 test "$program_prefix" != NONE &&
2516   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE &&
2519   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524
2525 # Expand $ac_aux_dir to an absolute path.
2526 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2527
2528 if test x"${MISSING+set}" != xset; then
2529   case $am_aux_dir in
2530   *\ * | *\     *)
2531     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2532   *)
2533     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2534   esac
2535 fi
2536 # Use eval to expand $SHELL
2537 if eval "$MISSING --is-lightweight"; then
2538   am_missing_run="$MISSING "
2539 else
2540   am_missing_run=
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2542 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2543 fi
2544
2545 if test x"${install_sh+set}" != xset; then
2546   case $am_aux_dir in
2547   *\ * | *\     *)
2548     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2549   *)
2550     install_sh="\${SHELL} $am_aux_dir/install-sh"
2551   esac
2552 fi
2553
2554 # Installed binaries are usually stripped using 'strip' when the user
2555 # run "make install-strip".  However 'strip' might not be the right
2556 # tool to use in cross-compilation environments, therefore Automake
2557 # will honor the 'STRIP' environment variable to overrule this program.
2558 if test "$cross_compiling" != no; then
2559   if test -n "$ac_tool_prefix"; then
2560   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}strip; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_STRIP+:} false; then :
2565   $as_echo_n "(cached) " >&6
2566 else
2567   if test -n "$STRIP"; then
2568   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575     for ac_exec_ext in '' $ac_executable_extensions; do
2576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579     break 2
2580   fi
2581 done
2582   done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 STRIP=$ac_cv_prog_STRIP
2588 if test -n "$STRIP"; then
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2590 $as_echo "$STRIP" >&6; }
2591 else
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596
2597 fi
2598 if test -z "$ac_cv_prog_STRIP"; then
2599   ac_ct_STRIP=$STRIP
2600   # Extract the first word of "strip", so it can be a program name with args.
2601 set dummy strip; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   if test -n "$ac_ct_STRIP"; then
2608   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615     for ac_exec_ext in '' $ac_executable_extensions; do
2616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617     ac_cv_prog_ac_ct_STRIP="strip"
2618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622   done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628 if test -n "$ac_ct_STRIP"; then
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2630 $as_echo "$ac_ct_STRIP" >&6; }
2631 else
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636   if test "x$ac_ct_STRIP" = x; then
2637     STRIP=":"
2638   else
2639     case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645     STRIP=$ac_ct_STRIP
2646   fi
2647 else
2648   STRIP="$ac_cv_prog_STRIP"
2649 fi
2650
2651 fi
2652 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2655 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2656 if test -z "$MKDIR_P"; then
2657   if ${ac_cv_path_mkdir+:} false; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665     for ac_prog in mkdir gmkdir; do
2666          for ac_exec_ext in '' $ac_executable_extensions; do
2667            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2668            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2669              'mkdir (GNU coreutils) '* | \
2670              'mkdir (coreutils) '* | \
2671              'mkdir (fileutils) '4.1*)
2672                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2673                break 3;;
2674            esac
2675          done
2676        done
2677   done
2678 IFS=$as_save_IFS
2679
2680 fi
2681
2682   test -d ./--version && rmdir ./--version
2683   if test "${ac_cv_path_mkdir+set}" = set; then
2684     MKDIR_P="$ac_cv_path_mkdir -p"
2685   else
2686     # As a last resort, use the slow shell script.  Don't cache a
2687     # value for MKDIR_P within a source directory, because that will
2688     # break other packages using the cache if that directory is
2689     # removed, or if the value is a relative name.
2690     MKDIR_P="$ac_install_sh -d"
2691   fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2694 $as_echo "$MKDIR_P" >&6; }
2695
2696 for ac_prog in gawk mawk nawk awk
2697 do
2698   # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if ${ac_cv_prog_AWK+:} false; then :
2703   $as_echo_n "(cached) " >&6
2704 else
2705   if test -n "$AWK"; then
2706   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713     for ac_exec_ext in '' $ac_executable_extensions; do
2714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715     ac_cv_prog_AWK="$ac_prog"
2716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720   done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 AWK=$ac_cv_prog_AWK
2726 if test -n "$AWK"; then
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2728 $as_echo "$AWK" >&6; }
2729 else
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735   test -n "$AWK" && break
2736 done
2737
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2739 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2740 set x ${MAKE-make}
2741 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2742 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2743   $as_echo_n "(cached) " >&6
2744 else
2745   cat >conftest.make <<\_ACEOF
2746 SHELL = /bin/sh
2747 all:
2748         @echo '@@@%%%=$(MAKE)=@@@%%%'
2749 _ACEOF
2750 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2752   *@@@%%%=?*=@@@%%%*)
2753     eval ac_cv_prog_make_${ac_make}_set=yes;;
2754   *)
2755     eval ac_cv_prog_make_${ac_make}_set=no;;
2756 esac
2757 rm -f conftest.make
2758 fi
2759 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761 $as_echo "yes" >&6; }
2762   SET_MAKE=
2763 else
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766   SET_MAKE="MAKE=${MAKE-make}"
2767 fi
2768
2769 rm -rf .tst 2>/dev/null
2770 mkdir .tst 2>/dev/null
2771 if test -d .tst; then
2772   am__leading_dot=.
2773 else
2774   am__leading_dot=_
2775 fi
2776 rmdir .tst 2>/dev/null
2777
2778 # Check whether --enable-silent-rules was given.
2779 if test "${enable_silent_rules+set}" = set; then :
2780   enableval=$enable_silent_rules;
2781 fi
2782
2783 case $enable_silent_rules in # (((
2784   yes) AM_DEFAULT_VERBOSITY=0;;
2785    no) AM_DEFAULT_VERBOSITY=1;;
2786     *) AM_DEFAULT_VERBOSITY=1;;
2787 esac
2788 am_make=${MAKE-make}
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2790 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2791 if ${am_cv_make_support_nested_variables+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   if $as_echo 'TRUE=$(BAR$(V))
2795 BAR0=false
2796 BAR1=true
2797 V=1
2798 am__doit:
2799         @$(TRUE)
2800 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2801   am_cv_make_support_nested_variables=yes
2802 else
2803   am_cv_make_support_nested_variables=no
2804 fi
2805 fi
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2807 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2808 if test $am_cv_make_support_nested_variables = yes; then
2809     AM_V='$(V)'
2810   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2811 else
2812   AM_V=$AM_DEFAULT_VERBOSITY
2813   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2814 fi
2815 AM_BACKSLASH='\'
2816
2817 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2818   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2819   # is not polluted with repeated "-I."
2820   am__isrc=' -I$(srcdir)'
2821   # test to see if srcdir already configured
2822   if test -f $srcdir/config.status; then
2823     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2824   fi
2825 fi
2826
2827 # test whether we have cygpath
2828 if test -z "$CYGPATH_W"; then
2829   if (cygpath --version) >/dev/null 2>/dev/null; then
2830     CYGPATH_W='cygpath -w'
2831   else
2832     CYGPATH_W=echo
2833   fi
2834 fi
2835
2836
2837 # Define the identity of the package.
2838  PACKAGE='libsigc++'
2839  VERSION='2.9.2'
2840
2841
2842 # Some tools Automake needs.
2843
2844 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2845
2846
2847 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2848
2849
2850 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2851
2852
2853 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2854
2855
2856 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2857
2858 # For better backward compatibility.  To be removed once Automake 1.9.x
2859 # dies out for good.  For more background, see:
2860 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2861 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2862 mkdir_p='$(MKDIR_P)'
2863
2864 # We need awk for the "check" target (and possibly the TAP driver).  The
2865 # system "awk" is bad on some platforms.
2866 # Always define AMTAR for backward compatibility.  Yes, it's still used
2867 # in the wild :-(  We should find a proper way to deprecate it ...
2868 AMTAR='$${TAR-tar}'
2869
2870
2871 # We'll loop over all known methods to create a tar archive until one works.
2872 _am_tools='gnutar plaintar pax cpio none'
2873
2874 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2875       # There is notably a 21 bits limit for the UID and the GID.  In fact,
2876       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2877       # and bug#13588).
2878       am_max_uid=2097151 # 2^21 - 1
2879       am_max_gid=$am_max_uid
2880       # The $UID and $GID variables are not portable, so we need to resort
2881       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
2882       # below are definitely unexpected, so allow the users to see them
2883       # (that is, avoid stderr redirection).
2884       am_uid=`id -u || echo unknown`
2885       am_gid=`id -g || echo unknown`
2886       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2887 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2888       if test $am_uid -le $am_max_uid; then
2889          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891       else
2892          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894          _am_tools=none
2895       fi
2896       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2897 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2898       if test $am_gid -le $am_max_gid; then
2899          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2900 $as_echo "yes" >&6; }
2901       else
2902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904         _am_tools=none
2905       fi
2906
2907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2908 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2909
2910   # Go ahead even if we have the value already cached.  We do so because we
2911   # need to set the values for the 'am__tar' and 'am__untar' variables.
2912   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2913
2914   for _am_tool in $_am_tools; do
2915     case $_am_tool in
2916     gnutar)
2917       for _am_tar in tar gnutar gtar; do
2918         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2919    ($_am_tar --version) >&5 2>&5
2920    ac_status=$?
2921    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922    (exit $ac_status); } && break
2923       done
2924       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2925       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2926       am__untar="$_am_tar -xf -"
2927       ;;
2928     plaintar)
2929       # Must skip GNU tar: if it does not support --format= it doesn't create
2930       # ustar tarball either.
2931       (tar --version) >/dev/null 2>&1 && continue
2932       am__tar='tar chf - "$$tardir"'
2933       am__tar_='tar chf - "$tardir"'
2934       am__untar='tar xf -'
2935       ;;
2936     pax)
2937       am__tar='pax -L -x ustar -w "$$tardir"'
2938       am__tar_='pax -L -x ustar -w "$tardir"'
2939       am__untar='pax -r'
2940       ;;
2941     cpio)
2942       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2943       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2944       am__untar='cpio -i -H ustar -d'
2945       ;;
2946     none)
2947       am__tar=false
2948       am__tar_=false
2949       am__untar=false
2950       ;;
2951     esac
2952
2953     # If the value was cached, stop now.  We just wanted to have am__tar
2954     # and am__untar set.
2955     test -n "${am_cv_prog_tar_ustar}" && break
2956
2957     # tar/untar a dummy directory, and stop if the command works.
2958     rm -rf conftest.dir
2959     mkdir conftest.dir
2960     echo GrepMe > conftest.dir/file
2961     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2962    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2963    ac_status=$?
2964    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965    (exit $ac_status); }
2966     rm -rf conftest.dir
2967     if test -s conftest.tar; then
2968       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2969    ($am__untar <conftest.tar) >&5 2>&5
2970    ac_status=$?
2971    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972    (exit $ac_status); }
2973       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2974    (cat conftest.dir/file) >&5 2>&5
2975    ac_status=$?
2976    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977    (exit $ac_status); }
2978       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2979     fi
2980   done
2981   rm -rf conftest.dir
2982
2983   if ${am_cv_prog_tar_ustar+:} false; then :
2984   $as_echo_n "(cached) " >&6
2985 else
2986   am_cv_prog_tar_ustar=$_am_tool
2987 fi
2988
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2990 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2991
2992
2993
2994
2995
2996
2997 # POSIX will say in a future version that running "rm -f" with no argument
2998 # is OK; and we want to be able to make that assumption in our Makefile
2999 # recipes.  So use an aggressive probe to check that the usage we want is
3000 # actually supported "in the wild" to an acceptable degree.
3001 # See automake bug#10828.
3002 # To make any issue more visible, cause the running configure to be aborted
3003 # by default if the 'rm' program in use doesn't match our expectations; the
3004 # user can still override this though.
3005 if rm -f && rm -fr && rm -rf; then : OK; else
3006   cat >&2 <<'END'
3007 Oops!
3008
3009 Your 'rm' program seems unable to run without file operands specified
3010 on the command line, even when the '-f' option is present.  This is contrary
3011 to the behaviour of most rm programs out there, and not conforming with
3012 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3013
3014 Please tell bug-automake@gnu.org about your system, including the value
3015 of your $PATH and any error possibly output before this message.  This
3016 can help us improve future automake versions.
3017
3018 END
3019   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3020     echo 'Configuration will proceed anyway, since you have set the' >&2
3021     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3022     echo >&2
3023   else
3024     cat >&2 <<'END'
3025 Aborting the configuration process, to ensure you take notice of the issue.
3026
3027 You can download and install GNU coreutils to get an 'rm' implementation
3028 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3029
3030 If you want to complete the configuration process using your problematic
3031 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3032 to "yes", and re-run configure.
3033
3034 END
3035     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3036   fi
3037 fi
3038
3039 # Check whether --enable-silent-rules was given.
3040 if test "${enable_silent_rules+set}" = set; then :
3041   enableval=$enable_silent_rules;
3042 fi
3043
3044 case $enable_silent_rules in # (((
3045   yes) AM_DEFAULT_VERBOSITY=0;;
3046    no) AM_DEFAULT_VERBOSITY=1;;
3047     *) AM_DEFAULT_VERBOSITY=1;;
3048 esac
3049 am_make=${MAKE-make}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3051 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3052 if ${am_cv_make_support_nested_variables+:} false; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   if $as_echo 'TRUE=$(BAR$(V))
3056 BAR0=false
3057 BAR1=true
3058 V=1
3059 am__doit:
3060         @$(TRUE)
3061 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3062   am_cv_make_support_nested_variables=yes
3063 else
3064   am_cv_make_support_nested_variables=no
3065 fi
3066 fi
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3068 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3069 if test $am_cv_make_support_nested_variables = yes; then
3070     AM_V='$(V)'
3071   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3072 else
3073   AM_V=$AM_DEFAULT_VERBOSITY
3074   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3075 fi
3076 AM_BACKSLASH='\'
3077
3078
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3080 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3081     # Check whether --enable-maintainer-mode was given.
3082 if test "${enable_maintainer_mode+set}" = set; then :
3083   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3084 else
3085   USE_MAINTAINER_MODE=no
3086 fi
3087
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3089 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3090    if test $USE_MAINTAINER_MODE = yes; then
3091   MAINTAINER_MODE_TRUE=
3092   MAINTAINER_MODE_FALSE='#'
3093 else
3094   MAINTAINER_MODE_TRUE='#'
3095   MAINTAINER_MODE_FALSE=
3096 fi
3097
3098   MAINT=$MAINTAINER_MODE_TRUE
3099
3100
3101
3102
3103
3104
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports GNU make features" >&5
3106 $as_echo_n "checking whether ${MAKE-make} supports GNU make features... " >&6; }
3107 cat >conftest.make <<'_MMEOF'
3108 override reverse = $(2)$(subst ,, )$(1)
3109 override result := $(word 2,$(call reverse,success,failure))
3110 all: ; test '$(result)' = success
3111 .PHONY: all
3112 _MMEOF
3113 if ${MAKE-make} -f conftest.make >&5 2>&5; then :
3114   mm_gnu_make=yes
3115 else
3116   mm_gnu_make=no
3117 fi
3118 rm -f conftest.make
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mm_gnu_make" >&5
3120 $as_echo "$mm_gnu_make" >&6; }
3121 if test "x$mm_gnu_make" != xyes; then :
3122   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "The GNU make program is required to build $PACKAGE_NAME.
3125 See \`config.log' for more details" "$LINENO" 5; }
3126 fi
3127
3128 SIGCXX_MODULE_NAME='sigc++-2.0'
3129
3130 SIGCXX_VERSION='2.9.2'
3131
3132 SIGCXX_API_VERSION='2.0'
3133
3134 SIGCXX_MAJOR_VERSION=2
3135
3136
3137 $as_echo "#define SIGCXX_MAJOR_VERSION 2" >>confdefs.h
3138
3139 SIGCXX_MINOR_VERSION=9
3140
3141
3142 $as_echo "#define SIGCXX_MINOR_VERSION 9" >>confdefs.h
3143
3144 SIGCXX_MICRO_VERSION=2
3145
3146
3147 $as_echo "#define SIGCXX_MICRO_VERSION 2" >>confdefs.h
3148
3149
3150 MMDOCTOOLDIR='${top_srcdir}/docs'
3151  if test 'xdocs' != 'x'; then
3152   DIST_DOCTOOLS_TRUE=
3153   DIST_DOCTOOLS_FALSE='#'
3154 else
3155   DIST_DOCTOOLS_TRUE='#'
3156   DIST_DOCTOOLS_FALSE=
3157 fi
3158
3159
3160 ac_ext=cpp
3161 ac_cpp='$CXXCPP $CPPFLAGS'
3162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3165 if test -z "$CXX"; then
3166   if test -n "$CCC"; then
3167     CXX=$CCC
3168   else
3169     if test -n "$ac_tool_prefix"; then
3170   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3171   do
3172     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CXX+:} false; then :
3177   $as_echo_n "(cached) " >&6
3178 else
3179   if test -n "$CXX"; then
3180   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185   IFS=$as_save_IFS
3186   test -z "$as_dir" && as_dir=.
3187     for ac_exec_ext in '' $ac_executable_extensions; do
3188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191     break 2
3192   fi
3193 done
3194   done
3195 IFS=$as_save_IFS
3196
3197 fi
3198 fi
3199 CXX=$ac_cv_prog_CXX
3200 if test -n "$CXX"; then
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3202 $as_echo "$CXX" >&6; }
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209     test -n "$CXX" && break
3210   done
3211 fi
3212 if test -z "$CXX"; then
3213   ac_ct_CXX=$CXX
3214   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3215 do
3216   # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy $ac_prog; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3221   $as_echo_n "(cached) " >&6
3222 else
3223   if test -n "$ac_ct_CXX"; then
3224   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231     for ac_exec_ext in '' $ac_executable_extensions; do
3232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_prog_ac_ct_CXX="$ac_prog"
3234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238   done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3244 if test -n "$ac_ct_CXX"; then
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3246 $as_echo "$ac_ct_CXX" >&6; }
3247 else
3248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253   test -n "$ac_ct_CXX" && break
3254 done
3255
3256   if test "x$ac_ct_CXX" = x; then
3257     CXX="g++"
3258   else
3259     case $cross_compiling:$ac_tool_warned in
3260 yes:)
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3264 esac
3265     CXX=$ac_ct_CXX
3266   fi
3267 fi
3268
3269   fi
3270 fi
3271 # Provide some information about the compiler.
3272 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3273 set X $ac_compile
3274 ac_compiler=$2
3275 for ac_option in --version -v -V -qversion; do
3276   { { ac_try="$ac_compiler $ac_option >&5"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3284   ac_status=$?
3285   if test -s conftest.err; then
3286     sed '10a\
3287 ... rest of stderr output deleted ...
3288          10q' conftest.err >conftest.er1
3289     cat conftest.er1 >&5
3290   fi
3291   rm -f conftest.er1 conftest.err
3292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293   test $ac_status = 0; }
3294 done
3295
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h.  */
3298
3299 int
3300 main ()
3301 {
3302
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 ac_clean_files_save=$ac_clean_files
3308 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3309 # Try to create an executable without -o first, disregard a.out.
3310 # It will help us diagnose broken compilers, and finding out an intuition
3311 # of exeext.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3313 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3314 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3315
3316 # The possible output files:
3317 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3318
3319 ac_rmfiles=
3320 for ac_file in $ac_files
3321 do
3322   case $ac_file in
3323     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3324     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3325   esac
3326 done
3327 rm -f $ac_rmfiles
3328
3329 if { { ac_try="$ac_link_default"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336   (eval "$ac_link_default") 2>&5
3337   ac_status=$?
3338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339   test $ac_status = 0; }; then :
3340   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3341 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3342 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3343 # so that the user can short-circuit this test for compilers unknown to
3344 # Autoconf.
3345 for ac_file in $ac_files ''
3346 do
3347   test -f "$ac_file" || continue
3348   case $ac_file in
3349     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3350         ;;
3351     [ab].out )
3352         # We found the default executable, but exeext='' is most
3353         # certainly right.
3354         break;;
3355     *.* )
3356         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3357         then :; else
3358            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359         fi
3360         # We set ac_cv_exeext here because the later test for it is not
3361         # safe: cross compilers may not add the suffix if given an `-o'
3362         # argument, so we may need to know it at that point already.
3363         # Even if this section looks crufty: it has the advantage of
3364         # actually working.
3365         break;;
3366     * )
3367         break;;
3368   esac
3369 done
3370 test "$ac_cv_exeext" = no && ac_cv_exeext=
3371
3372 else
3373   ac_file=''
3374 fi
3375 if test -z "$ac_file"; then :
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 $as_echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error 77 "C++ compiler cannot create executables
3384 See \`config.log' for more details" "$LINENO" 5; }
3385 else
3386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3387 $as_echo "yes" >&6; }
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3390 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3392 $as_echo "$ac_file" >&6; }
3393 ac_exeext=$ac_cv_exeext
3394
3395 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3396 ac_clean_files=$ac_clean_files_save
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3398 $as_echo_n "checking for suffix of executables... " >&6; }
3399 if { { ac_try="$ac_link"
3400 case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406   (eval "$ac_link") 2>&5
3407   ac_status=$?
3408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409   test $ac_status = 0; }; then :
3410   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3411 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3412 # work properly (i.e., refer to `conftest.exe'), while it won't with
3413 # `rm'.
3414 for ac_file in conftest.exe conftest conftest.*; do
3415   test -f "$ac_file" || continue
3416   case $ac_file in
3417     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3418     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3419           break;;
3420     * ) break;;
3421   esac
3422 done
3423 else
3424   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3427 See \`config.log' for more details" "$LINENO" 5; }
3428 fi
3429 rm -f conftest conftest$ac_cv_exeext
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3431 $as_echo "$ac_cv_exeext" >&6; }
3432
3433 rm -f conftest.$ac_ext
3434 EXEEXT=$ac_cv_exeext
3435 ac_exeext=$EXEEXT
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h.  */
3438 #include <stdio.h>
3439 int
3440 main ()
3441 {
3442 FILE *f = fopen ("conftest.out", "w");
3443  return ferror (f) || fclose (f) != 0;
3444
3445   ;
3446   return 0;
3447 }
3448 _ACEOF
3449 ac_clean_files="$ac_clean_files conftest.out"
3450 # Check that the compiler produces executables we can run.  If not, either
3451 # the compiler is broken, or we cross compile.
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3453 $as_echo_n "checking whether we are cross compiling... " >&6; }
3454 if test "$cross_compiling" != yes; then
3455   { { ac_try="$ac_link"
3456 case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462   (eval "$ac_link") 2>&5
3463   ac_status=$?
3464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465   test $ac_status = 0; }
3466   if { ac_try='./conftest$ac_cv_exeext'
3467   { { case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473   (eval "$ac_try") 2>&5
3474   ac_status=$?
3475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476   test $ac_status = 0; }; }; then
3477     cross_compiling=no
3478   else
3479     if test "$cross_compiling" = maybe; then
3480         cross_compiling=yes
3481     else
3482         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot run C++ compiled programs.
3485 If you meant to cross compile, use \`--host'.
3486 See \`config.log' for more details" "$LINENO" 5; }
3487     fi
3488   fi
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3491 $as_echo "$cross_compiling" >&6; }
3492
3493 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3494 ac_clean_files=$ac_clean_files_save
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3496 $as_echo_n "checking for suffix of object files... " >&6; }
3497 if ${ac_cv_objext+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.o conftest.obj
3512 if { { ac_try="$ac_compile"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519   (eval "$ac_compile") 2>&5
3520   ac_status=$?
3521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522   test $ac_status = 0; }; then :
3523   for ac_file in conftest.o conftest.obj conftest.*; do
3524   test -f "$ac_file" || continue;
3525   case $ac_file in
3526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3527     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3528        break;;
3529   esac
3530 done
3531 else
3532   $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $? "cannot compute suffix of object files: cannot compile
3538 See \`config.log' for more details" "$LINENO" 5; }
3539 fi
3540 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3543 $as_echo "$ac_cv_objext" >&6; }
3544 OBJEXT=$ac_cv_objext
3545 ac_objext=$OBJEXT
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3547 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3548 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h.  */
3553
3554 int
3555 main ()
3556 {
3557 #ifndef __GNUC__
3558        choke me
3559 #endif
3560
3561   ;
3562   return 0;
3563 }
3564 _ACEOF
3565 if ac_fn_cxx_try_compile "$LINENO"; then :
3566   ac_compiler_gnu=yes
3567 else
3568   ac_compiler_gnu=no
3569 fi
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3572
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3575 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3576 if test $ac_compiler_gnu = yes; then
3577   GXX=yes
3578 else
3579   GXX=
3580 fi
3581 ac_test_CXXFLAGS=${CXXFLAGS+set}
3582 ac_save_CXXFLAGS=$CXXFLAGS
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3584 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3585 if ${ac_cv_prog_cxx_g+:} false; then :
3586   $as_echo_n "(cached) " >&6
3587 else
3588   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3589    ac_cxx_werror_flag=yes
3590    ac_cv_prog_cxx_g=no
3591    CXXFLAGS="-g"
3592    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h.  */
3594
3595 int
3596 main ()
3597 {
3598
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 if ac_fn_cxx_try_compile "$LINENO"; then :
3604   ac_cv_prog_cxx_g=yes
3605 else
3606   CXXFLAGS=""
3607       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609
3610 int
3611 main ()
3612 {
3613
3614   ;
3615   return 0;
3616 }
3617 _ACEOF
3618 if ac_fn_cxx_try_compile "$LINENO"; then :
3619
3620 else
3621   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3622          CXXFLAGS="-g"
3623          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h.  */
3625
3626 int
3627 main ()
3628 {
3629
3630   ;
3631   return 0;
3632 }
3633 _ACEOF
3634 if ac_fn_cxx_try_compile "$LINENO"; then :
3635   ac_cv_prog_cxx_g=yes
3636 fi
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 fi
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 fi
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3645 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3646 if test "$ac_test_CXXFLAGS" = set; then
3647   CXXFLAGS=$ac_save_CXXFLAGS
3648 elif test $ac_cv_prog_cxx_g = yes; then
3649   if test "$GXX" = yes; then
3650     CXXFLAGS="-g -O2"
3651   else
3652     CXXFLAGS="-g"
3653   fi
3654 else
3655   if test "$GXX" = yes; then
3656     CXXFLAGS="-O2"
3657   else
3658     CXXFLAGS=
3659   fi
3660 fi
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 DEPDIR="${am__leading_dot}deps"
3667
3668 ac_config_commands="$ac_config_commands depfiles"
3669
3670
3671 am_make=${MAKE-make}
3672 cat > confinc << 'END'
3673 am__doit:
3674         @echo this is the am__doit target
3675 .PHONY: am__doit
3676 END
3677 # If we don't find an include directive, just comment out the code.
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3679 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3680 am__include="#"
3681 am__quote=
3682 _am_result=none
3683 # First try GNU make style include.
3684 echo "include confinc" > confmf
3685 # Ignore all kinds of additional output from 'make'.
3686 case `$am_make -s -f confmf 2> /dev/null` in #(
3687 *the\ am__doit\ target*)
3688   am__include=include
3689   am__quote=
3690   _am_result=GNU
3691   ;;
3692 esac
3693 # Now try BSD make style include.
3694 if test "$am__include" = "#"; then
3695    echo '.include "confinc"' > confmf
3696    case `$am_make -s -f confmf 2> /dev/null` in #(
3697    *the\ am__doit\ target*)
3698      am__include=.include
3699      am__quote="\""
3700      _am_result=BSD
3701      ;;
3702    esac
3703 fi
3704
3705
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3707 $as_echo "$_am_result" >&6; }
3708 rm -f confinc confmf
3709
3710 # Check whether --enable-dependency-tracking was given.
3711 if test "${enable_dependency_tracking+set}" = set; then :
3712   enableval=$enable_dependency_tracking;
3713 fi
3714
3715 if test "x$enable_dependency_tracking" != xno; then
3716   am_depcomp="$ac_aux_dir/depcomp"
3717   AMDEPBACKSLASH='\'
3718   am__nodep='_no'
3719 fi
3720  if test "x$enable_dependency_tracking" != xno; then
3721   AMDEP_TRUE=
3722   AMDEP_FALSE='#'
3723 else
3724   AMDEP_TRUE='#'
3725   AMDEP_FALSE=
3726 fi
3727
3728
3729
3730 depcc="$CXX"  am_compiler_list=
3731
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3733 $as_echo_n "checking dependency style of $depcc... " >&6; }
3734 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3735   $as_echo_n "(cached) " >&6
3736 else
3737   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3738   # We make a subdir and do the tests there.  Otherwise we can end up
3739   # making bogus files that we don't know about and never remove.  For
3740   # instance it was reported that on HP-UX the gcc test will end up
3741   # making a dummy file named 'D' -- because '-MD' means "put the output
3742   # in D".
3743   rm -rf conftest.dir
3744   mkdir conftest.dir
3745   # Copy depcomp to subdir because otherwise we won't find it if we're
3746   # using a relative directory.
3747   cp "$am_depcomp" conftest.dir
3748   cd conftest.dir
3749   # We will build objects and dependencies in a subdirectory because
3750   # it helps to detect inapplicable dependency modes.  For instance
3751   # both Tru64's cc and ICC support -MD to output dependencies as a
3752   # side effect of compilation, but ICC will put the dependencies in
3753   # the current directory while Tru64 will put them in the object
3754   # directory.
3755   mkdir sub
3756
3757   am_cv_CXX_dependencies_compiler_type=none
3758   if test "$am_compiler_list" = ""; then
3759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3760   fi
3761   am__universal=false
3762   case " $depcc " in #(
3763      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3764      esac
3765
3766   for depmode in $am_compiler_list; do
3767     # Setup a source with many dependencies, because some compilers
3768     # like to wrap large dependency lists on column 80 (with \), and
3769     # we should not choose a depcomp mode which is confused by this.
3770     #
3771     # We need to recreate these files for each test, as the compiler may
3772     # overwrite some of them when testing with obscure command lines.
3773     # This happens at least with the AIX C compiler.
3774     : > sub/conftest.c
3775     for i in 1 2 3 4 5 6; do
3776       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3777       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3778       # Solaris 10 /bin/sh.
3779       echo '/* dummy */' > sub/conftst$i.h
3780     done
3781     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3782
3783     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3784     # mode.  It turns out that the SunPro C++ compiler does not properly
3785     # handle '-M -o', and we need to detect this.  Also, some Intel
3786     # versions had trouble with output in subdirs.
3787     am__obj=sub/conftest.${OBJEXT-o}
3788     am__minus_obj="-o $am__obj"
3789     case $depmode in
3790     gcc)
3791       # This depmode causes a compiler race in universal mode.
3792       test "$am__universal" = false || continue
3793       ;;
3794     nosideeffect)
3795       # After this tag, mechanisms are not by side-effect, so they'll
3796       # only be used when explicitly requested.
3797       if test "x$enable_dependency_tracking" = xyes; then
3798         continue
3799       else
3800         break
3801       fi
3802       ;;
3803     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3804       # This compiler won't grok '-c -o', but also, the minuso test has
3805       # not run yet.  These depmodes are late enough in the game, and
3806       # so weak that their functioning should not be impacted.
3807       am__obj=conftest.${OBJEXT-o}
3808       am__minus_obj=
3809       ;;
3810     none) break ;;
3811     esac
3812     if depmode=$depmode \
3813        source=sub/conftest.c object=$am__obj \
3814        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3815        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3816          >/dev/null 2>conftest.err &&
3817        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3818        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3819        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3820        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3821       # icc doesn't choke on unknown options, it will just issue warnings
3822       # or remarks (even with -Werror).  So we grep stderr for any message
3823       # that says an option was ignored or not supported.
3824       # When given -MP, icc 7.0 and 7.1 complain thusly:
3825       #   icc: Command line warning: ignoring option '-M'; no argument required
3826       # The diagnosis changed in icc 8.0:
3827       #   icc: Command line remark: option '-MP' not supported
3828       if (grep 'ignoring option' conftest.err ||
3829           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3830         am_cv_CXX_dependencies_compiler_type=$depmode
3831         break
3832       fi
3833     fi
3834   done
3835
3836   cd ..
3837   rm -rf conftest.dir
3838 else
3839   am_cv_CXX_dependencies_compiler_type=none
3840 fi
3841
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3844 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3845 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3846
3847  if
3848   test "x$enable_dependency_tracking" != xno \
3849   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3850   am__fastdepCXX_TRUE=
3851   am__fastdepCXX_FALSE='#'
3852 else
3853   am__fastdepCXX_TRUE='#'
3854   am__fastdepCXX_FALSE=
3855 fi
3856
3857
3858
3859     ax_cxx_compile_cxx11_required=true
3860   ac_ext=cpp
3861 ac_cpp='$CXXCPP $CPPFLAGS'
3862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3865   ac_success=no
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
3867 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
3868 if ${ax_cv_cxx_compile_cxx11+:} false; then :
3869   $as_echo_n "(cached) " >&6
3870 else
3871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h.  */
3873
3874   template <typename T>
3875     struct check
3876     {
3877       static_assert(sizeof(int) <= sizeof(T), "not big enough");
3878     };
3879
3880     struct Base {
3881     virtual void f() {}
3882     };
3883     struct Child : public Base {
3884     virtual void f() override {}
3885     };
3886
3887     typedef check<check<bool>> right_angle_brackets;
3888
3889     int a;
3890     decltype(a) b;
3891
3892     typedef check<int> check_type;
3893     check_type c;
3894     check_type&& cr = static_cast<check_type&&>(c);
3895
3896     auto d = a;
3897     auto l = [](){};
3898     // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
3899     struct use_l { use_l() { l(); } };
3900
3901     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3902     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3903     namespace test_template_alias_sfinae {
3904         struct foo {};
3905
3906         template<typename T>
3907         using member = typename T::member_type;
3908
3909         template<typename T>
3910         void func(...) {}
3911
3912         template<typename T>
3913         void func(member<T>*) {}
3914
3915         void test();
3916
3917         void test() {
3918             func<foo>(0);
3919         }
3920     }
3921
3922 _ACEOF
3923 if ac_fn_cxx_try_compile "$LINENO"; then :
3924   ax_cv_cxx_compile_cxx11=yes
3925 else
3926   ax_cv_cxx_compile_cxx11=no
3927 fi
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
3931 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
3932   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
3933     ac_success=yes
3934   fi
3935
3936
3937
3938     if test x$ac_success = xno; then
3939             for switch in -std=c++11 -std=c++0x +std=c++11; do
3940       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
3941       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
3942 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
3943 if eval \${$cachevar+:} false; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   ac_save_CXXFLAGS="$CXXFLAGS"
3947          CXXFLAGS="$CXXFLAGS $switch"
3948          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950
3951   template <typename T>
3952     struct check
3953     {
3954       static_assert(sizeof(int) <= sizeof(T), "not big enough");
3955     };
3956
3957     struct Base {
3958     virtual void f() {}
3959     };
3960     struct Child : public Base {
3961     virtual void f() override {}
3962     };
3963
3964     typedef check<check<bool>> right_angle_brackets;
3965
3966     int a;
3967     decltype(a) b;
3968
3969     typedef check<int> check_type;
3970     check_type c;
3971     check_type&& cr = static_cast<check_type&&>(c);
3972
3973     auto d = a;
3974     auto l = [](){};
3975     // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
3976     struct use_l { use_l() { l(); } };
3977
3978     // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
3979     // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
3980     namespace test_template_alias_sfinae {
3981         struct foo {};
3982
3983         template<typename T>
3984         using member = typename T::member_type;
3985
3986         template<typename T>
3987         void func(...) {}
3988
3989         template<typename T>
3990         void func(member<T>*) {}
3991
3992         void test();
3993
3994         void test() {
3995             func<foo>(0);
3996         }
3997     }
3998
3999 _ACEOF
4000 if ac_fn_cxx_try_compile "$LINENO"; then :
4001   eval $cachevar=yes
4002 else
4003   eval $cachevar=no
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006          CXXFLAGS="$ac_save_CXXFLAGS"
4007 fi
4008 eval ac_res=\$$cachevar
4009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4010 $as_echo "$ac_res" >&6; }
4011       if eval test x\$$cachevar = xyes; then
4012         CXXFLAGS="$CXXFLAGS $switch"
4013         ac_success=yes
4014         break
4015       fi
4016     done
4017   fi
4018   ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023
4024   if test x$ax_cxx_compile_cxx11_required = xtrue; then
4025     if test x$ac_success = xno; then
4026       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
4027     fi
4028   else
4029     if test x$ac_success = xno; then
4030       HAVE_CXX11=0
4031       { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
4032 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
4033     else
4034       HAVE_CXX11=1
4035
4036 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
4037
4038     fi
4039
4040
4041   fi
4042
4043
4044 # Check whether --enable-static was given.
4045 if test "${enable_static+set}" = set; then :
4046   enableval=$enable_static; p=${PACKAGE-default}
4047     case $enableval in
4048     yes) enable_static=yes ;;
4049     no) enable_static=no ;;
4050     *)
4051      enable_static=no
4052       # Look at the argument we got.  We use all the common list separators.
4053       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4054       for pkg in $enableval; do
4055         IFS="$lt_save_ifs"
4056         if test "X$pkg" = "X$p"; then
4057           enable_static=yes
4058         fi
4059       done
4060       IFS="$lt_save_ifs"
4061       ;;
4062     esac
4063 else
4064   enable_static=no
4065 fi
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075 case `pwd` in
4076   *\ * | *\     *)
4077     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4078 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4079 esac
4080
4081
4082
4083 macro_version='2.4.2'
4084 macro_revision='1.3337'
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098 ltmain="$ac_aux_dir/ltmain.sh"
4099
4100 # Make sure we can run config.sub.
4101 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4102   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4103
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4105 $as_echo_n "checking build system type... " >&6; }
4106 if ${ac_cv_build+:} false; then :
4107   $as_echo_n "(cached) " >&6
4108 else
4109   ac_build_alias=$build_alias
4110 test "x$ac_build_alias" = x &&
4111   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4112 test "x$ac_build_alias" = x &&
4113   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4115   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4116
4117 fi
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4119 $as_echo "$ac_cv_build" >&6; }
4120 case $ac_cv_build in
4121 *-*-*) ;;
4122 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4123 esac
4124 build=$ac_cv_build
4125 ac_save_IFS=$IFS; IFS='-'
4126 set x $ac_cv_build
4127 shift
4128 build_cpu=$1
4129 build_vendor=$2
4130 shift; shift
4131 # Remember, the first character of IFS is used to create $*,
4132 # except with old shells:
4133 build_os=$*
4134 IFS=$ac_save_IFS
4135 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4136
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4139 $as_echo_n "checking host system type... " >&6; }
4140 if ${ac_cv_host+:} false; then :
4141   $as_echo_n "(cached) " >&6
4142 else
4143   if test "x$host_alias" = x; then
4144   ac_cv_host=$ac_cv_build
4145 else
4146   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4147     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4148 fi
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4152 $as_echo "$ac_cv_host" >&6; }
4153 case $ac_cv_host in
4154 *-*-*) ;;
4155 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4156 esac
4157 host=$ac_cv_host
4158 ac_save_IFS=$IFS; IFS='-'
4159 set x $ac_cv_host
4160 shift
4161 host_cpu=$1
4162 host_vendor=$2
4163 shift; shift
4164 # Remember, the first character of IFS is used to create $*,
4165 # except with old shells:
4166 host_os=$*
4167 IFS=$ac_save_IFS
4168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4169
4170
4171 # Backslashify metacharacters that are still active within
4172 # double-quoted strings.
4173 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4174
4175 # Same as above, but do not quote variable references.
4176 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4177
4178 # Sed substitution to delay expansion of an escaped shell variable in a
4179 # double_quote_subst'ed string.
4180 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4181
4182 # Sed substitution to delay expansion of an escaped single quote.
4183 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4184
4185 # Sed substitution to avoid accidental globbing in evaled expressions
4186 no_glob_subst='s/\*/\\\*/g'
4187
4188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4190 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4193 $as_echo_n "checking how to print strings... " >&6; }
4194 # Test print first, because it will be a builtin if present.
4195 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4196    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4197   ECHO='print -r --'
4198 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4199   ECHO='printf %s\n'
4200 else
4201   # Use this function as a fallback that always works.
4202   func_fallback_echo ()
4203   {
4204     eval 'cat <<_LTECHO_EOF
4205 $1
4206 _LTECHO_EOF'
4207   }
4208   ECHO='func_fallback_echo'
4209 fi
4210
4211 # func_echo_all arg...
4212 # Invoke $ECHO with all args, space-separated.
4213 func_echo_all ()
4214 {
4215     $ECHO ""
4216 }
4217
4218 case "$ECHO" in
4219   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4220 $as_echo "printf" >&6; } ;;
4221   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4222 $as_echo "print -r" >&6; } ;;
4223   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4224 $as_echo "cat" >&6; } ;;
4225 esac
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 if test -n "$ac_tool_prefix"; then
4246   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4247 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_prog_CC+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   if test -n "$CC"; then
4254   ac_cv_prog_CC="$CC" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261     for ac_exec_ext in '' $ac_executable_extensions; do
4262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265     break 2
4266   fi
4267 done
4268   done
4269 IFS=$as_save_IFS
4270
4271 fi
4272 fi
4273 CC=$ac_cv_prog_CC
4274 if test -n "$CC"; then
4275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4276 $as_echo "$CC" >&6; }
4277 else
4278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4280 fi
4281
4282
4283 fi
4284 if test -z "$ac_cv_prog_CC"; then
4285   ac_ct_CC=$CC
4286   # Extract the first word of "gcc", so it can be a program name with args.
4287 set dummy gcc; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   if test -n "$ac_ct_CC"; then
4294   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299   IFS=$as_save_IFS
4300   test -z "$as_dir" && as_dir=.
4301     for ac_exec_ext in '' $ac_executable_extensions; do
4302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303     ac_cv_prog_ac_ct_CC="gcc"
4304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305     break 2
4306   fi
4307 done
4308   done
4309 IFS=$as_save_IFS
4310
4311 fi
4312 fi
4313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4314 if test -n "$ac_ct_CC"; then
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4316 $as_echo "$ac_ct_CC" >&6; }
4317 else
4318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 fi
4321
4322   if test "x$ac_ct_CC" = x; then
4323     CC=""
4324   else
4325     case $cross_compiling:$ac_tool_warned in
4326 yes:)
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329 ac_tool_warned=yes ;;
4330 esac
4331     CC=$ac_ct_CC
4332   fi
4333 else
4334   CC="$ac_cv_prog_CC"
4335 fi
4336
4337 if test -z "$CC"; then
4338           if test -n "$ac_tool_prefix"; then
4339     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4340 set dummy ${ac_tool_prefix}cc; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_prog_CC+:} false; then :
4344   $as_echo_n "(cached) " >&6
4345 else
4346   if test -n "$CC"; then
4347   ac_cv_prog_CC="$CC" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352   IFS=$as_save_IFS
4353   test -z "$as_dir" && as_dir=.
4354     for ac_exec_ext in '' $ac_executable_extensions; do
4355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356     ac_cv_prog_CC="${ac_tool_prefix}cc"
4357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358     break 2
4359   fi
4360 done
4361   done
4362 IFS=$as_save_IFS
4363
4364 fi
4365 fi
4366 CC=$ac_cv_prog_CC
4367 if test -n "$CC"; then
4368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4369 $as_echo "$CC" >&6; }
4370 else
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375
4376   fi
4377 fi
4378 if test -z "$CC"; then
4379   # Extract the first word of "cc", so it can be a program name with args.
4380 set dummy cc; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if ${ac_cv_prog_CC+:} false; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386   if test -n "$CC"; then
4387   ac_cv_prog_CC="$CC" # Let the user override the test.
4388 else
4389   ac_prog_rejected=no
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393   IFS=$as_save_IFS
4394   test -z "$as_dir" && as_dir=.
4395     for ac_exec_ext in '' $ac_executable_extensions; do
4396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4398        ac_prog_rejected=yes
4399        continue
4400      fi
4401     ac_cv_prog_CC="cc"
4402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406   done
4407 IFS=$as_save_IFS
4408
4409 if test $ac_prog_rejected = yes; then
4410   # We found a bogon in the path, so make sure we never use it.
4411   set dummy $ac_cv_prog_CC
4412   shift
4413   if test $# != 0; then
4414     # We chose a different compiler from the bogus one.
4415     # However, it has the same basename, so the bogon will be chosen
4416     # first if we set CC to just the basename; use the full file name.
4417     shift
4418     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4419   fi
4420 fi
4421 fi
4422 fi
4423 CC=$ac_cv_prog_CC
4424 if test -n "$CC"; then
4425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4426 $as_echo "$CC" >&6; }
4427 else
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 fi
4431
4432
4433 fi
4434 if test -z "$CC"; then
4435   if test -n "$ac_tool_prefix"; then
4436   for ac_prog in cl.exe
4437   do
4438     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_CC+:} false; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   if test -n "$CC"; then
4446   ac_cv_prog_CC="$CC" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453     for ac_exec_ext in '' $ac_executable_extensions; do
4454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460   done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 CC=$ac_cv_prog_CC
4466 if test -n "$CC"; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4468 $as_echo "$CC" >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475     test -n "$CC" && break
4476   done
4477 fi
4478 if test -z "$CC"; then
4479   ac_ct_CC=$CC
4480   for ac_prog in cl.exe
4481 do
4482   # Extract the first word of "$ac_prog", so it can be a program name with args.
4483 set dummy $ac_prog; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4487   $as_echo_n "(cached) " >&6
4488 else
4489   if test -n "$ac_ct_CC"; then
4490   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497     for ac_exec_ext in '' $ac_executable_extensions; do
4498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499     ac_cv_prog_ac_ct_CC="$ac_prog"
4500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504   done
4505 IFS=$as_save_IFS
4506
4507 fi
4508 fi
4509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4510 if test -n "$ac_ct_CC"; then
4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4512 $as_echo "$ac_ct_CC" >&6; }
4513 else
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4516 fi
4517
4518
4519   test -n "$ac_ct_CC" && break
4520 done
4521
4522   if test "x$ac_ct_CC" = x; then
4523     CC=""
4524   else
4525     case $cross_compiling:$ac_tool_warned in
4526 yes:)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4529 ac_tool_warned=yes ;;
4530 esac
4531     CC=$ac_ct_CC
4532   fi
4533 fi
4534
4535 fi
4536
4537
4538 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4540 as_fn_error $? "no acceptable C compiler found in \$PATH
4541 See \`config.log' for more details" "$LINENO" 5; }
4542
4543 # Provide some information about the compiler.
4544 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4545 set X $ac_compile
4546 ac_compiler=$2
4547 for ac_option in --version -v -V -qversion; do
4548   { { ac_try="$ac_compiler $ac_option >&5"
4549 case "(($ac_try" in
4550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551   *) ac_try_echo=$ac_try;;
4552 esac
4553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4554 $as_echo "$ac_try_echo"; } >&5
4555   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4556   ac_status=$?
4557   if test -s conftest.err; then
4558     sed '10a\
4559 ... rest of stderr output deleted ...
4560          10q' conftest.err >conftest.er1
4561     cat conftest.er1 >&5
4562   fi
4563   rm -f conftest.er1 conftest.err
4564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565   test $ac_status = 0; }
4566 done
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4569 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4570 if ${ac_cv_c_compiler_gnu+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h.  */
4575
4576 int
4577 main ()
4578 {
4579 #ifndef __GNUC__
4580        choke me
4581 #endif
4582
4583   ;
4584   return 0;
4585 }
4586 _ACEOF
4587 if ac_fn_c_try_compile "$LINENO"; then :
4588   ac_compiler_gnu=yes
4589 else
4590   ac_compiler_gnu=no
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4594
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4597 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4598 if test $ac_compiler_gnu = yes; then
4599   GCC=yes
4600 else
4601   GCC=
4602 fi
4603 ac_test_CFLAGS=${CFLAGS+set}
4604 ac_save_CFLAGS=$CFLAGS
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4606 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4607 if ${ac_cv_prog_cc_g+:} false; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610   ac_save_c_werror_flag=$ac_c_werror_flag
4611    ac_c_werror_flag=yes
4612    ac_cv_prog_cc_g=no
4613    CFLAGS="-g"
4614    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h.  */
4616
4617 int
4618 main ()
4619 {
4620
4621   ;
4622   return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626   ac_cv_prog_cc_g=yes
4627 else
4628   CFLAGS=""
4629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h.  */
4631
4632 int
4633 main ()
4634 {
4635
4636   ;
4637   return 0;
4638 }
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641
4642 else
4643   ac_c_werror_flag=$ac_save_c_werror_flag
4644          CFLAGS="-g"
4645          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h.  */
4647
4648 int
4649 main ()
4650 {
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657   ac_cv_prog_cc_g=yes
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664    ac_c_werror_flag=$ac_save_c_werror_flag
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4667 $as_echo "$ac_cv_prog_cc_g" >&6; }
4668 if test "$ac_test_CFLAGS" = set; then
4669   CFLAGS=$ac_save_CFLAGS
4670 elif test $ac_cv_prog_cc_g = yes; then
4671   if test "$GCC" = yes; then
4672     CFLAGS="-g -O2"
4673   else
4674     CFLAGS="-g"
4675   fi
4676 else
4677   if test "$GCC" = yes; then
4678     CFLAGS="-O2"
4679   else
4680     CFLAGS=
4681   fi
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4684 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4685 if ${ac_cv_prog_cc_c89+:} false; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   ac_cv_prog_cc_c89=no
4689 ac_save_CC=$CC
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h.  */
4692 #include <stdarg.h>
4693 #include <stdio.h>
4694 struct stat;
4695 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4696 struct buf { int x; };
4697 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4698 static char *e (p, i)
4699      char **p;
4700      int i;
4701 {
4702   return p[i];
4703 }
4704 static char *f (char * (*g) (char **, int), char **p, ...)
4705 {
4706   char *s;
4707   va_list v;
4708   va_start (v,p);
4709   s = g (p, va_arg (v,int));
4710   va_end (v);
4711   return s;
4712 }
4713
4714 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4715    function prototypes and stuff, but not '\xHH' hex character constants.
4716    These don't provoke an error unfortunately, instead are silently treated
4717    as 'x'.  The following induces an error, until -std is added to get
4718    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4719    array size at least.  It's necessary to write '\x00'==0 to get something
4720    that's true only with -std.  */
4721 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4722
4723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4724    inside strings and character constants.  */
4725 #define FOO(x) 'x'
4726 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4727
4728 int test (int i, double x);
4729 struct s1 {int (*f) (int a);};
4730 struct s2 {int (*f) (double a);};
4731 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4732 int argc;
4733 char **argv;
4734 int
4735 main ()
4736 {
4737 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4743         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4744 do
4745   CC="$ac_save_CC $ac_arg"
4746   if ac_fn_c_try_compile "$LINENO"; then :
4747   ac_cv_prog_cc_c89=$ac_arg
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext
4750   test "x$ac_cv_prog_cc_c89" != "xno" && break
4751 done
4752 rm -f conftest.$ac_ext
4753 CC=$ac_save_CC
4754
4755 fi
4756 # AC_CACHE_VAL
4757 case "x$ac_cv_prog_cc_c89" in
4758   x)
4759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4760 $as_echo "none needed" >&6; } ;;
4761   xno)
4762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4763 $as_echo "unsupported" >&6; } ;;
4764   *)
4765     CC="$CC $ac_cv_prog_cc_c89"
4766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4767 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4768 esac
4769 if test "x$ac_cv_prog_cc_c89" != xno; then :
4770
4771 fi
4772
4773 ac_ext=c
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4785 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4786 if ${am_cv_prog_cc_c_o+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h.  */
4791
4792 int
4793 main ()
4794 {
4795
4796   ;
4797   return 0;
4798 }
4799 _ACEOF
4800   # Make sure it works both with $CC and with simple cc.
4801   # Following AC_PROG_CC_C_O, we do the test twice because some
4802   # compilers refuse to overwrite an existing .o file with -o,
4803   # though they will create one.
4804   am_cv_prog_cc_c_o=yes
4805   for am_i in 1 2; do
4806     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4807    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4808    ac_status=$?
4809    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810    (exit $ac_status); } \
4811          && test -f conftest2.$ac_objext; then
4812       : OK
4813     else
4814       am_cv_prog_cc_c_o=no
4815       break
4816     fi
4817   done
4818   rm -f core conftest*
4819   unset am_i
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4822 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4823 if test "$am_cv_prog_cc_c_o" != yes; then
4824    # Losing compiler, so override with the script.
4825    # FIXME: It is wrong to rewrite CC.
4826    # But if we don't then we get into trouble of one sort or another.
4827    # A longer-term fix would be to have automake use am__CC in this case,
4828    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4829    CC="$am_aux_dir/compile $CC"
4830 fi
4831 ac_ext=c
4832 ac_cpp='$CPP $CPPFLAGS'
4833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
4837
4838 depcc="$CC"   am_compiler_list=
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4841 $as_echo_n "checking dependency style of $depcc... " >&6; }
4842 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4846   # We make a subdir and do the tests there.  Otherwise we can end up
4847   # making bogus files that we don't know about and never remove.  For
4848   # instance it was reported that on HP-UX the gcc test will end up
4849   # making a dummy file named 'D' -- because '-MD' means "put the output
4850   # in D".
4851   rm -rf conftest.dir
4852   mkdir conftest.dir
4853   # Copy depcomp to subdir because otherwise we won't find it if we're
4854   # using a relative directory.
4855   cp "$am_depcomp" conftest.dir
4856   cd conftest.dir
4857   # We will build objects and dependencies in a subdirectory because
4858   # it helps to detect inapplicable dependency modes.  For instance
4859   # both Tru64's cc and ICC support -MD to output dependencies as a
4860   # side effect of compilation, but ICC will put the dependencies in
4861   # the current directory while Tru64 will put them in the object
4862   # directory.
4863   mkdir sub
4864
4865   am_cv_CC_dependencies_compiler_type=none
4866   if test "$am_compiler_list" = ""; then
4867      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4868   fi
4869   am__universal=false
4870   case " $depcc " in #(
4871      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4872      esac
4873
4874   for depmode in $am_compiler_list; do
4875     # Setup a source with many dependencies, because some compilers
4876     # like to wrap large dependency lists on column 80 (with \), and
4877     # we should not choose a depcomp mode which is confused by this.
4878     #
4879     # We need to recreate these files for each test, as the compiler may
4880     # overwrite some of them when testing with obscure command lines.
4881     # This happens at least with the AIX C compiler.
4882     : > sub/conftest.c
4883     for i in 1 2 3 4 5 6; do
4884       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4885       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4886       # Solaris 10 /bin/sh.
4887       echo '/* dummy */' > sub/conftst$i.h
4888     done
4889     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4890
4891     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4892     # mode.  It turns out that the SunPro C++ compiler does not properly
4893     # handle '-M -o', and we need to detect this.  Also, some Intel
4894     # versions had trouble with output in subdirs.
4895     am__obj=sub/conftest.${OBJEXT-o}
4896     am__minus_obj="-o $am__obj"
4897     case $depmode in
4898     gcc)
4899       # This depmode causes a compiler race in universal mode.
4900       test "$am__universal" = false || continue
4901       ;;
4902     nosideeffect)
4903       # After this tag, mechanisms are not by side-effect, so they'll
4904       # only be used when explicitly requested.
4905       if test "x$enable_dependency_tracking" = xyes; then
4906         continue
4907       else
4908         break
4909       fi
4910       ;;
4911     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4912       # This compiler won't grok '-c -o', but also, the minuso test has
4913       # not run yet.  These depmodes are late enough in the game, and
4914       # so weak that their functioning should not be impacted.
4915       am__obj=conftest.${OBJEXT-o}
4916       am__minus_obj=
4917       ;;
4918     none) break ;;
4919     esac
4920     if depmode=$depmode \
4921        source=sub/conftest.c object=$am__obj \
4922        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4923        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4924          >/dev/null 2>conftest.err &&
4925        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4926        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4927        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4928        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4929       # icc doesn't choke on unknown options, it will just issue warnings
4930       # or remarks (even with -Werror).  So we grep stderr for any message
4931       # that says an option was ignored or not supported.
4932       # When given -MP, icc 7.0 and 7.1 complain thusly:
4933       #   icc: Command line warning: ignoring option '-M'; no argument required
4934       # The diagnosis changed in icc 8.0:
4935       #   icc: Command line remark: option '-MP' not supported
4936       if (grep 'ignoring option' conftest.err ||
4937           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4938         am_cv_CC_dependencies_compiler_type=$depmode
4939         break
4940       fi
4941     fi
4942   done
4943
4944   cd ..
4945   rm -rf conftest.dir
4946 else
4947   am_cv_CC_dependencies_compiler_type=none
4948 fi
4949
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4952 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4953 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4954
4955  if
4956   test "x$enable_dependency_tracking" != xno \
4957   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4958   am__fastdepCC_TRUE=
4959   am__fastdepCC_FALSE='#'
4960 else
4961   am__fastdepCC_TRUE='#'
4962   am__fastdepCC_FALSE=
4963 fi
4964
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4967 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4968 if ${ac_cv_path_SED+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4972      for ac_i in 1 2 3 4 5 6 7; do
4973        ac_script="$ac_script$as_nl$ac_script"
4974      done
4975      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4976      { ac_script=; unset ac_script;}
4977      if test -z "$SED"; then
4978   ac_path_SED_found=false
4979   # Loop through the user's path and test for each of PROGNAME-LIST
4980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985     for ac_prog in sed gsed; do
4986     for ac_exec_ext in '' $ac_executable_extensions; do
4987       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4988       as_fn_executable_p "$ac_path_SED" || continue
4989 # Check for GNU ac_path_SED and select it if it is found.
4990   # Check for GNU $ac_path_SED
4991 case `"$ac_path_SED" --version 2>&1` in
4992 *GNU*)
4993   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4994 *)
4995   ac_count=0
4996   $as_echo_n 0123456789 >"conftest.in"
4997   while :
4998   do
4999     cat "conftest.in" "conftest.in" >"conftest.tmp"
5000     mv "conftest.tmp" "conftest.in"
5001     cp "conftest.in" "conftest.nl"
5002     $as_echo '' >> "conftest.nl"
5003     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5004     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5005     as_fn_arith $ac_count + 1 && ac_count=$as_val
5006     if test $ac_count -gt ${ac_path_SED_max-0}; then
5007       # Best one so far, save it but keep looking for a better one
5008       ac_cv_path_SED="$ac_path_SED"
5009       ac_path_SED_max=$ac_count
5010     fi
5011     # 10*(2^10) chars as input seems more than enough
5012     test $ac_count -gt 10 && break
5013   done
5014   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5015 esac
5016
5017       $ac_path_SED_found && break 3
5018     done
5019   done
5020   done
5021 IFS=$as_save_IFS
5022   if test -z "$ac_cv_path_SED"; then
5023     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5024   fi
5025 else
5026   ac_cv_path_SED=$SED
5027 fi
5028
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5031 $as_echo "$ac_cv_path_SED" >&6; }
5032  SED="$ac_cv_path_SED"
5033   rm -f conftest.sed
5034
5035 test -z "$SED" && SED=sed
5036 Xsed="$SED -e 1s/^X//"
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5049 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5050 if ${ac_cv_path_GREP+:} false; then :
5051   $as_echo_n "(cached) " >&6
5052 else
5053   if test -z "$GREP"; then
5054   ac_path_GREP_found=false
5055   # Loop through the user's path and test for each of PROGNAME-LIST
5056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061     for ac_prog in grep ggrep; do
5062     for ac_exec_ext in '' $ac_executable_extensions; do
5063       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5064       as_fn_executable_p "$ac_path_GREP" || continue
5065 # Check for GNU ac_path_GREP and select it if it is found.
5066   # Check for GNU $ac_path_GREP
5067 case `"$ac_path_GREP" --version 2>&1` in
5068 *GNU*)
5069   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5070 *)
5071   ac_count=0
5072   $as_echo_n 0123456789 >"conftest.in"
5073   while :
5074   do
5075     cat "conftest.in" "conftest.in" >"conftest.tmp"
5076     mv "conftest.tmp" "conftest.in"
5077     cp "conftest.in" "conftest.nl"
5078     $as_echo 'GREP' >> "conftest.nl"
5079     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5080     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5081     as_fn_arith $ac_count + 1 && ac_count=$as_val
5082     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5083       # Best one so far, save it but keep looking for a better one
5084       ac_cv_path_GREP="$ac_path_GREP"
5085       ac_path_GREP_max=$ac_count
5086     fi
5087     # 10*(2^10) chars as input seems more than enough
5088     test $ac_count -gt 10 && break
5089   done
5090   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5091 esac
5092
5093       $ac_path_GREP_found && break 3
5094     done
5095   done
5096   done
5097 IFS=$as_save_IFS
5098   if test -z "$ac_cv_path_GREP"; then
5099     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100   fi
5101 else
5102   ac_cv_path_GREP=$GREP
5103 fi
5104
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5107 $as_echo "$ac_cv_path_GREP" >&6; }
5108  GREP="$ac_cv_path_GREP"
5109
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5112 $as_echo_n "checking for egrep... " >&6; }
5113 if ${ac_cv_path_EGREP+:} false; then :
5114   $as_echo_n "(cached) " >&6
5115 else
5116   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5117    then ac_cv_path_EGREP="$GREP -E"
5118    else
5119      if test -z "$EGREP"; then
5120   ac_path_EGREP_found=false
5121   # Loop through the user's path and test for each of PROGNAME-LIST
5122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_prog in egrep; do
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5130       as_fn_executable_p "$ac_path_EGREP" || continue
5131 # Check for GNU ac_path_EGREP and select it if it is found.
5132   # Check for GNU $ac_path_EGREP
5133 case `"$ac_path_EGREP" --version 2>&1` in
5134 *GNU*)
5135   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5136 *)
5137   ac_count=0
5138   $as_echo_n 0123456789 >"conftest.in"
5139   while :
5140   do
5141     cat "conftest.in" "conftest.in" >"conftest.tmp"
5142     mv "conftest.tmp" "conftest.in"
5143     cp "conftest.in" "conftest.nl"
5144     $as_echo 'EGREP' >> "conftest.nl"
5145     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5146     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5147     as_fn_arith $ac_count + 1 && ac_count=$as_val
5148     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5149       # Best one so far, save it but keep looking for a better one
5150       ac_cv_path_EGREP="$ac_path_EGREP"
5151       ac_path_EGREP_max=$ac_count
5152     fi
5153     # 10*(2^10) chars as input seems more than enough
5154     test $ac_count -gt 10 && break
5155   done
5156   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5157 esac
5158
5159       $ac_path_EGREP_found && break 3
5160     done
5161   done
5162   done
5163 IFS=$as_save_IFS
5164   if test -z "$ac_cv_path_EGREP"; then
5165     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5166   fi
5167 else
5168   ac_cv_path_EGREP=$EGREP
5169 fi
5170
5171    fi
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5174 $as_echo "$ac_cv_path_EGREP" >&6; }
5175  EGREP="$ac_cv_path_EGREP"
5176
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5179 $as_echo_n "checking for fgrep... " >&6; }
5180 if ${ac_cv_path_FGREP+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5184    then ac_cv_path_FGREP="$GREP -F"
5185    else
5186      if test -z "$FGREP"; then
5187   ac_path_FGREP_found=false
5188   # Loop through the user's path and test for each of PROGNAME-LIST
5189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194     for ac_prog in fgrep; do
5195     for ac_exec_ext in '' $ac_executable_extensions; do
5196       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5197       as_fn_executable_p "$ac_path_FGREP" || continue
5198 # Check for GNU ac_path_FGREP and select it if it is found.
5199   # Check for GNU $ac_path_FGREP
5200 case `"$ac_path_FGREP" --version 2>&1` in
5201 *GNU*)
5202   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5203 *)
5204   ac_count=0
5205   $as_echo_n 0123456789 >"conftest.in"
5206   while :
5207   do
5208     cat "conftest.in" "conftest.in" >"conftest.tmp"
5209     mv "conftest.tmp" "conftest.in"
5210     cp "conftest.in" "conftest.nl"
5211     $as_echo 'FGREP' >> "conftest.nl"
5212     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214     as_fn_arith $ac_count + 1 && ac_count=$as_val
5215     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5216       # Best one so far, save it but keep looking for a better one
5217       ac_cv_path_FGREP="$ac_path_FGREP"
5218       ac_path_FGREP_max=$ac_count
5219     fi
5220     # 10*(2^10) chars as input seems more than enough
5221     test $ac_count -gt 10 && break
5222   done
5223   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224 esac
5225
5226       $ac_path_FGREP_found && break 3
5227     done
5228   done
5229   done
5230 IFS=$as_save_IFS
5231   if test -z "$ac_cv_path_FGREP"; then
5232     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233   fi
5234 else
5235   ac_cv_path_FGREP=$FGREP
5236 fi
5237
5238    fi
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5241 $as_echo "$ac_cv_path_FGREP" >&6; }
5242  FGREP="$ac_cv_path_FGREP"
5243
5244
5245 test -z "$GREP" && GREP=grep
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265 # Check whether --with-gnu-ld was given.
5266 if test "${with_gnu_ld+set}" = set; then :
5267   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5268 else
5269   with_gnu_ld=no
5270 fi
5271
5272 ac_prog=ld
5273 if test "$GCC" = yes; then
5274   # Check if gcc -print-prog-name=ld gives a path.
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5276 $as_echo_n "checking for ld used by $CC... " >&6; }
5277   case $host in
5278   *-*-mingw*)
5279     # gcc leaves a trailing carriage return which upsets mingw
5280     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5281   *)
5282     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5283   esac
5284   case $ac_prog in
5285     # Accept absolute paths.
5286     [\\/]* | ?:[\\/]*)
5287       re_direlt='/[^/][^/]*/\.\./'
5288       # Canonicalize the pathname of ld
5289       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5290       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5291         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5292       done
5293       test -z "$LD" && LD="$ac_prog"
5294       ;;
5295   "")
5296     # If it fails, then pretend we aren't using GCC.
5297     ac_prog=ld
5298     ;;
5299   *)
5300     # If it is relative, then search for the first ld in PATH.
5301     with_gnu_ld=unknown
5302     ;;
5303   esac
5304 elif test "$with_gnu_ld" = yes; then
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5306 $as_echo_n "checking for GNU ld... " >&6; }
5307 else
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5309 $as_echo_n "checking for non-GNU ld... " >&6; }
5310 fi
5311 if ${lt_cv_path_LD+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   if test -z "$LD"; then
5315   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5316   for ac_dir in $PATH; do
5317     IFS="$lt_save_ifs"
5318     test -z "$ac_dir" && ac_dir=.
5319     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5320       lt_cv_path_LD="$ac_dir/$ac_prog"
5321       # Check to see if the program is GNU ld.  I'd rather use --version,
5322       # but apparently some variants of GNU ld only accept -v.
5323       # Break only if it was the GNU/non-GNU ld that we prefer.
5324       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5325       *GNU* | *'with BFD'*)
5326         test "$with_gnu_ld" != no && break
5327         ;;
5328       *)
5329         test "$with_gnu_ld" != yes && break
5330         ;;
5331       esac
5332     fi
5333   done
5334   IFS="$lt_save_ifs"
5335 else
5336   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5337 fi
5338 fi
5339
5340 LD="$lt_cv_path_LD"
5341 if test -n "$LD"; then
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5343 $as_echo "$LD" >&6; }
5344 else
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5350 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5351 if ${lt_cv_prog_gnu_ld+:} false; then :
5352   $as_echo_n "(cached) " >&6
5353 else
5354   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5355 case `$LD -v 2>&1 </dev/null` in
5356 *GNU* | *'with BFD'*)
5357   lt_cv_prog_gnu_ld=yes
5358   ;;
5359 *)
5360   lt_cv_prog_gnu_ld=no
5361   ;;
5362 esac
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5365 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5366 with_gnu_ld=$lt_cv_prog_gnu_ld
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5377 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5378 if ${lt_cv_path_NM+:} false; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381   if test -n "$NM"; then
5382   # Let the user override the test.
5383   lt_cv_path_NM="$NM"
5384 else
5385   lt_nm_to_check="${ac_tool_prefix}nm"
5386   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5387     lt_nm_to_check="$lt_nm_to_check nm"
5388   fi
5389   for lt_tmp_nm in $lt_nm_to_check; do
5390     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5391     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5392       IFS="$lt_save_ifs"
5393       test -z "$ac_dir" && ac_dir=.
5394       tmp_nm="$ac_dir/$lt_tmp_nm"
5395       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5396         # Check to see if the nm accepts a BSD-compat flag.
5397         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5398         #   nm: unknown option "B" ignored
5399         # Tru64's nm complains that /dev/null is an invalid object file
5400         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5401         */dev/null* | *'Invalid file or object type'*)
5402           lt_cv_path_NM="$tmp_nm -B"
5403           break
5404           ;;
5405         *)
5406           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5407           */dev/null*)
5408             lt_cv_path_NM="$tmp_nm -p"
5409             break
5410             ;;
5411           *)
5412             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5413             continue # so that we can try to find one that supports BSD flags
5414             ;;
5415           esac
5416           ;;
5417         esac
5418       fi
5419     done
5420     IFS="$lt_save_ifs"
5421   done
5422   : ${lt_cv_path_NM=no}
5423 fi
5424 fi
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5426 $as_echo "$lt_cv_path_NM" >&6; }
5427 if test "$lt_cv_path_NM" != "no"; then
5428   NM="$lt_cv_path_NM"
5429 else
5430   # Didn't find any BSD compatible name lister, look for dumpbin.
5431   if test -n "$DUMPBIN"; then :
5432     # Let the user override the test.
5433   else
5434     if test -n "$ac_tool_prefix"; then
5435   for ac_prog in dumpbin "link -dump"
5436   do
5437     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_DUMPBIN+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   if test -n "$DUMPBIN"; then
5445   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459   done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 DUMPBIN=$ac_cv_prog_DUMPBIN
5465 if test -n "$DUMPBIN"; then
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5467 $as_echo "$DUMPBIN" >&6; }
5468 else
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473
5474     test -n "$DUMPBIN" && break
5475   done
5476 fi
5477 if test -z "$DUMPBIN"; then
5478   ac_ct_DUMPBIN=$DUMPBIN
5479   for ac_prog in dumpbin "link -dump"
5480 do
5481   # Extract the first word of "$ac_prog", so it can be a program name with args.
5482 set dummy $ac_prog; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   if test -n "$ac_ct_DUMPBIN"; then
5489   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494   IFS=$as_save_IFS
5495   test -z "$as_dir" && as_dir=.
5496     for ac_exec_ext in '' $ac_executable_extensions; do
5497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500     break 2
5501   fi
5502 done
5503   done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5509 if test -n "$ac_ct_DUMPBIN"; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5511 $as_echo "$ac_ct_DUMPBIN" >&6; }
5512 else
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517
5518   test -n "$ac_ct_DUMPBIN" && break
5519 done
5520
5521   if test "x$ac_ct_DUMPBIN" = x; then
5522     DUMPBIN=":"
5523   else
5524     case $cross_compiling:$ac_tool_warned in
5525 yes:)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5529 esac
5530     DUMPBIN=$ac_ct_DUMPBIN
5531   fi
5532 fi
5533
5534     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5535     *COFF*)
5536       DUMPBIN="$DUMPBIN -symbols"
5537       ;;
5538     *)
5539       DUMPBIN=:
5540       ;;
5541     esac
5542   fi
5543
5544   if test "$DUMPBIN" != ":"; then
5545     NM="$DUMPBIN"
5546   fi
5547 fi
5548 test -z "$NM" && NM=nm
5549
5550
5551
5552
5553
5554
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5556 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5557 if ${lt_cv_nm_interface+:} false; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   lt_cv_nm_interface="BSD nm"
5561   echo "int some_variable = 0;" > conftest.$ac_ext
5562   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5563   (eval "$ac_compile" 2>conftest.err)
5564   cat conftest.err >&5
5565   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5566   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5567   cat conftest.err >&5
5568   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5569   cat conftest.out >&5
5570   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5571     lt_cv_nm_interface="MS dumpbin"
5572   fi
5573   rm -f conftest*
5574 fi
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5576 $as_echo "$lt_cv_nm_interface" >&6; }
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5579 $as_echo_n "checking whether ln -s works... " >&6; }
5580 LN_S=$as_ln_s
5581 if test "$LN_S" = "ln -s"; then
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5583 $as_echo "yes" >&6; }
5584 else
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5586 $as_echo "no, using $LN_S" >&6; }
5587 fi
5588
5589 # find the maximum length of command line arguments
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5591 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5592 if ${lt_cv_sys_max_cmd_len+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595     i=0
5596   teststring="ABCD"
5597
5598   case $build_os in
5599   msdosdjgpp*)
5600     # On DJGPP, this test can blow up pretty badly due to problems in libc
5601     # (any single argument exceeding 2000 bytes causes a buffer overrun
5602     # during glob expansion).  Even if it were fixed, the result of this
5603     # check would be larger than it should be.
5604     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5605     ;;
5606
5607   gnu*)
5608     # Under GNU Hurd, this test is not required because there is
5609     # no limit to the length of command line arguments.
5610     # Libtool will interpret -1 as no limit whatsoever
5611     lt_cv_sys_max_cmd_len=-1;
5612     ;;
5613
5614   cygwin* | mingw* | cegcc*)
5615     # On Win9x/ME, this test blows up -- it succeeds, but takes
5616     # about 5 minutes as the teststring grows exponentially.
5617     # Worse, since 9x/ME are not pre-emptively multitasking,
5618     # you end up with a "frozen" computer, even though with patience
5619     # the test eventually succeeds (with a max line length of 256k).
5620     # Instead, let's just punt: use the minimum linelength reported by
5621     # all of the supported platforms: 8192 (on NT/2K/XP).
5622     lt_cv_sys_max_cmd_len=8192;
5623     ;;
5624
5625   mint*)
5626     # On MiNT this can take a long time and run out of memory.
5627     lt_cv_sys_max_cmd_len=8192;
5628     ;;
5629
5630   amigaos*)
5631     # On AmigaOS with pdksh, this test takes hours, literally.
5632     # So we just punt and use a minimum line length of 8192.
5633     lt_cv_sys_max_cmd_len=8192;
5634     ;;
5635
5636   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5637     # This has been around since 386BSD, at least.  Likely further.
5638     if test -x /sbin/sysctl; then
5639       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5640     elif test -x /usr/sbin/sysctl; then
5641       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5642     else
5643       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5644     fi
5645     # And add a safety zone
5646     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5647     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5648     ;;
5649
5650   interix*)
5651     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5652     lt_cv_sys_max_cmd_len=196608
5653     ;;
5654
5655   os2*)
5656     # The test takes a long time on OS/2.
5657     lt_cv_sys_max_cmd_len=8192
5658     ;;
5659
5660   osf*)
5661     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5662     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5663     # nice to cause kernel panics so lets avoid the loop below.
5664     # First set a reasonable default.
5665     lt_cv_sys_max_cmd_len=16384
5666     #
5667     if test -x /sbin/sysconfig; then
5668       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5669         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5670       esac
5671     fi
5672     ;;
5673   sco3.2v5*)
5674     lt_cv_sys_max_cmd_len=102400
5675     ;;
5676   sysv5* | sco5v6* | sysv4.2uw2*)
5677     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5678     if test -n "$kargmax"; then
5679       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5680     else
5681       lt_cv_sys_max_cmd_len=32768
5682     fi
5683     ;;
5684   *)
5685     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5686     if test -n "$lt_cv_sys_max_cmd_len" && \
5687         test undefined != "$lt_cv_sys_max_cmd_len"; then
5688       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5689       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5690     else
5691       # Make teststring a little bigger before we do anything with it.
5692       # a 1K string should be a reasonable start.
5693       for i in 1 2 3 4 5 6 7 8 ; do
5694         teststring=$teststring$teststring
5695       done
5696       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5697       # If test is not a shell built-in, we'll probably end up computing a
5698       # maximum length that is only half of the actual maximum length, but
5699       # we can't tell.
5700       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5701                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5702               test $i != 17 # 1/2 MB should be enough
5703       do
5704         i=`expr $i + 1`
5705         teststring=$teststring$teststring
5706       done
5707       # Only check the string length outside the loop.
5708       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5709       teststring=
5710       # Add a significant safety factor because C++ compilers can tack on
5711       # massive amounts of additional arguments before passing them to the
5712       # linker.  It appears as though 1/2 is a usable value.
5713       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5714     fi
5715     ;;
5716   esac
5717
5718 fi
5719
5720 if test -n $lt_cv_sys_max_cmd_len ; then
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5722 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5723 else
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5725 $as_echo "none" >&6; }
5726 fi
5727 max_cmd_len=$lt_cv_sys_max_cmd_len
5728
5729
5730
5731
5732
5733
5734 : ${CP="cp -f"}
5735 : ${MV="mv -f"}
5736 : ${RM="rm -f"}
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5739 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5740 # Try some XSI features
5741 xsi_shell=no
5742 ( _lt_dummy="a/b/c"
5743   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5744       = c,a/b,b/c, \
5745     && eval 'test $(( 1 + 1 )) -eq 2 \
5746     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5747   && xsi_shell=yes
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5749 $as_echo "$xsi_shell" >&6; }
5750
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5753 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5754 lt_shell_append=no
5755 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5756     >/dev/null 2>&1 \
5757   && lt_shell_append=yes
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5759 $as_echo "$lt_shell_append" >&6; }
5760
5761
5762 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5763   lt_unset=unset
5764 else
5765   lt_unset=false
5766 fi
5767
5768
5769
5770
5771
5772 # test EBCDIC or ASCII
5773 case `echo X|tr X '\101'` in
5774  A) # ASCII based system
5775     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5776   lt_SP2NL='tr \040 \012'
5777   lt_NL2SP='tr \015\012 \040\040'
5778   ;;
5779  *) # EBCDIC based system
5780   lt_SP2NL='tr \100 \n'
5781   lt_NL2SP='tr \r\n \100\100'
5782   ;;
5783 esac
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5794 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5795 if ${lt_cv_to_host_file_cmd+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   case $host in
5799   *-*-mingw* )
5800     case $build in
5801       *-*-mingw* ) # actually msys
5802         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5803         ;;
5804       *-*-cygwin* )
5805         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5806         ;;
5807       * ) # otherwise, assume *nix
5808         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5809         ;;
5810     esac
5811     ;;
5812   *-*-cygwin* )
5813     case $build in
5814       *-*-mingw* ) # actually msys
5815         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5816         ;;
5817       *-*-cygwin* )
5818         lt_cv_to_host_file_cmd=func_convert_file_noop
5819         ;;
5820       * ) # otherwise, assume *nix
5821         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5822         ;;
5823     esac
5824     ;;
5825   * ) # unhandled hosts (and "normal" native builds)
5826     lt_cv_to_host_file_cmd=func_convert_file_noop
5827     ;;
5828 esac
5829
5830 fi
5831
5832 to_host_file_cmd=$lt_cv_to_host_file_cmd
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5834 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5835
5836
5837
5838
5839
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5841 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5842 if ${lt_cv_to_tool_file_cmd+:} false; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   #assume ordinary cross tools, or native build.
5846 lt_cv_to_tool_file_cmd=func_convert_file_noop
5847 case $host in
5848   *-*-mingw* )
5849     case $build in
5850       *-*-mingw* ) # actually msys
5851         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5852         ;;
5853     esac
5854     ;;
5855 esac
5856
5857 fi
5858
5859 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5861 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5862
5863
5864
5865
5866
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5868 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5869 if ${lt_cv_ld_reload_flag+:} false; then :
5870   $as_echo_n "(cached) " >&6
5871 else
5872   lt_cv_ld_reload_flag='-r'
5873 fi
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5875 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5876 reload_flag=$lt_cv_ld_reload_flag
5877 case $reload_flag in
5878 "" | " "*) ;;
5879 *) reload_flag=" $reload_flag" ;;
5880 esac
5881 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5882 case $host_os in
5883   cygwin* | mingw* | pw32* | cegcc*)
5884     if test "$GCC" != yes; then
5885       reload_cmds=false
5886     fi
5887     ;;
5888   darwin*)
5889     if test "$GCC" = yes; then
5890       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5891     else
5892       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5893     fi
5894     ;;
5895 esac
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 if test -n "$ac_tool_prefix"; then
5906   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_OBJDUMP+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   if test -n "$OBJDUMP"; then
5914   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921     for ac_exec_ext in '' $ac_executable_extensions; do
5922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928   done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 OBJDUMP=$ac_cv_prog_OBJDUMP
5934 if test -n "$OBJDUMP"; then
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5936 $as_echo "$OBJDUMP" >&6; }
5937 else
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941
5942
5943 fi
5944 if test -z "$ac_cv_prog_OBJDUMP"; then
5945   ac_ct_OBJDUMP=$OBJDUMP
5946   # Extract the first word of "objdump", so it can be a program name with args.
5947 set dummy objdump; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5951   $as_echo_n "(cached) " >&6
5952 else
5953   if test -n "$ac_ct_OBJDUMP"; then
5954   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959   IFS=$as_save_IFS
5960   test -z "$as_dir" && as_dir=.
5961     for ac_exec_ext in '' $ac_executable_extensions; do
5962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965     break 2
5966   fi
5967 done
5968   done
5969 IFS=$as_save_IFS
5970
5971 fi
5972 fi
5973 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5974 if test -n "$ac_ct_OBJDUMP"; then
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5976 $as_echo "$ac_ct_OBJDUMP" >&6; }
5977 else
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981
5982   if test "x$ac_ct_OBJDUMP" = x; then
5983     OBJDUMP="false"
5984   else
5985     case $cross_compiling:$ac_tool_warned in
5986 yes:)
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989 ac_tool_warned=yes ;;
5990 esac
5991     OBJDUMP=$ac_ct_OBJDUMP
5992   fi
5993 else
5994   OBJDUMP="$ac_cv_prog_OBJDUMP"
5995 fi
5996
5997 test -z "$OBJDUMP" && OBJDUMP=objdump
5998
5999
6000
6001
6002
6003
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6005 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6006 if ${lt_cv_deplibs_check_method+:} false; then :
6007   $as_echo_n "(cached) " >&6
6008 else
6009   lt_cv_file_magic_cmd='$MAGIC_CMD'
6010 lt_cv_file_magic_test_file=
6011 lt_cv_deplibs_check_method='unknown'
6012 # Need to set the preceding variable on all platforms that support
6013 # interlibrary dependencies.
6014 # 'none' -- dependencies not supported.
6015 # `unknown' -- same as none, but documents that we really don't know.
6016 # 'pass_all' -- all dependencies passed with no checks.
6017 # 'test_compile' -- check by making test program.
6018 # 'file_magic [[regex]]' -- check by looking for files in library path
6019 # which responds to the $file_magic_cmd with a given extended regex.
6020 # If you have `file' or equivalent on your system and you're not sure
6021 # whether `pass_all' will *always* work, you probably want this one.
6022
6023 case $host_os in
6024 aix[4-9]*)
6025   lt_cv_deplibs_check_method=pass_all
6026   ;;
6027
6028 beos*)
6029   lt_cv_deplibs_check_method=pass_all
6030   ;;
6031
6032 bsdi[45]*)
6033   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6034   lt_cv_file_magic_cmd='/usr/bin/file -L'
6035   lt_cv_file_magic_test_file=/shlib/libc.so
6036   ;;
6037
6038 cygwin*)
6039   # func_win32_libid is a shell function defined in ltmain.sh
6040   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6041   lt_cv_file_magic_cmd='func_win32_libid'
6042   ;;
6043
6044 mingw* | pw32*)
6045   # Base MSYS/MinGW do not provide the 'file' command needed by
6046   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6047   # unless we find 'file', for example because we are cross-compiling.
6048   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6049   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6050     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6051     lt_cv_file_magic_cmd='func_win32_libid'
6052   else
6053     # Keep this pattern in sync with the one in func_win32_libid.
6054     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6055     lt_cv_file_magic_cmd='$OBJDUMP -f'
6056   fi
6057   ;;
6058
6059 cegcc*)
6060   # use the weaker test based on 'objdump'. See mingw*.
6061   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6062   lt_cv_file_magic_cmd='$OBJDUMP -f'
6063   ;;
6064
6065 darwin* | rhapsody*)
6066   lt_cv_deplibs_check_method=pass_all
6067   ;;
6068
6069 freebsd* | dragonfly*)
6070   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6071     case $host_cpu in
6072     i*86 )
6073       # Not sure whether the presence of OpenBSD here was a mistake.
6074       # Let's accept both of them until this is cleared up.
6075       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6076       lt_cv_file_magic_cmd=/usr/bin/file
6077       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6078       ;;
6079     esac
6080   else
6081     lt_cv_deplibs_check_method=pass_all
6082   fi
6083   ;;
6084
6085 haiku*)
6086   lt_cv_deplibs_check_method=pass_all
6087   ;;
6088
6089 hpux10.20* | hpux11*)
6090   lt_cv_file_magic_cmd=/usr/bin/file
6091   case $host_cpu in
6092   ia64*)
6093     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6094     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6095     ;;
6096   hppa*64*)
6097     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6098     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6099     ;;
6100   *)
6101     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6102     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6103     ;;
6104   esac
6105   ;;
6106
6107 interix[3-9]*)
6108   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6109   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6110   ;;
6111
6112 irix5* | irix6* | nonstopux*)
6113   case $LD in
6114   *-32|*"-32 ") libmagic=32-bit;;
6115   *-n32|*"-n32 ") libmagic=N32;;
6116   *-64|*"-64 ") libmagic=64-bit;;
6117   *) libmagic=never-match;;
6118   esac
6119   lt_cv_deplibs_check_method=pass_all
6120   ;;
6121
6122 # This must be glibc/ELF.
6123 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6124   lt_cv_deplibs_check_method=pass_all
6125   ;;
6126
6127 netbsd* | netbsdelf*-gnu)
6128   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6129     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130   else
6131     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6132   fi
6133   ;;
6134
6135 newos6*)
6136   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6137   lt_cv_file_magic_cmd=/usr/bin/file
6138   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6139   ;;
6140
6141 *nto* | *qnx*)
6142   lt_cv_deplibs_check_method=pass_all
6143   ;;
6144
6145 openbsd*)
6146   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6147     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6148   else
6149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150   fi
6151   ;;
6152
6153 osf3* | osf4* | osf5*)
6154   lt_cv_deplibs_check_method=pass_all
6155   ;;
6156
6157 rdos*)
6158   lt_cv_deplibs_check_method=pass_all
6159   ;;
6160
6161 solaris*)
6162   lt_cv_deplibs_check_method=pass_all
6163   ;;
6164
6165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6166   lt_cv_deplibs_check_method=pass_all
6167   ;;
6168
6169 sysv4 | sysv4.3*)
6170   case $host_vendor in
6171   motorola)
6172     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]'
6173     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6174     ;;
6175   ncr)
6176     lt_cv_deplibs_check_method=pass_all
6177     ;;
6178   sequent)
6179     lt_cv_file_magic_cmd='/bin/file'
6180     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6181     ;;
6182   sni)
6183     lt_cv_file_magic_cmd='/bin/file'
6184     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6185     lt_cv_file_magic_test_file=/lib/libc.so
6186     ;;
6187   siemens)
6188     lt_cv_deplibs_check_method=pass_all
6189     ;;
6190   pc)
6191     lt_cv_deplibs_check_method=pass_all
6192     ;;
6193   esac
6194   ;;
6195
6196 tpf*)
6197   lt_cv_deplibs_check_method=pass_all
6198   ;;
6199 esac
6200
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6203 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6204
6205 file_magic_glob=
6206 want_nocaseglob=no
6207 if test "$build" = "$host"; then
6208   case $host_os in
6209   mingw* | pw32*)
6210     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6211       want_nocaseglob=yes
6212     else
6213       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6214     fi
6215     ;;
6216   esac
6217 fi
6218
6219 file_magic_cmd=$lt_cv_file_magic_cmd
6220 deplibs_check_method=$lt_cv_deplibs_check_method
6221 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 if test -n "$ac_tool_prefix"; then
6245   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if ${ac_cv_prog_DLLTOOL+:} false; then :
6250   $as_echo_n "(cached) " >&6
6251 else
6252   if test -n "$DLLTOOL"; then
6253   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260     for ac_exec_ext in '' $ac_executable_extensions; do
6261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267   done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 DLLTOOL=$ac_cv_prog_DLLTOOL
6273 if test -n "$DLLTOOL"; then
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6275 $as_echo "$DLLTOOL" >&6; }
6276 else
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_DLLTOOL"; then
6284   ac_ct_DLLTOOL=$DLLTOOL
6285   # Extract the first word of "dlltool", so it can be a program name with args.
6286 set dummy dlltool; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if test -n "$ac_ct_DLLTOOL"; then
6293   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300     for ac_exec_ext in '' $ac_executable_extensions; do
6301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307   done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6313 if test -n "$ac_ct_DLLTOOL"; then
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6315 $as_echo "$ac_ct_DLLTOOL" >&6; }
6316 else
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321   if test "x$ac_ct_DLLTOOL" = x; then
6322     DLLTOOL="false"
6323   else
6324     case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330     DLLTOOL=$ac_ct_DLLTOOL
6331   fi
6332 else
6333   DLLTOOL="$ac_cv_prog_DLLTOOL"
6334 fi
6335
6336 test -z "$DLLTOOL" && DLLTOOL=dlltool
6337
6338
6339
6340
6341
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6345 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6346 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   lt_cv_sharedlib_from_linklib_cmd='unknown'
6350
6351 case $host_os in
6352 cygwin* | mingw* | pw32* | cegcc*)
6353   # two different shell functions defined in ltmain.sh
6354   # decide which to use based on capabilities of $DLLTOOL
6355   case `$DLLTOOL --help 2>&1` in
6356   *--identify-strict*)
6357     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6358     ;;
6359   *)
6360     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6361     ;;
6362   esac
6363   ;;
6364 *)
6365   # fallback: assume linklib IS sharedlib
6366   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6367   ;;
6368 esac
6369
6370 fi
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6372 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6373 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6374 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6375
6376
6377
6378
6379
6380
6381
6382
6383 if test -n "$ac_tool_prefix"; then
6384   for ac_prog in ar
6385   do
6386     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_AR+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393   if test -n "$AR"; then
6394   ac_cv_prog_AR="$AR" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401     for ac_exec_ext in '' $ac_executable_extensions; do
6402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408   done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 AR=$ac_cv_prog_AR
6414 if test -n "$AR"; then
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6416 $as_echo "$AR" >&6; }
6417 else
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422
6423     test -n "$AR" && break
6424   done
6425 fi
6426 if test -z "$AR"; then
6427   ac_ct_AR=$AR
6428   for ac_prog in ar
6429 do
6430   # Extract the first word of "$ac_prog", so it can be a program name with args.
6431 set dummy $ac_prog; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$ac_ct_AR"; then
6438   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447     ac_cv_prog_ac_ct_AR="$ac_prog"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6458 if test -n "$ac_ct_AR"; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6460 $as_echo "$ac_ct_AR" >&6; }
6461 else
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467   test -n "$ac_ct_AR" && break
6468 done
6469
6470   if test "x$ac_ct_AR" = x; then
6471     AR="false"
6472   else
6473     case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479     AR=$ac_ct_AR
6480   fi
6481 fi
6482
6483 : ${AR=ar}
6484 : ${AR_FLAGS=cru}
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6497 $as_echo_n "checking for archiver @FILE support... " >&6; }
6498 if ${lt_cv_ar_at_file+:} false; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   lt_cv_ar_at_file=no
6502    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h.  */
6504
6505 int
6506 main ()
6507 {
6508
6509   ;
6510   return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514   echo conftest.$ac_objext > conftest.lst
6515       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6516       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6517   (eval $lt_ar_try) 2>&5
6518   ac_status=$?
6519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520   test $ac_status = 0; }
6521       if test "$ac_status" -eq 0; then
6522         # Ensure the archiver fails upon bogus file names.
6523         rm -f conftest.$ac_objext libconftest.a
6524         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6525   (eval $lt_ar_try) 2>&5
6526   ac_status=$?
6527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528   test $ac_status = 0; }
6529         if test "$ac_status" -ne 0; then
6530           lt_cv_ar_at_file=@
6531         fi
6532       fi
6533       rm -f conftest.* libconftest.a
6534
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537
6538 fi
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6540 $as_echo "$lt_cv_ar_at_file" >&6; }
6541
6542 if test "x$lt_cv_ar_at_file" = xno; then
6543   archiver_list_spec=
6544 else
6545   archiver_list_spec=$lt_cv_ar_at_file
6546 fi
6547
6548
6549
6550
6551
6552
6553
6554 if test -n "$ac_tool_prefix"; then
6555   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}strip; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_STRIP+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -n "$STRIP"; then
6563   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570     for ac_exec_ext in '' $ac_executable_extensions; do
6571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577   done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 STRIP=$ac_cv_prog_STRIP
6583 if test -n "$STRIP"; then
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6585 $as_echo "$STRIP" >&6; }
6586 else
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_STRIP"; then
6594   ac_ct_STRIP=$STRIP
6595   # Extract the first word of "strip", so it can be a program name with args.
6596 set dummy strip; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6600   $as_echo_n "(cached) " >&6
6601 else
6602   if test -n "$ac_ct_STRIP"; then
6603   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610     for ac_exec_ext in '' $ac_executable_extensions; do
6611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612     ac_cv_prog_ac_ct_STRIP="strip"
6613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617   done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6623 if test -n "$ac_ct_STRIP"; then
6624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6625 $as_echo "$ac_ct_STRIP" >&6; }
6626 else
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631   if test "x$ac_ct_STRIP" = x; then
6632     STRIP=":"
6633   else
6634     case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640     STRIP=$ac_ct_STRIP
6641   fi
6642 else
6643   STRIP="$ac_cv_prog_STRIP"
6644 fi
6645
6646 test -z "$STRIP" && STRIP=:
6647
6648
6649
6650
6651
6652
6653 if test -n "$ac_tool_prefix"; then
6654   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_RANLIB+:} false; then :
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test -n "$RANLIB"; then
6662   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669     for ac_exec_ext in '' $ac_executable_extensions; do
6670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676   done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 RANLIB=$ac_cv_prog_RANLIB
6682 if test -n "$RANLIB"; then
6683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6684 $as_echo "$RANLIB" >&6; }
6685 else
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690
6691 fi
6692 if test -z "$ac_cv_prog_RANLIB"; then
6693   ac_ct_RANLIB=$RANLIB
6694   # Extract the first word of "ranlib", so it can be a program name with args.
6695 set dummy ranlib; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   if test -n "$ac_ct_RANLIB"; then
6702   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709     for ac_exec_ext in '' $ac_executable_extensions; do
6710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6711     ac_cv_prog_ac_ct_RANLIB="ranlib"
6712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716   done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722 if test -n "$ac_ct_RANLIB"; then
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6724 $as_echo "$ac_ct_RANLIB" >&6; }
6725 else
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730   if test "x$ac_ct_RANLIB" = x; then
6731     RANLIB=":"
6732   else
6733     case $cross_compiling:$ac_tool_warned in
6734 yes:)
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6738 esac
6739     RANLIB=$ac_ct_RANLIB
6740   fi
6741 else
6742   RANLIB="$ac_cv_prog_RANLIB"
6743 fi
6744
6745 test -z "$RANLIB" && RANLIB=:
6746
6747
6748
6749
6750
6751
6752 # Determine commands to create old-style static archives.
6753 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6754 old_postinstall_cmds='chmod 644 $oldlib'
6755 old_postuninstall_cmds=
6756
6757 if test -n "$RANLIB"; then
6758   case $host_os in
6759   openbsd*)
6760     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6761     ;;
6762   *)
6763     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6764     ;;
6765   esac
6766   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6767 fi
6768
6769 case $host_os in
6770   darwin*)
6771     lock_old_archive_extraction=yes ;;
6772   *)
6773     lock_old_archive_extraction=no ;;
6774 esac
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814 # If no C compiler was specified, use CC.
6815 LTCC=${LTCC-"$CC"}
6816
6817 # If no C compiler flags were specified, use CFLAGS.
6818 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6819
6820 # Allow CC to be a program name with arguments.
6821 compiler=$CC
6822
6823
6824 # Check for command to grab the raw symbol name followed by C symbol from nm.
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6826 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6827 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830
6831 # These are sane defaults that work on at least a few old systems.
6832 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6833
6834 # Character class describing NM global symbol codes.
6835 symcode='[BCDEGRST]'
6836
6837 # Regexp to match symbols that can be accessed directly from C.
6838 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6839
6840 # Define system-specific variables.
6841 case $host_os in
6842 aix*)
6843   symcode='[BCDT]'
6844   ;;
6845 cygwin* | mingw* | pw32* | cegcc*)
6846   symcode='[ABCDGISTW]'
6847   ;;
6848 hpux*)
6849   if test "$host_cpu" = ia64; then
6850     symcode='[ABCDEGRST]'
6851   fi
6852   ;;
6853 irix* | nonstopux*)
6854   symcode='[BCDEGRST]'
6855   ;;
6856 osf*)
6857   symcode='[BCDEGQRST]'
6858   ;;
6859 solaris*)
6860   symcode='[BDRT]'
6861   ;;
6862 sco3.2v5*)
6863   symcode='[DT]'
6864   ;;
6865 sysv4.2uw2*)
6866   symcode='[DT]'
6867   ;;
6868 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6869   symcode='[ABDT]'
6870   ;;
6871 sysv4)
6872   symcode='[DFNSTU]'
6873   ;;
6874 esac
6875
6876 # If we're using GNU nm, then use its standard symbol codes.
6877 case `$NM -V 2>&1` in
6878 *GNU* | *'with BFD'*)
6879   symcode='[ABCDGIRSTW]' ;;
6880 esac
6881
6882 # Transform an extracted symbol line into a proper C declaration.
6883 # Some systems (esp. on ia64) link data and code symbols differently,
6884 # so use this general approach.
6885 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6886
6887 # Transform an extracted symbol line into symbol name and symbol address
6888 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6889 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6890
6891 # Handle CRLF in mingw tool chain
6892 opt_cr=
6893 case $build_os in
6894 mingw*)
6895   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6896   ;;
6897 esac
6898
6899 # Try without a prefix underscore, then with it.
6900 for ac_symprfx in "" "_"; do
6901
6902   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6903   symxfrm="\\1 $ac_symprfx\\2 \\2"
6904
6905   # Write the raw and C identifiers.
6906   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6907     # Fake it for dumpbin and say T for any non-static function
6908     # and D for any global variable.
6909     # Also find C++ and __fastcall symbols from MSVC++,
6910     # which start with @ or ?.
6911     lt_cv_sys_global_symbol_pipe="$AWK '"\
6912 "     {last_section=section; section=\$ 3};"\
6913 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6914 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6915 "     \$ 0!~/External *\|/{next};"\
6916 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6917 "     {if(hide[section]) next};"\
6918 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6919 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6920 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6921 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6922 "     ' prfx=^$ac_symprfx"
6923   else
6924     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6925   fi
6926   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6927
6928   # Check to see that the pipe works correctly.
6929   pipe_works=no
6930
6931   rm -f conftest*
6932   cat > conftest.$ac_ext <<_LT_EOF
6933 #ifdef __cplusplus
6934 extern "C" {
6935 #endif
6936 char nm_test_var;
6937 void nm_test_func(void);
6938 void nm_test_func(void){}
6939 #ifdef __cplusplus
6940 }
6941 #endif
6942 int main(){nm_test_var='a';nm_test_func();return(0);}
6943 _LT_EOF
6944
6945   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6946   (eval $ac_compile) 2>&5
6947   ac_status=$?
6948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949   test $ac_status = 0; }; then
6950     # Now try to grab the symbols.
6951     nlist=conftest.nm
6952     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6953   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6954   ac_status=$?
6955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956   test $ac_status = 0; } && test -s "$nlist"; then
6957       # Try sorting and uniquifying the output.
6958       if sort "$nlist" | uniq > "$nlist"T; then
6959         mv -f "$nlist"T "$nlist"
6960       else
6961         rm -f "$nlist"T
6962       fi
6963
6964       # Make sure that we snagged all the symbols we need.
6965       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6966         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6967           cat <<_LT_EOF > conftest.$ac_ext
6968 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6969 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6970 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6971    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6972 # define LT_DLSYM_CONST
6973 #elif defined(__osf__)
6974 /* This system does not cope well with relocations in const data.  */
6975 # define LT_DLSYM_CONST
6976 #else
6977 # define LT_DLSYM_CONST const
6978 #endif
6979
6980 #ifdef __cplusplus
6981 extern "C" {
6982 #endif
6983
6984 _LT_EOF
6985           # Now generate the symbol file.
6986           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6987
6988           cat <<_LT_EOF >> conftest.$ac_ext
6989
6990 /* The mapping between symbol names and symbols.  */
6991 LT_DLSYM_CONST struct {
6992   const char *name;
6993   void       *address;
6994 }
6995 lt__PROGRAM__LTX_preloaded_symbols[] =
6996 {
6997   { "@PROGRAM@", (void *) 0 },
6998 _LT_EOF
6999           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7000           cat <<\_LT_EOF >> conftest.$ac_ext
7001   {0, (void *) 0}
7002 };
7003
7004 /* This works around a problem in FreeBSD linker */
7005 #ifdef FREEBSD_WORKAROUND
7006 static const void *lt_preloaded_setup() {
7007   return lt__PROGRAM__LTX_preloaded_symbols;
7008 }
7009 #endif
7010
7011 #ifdef __cplusplus
7012 }
7013 #endif
7014 _LT_EOF
7015           # Now try linking the two files.
7016           mv conftest.$ac_objext conftstm.$ac_objext
7017           lt_globsym_save_LIBS=$LIBS
7018           lt_globsym_save_CFLAGS=$CFLAGS
7019           LIBS="conftstm.$ac_objext"
7020           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7021           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7022   (eval $ac_link) 2>&5
7023   ac_status=$?
7024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7026             pipe_works=yes
7027           fi
7028           LIBS=$lt_globsym_save_LIBS
7029           CFLAGS=$lt_globsym_save_CFLAGS
7030         else
7031           echo "cannot find nm_test_func in $nlist" >&5
7032         fi
7033       else
7034         echo "cannot find nm_test_var in $nlist" >&5
7035       fi
7036     else
7037       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7038     fi
7039   else
7040     echo "$progname: failed program was:" >&5
7041     cat conftest.$ac_ext >&5
7042   fi
7043   rm -rf conftest* conftst*
7044
7045   # Do not use the global_symbol_pipe unless it works.
7046   if test "$pipe_works" = yes; then
7047     break
7048   else
7049     lt_cv_sys_global_symbol_pipe=
7050   fi
7051 done
7052
7053 fi
7054
7055 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7056   lt_cv_sys_global_symbol_to_cdecl=
7057 fi
7058 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7060 $as_echo "failed" >&6; }
7061 else
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7063 $as_echo "ok" >&6; }
7064 fi
7065
7066 # Response file support.
7067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7068   nm_file_list_spec='@'
7069 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7070   nm_file_list_spec='@'
7071 fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7100 $as_echo_n "checking for sysroot... " >&6; }
7101
7102 # Check whether --with-sysroot was given.
7103 if test "${with_sysroot+set}" = set; then :
7104   withval=$with_sysroot;
7105 else
7106   with_sysroot=no
7107 fi
7108
7109
7110 lt_sysroot=
7111 case ${with_sysroot} in #(
7112  yes)
7113    if test "$GCC" = yes; then
7114      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7115    fi
7116    ;; #(
7117  /*)
7118    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7119    ;; #(
7120  no|'')
7121    ;; #(
7122  *)
7123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7124 $as_echo "${with_sysroot}" >&6; }
7125    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7126    ;;
7127 esac
7128
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7130 $as_echo "${lt_sysroot:-no}" >&6; }
7131
7132
7133
7134
7135
7136 # Check whether --enable-libtool-lock was given.
7137 if test "${enable_libtool_lock+set}" = set; then :
7138   enableval=$enable_libtool_lock;
7139 fi
7140
7141 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7142
7143 # Some flags need to be propagated to the compiler or linker for good
7144 # libtool support.
7145 case $host in
7146 ia64-*-hpux*)
7147   # Find out which ABI we are using.
7148   echo 'int i;' > conftest.$ac_ext
7149   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7150   (eval $ac_compile) 2>&5
7151   ac_status=$?
7152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153   test $ac_status = 0; }; then
7154     case `/usr/bin/file conftest.$ac_objext` in
7155       *ELF-32*)
7156         HPUX_IA64_MODE="32"
7157         ;;
7158       *ELF-64*)
7159         HPUX_IA64_MODE="64"
7160         ;;
7161     esac
7162   fi
7163   rm -rf conftest*
7164   ;;
7165 *-*-irix6*)
7166   # Find out which ABI we are using.
7167   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7168   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7169   (eval $ac_compile) 2>&5
7170   ac_status=$?
7171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172   test $ac_status = 0; }; then
7173     if test "$lt_cv_prog_gnu_ld" = yes; then
7174       case `/usr/bin/file conftest.$ac_objext` in
7175         *32-bit*)
7176           LD="${LD-ld} -melf32bsmip"
7177           ;;
7178         *N32*)
7179           LD="${LD-ld} -melf32bmipn32"
7180           ;;
7181         *64-bit*)
7182           LD="${LD-ld} -melf64bmip"
7183         ;;
7184       esac
7185     else
7186       case `/usr/bin/file conftest.$ac_objext` in
7187         *32-bit*)
7188           LD="${LD-ld} -32"
7189           ;;
7190         *N32*)
7191           LD="${LD-ld} -n32"
7192           ;;
7193         *64-bit*)
7194           LD="${LD-ld} -64"
7195           ;;
7196       esac
7197     fi
7198   fi
7199   rm -rf conftest*
7200   ;;
7201
7202 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7203 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7204   # Find out which ABI we are using.
7205   echo 'int i;' > conftest.$ac_ext
7206   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7207   (eval $ac_compile) 2>&5
7208   ac_status=$?
7209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210   test $ac_status = 0; }; then
7211     case `/usr/bin/file conftest.o` in
7212       *32-bit*)
7213         case $host in
7214           x86_64-*kfreebsd*-gnu)
7215             LD="${LD-ld} -m elf_i386_fbsd"
7216             ;;
7217           x86_64-*linux*)
7218             case `/usr/bin/file conftest.o` in
7219               *x86-64*)
7220                 LD="${LD-ld} -m elf32_x86_64"
7221                 ;;
7222               *)
7223                 LD="${LD-ld} -m elf_i386"
7224                 ;;
7225             esac
7226             ;;
7227           powerpc64le-*)
7228             LD="${LD-ld} -m elf32lppclinux"
7229             ;;
7230           powerpc64-*)
7231             LD="${LD-ld} -m elf32ppclinux"
7232             ;;
7233           s390x-*linux*)
7234             LD="${LD-ld} -m elf_s390"
7235             ;;
7236           sparc64-*linux*)
7237             LD="${LD-ld} -m elf32_sparc"
7238             ;;
7239         esac
7240         ;;
7241       *64-bit*)
7242         case $host in
7243           x86_64-*kfreebsd*-gnu)
7244             LD="${LD-ld} -m elf_x86_64_fbsd"
7245             ;;
7246           x86_64-*linux*)
7247             LD="${LD-ld} -m elf_x86_64"
7248             ;;
7249           powerpcle-*)
7250             LD="${LD-ld} -m elf64lppc"
7251             ;;
7252           powerpc-*)
7253             LD="${LD-ld} -m elf64ppc"
7254             ;;
7255           s390*-*linux*|s390*-*tpf*)
7256             LD="${LD-ld} -m elf64_s390"
7257             ;;
7258           sparc*-*linux*)
7259             LD="${LD-ld} -m elf64_sparc"
7260             ;;
7261         esac
7262         ;;
7263     esac
7264   fi
7265   rm -rf conftest*
7266   ;;
7267
7268 *-*-sco3.2v5*)
7269   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7270   SAVE_CFLAGS="$CFLAGS"
7271   CFLAGS="$CFLAGS -belf"
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7273 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7274 if ${lt_cv_cc_needs_belf+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   ac_ext=c
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282
7283      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h.  */
7285
7286 int
7287 main ()
7288 {
7289
7290   ;
7291   return 0;
7292 }
7293 _ACEOF
7294 if ac_fn_c_try_link "$LINENO"; then :
7295   lt_cv_cc_needs_belf=yes
7296 else
7297   lt_cv_cc_needs_belf=no
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext \
7300     conftest$ac_exeext conftest.$ac_ext
7301      ac_ext=c
7302 ac_cpp='$CPP $CPPFLAGS'
7303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7309 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7310   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7311     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7312     CFLAGS="$SAVE_CFLAGS"
7313   fi
7314   ;;
7315 *-*solaris*)
7316   # Find out which ABI we are using.
7317   echo 'int i;' > conftest.$ac_ext
7318   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7319   (eval $ac_compile) 2>&5
7320   ac_status=$?
7321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322   test $ac_status = 0; }; then
7323     case `/usr/bin/file conftest.o` in
7324     *64-bit*)
7325       case $lt_cv_prog_gnu_ld in
7326       yes*)
7327         case $host in
7328         i?86-*-solaris*)
7329           LD="${LD-ld} -m elf_x86_64"
7330           ;;
7331         sparc*-*-solaris*)
7332           LD="${LD-ld} -m elf64_sparc"
7333           ;;
7334         esac
7335         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7336         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7337           LD="${LD-ld}_sol2"
7338         fi
7339         ;;
7340       *)
7341         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7342           LD="${LD-ld} -64"
7343         fi
7344         ;;
7345       esac
7346       ;;
7347     esac
7348   fi
7349   rm -rf conftest*
7350   ;;
7351 esac
7352
7353 need_locks="$enable_libtool_lock"
7354
7355 if test -n "$ac_tool_prefix"; then
7356   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}mt; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   if test -n "$MANIFEST_TOOL"; then
7364   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371     for ac_exec_ext in '' $ac_executable_extensions; do
7372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378   done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7384 if test -n "$MANIFEST_TOOL"; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7386 $as_echo "$MANIFEST_TOOL" >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 fi
7391
7392
7393 fi
7394 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7395   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7396   # Extract the first word of "mt", so it can be a program name with args.
7397 set dummy mt; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7401   $as_echo_n "(cached) " >&6
7402 else
7403   if test -n "$ac_ct_MANIFEST_TOOL"; then
7404   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411     for ac_exec_ext in '' $ac_executable_extensions; do
7412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418   done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7424 if test -n "$ac_ct_MANIFEST_TOOL"; then
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7426 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7427 else
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7433     MANIFEST_TOOL=":"
7434   else
7435     case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7442   fi
7443 else
7444   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7445 fi
7446
7447 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7449 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7450 if ${lt_cv_path_mainfest_tool+:} false; then :
7451   $as_echo_n "(cached) " >&6
7452 else
7453   lt_cv_path_mainfest_tool=no
7454   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7455   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7456   cat conftest.err >&5
7457   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7458     lt_cv_path_mainfest_tool=yes
7459   fi
7460   rm -f conftest*
7461 fi
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7463 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7464 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7465   MANIFEST_TOOL=:
7466 fi
7467
7468
7469
7470
7471
7472
7473   case $host_os in
7474     rhapsody* | darwin*)
7475     if test -n "$ac_tool_prefix"; then
7476   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   if test -n "$DSYMUTIL"; then
7484   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7504 if test -n "$DSYMUTIL"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7506 $as_echo "$DSYMUTIL" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513 fi
7514 if test -z "$ac_cv_prog_DSYMUTIL"; then
7515   ac_ct_DSYMUTIL=$DSYMUTIL
7516   # Extract the first word of "dsymutil", so it can be a program name with args.
7517 set dummy dsymutil; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523   if test -n "$ac_ct_DSYMUTIL"; then
7524   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529   IFS=$as_save_IFS
7530   test -z "$as_dir" && as_dir=.
7531     for ac_exec_ext in '' $ac_executable_extensions; do
7532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535     break 2
7536   fi
7537 done
7538   done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7544 if test -n "$ac_ct_DSYMUTIL"; then
7545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7546 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7547 else
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552   if test "x$ac_ct_DSYMUTIL" = x; then
7553     DSYMUTIL=":"
7554   else
7555     case $cross_compiling:$ac_tool_warned in
7556 yes:)
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7560 esac
7561     DSYMUTIL=$ac_ct_DSYMUTIL
7562   fi
7563 else
7564   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7565 fi
7566
7567     if test -n "$ac_tool_prefix"; then
7568   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_NMEDIT+:} false; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   if test -n "$NMEDIT"; then
7576   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583     for ac_exec_ext in '' $ac_executable_extensions; do
7584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590   done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 NMEDIT=$ac_cv_prog_NMEDIT
7596 if test -n "$NMEDIT"; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7598 $as_echo "$NMEDIT" >&6; }
7599 else
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 fi
7606 if test -z "$ac_cv_prog_NMEDIT"; then
7607   ac_ct_NMEDIT=$NMEDIT
7608   # Extract the first word of "nmedit", so it can be a program name with args.
7609 set dummy nmedit; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   if test -n "$ac_ct_NMEDIT"; then
7616   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623     for ac_exec_ext in '' $ac_executable_extensions; do
7624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630   done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7636 if test -n "$ac_ct_NMEDIT"; then
7637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7638 $as_echo "$ac_ct_NMEDIT" >&6; }
7639 else
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644   if test "x$ac_ct_NMEDIT" = x; then
7645     NMEDIT=":"
7646   else
7647     case $cross_compiling:$ac_tool_warned in
7648 yes:)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7652 esac
7653     NMEDIT=$ac_ct_NMEDIT
7654   fi
7655 else
7656   NMEDIT="$ac_cv_prog_NMEDIT"
7657 fi
7658
7659     if test -n "$ac_tool_prefix"; then
7660   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_LIPO+:} false; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   if test -n "$LIPO"; then
7668   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673   IFS=$as_save_IFS
7674   test -z "$as_dir" && as_dir=.
7675     for ac_exec_ext in '' $ac_executable_extensions; do
7676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679     break 2
7680   fi
7681 done
7682   done
7683 IFS=$as_save_IFS
7684
7685 fi
7686 fi
7687 LIPO=$ac_cv_prog_LIPO
7688 if test -n "$LIPO"; then
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7690 $as_echo "$LIPO" >&6; }
7691 else
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695
7696
7697 fi
7698 if test -z "$ac_cv_prog_LIPO"; then
7699   ac_ct_LIPO=$LIPO
7700   # Extract the first word of "lipo", so it can be a program name with args.
7701 set dummy lipo; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   if test -n "$ac_ct_LIPO"; then
7708   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715     for ac_exec_ext in '' $ac_executable_extensions; do
7716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7717     ac_cv_prog_ac_ct_LIPO="lipo"
7718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722   done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7728 if test -n "$ac_ct_LIPO"; then
7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7730 $as_echo "$ac_ct_LIPO" >&6; }
7731 else
7732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7734 fi
7735
7736   if test "x$ac_ct_LIPO" = x; then
7737     LIPO=":"
7738   else
7739     case $cross_compiling:$ac_tool_warned in
7740 yes:)
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7744 esac
7745     LIPO=$ac_ct_LIPO
7746   fi
7747 else
7748   LIPO="$ac_cv_prog_LIPO"
7749 fi
7750
7751     if test -n "$ac_tool_prefix"; then
7752   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}otool; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_OTOOL+:} false; then :
7757   $as_echo_n "(cached) " >&6
7758 else
7759   if test -n "$OTOOL"; then
7760   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767     for ac_exec_ext in '' $ac_executable_extensions; do
7768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774   done
7775 IFS=$as_save_IFS
7776
7777 fi
7778 fi
7779 OTOOL=$ac_cv_prog_OTOOL
7780 if test -n "$OTOOL"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7782 $as_echo "$OTOOL" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789 fi
7790 if test -z "$ac_cv_prog_OTOOL"; then
7791   ac_ct_OTOOL=$OTOOL
7792   # Extract the first word of "otool", so it can be a program name with args.
7793 set dummy otool; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   if test -n "$ac_ct_OTOOL"; then
7800   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807     for ac_exec_ext in '' $ac_executable_extensions; do
7808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809     ac_cv_prog_ac_ct_OTOOL="otool"
7810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814   done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7820 if test -n "$ac_ct_OTOOL"; then
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7822 $as_echo "$ac_ct_OTOOL" >&6; }
7823 else
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828   if test "x$ac_ct_OTOOL" = x; then
7829     OTOOL=":"
7830   else
7831     case $cross_compiling:$ac_tool_warned in
7832 yes:)
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7836 esac
7837     OTOOL=$ac_ct_OTOOL
7838   fi
7839 else
7840   OTOOL="$ac_cv_prog_OTOOL"
7841 fi
7842
7843     if test -n "$ac_tool_prefix"; then
7844   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7845 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if ${ac_cv_prog_OTOOL64+:} false; then :
7849   $as_echo_n "(cached) " >&6
7850 else
7851   if test -n "$OTOOL64"; then
7852   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857   IFS=$as_save_IFS
7858   test -z "$as_dir" && as_dir=.
7859     for ac_exec_ext in '' $ac_executable_extensions; do
7860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863     break 2
7864   fi
7865 done
7866   done
7867 IFS=$as_save_IFS
7868
7869 fi
7870 fi
7871 OTOOL64=$ac_cv_prog_OTOOL64
7872 if test -n "$OTOOL64"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7874 $as_echo "$OTOOL64" >&6; }
7875 else
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881 fi
7882 if test -z "$ac_cv_prog_OTOOL64"; then
7883   ac_ct_OTOOL64=$OTOOL64
7884   # Extract the first word of "otool64", so it can be a program name with args.
7885 set dummy otool64; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   if test -n "$ac_ct_OTOOL64"; then
7892   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7893 else
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7896 do
7897   IFS=$as_save_IFS
7898   test -z "$as_dir" && as_dir=.
7899     for ac_exec_ext in '' $ac_executable_extensions; do
7900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901     ac_cv_prog_ac_ct_OTOOL64="otool64"
7902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903     break 2
7904   fi
7905 done
7906   done
7907 IFS=$as_save_IFS
7908
7909 fi
7910 fi
7911 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7912 if test -n "$ac_ct_OTOOL64"; then
7913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7914 $as_echo "$ac_ct_OTOOL64" >&6; }
7915 else
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7918 fi
7919
7920   if test "x$ac_ct_OTOOL64" = x; then
7921     OTOOL64=":"
7922   else
7923     case $cross_compiling:$ac_tool_warned in
7924 yes:)
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7928 esac
7929     OTOOL64=$ac_ct_OTOOL64
7930   fi
7931 else
7932   OTOOL64="$ac_cv_prog_OTOOL64"
7933 fi
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7962 $as_echo_n "checking for -single_module linker flag... " >&6; }
7963 if ${lt_cv_apple_cc_single_mod+:} false; then :
7964   $as_echo_n "(cached) " >&6
7965 else
7966   lt_cv_apple_cc_single_mod=no
7967       if test -z "${LT_MULTI_MODULE}"; then
7968         # By default we will add the -single_module flag. You can override
7969         # by either setting the environment variable LT_MULTI_MODULE
7970         # non-empty at configure time, or by adding -multi_module to the
7971         # link flags.
7972         rm -rf libconftest.dylib*
7973         echo "int foo(void){return 1;}" > conftest.c
7974         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7975 -dynamiclib -Wl,-single_module conftest.c" >&5
7976         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7977           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7978         _lt_result=$?
7979         # If there is a non-empty error log, and "single_module"
7980         # appears in it, assume the flag caused a linker warning
7981         if test -s conftest.err && $GREP single_module conftest.err; then
7982           cat conftest.err >&5
7983         # Otherwise, if the output was created with a 0 exit code from
7984         # the compiler, it worked.
7985         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7986           lt_cv_apple_cc_single_mod=yes
7987         else
7988           cat conftest.err >&5
7989         fi
7990         rm -rf libconftest.dylib*
7991         rm -f conftest.*
7992       fi
7993 fi
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7995 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7996
7997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7998 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7999 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   lt_cv_ld_exported_symbols_list=no
8003       save_LDFLAGS=$LDFLAGS
8004       echo "_main" > conftest.sym
8005       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8006       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h.  */
8008
8009 int
8010 main ()
8011 {
8012
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_link "$LINENO"; then :
8018   lt_cv_ld_exported_symbols_list=yes
8019 else
8020   lt_cv_ld_exported_symbols_list=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext \
8023     conftest$ac_exeext conftest.$ac_ext
8024         LDFLAGS="$save_LDFLAGS"
8025
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8028 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8029
8030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8031 $as_echo_n "checking for -force_load linker flag... " >&6; }
8032 if ${lt_cv_ld_force_load+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   lt_cv_ld_force_load=no
8036       cat > conftest.c << _LT_EOF
8037 int forced_loaded() { return 2;}
8038 _LT_EOF
8039       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8040       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8041       echo "$AR cru libconftest.a conftest.o" >&5
8042       $AR cru libconftest.a conftest.o 2>&5
8043       echo "$RANLIB libconftest.a" >&5
8044       $RANLIB libconftest.a 2>&5
8045       cat > conftest.c << _LT_EOF
8046 int main() { return 0;}
8047 _LT_EOF
8048       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8049       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8050       _lt_result=$?
8051       if test -s conftest.err && $GREP force_load conftest.err; then
8052         cat conftest.err >&5
8053       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8054         lt_cv_ld_force_load=yes
8055       else
8056         cat conftest.err >&5
8057       fi
8058         rm -f conftest.err libconftest.a conftest conftest.c
8059         rm -rf conftest.dSYM
8060
8061 fi
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8063 $as_echo "$lt_cv_ld_force_load" >&6; }
8064     case $host_os in
8065     rhapsody* | darwin1.[012])
8066       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8067     darwin1.*)
8068       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8069     darwin*) # darwin 5.x on
8070       # if running on 10.5 or later, the deployment target defaults
8071       # to the OS version, if on x86, and 10.4, the deployment
8072       # target defaults to 10.4. Don't you love it?
8073       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8074         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8075           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8076         10.[012]*)
8077           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8078         10.*)
8079           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8080       esac
8081     ;;
8082   esac
8083     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8084       _lt_dar_single_mod='$single_module'
8085     fi
8086     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8087       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8088     else
8089       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8090     fi
8091     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8092       _lt_dsymutil='~$DSYMUTIL $lib || :'
8093     else
8094       _lt_dsymutil=
8095     fi
8096     ;;
8097   esac
8098
8099 ac_ext=c
8100 ac_cpp='$CPP $CPPFLAGS'
8101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8105 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8106 # On Suns, sometimes $CPP names a directory.
8107 if test -n "$CPP" && test -d "$CPP"; then
8108   CPP=
8109 fi
8110 if test -z "$CPP"; then
8111   if ${ac_cv_prog_CPP+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114       # Double quotes because CPP needs to be expanded
8115     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8116     do
8117       ac_preproc_ok=false
8118 for ac_c_preproc_warn_flag in '' yes
8119 do
8120   # Use a header file that comes with gcc, so configuring glibc
8121   # with a fresh cross-compiler works.
8122   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8123   # <limits.h> exists even on freestanding compilers.
8124   # On the NeXT, cc -E runs the code through the compiler's parser,
8125   # not just through cpp. "Syntax error" is here to catch this case.
8126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h.  */
8128 #ifdef __STDC__
8129 # include <limits.h>
8130 #else
8131 # include <assert.h>
8132 #endif
8133                      Syntax error
8134 _ACEOF
8135 if ac_fn_c_try_cpp "$LINENO"; then :
8136
8137 else
8138   # Broken: fails on valid input.
8139 continue
8140 fi
8141 rm -f conftest.err conftest.i conftest.$ac_ext
8142
8143   # OK, works on sane cases.  Now check whether nonexistent headers
8144   # can be detected and how.
8145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h.  */
8147 #include <ac_nonexistent.h>
8148 _ACEOF
8149 if ac_fn_c_try_cpp "$LINENO"; then :
8150   # Broken: success on invalid input.
8151 continue
8152 else
8153   # Passes both tests.
8154 ac_preproc_ok=:
8155 break
8156 fi
8157 rm -f conftest.err conftest.i conftest.$ac_ext
8158
8159 done
8160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8161 rm -f conftest.i conftest.err conftest.$ac_ext
8162 if $ac_preproc_ok; then :
8163   break
8164 fi
8165
8166     done
8167     ac_cv_prog_CPP=$CPP
8168
8169 fi
8170   CPP=$ac_cv_prog_CPP
8171 else
8172   ac_cv_prog_CPP=$CPP
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8175 $as_echo "$CPP" >&6; }
8176 ac_preproc_ok=false
8177 for ac_c_preproc_warn_flag in '' yes
8178 do
8179   # Use a header file that comes with gcc, so configuring glibc
8180   # with a fresh cross-compiler works.
8181   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8182   # <limits.h> exists even on freestanding compilers.
8183   # On the NeXT, cc -E runs the code through the compiler's parser,
8184   # not just through cpp. "Syntax error" is here to catch this case.
8185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h.  */
8187 #ifdef __STDC__
8188 # include <limits.h>
8189 #else
8190 # include <assert.h>
8191 #endif
8192                      Syntax error
8193 _ACEOF
8194 if ac_fn_c_try_cpp "$LINENO"; then :
8195
8196 else
8197   # Broken: fails on valid input.
8198 continue
8199 fi
8200 rm -f conftest.err conftest.i conftest.$ac_ext
8201
8202   # OK, works on sane cases.  Now check whether nonexistent headers
8203   # can be detected and how.
8204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h.  */
8206 #include <ac_nonexistent.h>
8207 _ACEOF
8208 if ac_fn_c_try_cpp "$LINENO"; then :
8209   # Broken: success on invalid input.
8210 continue
8211 else
8212   # Passes both tests.
8213 ac_preproc_ok=:
8214 break
8215 fi
8216 rm -f conftest.err conftest.i conftest.$ac_ext
8217
8218 done
8219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8220 rm -f conftest.i conftest.err conftest.$ac_ext
8221 if $ac_preproc_ok; then :
8222
8223 else
8224   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8226 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8227 See \`config.log' for more details" "$LINENO" 5; }
8228 fi
8229
8230 ac_ext=c
8231 ac_cpp='$CPP $CPPFLAGS'
8232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8235
8236
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8238 $as_echo_n "checking for ANSI C header files... " >&6; }
8239 if ${ac_cv_header_stdc+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h.  */
8244 #include <stdlib.h>
8245 #include <stdarg.h>
8246 #include <string.h>
8247 #include <float.h>
8248
8249 int
8250 main ()
8251 {
8252
8253   ;
8254   return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_compile "$LINENO"; then :
8258   ac_cv_header_stdc=yes
8259 else
8260   ac_cv_header_stdc=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263
8264 if test $ac_cv_header_stdc = yes; then
8265   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h.  */
8268 #include <string.h>
8269
8270 _ACEOF
8271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8272   $EGREP "memchr" >/dev/null 2>&1; then :
8273
8274 else
8275   ac_cv_header_stdc=no
8276 fi
8277 rm -f conftest*
8278
8279 fi
8280
8281 if test $ac_cv_header_stdc = yes; then
8282   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h.  */
8285 #include <stdlib.h>
8286
8287 _ACEOF
8288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8289   $EGREP "free" >/dev/null 2>&1; then :
8290
8291 else
8292   ac_cv_header_stdc=no
8293 fi
8294 rm -f conftest*
8295
8296 fi
8297
8298 if test $ac_cv_header_stdc = yes; then
8299   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8300   if test "$cross_compiling" = yes; then :
8301   :
8302 else
8303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h.  */
8305 #include <ctype.h>
8306 #include <stdlib.h>
8307 #if ((' ' & 0x0FF) == 0x020)
8308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8310 #else
8311 # define ISLOWER(c) \
8312                    (('a' <= (c) && (c) <= 'i') \
8313                      || ('j' <= (c) && (c) <= 'r') \
8314                      || ('s' <= (c) && (c) <= 'z'))
8315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8316 #endif
8317
8318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8319 int
8320 main ()
8321 {
8322   int i;
8323   for (i = 0; i < 256; i++)
8324     if (XOR (islower (i), ISLOWER (i))
8325         || toupper (i) != TOUPPER (i))
8326       return 2;
8327   return 0;
8328 }
8329 _ACEOF
8330 if ac_fn_c_try_run "$LINENO"; then :
8331
8332 else
8333   ac_cv_header_stdc=no
8334 fi
8335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8336   conftest.$ac_objext conftest.beam conftest.$ac_ext
8337 fi
8338
8339 fi
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8342 $as_echo "$ac_cv_header_stdc" >&6; }
8343 if test $ac_cv_header_stdc = yes; then
8344
8345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8346
8347 fi
8348
8349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8351                   inttypes.h stdint.h unistd.h
8352 do :
8353   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8355 "
8356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8357   cat >>confdefs.h <<_ACEOF
8358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8359 _ACEOF
8360
8361 fi
8362
8363 done
8364
8365
8366 for ac_header in dlfcn.h
8367 do :
8368   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8369 "
8370 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8371   cat >>confdefs.h <<_ACEOF
8372 #define HAVE_DLFCN_H 1
8373 _ACEOF
8374
8375 fi
8376
8377 done
8378
8379
8380
8381 func_stripname_cnf ()
8382 {
8383   case ${2} in
8384   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8385   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8386   esac
8387 } # func_stripname_cnf
8388
8389
8390
8391
8392
8393 # Set options
8394 enable_win32_dll=yes
8395
8396 case $host in
8397 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8398   if test -n "$ac_tool_prefix"; then
8399   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8400 set dummy ${ac_tool_prefix}as; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_AS+:} false; then :
8404   $as_echo_n "(cached) " >&6
8405 else
8406   if test -n "$AS"; then
8407   ac_cv_prog_AS="$AS" # Let the user override the test.
8408 else
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8411 do
8412   IFS=$as_save_IFS
8413   test -z "$as_dir" && as_dir=.
8414     for ac_exec_ext in '' $ac_executable_extensions; do
8415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8416     ac_cv_prog_AS="${ac_tool_prefix}as"
8417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418     break 2
8419   fi
8420 done
8421   done
8422 IFS=$as_save_IFS
8423
8424 fi
8425 fi
8426 AS=$ac_cv_prog_AS
8427 if test -n "$AS"; then
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8429 $as_echo "$AS" >&6; }
8430 else
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8433 fi
8434
8435
8436 fi
8437 if test -z "$ac_cv_prog_AS"; then
8438   ac_ct_AS=$AS
8439   # Extract the first word of "as", so it can be a program name with args.
8440 set dummy as; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   if test -n "$ac_ct_AS"; then
8447   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8451 do
8452   IFS=$as_save_IFS
8453   test -z "$as_dir" && as_dir=.
8454     for ac_exec_ext in '' $ac_executable_extensions; do
8455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8456     ac_cv_prog_ac_ct_AS="as"
8457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458     break 2
8459   fi
8460 done
8461   done
8462 IFS=$as_save_IFS
8463
8464 fi
8465 fi
8466 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8467 if test -n "$ac_ct_AS"; then
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8469 $as_echo "$ac_ct_AS" >&6; }
8470 else
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474
8475   if test "x$ac_ct_AS" = x; then
8476     AS="false"
8477   else
8478     case $cross_compiling:$ac_tool_warned in
8479 yes:)
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8482 ac_tool_warned=yes ;;
8483 esac
8484     AS=$ac_ct_AS
8485   fi
8486 else
8487   AS="$ac_cv_prog_AS"
8488 fi
8489
8490   if test -n "$ac_tool_prefix"; then
8491   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8492 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_DLLTOOL+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   if test -n "$DLLTOOL"; then
8499   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504   IFS=$as_save_IFS
8505   test -z "$as_dir" && as_dir=.
8506     for ac_exec_ext in '' $ac_executable_extensions; do
8507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510     break 2
8511   fi
8512 done
8513   done
8514 IFS=$as_save_IFS
8515
8516 fi
8517 fi
8518 DLLTOOL=$ac_cv_prog_DLLTOOL
8519 if test -n "$DLLTOOL"; then
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8521 $as_echo "$DLLTOOL" >&6; }
8522 else
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8525 fi
8526
8527
8528 fi
8529 if test -z "$ac_cv_prog_DLLTOOL"; then
8530   ac_ct_DLLTOOL=$DLLTOOL
8531   # Extract the first word of "dlltool", so it can be a program name with args.
8532 set dummy dlltool; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538   if test -n "$ac_ct_DLLTOOL"; then
8539   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8540 else
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8543 do
8544   IFS=$as_save_IFS
8545   test -z "$as_dir" && as_dir=.
8546     for ac_exec_ext in '' $ac_executable_extensions; do
8547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550     break 2
8551   fi
8552 done
8553   done
8554 IFS=$as_save_IFS
8555
8556 fi
8557 fi
8558 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8559 if test -n "$ac_ct_DLLTOOL"; then
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8561 $as_echo "$ac_ct_DLLTOOL" >&6; }
8562 else
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565 fi
8566
8567   if test "x$ac_ct_DLLTOOL" = x; then
8568     DLLTOOL="false"
8569   else
8570     case $cross_compiling:$ac_tool_warned in
8571 yes:)
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8574 ac_tool_warned=yes ;;
8575 esac
8576     DLLTOOL=$ac_ct_DLLTOOL
8577   fi
8578 else
8579   DLLTOOL="$ac_cv_prog_DLLTOOL"
8580 fi
8581
8582   if test -n "$ac_tool_prefix"; then
8583   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8584 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_OBJDUMP+:} false; then :
8588   $as_echo_n "(cached) " >&6
8589 else
8590   if test -n "$OBJDUMP"; then
8591   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596   IFS=$as_save_IFS
8597   test -z "$as_dir" && as_dir=.
8598     for ac_exec_ext in '' $ac_executable_extensions; do
8599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602     break 2
8603   fi
8604 done
8605   done
8606 IFS=$as_save_IFS
8607
8608 fi
8609 fi
8610 OBJDUMP=$ac_cv_prog_OBJDUMP
8611 if test -n "$OBJDUMP"; then
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8613 $as_echo "$OBJDUMP" >&6; }
8614 else
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618
8619
8620 fi
8621 if test -z "$ac_cv_prog_OBJDUMP"; then
8622   ac_ct_OBJDUMP=$OBJDUMP
8623   # Extract the first word of "objdump", so it can be a program name with args.
8624 set dummy objdump; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8628   $as_echo_n "(cached) " >&6
8629 else
8630   if test -n "$ac_ct_OBJDUMP"; then
8631   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636   IFS=$as_save_IFS
8637   test -z "$as_dir" && as_dir=.
8638     for ac_exec_ext in '' $ac_executable_extensions; do
8639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642     break 2
8643   fi
8644 done
8645   done
8646 IFS=$as_save_IFS
8647
8648 fi
8649 fi
8650 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8651 if test -n "$ac_ct_OBJDUMP"; then
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8653 $as_echo "$ac_ct_OBJDUMP" >&6; }
8654 else
8655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8657 fi
8658
8659   if test "x$ac_ct_OBJDUMP" = x; then
8660     OBJDUMP="false"
8661   else
8662     case $cross_compiling:$ac_tool_warned in
8663 yes:)
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned=yes ;;
8667 esac
8668     OBJDUMP=$ac_ct_OBJDUMP
8669   fi
8670 else
8671   OBJDUMP="$ac_cv_prog_OBJDUMP"
8672 fi
8673
8674   ;;
8675 esac
8676
8677 test -z "$AS" && AS=as
8678
8679
8680
8681
8682
8683 test -z "$DLLTOOL" && DLLTOOL=dlltool
8684
8685
8686
8687
8688
8689 test -z "$OBJDUMP" && OBJDUMP=objdump
8690
8691
8692
8693
8694
8695
8696
8697         enable_dlopen=no
8698
8699
8700
8701             # Check whether --enable-shared was given.
8702 if test "${enable_shared+set}" = set; then :
8703   enableval=$enable_shared; p=${PACKAGE-default}
8704     case $enableval in
8705     yes) enable_shared=yes ;;
8706     no) enable_shared=no ;;
8707     *)
8708       enable_shared=no
8709       # Look at the argument we got.  We use all the common list separators.
8710       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8711       for pkg in $enableval; do
8712         IFS="$lt_save_ifs"
8713         if test "X$pkg" = "X$p"; then
8714           enable_shared=yes
8715         fi
8716       done
8717       IFS="$lt_save_ifs"
8718       ;;
8719     esac
8720 else
8721   enable_shared=yes
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734 # Check whether --with-pic was given.
8735 if test "${with_pic+set}" = set; then :
8736   withval=$with_pic; lt_p=${PACKAGE-default}
8737     case $withval in
8738     yes|no) pic_mode=$withval ;;
8739     *)
8740       pic_mode=default
8741       # Look at the argument we got.  We use all the common list separators.
8742       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8743       for lt_pkg in $withval; do
8744         IFS="$lt_save_ifs"
8745         if test "X$lt_pkg" = "X$lt_p"; then
8746           pic_mode=yes
8747         fi
8748       done
8749       IFS="$lt_save_ifs"
8750       ;;
8751     esac
8752 else
8753   pic_mode=default
8754 fi
8755
8756
8757 test -z "$pic_mode" && pic_mode=default
8758
8759
8760
8761
8762
8763
8764
8765   # Check whether --enable-fast-install was given.
8766 if test "${enable_fast_install+set}" = set; then :
8767   enableval=$enable_fast_install; p=${PACKAGE-default}
8768     case $enableval in
8769     yes) enable_fast_install=yes ;;
8770     no) enable_fast_install=no ;;
8771     *)
8772       enable_fast_install=no
8773       # Look at the argument we got.  We use all the common list separators.
8774       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8775       for pkg in $enableval; do
8776         IFS="$lt_save_ifs"
8777         if test "X$pkg" = "X$p"; then
8778           enable_fast_install=yes
8779         fi
8780       done
8781       IFS="$lt_save_ifs"
8782       ;;
8783     esac
8784 else
8785   enable_fast_install=yes
8786 fi
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 # This can be used to rebuild libtool when needed
8799 LIBTOOL_DEPS="$ltmain"
8800
8801 # Always use our own libtool.
8802 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833 test -z "$LN_S" && LN_S="ln -s"
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848 if test -n "${ZSH_VERSION+set}" ; then
8849    setopt NO_GLOB_SUBST
8850 fi
8851
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8853 $as_echo_n "checking for objdir... " >&6; }
8854 if ${lt_cv_objdir+:} false; then :
8855   $as_echo_n "(cached) " >&6
8856 else
8857   rm -f .libs 2>/dev/null
8858 mkdir .libs 2>/dev/null
8859 if test -d .libs; then
8860   lt_cv_objdir=.libs
8861 else
8862   # MS-DOS does not allow filenames that begin with a dot.
8863   lt_cv_objdir=_libs
8864 fi
8865 rmdir .libs 2>/dev/null
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8868 $as_echo "$lt_cv_objdir" >&6; }
8869 objdir=$lt_cv_objdir
8870
8871
8872
8873
8874
8875 cat >>confdefs.h <<_ACEOF
8876 #define LT_OBJDIR "$lt_cv_objdir/"
8877 _ACEOF
8878
8879
8880
8881
8882 case $host_os in
8883 aix3*)
8884   # AIX sometimes has problems with the GCC collect2 program.  For some
8885   # reason, if we set the COLLECT_NAMES environment variable, the problems
8886   # vanish in a puff of smoke.
8887   if test "X${COLLECT_NAMES+set}" != Xset; then
8888     COLLECT_NAMES=
8889     export COLLECT_NAMES
8890   fi
8891   ;;
8892 esac
8893
8894 # Global variables:
8895 ofile=libtool
8896 can_build_shared=yes
8897
8898 # All known linkers require a `.a' archive for static linking (except MSVC,
8899 # which needs '.lib').
8900 libext=a
8901
8902 with_gnu_ld="$lt_cv_prog_gnu_ld"
8903
8904 old_CC="$CC"
8905 old_CFLAGS="$CFLAGS"
8906
8907 # Set sane defaults for various variables
8908 test -z "$CC" && CC=cc
8909 test -z "$LTCC" && LTCC=$CC
8910 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8911 test -z "$LD" && LD=ld
8912 test -z "$ac_objext" && ac_objext=o
8913
8914 for cc_temp in $compiler""; do
8915   case $cc_temp in
8916     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8917     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8918     \-*) ;;
8919     *) break;;
8920   esac
8921 done
8922 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8923
8924
8925 # Only perform the check for file, if the check method requires it
8926 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8927 case $deplibs_check_method in
8928 file_magic*)
8929   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8931 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8932 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8933   $as_echo_n "(cached) " >&6
8934 else
8935   case $MAGIC_CMD in
8936 [\\/*] |  ?:[\\/]*)
8937   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8938   ;;
8939 *)
8940   lt_save_MAGIC_CMD="$MAGIC_CMD"
8941   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8942   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8943   for ac_dir in $ac_dummy; do
8944     IFS="$lt_save_ifs"
8945     test -z "$ac_dir" && ac_dir=.
8946     if test -f $ac_dir/${ac_tool_prefix}file; then
8947       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8948       if test -n "$file_magic_test_file"; then
8949         case $deplibs_check_method in
8950         "file_magic "*)
8951           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8952           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8953           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8954             $EGREP "$file_magic_regex" > /dev/null; then
8955             :
8956           else
8957             cat <<_LT_EOF 1>&2
8958
8959 *** Warning: the command libtool uses to detect shared libraries,
8960 *** $file_magic_cmd, produces output that libtool cannot recognize.
8961 *** The result is that libtool may fail to recognize shared libraries
8962 *** as such.  This will affect the creation of libtool libraries that
8963 *** depend on shared libraries, but programs linked with such libtool
8964 *** libraries will work regardless of this problem.  Nevertheless, you
8965 *** may want to report the problem to your system manager and/or to
8966 *** bug-libtool@gnu.org
8967
8968 _LT_EOF
8969           fi ;;
8970         esac
8971       fi
8972       break
8973     fi
8974   done
8975   IFS="$lt_save_ifs"
8976   MAGIC_CMD="$lt_save_MAGIC_CMD"
8977   ;;
8978 esac
8979 fi
8980
8981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8982 if test -n "$MAGIC_CMD"; then
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8984 $as_echo "$MAGIC_CMD" >&6; }
8985 else
8986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8988 fi
8989
8990
8991
8992
8993
8994 if test -z "$lt_cv_path_MAGIC_CMD"; then
8995   if test -n "$ac_tool_prefix"; then
8996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8997 $as_echo_n "checking for file... " >&6; }
8998 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   case $MAGIC_CMD in
9002 [\\/*] |  ?:[\\/]*)
9003   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9004   ;;
9005 *)
9006   lt_save_MAGIC_CMD="$MAGIC_CMD"
9007   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9008   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9009   for ac_dir in $ac_dummy; do
9010     IFS="$lt_save_ifs"
9011     test -z "$ac_dir" && ac_dir=.
9012     if test -f $ac_dir/file; then
9013       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9014       if test -n "$file_magic_test_file"; then
9015         case $deplibs_check_method in
9016         "file_magic "*)
9017           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9018           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9019           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9020             $EGREP "$file_magic_regex" > /dev/null; then
9021             :
9022           else
9023             cat <<_LT_EOF 1>&2
9024
9025 *** Warning: the command libtool uses to detect shared libraries,
9026 *** $file_magic_cmd, produces output that libtool cannot recognize.
9027 *** The result is that libtool may fail to recognize shared libraries
9028 *** as such.  This will affect the creation of libtool libraries that
9029 *** depend on shared libraries, but programs linked with such libtool
9030 *** libraries will work regardless of this problem.  Nevertheless, you
9031 *** may want to report the problem to your system manager and/or to
9032 *** bug-libtool@gnu.org
9033
9034 _LT_EOF
9035           fi ;;
9036         esac
9037       fi
9038       break
9039     fi
9040   done
9041   IFS="$lt_save_ifs"
9042   MAGIC_CMD="$lt_save_MAGIC_CMD"
9043   ;;
9044 esac
9045 fi
9046
9047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9048 if test -n "$MAGIC_CMD"; then
9049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9050 $as_echo "$MAGIC_CMD" >&6; }
9051 else
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9054 fi
9055
9056
9057   else
9058     MAGIC_CMD=:
9059   fi
9060 fi
9061
9062   fi
9063   ;;
9064 esac
9065
9066 # Use C for the default configuration in the libtool script
9067
9068 lt_save_CC="$CC"
9069 ac_ext=c
9070 ac_cpp='$CPP $CPPFLAGS'
9071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9074
9075
9076 # Source file extension for C test sources.
9077 ac_ext=c
9078
9079 # Object file extension for compiled C test sources.
9080 objext=o
9081 objext=$objext
9082
9083 # Code to be used in simple compile tests
9084 lt_simple_compile_test_code="int some_variable = 0;"
9085
9086 # Code to be used in simple link tests
9087 lt_simple_link_test_code='int main(){return(0);}'
9088
9089
9090
9091
9092
9093
9094
9095 # If no C compiler was specified, use CC.
9096 LTCC=${LTCC-"$CC"}
9097
9098 # If no C compiler flags were specified, use CFLAGS.
9099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9100
9101 # Allow CC to be a program name with arguments.
9102 compiler=$CC
9103
9104 # Save the default compiler, since it gets overwritten when the other
9105 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9106 compiler_DEFAULT=$CC
9107
9108 # save warnings/boilerplate of simple test code
9109 ac_outfile=conftest.$ac_objext
9110 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9111 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9112 _lt_compiler_boilerplate=`cat conftest.err`
9113 $RM conftest*
9114
9115 ac_outfile=conftest.$ac_objext
9116 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9117 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9118 _lt_linker_boilerplate=`cat conftest.err`
9119 $RM -r conftest*
9120
9121
9122 ## CAVEAT EMPTOR:
9123 ## There is no encapsulation within the following macros, do not change
9124 ## the running order or otherwise move them around unless you know exactly
9125 ## what you are doing...
9126 if test -n "$compiler"; then
9127
9128 lt_prog_compiler_no_builtin_flag=
9129
9130 if test "$GCC" = yes; then
9131   case $cc_basename in
9132   nvcc*)
9133     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9134   *)
9135     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9136   esac
9137
9138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9139 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9140 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   lt_cv_prog_compiler_rtti_exceptions=no
9144    ac_outfile=conftest.$ac_objext
9145    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9146    lt_compiler_flag="-fno-rtti -fno-exceptions"
9147    # Insert the option either (1) after the last *FLAGS variable, or
9148    # (2) before a word containing "conftest.", or (3) at the end.
9149    # Note that $ac_compile itself does not contain backslashes and begins
9150    # with a dollar sign (not a hyphen), so the echo should work correctly.
9151    # The option is referenced via a variable to avoid confusing sed.
9152    lt_compile=`echo "$ac_compile" | $SED \
9153    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9155    -e 's:$: $lt_compiler_flag:'`
9156    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9157    (eval "$lt_compile" 2>conftest.err)
9158    ac_status=$?
9159    cat conftest.err >&5
9160    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161    if (exit $ac_status) && test -s "$ac_outfile"; then
9162      # The compiler can only warn and ignore the option if not recognized
9163      # So say no if there are warnings other than the usual output.
9164      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9165      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9166      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9167        lt_cv_prog_compiler_rtti_exceptions=yes
9168      fi
9169    fi
9170    $RM conftest*
9171
9172 fi
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9174 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9175
9176 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9177     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9178 else
9179     :
9180 fi
9181
9182 fi
9183
9184
9185
9186
9187
9188
9189   lt_prog_compiler_wl=
9190 lt_prog_compiler_pic=
9191 lt_prog_compiler_static=
9192
9193
9194   if test "$GCC" = yes; then
9195     lt_prog_compiler_wl='-Wl,'
9196     lt_prog_compiler_static='-static'
9197
9198     case $host_os in
9199       aix*)
9200       # All AIX code is PIC.
9201       if test "$host_cpu" = ia64; then
9202         # AIX 5 now supports IA64 processor
9203         lt_prog_compiler_static='-Bstatic'
9204       fi
9205       ;;
9206
9207     amigaos*)
9208       case $host_cpu in
9209       powerpc)
9210             # see comment about AmigaOS4 .so support
9211             lt_prog_compiler_pic='-fPIC'
9212         ;;
9213       m68k)
9214             # FIXME: we need at least 68020 code to build shared libraries, but
9215             # adding the `-m68020' flag to GCC prevents building anything better,
9216             # like `-m68040'.
9217             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9218         ;;
9219       esac
9220       ;;
9221
9222     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9223       # PIC is the default for these OSes.
9224       ;;
9225
9226     mingw* | cygwin* | pw32* | os2* | cegcc*)
9227       # This hack is so that the source file can tell whether it is being
9228       # built for inclusion in a dll (and should export symbols for example).
9229       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9230       # (--disable-auto-import) libraries
9231       lt_prog_compiler_pic='-DDLL_EXPORT'
9232       ;;
9233
9234     darwin* | rhapsody*)
9235       # PIC is the default on this platform
9236       # Common symbols not allowed in MH_DYLIB files
9237       lt_prog_compiler_pic='-fno-common'
9238       ;;
9239
9240     haiku*)
9241       # PIC is the default for Haiku.
9242       # The "-static" flag exists, but is broken.
9243       lt_prog_compiler_static=
9244       ;;
9245
9246     hpux*)
9247       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9248       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9249       # sets the default TLS model and affects inlining.
9250       case $host_cpu in
9251       hppa*64*)
9252         # +Z the default
9253         ;;
9254       *)
9255         lt_prog_compiler_pic='-fPIC'
9256         ;;
9257       esac
9258       ;;
9259
9260     interix[3-9]*)
9261       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9262       # Instead, we relocate shared libraries at runtime.
9263       ;;
9264
9265     msdosdjgpp*)
9266       # Just because we use GCC doesn't mean we suddenly get shared libraries
9267       # on systems that don't support them.
9268       lt_prog_compiler_can_build_shared=no
9269       enable_shared=no
9270       ;;
9271
9272     *nto* | *qnx*)
9273       # QNX uses GNU C++, but need to define -shared option too, otherwise
9274       # it will coredump.
9275       lt_prog_compiler_pic='-fPIC -shared'
9276       ;;
9277
9278     sysv4*MP*)
9279       if test -d /usr/nec; then
9280         lt_prog_compiler_pic=-Kconform_pic
9281       fi
9282       ;;
9283
9284     *)
9285       lt_prog_compiler_pic='-fPIC'
9286       ;;
9287     esac
9288
9289     case $cc_basename in
9290     nvcc*) # Cuda Compiler Driver 2.2
9291       lt_prog_compiler_wl='-Xlinker '
9292       if test -n "$lt_prog_compiler_pic"; then
9293         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9294       fi
9295       ;;
9296     esac
9297   else
9298     # PORTME Check for flag to pass linker flags through the system compiler.
9299     case $host_os in
9300     aix*)
9301       lt_prog_compiler_wl='-Wl,'
9302       if test "$host_cpu" = ia64; then
9303         # AIX 5 now supports IA64 processor
9304         lt_prog_compiler_static='-Bstatic'
9305       else
9306         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9307       fi
9308       ;;
9309
9310     mingw* | cygwin* | pw32* | os2* | cegcc*)
9311       # This hack is so that the source file can tell whether it is being
9312       # built for inclusion in a dll (and should export symbols for example).
9313       lt_prog_compiler_pic='-DDLL_EXPORT'
9314       ;;
9315
9316     hpux9* | hpux10* | hpux11*)
9317       lt_prog_compiler_wl='-Wl,'
9318       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9319       # not for PA HP-UX.
9320       case $host_cpu in
9321       hppa*64*|ia64*)
9322         # +Z the default
9323         ;;
9324       *)
9325         lt_prog_compiler_pic='+Z'
9326         ;;
9327       esac
9328       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9329       lt_prog_compiler_static='${wl}-a ${wl}archive'
9330       ;;
9331
9332     irix5* | irix6* | nonstopux*)
9333       lt_prog_compiler_wl='-Wl,'
9334       # PIC (with -KPIC) is the default.
9335       lt_prog_compiler_static='-non_shared'
9336       ;;
9337
9338     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9339       case $cc_basename in
9340       # old Intel for x86_64 which still supported -KPIC.
9341       ecc*)
9342         lt_prog_compiler_wl='-Wl,'
9343         lt_prog_compiler_pic='-KPIC'
9344         lt_prog_compiler_static='-static'
9345         ;;
9346       # icc used to be incompatible with GCC.
9347       # ICC 10 doesn't accept -KPIC any more.
9348       icc* | ifort*)
9349         lt_prog_compiler_wl='-Wl,'
9350         lt_prog_compiler_pic='-fPIC'
9351         lt_prog_compiler_static='-static'
9352         ;;
9353       # Lahey Fortran 8.1.
9354       lf95*)
9355         lt_prog_compiler_wl='-Wl,'
9356         lt_prog_compiler_pic='--shared'
9357         lt_prog_compiler_static='--static'
9358         ;;
9359       nagfor*)
9360         # NAG Fortran compiler
9361         lt_prog_compiler_wl='-Wl,-Wl,,'
9362         lt_prog_compiler_pic='-PIC'
9363         lt_prog_compiler_static='-Bstatic'
9364         ;;
9365       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9366         # Portland Group compilers (*not* the Pentium gcc compiler,
9367         # which looks to be a dead project)
9368         lt_prog_compiler_wl='-Wl,'
9369         lt_prog_compiler_pic='-fpic'
9370         lt_prog_compiler_static='-Bstatic'
9371         ;;
9372       ccc*)
9373         lt_prog_compiler_wl='-Wl,'
9374         # All Alpha code is PIC.
9375         lt_prog_compiler_static='-non_shared'
9376         ;;
9377       xl* | bgxl* | bgf* | mpixl*)
9378         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9379         lt_prog_compiler_wl='-Wl,'
9380         lt_prog_compiler_pic='-qpic'
9381         lt_prog_compiler_static='-qstaticlink'
9382         ;;
9383       *)
9384         case `$CC -V 2>&1 | sed 5q` in
9385         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9386           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9387           lt_prog_compiler_pic='-KPIC'
9388           lt_prog_compiler_static='-Bstatic'
9389           lt_prog_compiler_wl=''
9390           ;;
9391         *Sun\ F* | *Sun*Fortran*)
9392           lt_prog_compiler_pic='-KPIC'
9393           lt_prog_compiler_static='-Bstatic'
9394           lt_prog_compiler_wl='-Qoption ld '
9395           ;;
9396         *Sun\ C*)
9397           # Sun C 5.9
9398           lt_prog_compiler_pic='-KPIC'
9399           lt_prog_compiler_static='-Bstatic'
9400           lt_prog_compiler_wl='-Wl,'
9401           ;;
9402         *Intel*\ [CF]*Compiler*)
9403           lt_prog_compiler_wl='-Wl,'
9404           lt_prog_compiler_pic='-fPIC'
9405           lt_prog_compiler_static='-static'
9406           ;;
9407         *Portland\ Group*)
9408           lt_prog_compiler_wl='-Wl,'
9409           lt_prog_compiler_pic='-fpic'
9410           lt_prog_compiler_static='-Bstatic'
9411           ;;
9412         esac
9413         ;;
9414       esac
9415       ;;
9416
9417     newsos6)
9418       lt_prog_compiler_pic='-KPIC'
9419       lt_prog_compiler_static='-Bstatic'
9420       ;;
9421
9422     *nto* | *qnx*)
9423       # QNX uses GNU C++, but need to define -shared option too, otherwise
9424       # it will coredump.
9425       lt_prog_compiler_pic='-fPIC -shared'
9426       ;;
9427
9428     osf3* | osf4* | osf5*)
9429       lt_prog_compiler_wl='-Wl,'
9430       # All OSF/1 code is PIC.
9431       lt_prog_compiler_static='-non_shared'
9432       ;;
9433
9434     rdos*)
9435       lt_prog_compiler_static='-non_shared'
9436       ;;
9437
9438     solaris*)
9439       lt_prog_compiler_pic='-KPIC'
9440       lt_prog_compiler_static='-Bstatic'
9441       case $cc_basename in
9442       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9443         lt_prog_compiler_wl='-Qoption ld ';;
9444       *)
9445         lt_prog_compiler_wl='-Wl,';;
9446       esac
9447       ;;
9448
9449     sunos4*)
9450       lt_prog_compiler_wl='-Qoption ld '
9451       lt_prog_compiler_pic='-PIC'
9452       lt_prog_compiler_static='-Bstatic'
9453       ;;
9454
9455     sysv4 | sysv4.2uw2* | sysv4.3*)
9456       lt_prog_compiler_wl='-Wl,'
9457       lt_prog_compiler_pic='-KPIC'
9458       lt_prog_compiler_static='-Bstatic'
9459       ;;
9460
9461     sysv4*MP*)
9462       if test -d /usr/nec ;then
9463         lt_prog_compiler_pic='-Kconform_pic'
9464         lt_prog_compiler_static='-Bstatic'
9465       fi
9466       ;;
9467
9468     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9469       lt_prog_compiler_wl='-Wl,'
9470       lt_prog_compiler_pic='-KPIC'
9471       lt_prog_compiler_static='-Bstatic'
9472       ;;
9473
9474     unicos*)
9475       lt_prog_compiler_wl='-Wl,'
9476       lt_prog_compiler_can_build_shared=no
9477       ;;
9478
9479     uts4*)
9480       lt_prog_compiler_pic='-pic'
9481       lt_prog_compiler_static='-Bstatic'
9482       ;;
9483
9484     *)
9485       lt_prog_compiler_can_build_shared=no
9486       ;;
9487     esac
9488   fi
9489
9490 case $host_os in
9491   # For platforms which do not support PIC, -DPIC is meaningless:
9492   *djgpp*)
9493     lt_prog_compiler_pic=
9494     ;;
9495   *)
9496     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9497     ;;
9498 esac
9499
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9501 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9502 if ${lt_cv_prog_compiler_pic+:} false; then :
9503   $as_echo_n "(cached) " >&6
9504 else
9505   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9508 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9509 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9510
9511 #
9512 # Check to make sure the PIC flag actually works.
9513 #
9514 if test -n "$lt_prog_compiler_pic"; then
9515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9516 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9517 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9518   $as_echo_n "(cached) " >&6
9519 else
9520   lt_cv_prog_compiler_pic_works=no
9521    ac_outfile=conftest.$ac_objext
9522    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9523    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9524    # Insert the option either (1) after the last *FLAGS variable, or
9525    # (2) before a word containing "conftest.", or (3) at the end.
9526    # Note that $ac_compile itself does not contain backslashes and begins
9527    # with a dollar sign (not a hyphen), so the echo should work correctly.
9528    # The option is referenced via a variable to avoid confusing sed.
9529    lt_compile=`echo "$ac_compile" | $SED \
9530    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9531    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9532    -e 's:$: $lt_compiler_flag:'`
9533    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9534    (eval "$lt_compile" 2>conftest.err)
9535    ac_status=$?
9536    cat conftest.err >&5
9537    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538    if (exit $ac_status) && test -s "$ac_outfile"; then
9539      # The compiler can only warn and ignore the option if not recognized
9540      # So say no if there are warnings other than the usual output.
9541      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9542      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9543      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9544        lt_cv_prog_compiler_pic_works=yes
9545      fi
9546    fi
9547    $RM conftest*
9548
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9551 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9552
9553 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9554     case $lt_prog_compiler_pic in
9555      "" | " "*) ;;
9556      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9557      esac
9558 else
9559     lt_prog_compiler_pic=
9560      lt_prog_compiler_can_build_shared=no
9561 fi
9562
9563 fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575 #
9576 # Check to make sure the static flag actually works.
9577 #
9578 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9580 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9581 if ${lt_cv_prog_compiler_static_works+:} false; then :
9582   $as_echo_n "(cached) " >&6
9583 else
9584   lt_cv_prog_compiler_static_works=no
9585    save_LDFLAGS="$LDFLAGS"
9586    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9587    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9588    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9589      # The linker can only warn and ignore the option if not recognized
9590      # So say no if there are warnings
9591      if test -s conftest.err; then
9592        # Append any errors to the config.log.
9593        cat conftest.err 1>&5
9594        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9595        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9596        if diff conftest.exp conftest.er2 >/dev/null; then
9597          lt_cv_prog_compiler_static_works=yes
9598        fi
9599      else
9600        lt_cv_prog_compiler_static_works=yes
9601      fi
9602    fi
9603    $RM -r conftest*
9604    LDFLAGS="$save_LDFLAGS"
9605
9606 fi
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9608 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9609
9610 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9611     :
9612 else
9613     lt_prog_compiler_static=
9614 fi
9615
9616
9617
9618
9619
9620
9621
9622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9623 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9624 if ${lt_cv_prog_compiler_c_o+:} false; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627   lt_cv_prog_compiler_c_o=no
9628    $RM -r conftest 2>/dev/null
9629    mkdir conftest
9630    cd conftest
9631    mkdir out
9632    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9633
9634    lt_compiler_flag="-o out/conftest2.$ac_objext"
9635    # Insert the option either (1) after the last *FLAGS variable, or
9636    # (2) before a word containing "conftest.", or (3) at the end.
9637    # Note that $ac_compile itself does not contain backslashes and begins
9638    # with a dollar sign (not a hyphen), so the echo should work correctly.
9639    lt_compile=`echo "$ac_compile" | $SED \
9640    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9641    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9642    -e 's:$: $lt_compiler_flag:'`
9643    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9644    (eval "$lt_compile" 2>out/conftest.err)
9645    ac_status=$?
9646    cat out/conftest.err >&5
9647    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9649    then
9650      # The compiler can only warn and ignore the option if not recognized
9651      # So say no if there are warnings
9652      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9653      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9654      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9655        lt_cv_prog_compiler_c_o=yes
9656      fi
9657    fi
9658    chmod u+w . 2>&5
9659    $RM conftest*
9660    # SGI C++ compiler will create directory out/ii_files/ for
9661    # template instantiation
9662    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9663    $RM out/* && rmdir out
9664    cd ..
9665    $RM -r conftest
9666    $RM conftest*
9667
9668 fi
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9670 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9671
9672
9673
9674
9675
9676
9677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9679 if ${lt_cv_prog_compiler_c_o+:} false; then :
9680   $as_echo_n "(cached) " >&6
9681 else
9682   lt_cv_prog_compiler_c_o=no
9683    $RM -r conftest 2>/dev/null
9684    mkdir conftest
9685    cd conftest
9686    mkdir out
9687    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9688
9689    lt_compiler_flag="-o out/conftest2.$ac_objext"
9690    # Insert the option either (1) after the last *FLAGS variable, or
9691    # (2) before a word containing "conftest.", or (3) at the end.
9692    # Note that $ac_compile itself does not contain backslashes and begins
9693    # with a dollar sign (not a hyphen), so the echo should work correctly.
9694    lt_compile=`echo "$ac_compile" | $SED \
9695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9697    -e 's:$: $lt_compiler_flag:'`
9698    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9699    (eval "$lt_compile" 2>out/conftest.err)
9700    ac_status=$?
9701    cat out/conftest.err >&5
9702    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9704    then
9705      # The compiler can only warn and ignore the option if not recognized
9706      # So say no if there are warnings
9707      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9708      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9709      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9710        lt_cv_prog_compiler_c_o=yes
9711      fi
9712    fi
9713    chmod u+w . 2>&5
9714    $RM conftest*
9715    # SGI C++ compiler will create directory out/ii_files/ for
9716    # template instantiation
9717    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9718    $RM out/* && rmdir out
9719    cd ..
9720    $RM -r conftest
9721    $RM conftest*
9722
9723 fi
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9725 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9726
9727
9728
9729
9730 hard_links="nottested"
9731 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9732   # do not overwrite the value of need_locks provided by the user
9733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9734 $as_echo_n "checking if we can lock with hard links... " >&6; }
9735   hard_links=yes
9736   $RM conftest*
9737   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9738   touch conftest.a
9739   ln conftest.a conftest.b 2>&5 || hard_links=no
9740   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9742 $as_echo "$hard_links" >&6; }
9743   if test "$hard_links" = no; then
9744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9745 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9746     need_locks=warn
9747   fi
9748 else
9749   need_locks=no
9750 fi
9751
9752
9753
9754
9755
9756
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9758 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9759
9760   runpath_var=
9761   allow_undefined_flag=
9762   always_export_symbols=no
9763   archive_cmds=
9764   archive_expsym_cmds=
9765   compiler_needs_object=no
9766   enable_shared_with_static_runtimes=no
9767   export_dynamic_flag_spec=
9768   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9769   hardcode_automatic=no
9770   hardcode_direct=no
9771   hardcode_direct_absolute=no
9772   hardcode_libdir_flag_spec=
9773   hardcode_libdir_separator=
9774   hardcode_minus_L=no
9775   hardcode_shlibpath_var=unsupported
9776   inherit_rpath=no
9777   link_all_deplibs=unknown
9778   module_cmds=
9779   module_expsym_cmds=
9780   old_archive_from_new_cmds=
9781   old_archive_from_expsyms_cmds=
9782   thread_safe_flag_spec=
9783   whole_archive_flag_spec=
9784   # include_expsyms should be a list of space-separated symbols to be *always*
9785   # included in the symbol list
9786   include_expsyms=
9787   # exclude_expsyms can be an extended regexp of symbols to exclude
9788   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9789   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9790   # as well as any symbol that contains `d'.
9791   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9792   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9793   # platforms (ab)use it in PIC code, but their linkers get confused if
9794   # the symbol is explicitly referenced.  Since portable code cannot
9795   # rely on this symbol name, it's probably fine to never include it in
9796   # preloaded symbol tables.
9797   # Exclude shared library initialization/finalization symbols.
9798   extract_expsyms_cmds=
9799
9800   case $host_os in
9801   cygwin* | mingw* | pw32* | cegcc*)
9802     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9803     # When not using gcc, we currently assume that we are using
9804     # Microsoft Visual C++.
9805     if test "$GCC" != yes; then
9806       with_gnu_ld=no
9807     fi
9808     ;;
9809   interix*)
9810     # we just hope/assume this is gcc and not c89 (= MSVC++)
9811     with_gnu_ld=yes
9812     ;;
9813   openbsd*)
9814     with_gnu_ld=no
9815     ;;
9816   linux* | k*bsd*-gnu | gnu*)
9817     link_all_deplibs=no
9818     ;;
9819   esac
9820
9821   ld_shlibs=yes
9822
9823   # On some targets, GNU ld is compatible enough with the native linker
9824   # that we're better off using the native interface for both.
9825   lt_use_gnu_ld_interface=no
9826   if test "$with_gnu_ld" = yes; then
9827     case $host_os in
9828       aix*)
9829         # The AIX port of GNU ld has always aspired to compatibility
9830         # with the native linker.  However, as the warning in the GNU ld
9831         # block says, versions before 2.19.5* couldn't really create working
9832         # shared libraries, regardless of the interface used.
9833         case `$LD -v 2>&1` in
9834           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9835           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9836           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9837           *)
9838             lt_use_gnu_ld_interface=yes
9839             ;;
9840         esac
9841         ;;
9842       *)
9843         lt_use_gnu_ld_interface=yes
9844         ;;
9845     esac
9846   fi
9847
9848   if test "$lt_use_gnu_ld_interface" = yes; then
9849     # If archive_cmds runs LD, not CC, wlarc should be empty
9850     wlarc='${wl}'
9851
9852     # Set some defaults for GNU ld with shared library support. These
9853     # are reset later if shared libraries are not supported. Putting them
9854     # here allows them to be overridden if necessary.
9855     runpath_var=LD_RUN_PATH
9856     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9857     export_dynamic_flag_spec='${wl}--export-dynamic'
9858     # ancient GNU ld didn't support --whole-archive et. al.
9859     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9860       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9861     else
9862       whole_archive_flag_spec=
9863     fi
9864     supports_anon_versioning=no
9865     case `$LD -v 2>&1` in
9866       *GNU\ gold*) supports_anon_versioning=yes ;;
9867       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9868       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9869       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9870       *\ 2.11.*) ;; # other 2.11 versions
9871       *) supports_anon_versioning=yes ;;
9872     esac
9873
9874     # See if GNU ld supports shared libraries.
9875     case $host_os in
9876     aix[3-9]*)
9877       # On AIX/PPC, the GNU linker is very broken
9878       if test "$host_cpu" != ia64; then
9879         ld_shlibs=no
9880         cat <<_LT_EOF 1>&2
9881
9882 *** Warning: the GNU linker, at least up to release 2.19, is reported
9883 *** to be unable to reliably create shared libraries on AIX.
9884 *** Therefore, libtool is disabling shared libraries support.  If you
9885 *** really care for shared libraries, you may want to install binutils
9886 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9887 *** You will then need to restart the configuration process.
9888
9889 _LT_EOF
9890       fi
9891       ;;
9892
9893     amigaos*)
9894       case $host_cpu in
9895       powerpc)
9896             # see comment about AmigaOS4 .so support
9897             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9898             archive_expsym_cmds=''
9899         ;;
9900       m68k)
9901             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)'
9902             hardcode_libdir_flag_spec='-L$libdir'
9903             hardcode_minus_L=yes
9904         ;;
9905       esac
9906       ;;
9907
9908     beos*)
9909       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9910         allow_undefined_flag=unsupported
9911         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9912         # support --undefined.  This deserves some investigation.  FIXME
9913         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914       else
9915         ld_shlibs=no
9916       fi
9917       ;;
9918
9919     cygwin* | mingw* | pw32* | cegcc*)
9920       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9921       # as there is no search path for DLLs.
9922       hardcode_libdir_flag_spec='-L$libdir'
9923       export_dynamic_flag_spec='${wl}--export-all-symbols'
9924       allow_undefined_flag=unsupported
9925       always_export_symbols=no
9926       enable_shared_with_static_runtimes=yes
9927       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9928       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9929
9930       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9931         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9932         # If the export-symbols file already is a .def file (1st line
9933         # is EXPORTS), use it as is; otherwise, prepend...
9934         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9935           cp $export_symbols $output_objdir/$soname.def;
9936         else
9937           echo EXPORTS > $output_objdir/$soname.def;
9938           cat $export_symbols >> $output_objdir/$soname.def;
9939         fi~
9940         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9941       else
9942         ld_shlibs=no
9943       fi
9944       ;;
9945
9946     haiku*)
9947       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9948       link_all_deplibs=yes
9949       ;;
9950
9951     interix[3-9]*)
9952       hardcode_direct=no
9953       hardcode_shlibpath_var=no
9954       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9955       export_dynamic_flag_spec='${wl}-E'
9956       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9957       # Instead, shared libraries are loaded at an image base (0x10000000 by
9958       # default) and relocated if they conflict, which is a slow very memory
9959       # consuming and fragmenting process.  To avoid this, we pick a random,
9960       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9961       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9962       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9963       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'
9964       ;;
9965
9966     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9967       tmp_diet=no
9968       if test "$host_os" = linux-dietlibc; then
9969         case $cc_basename in
9970           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9971         esac
9972       fi
9973       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9974          && test "$tmp_diet" = no
9975       then
9976         tmp_addflag=' $pic_flag'
9977         tmp_sharedflag='-shared'
9978         case $cc_basename,$host_cpu in
9979         pgcc*)                          # Portland Group C compiler
9980           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9981           tmp_addflag=' $pic_flag'
9982           ;;
9983         pgf77* | pgf90* | pgf95* | pgfortran*)
9984                                         # Portland Group f77 and f90 compilers
9985           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9986           tmp_addflag=' $pic_flag -Mnomain' ;;
9987         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9988           tmp_addflag=' -i_dynamic' ;;
9989         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9990           tmp_addflag=' -i_dynamic -nofor_main' ;;
9991         ifc* | ifort*)                  # Intel Fortran compiler
9992           tmp_addflag=' -nofor_main' ;;
9993         lf95*)                          # Lahey Fortran 8.1
9994           whole_archive_flag_spec=
9995           tmp_sharedflag='--shared' ;;
9996         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9997           tmp_sharedflag='-qmkshrobj'
9998           tmp_addflag= ;;
9999         nvcc*)  # Cuda Compiler Driver 2.2
10000           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10001           compiler_needs_object=yes
10002           ;;
10003         esac
10004         case `$CC -V 2>&1 | sed 5q` in
10005         *Sun\ C*)                       # Sun C 5.9
10006           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10007           compiler_needs_object=yes
10008           tmp_sharedflag='-G' ;;
10009         *Sun\ F*)                       # Sun Fortran 8.3
10010           tmp_sharedflag='-G' ;;
10011         esac
10012         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10013
10014         if test "x$supports_anon_versioning" = xyes; then
10015           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10016             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10017             echo "local: *; };" >> $output_objdir/$libname.ver~
10018             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10019         fi
10020
10021         case $cc_basename in
10022         xlf* | bgf* | bgxlf* | mpixlf*)
10023           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10024           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10025           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10027           if test "x$supports_anon_versioning" = xyes; then
10028             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10029               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10030               echo "local: *; };" >> $output_objdir/$libname.ver~
10031               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10032           fi
10033           ;;
10034         esac
10035       else
10036         ld_shlibs=no
10037       fi
10038       ;;
10039
10040     netbsd* | netbsdelf*-gnu)
10041       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10042         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10043         wlarc=
10044       else
10045         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10046         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10047       fi
10048       ;;
10049
10050     solaris*)
10051       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10052         ld_shlibs=no
10053         cat <<_LT_EOF 1>&2
10054
10055 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10056 *** create shared libraries on Solaris systems.  Therefore, libtool
10057 *** is disabling shared libraries support.  We urge you to upgrade GNU
10058 *** binutils to release 2.9.1 or newer.  Another option is to modify
10059 *** your PATH or compiler configuration so that the native linker is
10060 *** used, and then restart.
10061
10062 _LT_EOF
10063       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10064         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10065         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10066       else
10067         ld_shlibs=no
10068       fi
10069       ;;
10070
10071     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10072       case `$LD -v 2>&1` in
10073         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10074         ld_shlibs=no
10075         cat <<_LT_EOF 1>&2
10076
10077 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10078 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10079 *** is disabling shared libraries support.  We urge you to upgrade GNU
10080 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10081 *** your PATH or compiler configuration so that the native linker is
10082 *** used, and then restart.
10083
10084 _LT_EOF
10085         ;;
10086         *)
10087           # For security reasons, it is highly recommended that you always
10088           # use absolute paths for naming shared libraries, and exclude the
10089           # DT_RUNPATH tag from executables and libraries.  But doing so
10090           # requires that you compile everything twice, which is a pain.
10091           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10092             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10093             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10095           else
10096             ld_shlibs=no
10097           fi
10098         ;;
10099       esac
10100       ;;
10101
10102     sunos4*)
10103       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10104       wlarc=
10105       hardcode_direct=yes
10106       hardcode_shlibpath_var=no
10107       ;;
10108
10109     *)
10110       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10111         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10113       else
10114         ld_shlibs=no
10115       fi
10116       ;;
10117     esac
10118
10119     if test "$ld_shlibs" = no; then
10120       runpath_var=
10121       hardcode_libdir_flag_spec=
10122       export_dynamic_flag_spec=
10123       whole_archive_flag_spec=
10124     fi
10125   else
10126     # PORTME fill in a description of your system's linker (not GNU ld)
10127     case $host_os in
10128     aix3*)
10129       allow_undefined_flag=unsupported
10130       always_export_symbols=yes
10131       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'
10132       # Note: this linker hardcodes the directories in LIBPATH if there
10133       # are no directories specified by -L.
10134       hardcode_minus_L=yes
10135       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10136         # Neither direct hardcoding nor static linking is supported with a
10137         # broken collect2.
10138         hardcode_direct=unsupported
10139       fi
10140       ;;
10141
10142     aix[4-9]*)
10143       if test "$host_cpu" = ia64; then
10144         # On IA64, the linker does run time linking by default, so we don't
10145         # have to do anything special.
10146         aix_use_runtimelinking=no
10147         exp_sym_flag='-Bexport'
10148         no_entry_flag=""
10149       else
10150         # If we're using GNU nm, then we don't want the "-C" option.
10151         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10152         # Also, AIX nm treats weak defined symbols like other global
10153         # defined symbols, whereas GNU nm marks them as "W".
10154         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10155           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10156         else
10157           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'
10158         fi
10159         aix_use_runtimelinking=no
10160
10161         # Test if we are trying to use run time linking or normal
10162         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10163         # need to do runtime linking.
10164         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10165           for ld_flag in $LDFLAGS; do
10166           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10167             aix_use_runtimelinking=yes
10168             break
10169           fi
10170           done
10171           ;;
10172         esac
10173
10174         exp_sym_flag='-bexport'
10175         no_entry_flag='-bnoentry'
10176       fi
10177
10178       # When large executables or shared objects are built, AIX ld can
10179       # have problems creating the table of contents.  If linking a library
10180       # or program results in "error TOC overflow" add -mminimal-toc to
10181       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10182       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10183
10184       archive_cmds=''
10185       hardcode_direct=yes
10186       hardcode_direct_absolute=yes
10187       hardcode_libdir_separator=':'
10188       link_all_deplibs=yes
10189       file_list_spec='${wl}-f,'
10190
10191       if test "$GCC" = yes; then
10192         case $host_os in aix4.[012]|aix4.[012].*)
10193         # We only want to do this on AIX 4.2 and lower, the check
10194         # below for broken collect2 doesn't work under 4.3+
10195           collect2name=`${CC} -print-prog-name=collect2`
10196           if test -f "$collect2name" &&
10197            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10198           then
10199           # We have reworked collect2
10200           :
10201           else
10202           # We have old collect2
10203           hardcode_direct=unsupported
10204           # It fails to find uninstalled libraries when the uninstalled
10205           # path is not listed in the libpath.  Setting hardcode_minus_L
10206           # to unsupported forces relinking
10207           hardcode_minus_L=yes
10208           hardcode_libdir_flag_spec='-L$libdir'
10209           hardcode_libdir_separator=
10210           fi
10211           ;;
10212         esac
10213         shared_flag='-shared'
10214         if test "$aix_use_runtimelinking" = yes; then
10215           shared_flag="$shared_flag "'${wl}-G'
10216         fi
10217         link_all_deplibs=no
10218       else
10219         # not using gcc
10220         if test "$host_cpu" = ia64; then
10221         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10222         # chokes on -Wl,-G. The following line is correct:
10223           shared_flag='-G'
10224         else
10225           if test "$aix_use_runtimelinking" = yes; then
10226             shared_flag='${wl}-G'
10227           else
10228             shared_flag='${wl}-bM:SRE'
10229           fi
10230         fi
10231       fi
10232
10233       export_dynamic_flag_spec='${wl}-bexpall'
10234       # It seems that -bexpall does not export symbols beginning with
10235       # underscore (_), so it is better to generate a list of symbols to export.
10236       always_export_symbols=yes
10237       if test "$aix_use_runtimelinking" = yes; then
10238         # Warning - without using the other runtime loading flags (-brtl),
10239         # -berok will link without error, but may produce a broken library.
10240         allow_undefined_flag='-berok'
10241         # Determine the default libpath from the value encoded in an
10242         # empty executable.
10243         if test "${lt_cv_aix_libpath+set}" = set; then
10244   aix_libpath=$lt_cv_aix_libpath
10245 else
10246   if ${lt_cv_aix_libpath_+:} false; then :
10247   $as_echo_n "(cached) " >&6
10248 else
10249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h.  */
10251
10252 int
10253 main ()
10254 {
10255
10256   ;
10257   return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261
10262   lt_aix_libpath_sed='
10263       /Import File Strings/,/^$/ {
10264           /^0/ {
10265               s/^0  *\([^ ]*\) *$/\1/
10266               p
10267           }
10268       }'
10269   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10270   # Check for a 64-bit object if we didn't find anything.
10271   if test -z "$lt_cv_aix_libpath_"; then
10272     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10273   fi
10274 fi
10275 rm -f core conftest.err conftest.$ac_objext \
10276     conftest$ac_exeext conftest.$ac_ext
10277   if test -z "$lt_cv_aix_libpath_"; then
10278     lt_cv_aix_libpath_="/usr/lib:/lib"
10279   fi
10280
10281 fi
10282
10283   aix_libpath=$lt_cv_aix_libpath_
10284 fi
10285
10286         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10287         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10288       else
10289         if test "$host_cpu" = ia64; then
10290           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10291           allow_undefined_flag="-z nodefs"
10292           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"
10293         else
10294          # Determine the default libpath from the value encoded in an
10295          # empty executable.
10296          if test "${lt_cv_aix_libpath+set}" = set; then
10297   aix_libpath=$lt_cv_aix_libpath
10298 else
10299   if ${lt_cv_aix_libpath_+:} false; then :
10300   $as_echo_n "(cached) " >&6
10301 else
10302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h.  */
10304
10305 int
10306 main ()
10307 {
10308
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314
10315   lt_aix_libpath_sed='
10316       /Import File Strings/,/^$/ {
10317           /^0/ {
10318               s/^0  *\([^ ]*\) *$/\1/
10319               p
10320           }
10321       }'
10322   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10323   # Check for a 64-bit object if we didn't find anything.
10324   if test -z "$lt_cv_aix_libpath_"; then
10325     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10326   fi
10327 fi
10328 rm -f core conftest.err conftest.$ac_objext \
10329     conftest$ac_exeext conftest.$ac_ext
10330   if test -z "$lt_cv_aix_libpath_"; then
10331     lt_cv_aix_libpath_="/usr/lib:/lib"
10332   fi
10333
10334 fi
10335
10336   aix_libpath=$lt_cv_aix_libpath_
10337 fi
10338
10339          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10340           # Warning - without using the other run time loading flags,
10341           # -berok will link without error, but may produce a broken library.
10342           no_undefined_flag=' ${wl}-bernotok'
10343           allow_undefined_flag=' ${wl}-berok'
10344           if test "$with_gnu_ld" = yes; then
10345             # We only use this code for GNU lds that support --whole-archive.
10346             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10347           else
10348             # Exported symbols can be pulled into shared objects from archives
10349             whole_archive_flag_spec='$convenience'
10350           fi
10351           archive_cmds_need_lc=yes
10352           # This is similar to how AIX traditionally builds its shared libraries.
10353           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'
10354         fi
10355       fi
10356       ;;
10357
10358     amigaos*)
10359       case $host_cpu in
10360       powerpc)
10361             # see comment about AmigaOS4 .so support
10362             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10363             archive_expsym_cmds=''
10364         ;;
10365       m68k)
10366             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)'
10367             hardcode_libdir_flag_spec='-L$libdir'
10368             hardcode_minus_L=yes
10369         ;;
10370       esac
10371       ;;
10372
10373     bsdi[45]*)
10374       export_dynamic_flag_spec=-rdynamic
10375       ;;
10376
10377     cygwin* | mingw* | pw32* | cegcc*)
10378       # When not using gcc, we currently assume that we are using
10379       # Microsoft Visual C++.
10380       # hardcode_libdir_flag_spec is actually meaningless, as there is
10381       # no search path for DLLs.
10382       case $cc_basename in
10383       cl*)
10384         # Native MSVC
10385         hardcode_libdir_flag_spec=' '
10386         allow_undefined_flag=unsupported
10387         always_export_symbols=yes
10388         file_list_spec='@'
10389         # Tell ltmain to make .lib files, not .a files.
10390         libext=lib
10391         # Tell ltmain to make .dll files, not .so files.
10392         shrext_cmds=".dll"
10393         # FIXME: Setting linknames here is a bad hack.
10394         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10395         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10396             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10397           else
10398             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10399           fi~
10400           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10401           linknames='
10402         # The linker will not automatically build a static lib if we build a DLL.
10403         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10404         enable_shared_with_static_runtimes=yes
10405         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10406         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10407         # Don't use ranlib
10408         old_postinstall_cmds='chmod 644 $oldlib'
10409         postlink_cmds='lt_outputfile="@OUTPUT@"~
10410           lt_tool_outputfile="@TOOL_OUTPUT@"~
10411           case $lt_outputfile in
10412             *.exe|*.EXE) ;;
10413             *)
10414               lt_outputfile="$lt_outputfile.exe"
10415               lt_tool_outputfile="$lt_tool_outputfile.exe"
10416               ;;
10417           esac~
10418           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10419             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10420             $RM "$lt_outputfile.manifest";
10421           fi'
10422         ;;
10423       *)
10424         # Assume MSVC wrapper
10425         hardcode_libdir_flag_spec=' '
10426         allow_undefined_flag=unsupported
10427         # Tell ltmain to make .lib files, not .a files.
10428         libext=lib
10429         # Tell ltmain to make .dll files, not .so files.
10430         shrext_cmds=".dll"
10431         # FIXME: Setting linknames here is a bad hack.
10432         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10433         # The linker will automatically build a .lib file if we build a DLL.
10434         old_archive_from_new_cmds='true'
10435         # FIXME: Should let the user specify the lib program.
10436         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10437         enable_shared_with_static_runtimes=yes
10438         ;;
10439       esac
10440       ;;
10441
10442     darwin* | rhapsody*)
10443
10444
10445   archive_cmds_need_lc=no
10446   hardcode_direct=no
10447   hardcode_automatic=yes
10448   hardcode_shlibpath_var=unsupported
10449   if test "$lt_cv_ld_force_load" = "yes"; then
10450     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10451
10452   else
10453     whole_archive_flag_spec=''
10454   fi
10455   link_all_deplibs=yes
10456   allow_undefined_flag="$_lt_dar_allow_undefined"
10457   case $cc_basename in
10458      ifort*) _lt_dar_can_shared=yes ;;
10459      *) _lt_dar_can_shared=$GCC ;;
10460   esac
10461   if test "$_lt_dar_can_shared" = "yes"; then
10462     output_verbose_link_cmd=func_echo_all
10463     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10464     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10465     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10466     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10467
10468   else
10469   ld_shlibs=no
10470   fi
10471
10472       ;;
10473
10474     dgux*)
10475       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476       hardcode_libdir_flag_spec='-L$libdir'
10477       hardcode_shlibpath_var=no
10478       ;;
10479
10480     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10481     # support.  Future versions do this automatically, but an explicit c++rt0.o
10482     # does not break anything, and helps significantly (at the cost of a little
10483     # extra space).
10484     freebsd2.2*)
10485       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10486       hardcode_libdir_flag_spec='-R$libdir'
10487       hardcode_direct=yes
10488       hardcode_shlibpath_var=no
10489       ;;
10490
10491     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10492     freebsd2.*)
10493       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10494       hardcode_direct=yes
10495       hardcode_minus_L=yes
10496       hardcode_shlibpath_var=no
10497       ;;
10498
10499     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10500     freebsd* | dragonfly*)
10501       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10502       hardcode_libdir_flag_spec='-R$libdir'
10503       hardcode_direct=yes
10504       hardcode_shlibpath_var=no
10505       ;;
10506
10507     hpux9*)
10508       if test "$GCC" = yes; then
10509         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10510       else
10511         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'
10512       fi
10513       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10514       hardcode_libdir_separator=:
10515       hardcode_direct=yes
10516
10517       # hardcode_minus_L: Not really in the search PATH,
10518       # but as the default location of the library.
10519       hardcode_minus_L=yes
10520       export_dynamic_flag_spec='${wl}-E'
10521       ;;
10522
10523     hpux10*)
10524       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10525         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10526       else
10527         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10528       fi
10529       if test "$with_gnu_ld" = no; then
10530         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10531         hardcode_libdir_separator=:
10532         hardcode_direct=yes
10533         hardcode_direct_absolute=yes
10534         export_dynamic_flag_spec='${wl}-E'
10535         # hardcode_minus_L: Not really in the search PATH,
10536         # but as the default location of the library.
10537         hardcode_minus_L=yes
10538       fi
10539       ;;
10540
10541     hpux11*)
10542       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10543         case $host_cpu in
10544         hppa*64*)
10545           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10546           ;;
10547         ia64*)
10548           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10549           ;;
10550         *)
10551           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10552           ;;
10553         esac
10554       else
10555         case $host_cpu in
10556         hppa*64*)
10557           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10558           ;;
10559         ia64*)
10560           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10561           ;;
10562         *)
10563
10564           # Older versions of the 11.00 compiler do not understand -b yet
10565           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10566           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10567 $as_echo_n "checking if $CC understands -b... " >&6; }
10568 if ${lt_cv_prog_compiler__b+:} false; then :
10569   $as_echo_n "(cached) " >&6
10570 else
10571   lt_cv_prog_compiler__b=no
10572    save_LDFLAGS="$LDFLAGS"
10573    LDFLAGS="$LDFLAGS -b"
10574    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10575    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10576      # The linker can only warn and ignore the option if not recognized
10577      # So say no if there are warnings
10578      if test -s conftest.err; then
10579        # Append any errors to the config.log.
10580        cat conftest.err 1>&5
10581        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10582        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10583        if diff conftest.exp conftest.er2 >/dev/null; then
10584          lt_cv_prog_compiler__b=yes
10585        fi
10586      else
10587        lt_cv_prog_compiler__b=yes
10588      fi
10589    fi
10590    $RM -r conftest*
10591    LDFLAGS="$save_LDFLAGS"
10592
10593 fi
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10595 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10596
10597 if test x"$lt_cv_prog_compiler__b" = xyes; then
10598     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10599 else
10600     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10601 fi
10602
10603           ;;
10604         esac
10605       fi
10606       if test "$with_gnu_ld" = no; then
10607         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10608         hardcode_libdir_separator=:
10609
10610         case $host_cpu in
10611         hppa*64*|ia64*)
10612           hardcode_direct=no
10613           hardcode_shlibpath_var=no
10614           ;;
10615         *)
10616           hardcode_direct=yes
10617           hardcode_direct_absolute=yes
10618           export_dynamic_flag_spec='${wl}-E'
10619
10620           # hardcode_minus_L: Not really in the search PATH,
10621           # but as the default location of the library.
10622           hardcode_minus_L=yes
10623           ;;
10624         esac
10625       fi
10626       ;;
10627
10628     irix5* | irix6* | nonstopux*)
10629       if test "$GCC" = yes; then
10630         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10631         # Try to use the -exported_symbol ld option, if it does not
10632         # work, assume that -exports_file does not work either and
10633         # implicitly export all symbols.
10634         # This should be the same for all languages, so no per-tag cache variable.
10635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10636 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10637 if ${lt_cv_irix_exported_symbol+:} false; then :
10638   $as_echo_n "(cached) " >&6
10639 else
10640   save_LDFLAGS="$LDFLAGS"
10641            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10642            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h.  */
10644 int foo (void) { return 0; }
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647   lt_cv_irix_exported_symbol=yes
10648 else
10649   lt_cv_irix_exported_symbol=no
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext \
10652     conftest$ac_exeext conftest.$ac_ext
10653            LDFLAGS="$save_LDFLAGS"
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10656 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10657         if test "$lt_cv_irix_exported_symbol" = yes; then
10658           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10659         fi
10660       else
10661         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10662         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10663       fi
10664       archive_cmds_need_lc='no'
10665       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10666       hardcode_libdir_separator=:
10667       inherit_rpath=yes
10668       link_all_deplibs=yes
10669       ;;
10670
10671     netbsd* | netbsdelf*-gnu)
10672       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10673         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10674       else
10675         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10676       fi
10677       hardcode_libdir_flag_spec='-R$libdir'
10678       hardcode_direct=yes
10679       hardcode_shlibpath_var=no
10680       ;;
10681
10682     newsos6)
10683       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10684       hardcode_direct=yes
10685       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10686       hardcode_libdir_separator=:
10687       hardcode_shlibpath_var=no
10688       ;;
10689
10690     *nto* | *qnx*)
10691       ;;
10692
10693     openbsd*)
10694       if test -f /usr/libexec/ld.so; then
10695         hardcode_direct=yes
10696         hardcode_shlibpath_var=no
10697         hardcode_direct_absolute=yes
10698         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10699           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10700           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10701           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10702           export_dynamic_flag_spec='${wl}-E'
10703         else
10704           case $host_os in
10705            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10706              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10707              hardcode_libdir_flag_spec='-R$libdir'
10708              ;;
10709            *)
10710              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10711              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10712              ;;
10713           esac
10714         fi
10715       else
10716         ld_shlibs=no
10717       fi
10718       ;;
10719
10720     os2*)
10721       hardcode_libdir_flag_spec='-L$libdir'
10722       hardcode_minus_L=yes
10723       allow_undefined_flag=unsupported
10724       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'
10725       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10726       ;;
10727
10728     osf3*)
10729       if test "$GCC" = yes; then
10730         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10731         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10732       else
10733         allow_undefined_flag=' -expect_unresolved \*'
10734         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10735       fi
10736       archive_cmds_need_lc='no'
10737       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10738       hardcode_libdir_separator=:
10739       ;;
10740
10741     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10742       if test "$GCC" = yes; then
10743         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10744         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10745         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10746       else
10747         allow_undefined_flag=' -expect_unresolved \*'
10748         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10749         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10750         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10751
10752         # Both c and cxx compiler support -rpath directly
10753         hardcode_libdir_flag_spec='-rpath $libdir'
10754       fi
10755       archive_cmds_need_lc='no'
10756       hardcode_libdir_separator=:
10757       ;;
10758
10759     solaris*)
10760       no_undefined_flag=' -z defs'
10761       if test "$GCC" = yes; then
10762         wlarc='${wl}'
10763         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10764         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10765           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10766       else
10767         case `$CC -V 2>&1` in
10768         *"Compilers 5.0"*)
10769           wlarc=''
10770           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10771           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10772           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10773           ;;
10774         *)
10775           wlarc='${wl}'
10776           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10777           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10778           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10779           ;;
10780         esac
10781       fi
10782       hardcode_libdir_flag_spec='-R$libdir'
10783       hardcode_shlibpath_var=no
10784       case $host_os in
10785       solaris2.[0-5] | solaris2.[0-5].*) ;;
10786       *)
10787         # The compiler driver will combine and reorder linker options,
10788         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10789         # but is careful enough not to reorder.
10790         # Supported since Solaris 2.6 (maybe 2.5.1?)
10791         if test "$GCC" = yes; then
10792           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10793         else
10794           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10795         fi
10796         ;;
10797       esac
10798       link_all_deplibs=yes
10799       ;;
10800
10801     sunos4*)
10802       if test "x$host_vendor" = xsequent; then
10803         # Use $CC to link under sequent, because it throws in some extra .o
10804         # files that make .init and .fini sections work.
10805         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10806       else
10807         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10808       fi
10809       hardcode_libdir_flag_spec='-L$libdir'
10810       hardcode_direct=yes
10811       hardcode_minus_L=yes
10812       hardcode_shlibpath_var=no
10813       ;;
10814
10815     sysv4)
10816       case $host_vendor in
10817         sni)
10818           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10819           hardcode_direct=yes # is this really true???
10820         ;;
10821         siemens)
10822           ## LD is ld it makes a PLAMLIB
10823           ## CC just makes a GrossModule.
10824           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10825           reload_cmds='$CC -r -o $output$reload_objs'
10826           hardcode_direct=no
10827         ;;
10828         motorola)
10829           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10831         ;;
10832       esac
10833       runpath_var='LD_RUN_PATH'
10834       hardcode_shlibpath_var=no
10835       ;;
10836
10837     sysv4.3*)
10838       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10839       hardcode_shlibpath_var=no
10840       export_dynamic_flag_spec='-Bexport'
10841       ;;
10842
10843     sysv4*MP*)
10844       if test -d /usr/nec; then
10845         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10846         hardcode_shlibpath_var=no
10847         runpath_var=LD_RUN_PATH
10848         hardcode_runpath_var=yes
10849         ld_shlibs=yes
10850       fi
10851       ;;
10852
10853     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10854       no_undefined_flag='${wl}-z,text'
10855       archive_cmds_need_lc=no
10856       hardcode_shlibpath_var=no
10857       runpath_var='LD_RUN_PATH'
10858
10859       if test "$GCC" = yes; then
10860         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10861         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10862       else
10863         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10864         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10865       fi
10866       ;;
10867
10868     sysv5* | sco3.2v5* | sco5v6*)
10869       # Note: We can NOT use -z defs as we might desire, because we do not
10870       # link with -lc, and that would cause any symbols used from libc to
10871       # always be unresolved, which means just about no library would
10872       # ever link correctly.  If we're not using GNU ld we use -z text
10873       # though, which does catch some bad symbols but isn't as heavy-handed
10874       # as -z defs.
10875       no_undefined_flag='${wl}-z,text'
10876       allow_undefined_flag='${wl}-z,nodefs'
10877       archive_cmds_need_lc=no
10878       hardcode_shlibpath_var=no
10879       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10880       hardcode_libdir_separator=':'
10881       link_all_deplibs=yes
10882       export_dynamic_flag_spec='${wl}-Bexport'
10883       runpath_var='LD_RUN_PATH'
10884
10885       if test "$GCC" = yes; then
10886         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10887         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10888       else
10889         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10890         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10891       fi
10892       ;;
10893
10894     uts4*)
10895       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10896       hardcode_libdir_flag_spec='-L$libdir'
10897       hardcode_shlibpath_var=no
10898       ;;
10899
10900     *)
10901       ld_shlibs=no
10902       ;;
10903     esac
10904
10905     if test x$host_vendor = xsni; then
10906       case $host in
10907       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10908         export_dynamic_flag_spec='${wl}-Blargedynsym'
10909         ;;
10910       esac
10911     fi
10912   fi
10913
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10915 $as_echo "$ld_shlibs" >&6; }
10916 test "$ld_shlibs" = no && can_build_shared=no
10917
10918 with_gnu_ld=$with_gnu_ld
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934 #
10935 # Do we need to explicitly link libc?
10936 #
10937 case "x$archive_cmds_need_lc" in
10938 x|xyes)
10939   # Assume -lc should be added
10940   archive_cmds_need_lc=yes
10941
10942   if test "$enable_shared" = yes && test "$GCC" = yes; then
10943     case $archive_cmds in
10944     *'~'*)
10945       # FIXME: we may have to deal with multi-command sequences.
10946       ;;
10947     '$CC '*)
10948       # Test whether the compiler implicitly links with -lc since on some
10949       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10950       # to ld, don't add -lc before -lgcc.
10951       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10952 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10953 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10954   $as_echo_n "(cached) " >&6
10955 else
10956   $RM conftest*
10957         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10958
10959         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10960   (eval $ac_compile) 2>&5
10961   ac_status=$?
10962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10963   test $ac_status = 0; } 2>conftest.err; then
10964           soname=conftest
10965           lib=conftest
10966           libobjs=conftest.$ac_objext
10967           deplibs=
10968           wl=$lt_prog_compiler_wl
10969           pic_flag=$lt_prog_compiler_pic
10970           compiler_flags=-v
10971           linker_flags=-v
10972           verstring=
10973           output_objdir=.
10974           libname=conftest
10975           lt_save_allow_undefined_flag=$allow_undefined_flag
10976           allow_undefined_flag=
10977           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10978   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10979   ac_status=$?
10980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10981   test $ac_status = 0; }
10982           then
10983             lt_cv_archive_cmds_need_lc=no
10984           else
10985             lt_cv_archive_cmds_need_lc=yes
10986           fi
10987           allow_undefined_flag=$lt_save_allow_undefined_flag
10988         else
10989           cat conftest.err 1>&5
10990         fi
10991         $RM conftest*
10992
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10995 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10996       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10997       ;;
10998     esac
10999   fi
11000   ;;
11001 esac
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11155 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11156
11157 if test "$GCC" = yes; then
11158   case $host_os in
11159     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11160     *) lt_awk_arg="/^libraries:/" ;;
11161   esac
11162   case $host_os in
11163     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11164     *) lt_sed_strip_eq="s,=/,/,g" ;;
11165   esac
11166   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11167   case $lt_search_path_spec in
11168   *\;*)
11169     # if the path contains ";" then we assume it to be the separator
11170     # otherwise default to the standard path separator (i.e. ":") - it is
11171     # assumed that no part of a normal pathname contains ";" but that should
11172     # okay in the real world where ";" in dirpaths is itself problematic.
11173     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11174     ;;
11175   *)
11176     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11177     ;;
11178   esac
11179   # Ok, now we have the path, separated by spaces, we can step through it
11180   # and add multilib dir if necessary.
11181   lt_tmp_lt_search_path_spec=
11182   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11183   for lt_sys_path in $lt_search_path_spec; do
11184     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11185       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11186     else
11187       test -d "$lt_sys_path" && \
11188         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11189     fi
11190   done
11191   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11192 BEGIN {RS=" "; FS="/|\n";} {
11193   lt_foo="";
11194   lt_count=0;
11195   for (lt_i = NF; lt_i > 0; lt_i--) {
11196     if ($lt_i != "" && $lt_i != ".") {
11197       if ($lt_i == "..") {
11198         lt_count++;
11199       } else {
11200         if (lt_count == 0) {
11201           lt_foo="/" $lt_i lt_foo;
11202         } else {
11203           lt_count--;
11204         }
11205       }
11206     }
11207   }
11208   if (lt_foo != "") { lt_freq[lt_foo]++; }
11209   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11210 }'`
11211   # AWK program above erroneously prepends '/' to C:/dos/paths
11212   # for these hosts.
11213   case $host_os in
11214     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11215       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11216   esac
11217   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11218 else
11219   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11220 fi
11221 library_names_spec=
11222 libname_spec='lib$name'
11223 soname_spec=
11224 shrext_cmds=".so"
11225 postinstall_cmds=
11226 postuninstall_cmds=
11227 finish_cmds=
11228 finish_eval=
11229 shlibpath_var=
11230 shlibpath_overrides_runpath=unknown
11231 version_type=none
11232 dynamic_linker="$host_os ld.so"
11233 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11234 need_lib_prefix=unknown
11235 hardcode_into_libs=no
11236
11237 # when you set need_version to no, make sure it does not cause -set_version
11238 # flags to be left without arguments
11239 need_version=unknown
11240
11241 case $host_os in
11242 aix3*)
11243   version_type=linux # correct to gnu/linux during the next big refactor
11244   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11245   shlibpath_var=LIBPATH
11246
11247   # AIX 3 has no versioning support, so we append a major version to the name.
11248   soname_spec='${libname}${release}${shared_ext}$major'
11249   ;;
11250
11251 aix[4-9]*)
11252   version_type=linux # correct to gnu/linux during the next big refactor
11253   need_lib_prefix=no
11254   need_version=no
11255   hardcode_into_libs=yes
11256   if test "$host_cpu" = ia64; then
11257     # AIX 5 supports IA64
11258     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11259     shlibpath_var=LD_LIBRARY_PATH
11260   else
11261     # With GCC up to 2.95.x, collect2 would create an import file
11262     # for dependence libraries.  The import file would start with
11263     # the line `#! .'.  This would cause the generated library to
11264     # depend on `.', always an invalid library.  This was fixed in
11265     # development snapshots of GCC prior to 3.0.
11266     case $host_os in
11267       aix4 | aix4.[01] | aix4.[01].*)
11268       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11269            echo ' yes '
11270            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11271         :
11272       else
11273         can_build_shared=no
11274       fi
11275       ;;
11276     esac
11277     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11278     # soname into executable. Probably we can add versioning support to
11279     # collect2, so additional links can be useful in future.
11280     if test "$aix_use_runtimelinking" = yes; then
11281       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11282       # instead of lib<name>.a to let people know that these are not
11283       # typical AIX shared libraries.
11284       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285     else
11286       # We preserve .a as extension for shared libraries through AIX4.2
11287       # and later when we are not doing run time linking.
11288       library_names_spec='${libname}${release}.a $libname.a'
11289       soname_spec='${libname}${release}${shared_ext}$major'
11290     fi
11291     shlibpath_var=LIBPATH
11292   fi
11293   ;;
11294
11295 amigaos*)
11296   case $host_cpu in
11297   powerpc)
11298     # Since July 2007 AmigaOS4 officially supports .so libraries.
11299     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301     ;;
11302   m68k)
11303     library_names_spec='$libname.ixlibrary $libname.a'
11304     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11305     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11306     ;;
11307   esac
11308   ;;
11309
11310 beos*)
11311   library_names_spec='${libname}${shared_ext}'
11312   dynamic_linker="$host_os ld.so"
11313   shlibpath_var=LIBRARY_PATH
11314   ;;
11315
11316 bsdi[45]*)
11317   version_type=linux # correct to gnu/linux during the next big refactor
11318   need_version=no
11319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320   soname_spec='${libname}${release}${shared_ext}$major'
11321   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11322   shlibpath_var=LD_LIBRARY_PATH
11323   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11324   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11325   # the default ld.so.conf also contains /usr/contrib/lib and
11326   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11327   # libtool to hard-code these into programs
11328   ;;
11329
11330 cygwin* | mingw* | pw32* | cegcc*)
11331   version_type=windows
11332   shrext_cmds=".dll"
11333   need_version=no
11334   need_lib_prefix=no
11335
11336   case $GCC,$cc_basename in
11337   yes,*)
11338     # gcc
11339     library_names_spec='$libname.dll.a'
11340     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11341     postinstall_cmds='base_file=`basename \${file}`~
11342       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11343       dldir=$destdir/`dirname \$dlpath`~
11344       test -d \$dldir || mkdir -p \$dldir~
11345       $install_prog $dir/$dlname \$dldir/$dlname~
11346       chmod a+x \$dldir/$dlname~
11347       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11348         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11349       fi'
11350     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11351       dlpath=$dir/\$dldll~
11352        $RM \$dlpath'
11353     shlibpath_overrides_runpath=yes
11354
11355     case $host_os in
11356     cygwin*)
11357       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11358       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11359
11360       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11361       ;;
11362     mingw* | cegcc*)
11363       # MinGW DLLs use traditional 'lib' prefix
11364       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11365       ;;
11366     pw32*)
11367       # pw32 DLLs use 'pw' prefix rather than 'lib'
11368       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11369       ;;
11370     esac
11371     dynamic_linker='Win32 ld.exe'
11372     ;;
11373
11374   *,cl*)
11375     # Native MSVC
11376     libname_spec='$name'
11377     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11378     library_names_spec='${libname}.dll.lib'
11379
11380     case $build_os in
11381     mingw*)
11382       sys_lib_search_path_spec=
11383       lt_save_ifs=$IFS
11384       IFS=';'
11385       for lt_path in $LIB
11386       do
11387         IFS=$lt_save_ifs
11388         # Let DOS variable expansion print the short 8.3 style file name.
11389         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11390         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11391       done
11392       IFS=$lt_save_ifs
11393       # Convert to MSYS style.
11394       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11395       ;;
11396     cygwin*)
11397       # Convert to unix form, then to dos form, then back to unix form
11398       # but this time dos style (no spaces!) so that the unix form looks
11399       # like /cygdrive/c/PROGRA~1:/cygdr...
11400       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11401       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11402       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11403       ;;
11404     *)
11405       sys_lib_search_path_spec="$LIB"
11406       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11407         # It is most probably a Windows format PATH.
11408         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11409       else
11410         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11411       fi
11412       # FIXME: find the short name or the path components, as spaces are
11413       # common. (e.g. "Program Files" -> "PROGRA~1")
11414       ;;
11415     esac
11416
11417     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11418     postinstall_cmds='base_file=`basename \${file}`~
11419       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11420       dldir=$destdir/`dirname \$dlpath`~
11421       test -d \$dldir || mkdir -p \$dldir~
11422       $install_prog $dir/$dlname \$dldir/$dlname'
11423     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11424       dlpath=$dir/\$dldll~
11425        $RM \$dlpath'
11426     shlibpath_overrides_runpath=yes
11427     dynamic_linker='Win32 link.exe'
11428     ;;
11429
11430   *)
11431     # Assume MSVC wrapper
11432     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11433     dynamic_linker='Win32 ld.exe'
11434     ;;
11435   esac
11436   # FIXME: first we should search . and the directory the executable is in
11437   shlibpath_var=PATH
11438   ;;
11439
11440 darwin* | rhapsody*)
11441   dynamic_linker="$host_os dyld"
11442   version_type=darwin
11443   need_lib_prefix=no
11444   need_version=no
11445   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11446   soname_spec='${libname}${release}${major}$shared_ext'
11447   shlibpath_overrides_runpath=yes
11448   shlibpath_var=DYLD_LIBRARY_PATH
11449   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11450
11451   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11452   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11453   ;;
11454
11455 dgux*)
11456   version_type=linux # correct to gnu/linux during the next big refactor
11457   need_lib_prefix=no
11458   need_version=no
11459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11460   soname_spec='${libname}${release}${shared_ext}$major'
11461   shlibpath_var=LD_LIBRARY_PATH
11462   ;;
11463
11464 freebsd* | dragonfly*)
11465   # DragonFly does not have aout.  When/if they implement a new
11466   # versioning mechanism, adjust this.
11467   if test -x /usr/bin/objformat; then
11468     objformat=`/usr/bin/objformat`
11469   else
11470     case $host_os in
11471     freebsd[23].*) objformat=aout ;;
11472     *) objformat=elf ;;
11473     esac
11474   fi
11475   version_type=freebsd-$objformat
11476   case $version_type in
11477     freebsd-elf*)
11478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11479       need_version=no
11480       need_lib_prefix=no
11481       ;;
11482     freebsd-*)
11483       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11484       need_version=yes
11485       ;;
11486   esac
11487   shlibpath_var=LD_LIBRARY_PATH
11488   case $host_os in
11489   freebsd2.*)
11490     shlibpath_overrides_runpath=yes
11491     ;;
11492   freebsd3.[01]* | freebsdelf3.[01]*)
11493     shlibpath_overrides_runpath=yes
11494     hardcode_into_libs=yes
11495     ;;
11496   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11497   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11498     shlibpath_overrides_runpath=no
11499     hardcode_into_libs=yes
11500     ;;
11501   *) # from 4.6 on, and DragonFly
11502     shlibpath_overrides_runpath=yes
11503     hardcode_into_libs=yes
11504     ;;
11505   esac
11506   ;;
11507
11508 haiku*)
11509   version_type=linux # correct to gnu/linux during the next big refactor
11510   need_lib_prefix=no
11511   need_version=no
11512   dynamic_linker="$host_os runtime_loader"
11513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11514   soname_spec='${libname}${release}${shared_ext}$major'
11515   shlibpath_var=LIBRARY_PATH
11516   shlibpath_overrides_runpath=yes
11517   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11518   hardcode_into_libs=yes
11519   ;;
11520
11521 hpux9* | hpux10* | hpux11*)
11522   # Give a soname corresponding to the major version so that dld.sl refuses to
11523   # link against other versions.
11524   version_type=sunos
11525   need_lib_prefix=no
11526   need_version=no
11527   case $host_cpu in
11528   ia64*)
11529     shrext_cmds='.so'
11530     hardcode_into_libs=yes
11531     dynamic_linker="$host_os dld.so"
11532     shlibpath_var=LD_LIBRARY_PATH
11533     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535     soname_spec='${libname}${release}${shared_ext}$major'
11536     if test "X$HPUX_IA64_MODE" = X32; then
11537       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11538     else
11539       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11540     fi
11541     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11542     ;;
11543   hppa*64*)
11544     shrext_cmds='.sl'
11545     hardcode_into_libs=yes
11546     dynamic_linker="$host_os dld.sl"
11547     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11548     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550     soname_spec='${libname}${release}${shared_ext}$major'
11551     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11552     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11553     ;;
11554   *)
11555     shrext_cmds='.sl'
11556     dynamic_linker="$host_os dld.sl"
11557     shlibpath_var=SHLIB_PATH
11558     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560     soname_spec='${libname}${release}${shared_ext}$major'
11561     ;;
11562   esac
11563   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11564   postinstall_cmds='chmod 555 $lib'
11565   # or fails outright, so override atomically:
11566   install_override_mode=555
11567   ;;
11568
11569 interix[3-9]*)
11570   version_type=linux # correct to gnu/linux during the next big refactor
11571   need_lib_prefix=no
11572   need_version=no
11573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11574   soname_spec='${libname}${release}${shared_ext}$major'
11575   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11576   shlibpath_var=LD_LIBRARY_PATH
11577   shlibpath_overrides_runpath=no
11578   hardcode_into_libs=yes
11579   ;;
11580
11581 irix5* | irix6* | nonstopux*)
11582   case $host_os in
11583     nonstopux*) version_type=nonstopux ;;
11584     *)
11585         if test "$lt_cv_prog_gnu_ld" = yes; then
11586                 version_type=linux # correct to gnu/linux during the next big refactor
11587         else
11588                 version_type=irix
11589         fi ;;
11590   esac
11591   need_lib_prefix=no
11592   need_version=no
11593   soname_spec='${libname}${release}${shared_ext}$major'
11594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11595   case $host_os in
11596   irix5* | nonstopux*)
11597     libsuff= shlibsuff=
11598     ;;
11599   *)
11600     case $LD in # libtool.m4 will add one of these switches to LD
11601     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11602       libsuff= shlibsuff= libmagic=32-bit;;
11603     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11604       libsuff=32 shlibsuff=N32 libmagic=N32;;
11605     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11606       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11607     *) libsuff= shlibsuff= libmagic=never-match;;
11608     esac
11609     ;;
11610   esac
11611   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11612   shlibpath_overrides_runpath=no
11613   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11614   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11615   hardcode_into_libs=yes
11616   ;;
11617
11618 # No shared lib support for Linux oldld, aout, or coff.
11619 linux*oldld* | linux*aout* | linux*coff*)
11620   dynamic_linker=no
11621   ;;
11622
11623 # This must be glibc/ELF.
11624 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11625   version_type=linux # correct to gnu/linux during the next big refactor
11626   need_lib_prefix=no
11627   need_version=no
11628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629   soname_spec='${libname}${release}${shared_ext}$major'
11630   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11631   shlibpath_var=LD_LIBRARY_PATH
11632   shlibpath_overrides_runpath=no
11633
11634   # Some binutils ld are patched to set DT_RUNPATH
11635   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   lt_cv_shlibpath_overrides_runpath=no
11639     save_LDFLAGS=$LDFLAGS
11640     save_libdir=$libdir
11641     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11642          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h.  */
11645
11646 int
11647 main ()
11648 {
11649
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11656   lt_cv_shlibpath_overrides_runpath=yes
11657 fi
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext \
11660     conftest$ac_exeext conftest.$ac_ext
11661     LDFLAGS=$save_LDFLAGS
11662     libdir=$save_libdir
11663
11664 fi
11665
11666   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11667
11668   # This implies no fast_install, which is unacceptable.
11669   # Some rework will be needed to allow for fast_install
11670   # before this can be enabled.
11671   hardcode_into_libs=yes
11672
11673   # Append ld.so.conf contents to the search path
11674   if test -f /etc/ld.so.conf; then
11675     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11676     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11677   fi
11678
11679   # We used to test for /lib/ld.so.1 and disable shared libraries on
11680   # powerpc, because MkLinux only supported shared libraries with the
11681   # GNU dynamic linker.  Since this was broken with cross compilers,
11682   # most powerpc-linux boxes support dynamic linking these days and
11683   # people can always --disable-shared, the test was removed, and we
11684   # assume the GNU/Linux dynamic linker is in use.
11685   dynamic_linker='GNU/Linux ld.so'
11686   ;;
11687
11688 netbsdelf*-gnu)
11689   version_type=linux
11690   need_lib_prefix=no
11691   need_version=no
11692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11693   soname_spec='${libname}${release}${shared_ext}$major'
11694   shlibpath_var=LD_LIBRARY_PATH
11695   shlibpath_overrides_runpath=no
11696   hardcode_into_libs=yes
11697   dynamic_linker='NetBSD ld.elf_so'
11698   ;;
11699
11700 netbsd*)
11701   version_type=sunos
11702   need_lib_prefix=no
11703   need_version=no
11704   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11706     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11707     dynamic_linker='NetBSD (a.out) ld.so'
11708   else
11709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11710     soname_spec='${libname}${release}${shared_ext}$major'
11711     dynamic_linker='NetBSD ld.elf_so'
11712   fi
11713   shlibpath_var=LD_LIBRARY_PATH
11714   shlibpath_overrides_runpath=yes
11715   hardcode_into_libs=yes
11716   ;;
11717
11718 newsos6)
11719   version_type=linux # correct to gnu/linux during the next big refactor
11720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721   shlibpath_var=LD_LIBRARY_PATH
11722   shlibpath_overrides_runpath=yes
11723   ;;
11724
11725 *nto* | *qnx*)
11726   version_type=qnx
11727   need_lib_prefix=no
11728   need_version=no
11729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730   soname_spec='${libname}${release}${shared_ext}$major'
11731   shlibpath_var=LD_LIBRARY_PATH
11732   shlibpath_overrides_runpath=no
11733   hardcode_into_libs=yes
11734   dynamic_linker='ldqnx.so'
11735   ;;
11736
11737 openbsd*)
11738   version_type=sunos
11739   sys_lib_dlsearch_path_spec="/usr/lib"
11740   need_lib_prefix=no
11741   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11742   case $host_os in
11743     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11744     *)                          need_version=no  ;;
11745   esac
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11747   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11748   shlibpath_var=LD_LIBRARY_PATH
11749   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11750     case $host_os in
11751       openbsd2.[89] | openbsd2.[89].*)
11752         shlibpath_overrides_runpath=no
11753         ;;
11754       *)
11755         shlibpath_overrides_runpath=yes
11756         ;;
11757       esac
11758   else
11759     shlibpath_overrides_runpath=yes
11760   fi
11761   ;;
11762
11763 os2*)
11764   libname_spec='$name'
11765   shrext_cmds=".dll"
11766   need_lib_prefix=no
11767   library_names_spec='$libname${shared_ext} $libname.a'
11768   dynamic_linker='OS/2 ld.exe'
11769   shlibpath_var=LIBPATH
11770   ;;
11771
11772 osf3* | osf4* | osf5*)
11773   version_type=osf
11774   need_lib_prefix=no
11775   need_version=no
11776   soname_spec='${libname}${release}${shared_ext}$major'
11777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778   shlibpath_var=LD_LIBRARY_PATH
11779   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11780   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11781   ;;
11782
11783 rdos*)
11784   dynamic_linker=no
11785   ;;
11786
11787 solaris*)
11788   version_type=linux # correct to gnu/linux during the next big refactor
11789   need_lib_prefix=no
11790   need_version=no
11791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792   soname_spec='${libname}${release}${shared_ext}$major'
11793   shlibpath_var=LD_LIBRARY_PATH
11794   shlibpath_overrides_runpath=yes
11795   hardcode_into_libs=yes
11796   # ldd complains unless libraries are executable
11797   postinstall_cmds='chmod +x $lib'
11798   ;;
11799
11800 sunos4*)
11801   version_type=sunos
11802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11803   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11804   shlibpath_var=LD_LIBRARY_PATH
11805   shlibpath_overrides_runpath=yes
11806   if test "$with_gnu_ld" = yes; then
11807     need_lib_prefix=no
11808   fi
11809   need_version=yes
11810   ;;
11811
11812 sysv4 | sysv4.3*)
11813   version_type=linux # correct to gnu/linux during the next big refactor
11814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815   soname_spec='${libname}${release}${shared_ext}$major'
11816   shlibpath_var=LD_LIBRARY_PATH
11817   case $host_vendor in
11818     sni)
11819       shlibpath_overrides_runpath=no
11820       need_lib_prefix=no
11821       runpath_var=LD_RUN_PATH
11822       ;;
11823     siemens)
11824       need_lib_prefix=no
11825       ;;
11826     motorola)
11827       need_lib_prefix=no
11828       need_version=no
11829       shlibpath_overrides_runpath=no
11830       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11831       ;;
11832   esac
11833   ;;
11834
11835 sysv4*MP*)
11836   if test -d /usr/nec ;then
11837     version_type=linux # correct to gnu/linux during the next big refactor
11838     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11839     soname_spec='$libname${shared_ext}.$major'
11840     shlibpath_var=LD_LIBRARY_PATH
11841   fi
11842   ;;
11843
11844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11845   version_type=freebsd-elf
11846   need_lib_prefix=no
11847   need_version=no
11848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11849   soname_spec='${libname}${release}${shared_ext}$major'
11850   shlibpath_var=LD_LIBRARY_PATH
11851   shlibpath_overrides_runpath=yes
11852   hardcode_into_libs=yes
11853   if test "$with_gnu_ld" = yes; then
11854     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11855   else
11856     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11857     case $host_os in
11858       sco3.2v5*)
11859         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11860         ;;
11861     esac
11862   fi
11863   sys_lib_dlsearch_path_spec='/usr/lib'
11864   ;;
11865
11866 tpf*)
11867   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11868   version_type=linux # correct to gnu/linux during the next big refactor
11869   need_lib_prefix=no
11870   need_version=no
11871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872   shlibpath_var=LD_LIBRARY_PATH
11873   shlibpath_overrides_runpath=no
11874   hardcode_into_libs=yes
11875   ;;
11876
11877 uts4*)
11878   version_type=linux # correct to gnu/linux during the next big refactor
11879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11880   soname_spec='${libname}${release}${shared_ext}$major'
11881   shlibpath_var=LD_LIBRARY_PATH
11882   ;;
11883
11884 *)
11885   dynamic_linker=no
11886   ;;
11887 esac
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11889 $as_echo "$dynamic_linker" >&6; }
11890 test "$dynamic_linker" = no && can_build_shared=no
11891
11892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11893 if test "$GCC" = yes; then
11894   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11895 fi
11896
11897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11898   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11899 fi
11900 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11901   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11902 fi
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11996 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11997 hardcode_action=
11998 if test -n "$hardcode_libdir_flag_spec" ||
11999    test -n "$runpath_var" ||
12000    test "X$hardcode_automatic" = "Xyes" ; then
12001
12002   # We can hardcode non-existent directories.
12003   if test "$hardcode_direct" != no &&
12004      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12005      # have to relink, otherwise we might link with an installed library
12006      # when we should be linking with a yet-to-be-installed one
12007      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12008      test "$hardcode_minus_L" != no; then
12009     # Linking always hardcodes the temporary library directory.
12010     hardcode_action=relink
12011   else
12012     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12013     hardcode_action=immediate
12014   fi
12015 else
12016   # We cannot hardcode anything, or else we can only hardcode existing
12017   # directories.
12018   hardcode_action=unsupported
12019 fi
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12021 $as_echo "$hardcode_action" >&6; }
12022
12023 if test "$hardcode_action" = relink ||
12024    test "$inherit_rpath" = yes; then
12025   # Fast installation is not supported
12026   enable_fast_install=no
12027 elif test "$shlibpath_overrides_runpath" = yes ||
12028      test "$enable_shared" = no; then
12029   # Fast installation is not necessary
12030   enable_fast_install=needless
12031 fi
12032
12033
12034
12035
12036
12037
12038   if test "x$enable_dlopen" != xyes; then
12039   enable_dlopen=unknown
12040   enable_dlopen_self=unknown
12041   enable_dlopen_self_static=unknown
12042 else
12043   lt_cv_dlopen=no
12044   lt_cv_dlopen_libs=
12045
12046   case $host_os in
12047   beos*)
12048     lt_cv_dlopen="load_add_on"
12049     lt_cv_dlopen_libs=
12050     lt_cv_dlopen_self=yes
12051     ;;
12052
12053   mingw* | pw32* | cegcc*)
12054     lt_cv_dlopen="LoadLibrary"
12055     lt_cv_dlopen_libs=
12056     ;;
12057
12058   cygwin*)
12059     lt_cv_dlopen="dlopen"
12060     lt_cv_dlopen_libs=
12061     ;;
12062
12063   darwin*)
12064   # if libdl is installed we need to link against it
12065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12067 if ${ac_cv_lib_dl_dlopen+:} false; then :
12068   $as_echo_n "(cached) " >&6
12069 else
12070   ac_check_lib_save_LIBS=$LIBS
12071 LIBS="-ldl  $LIBS"
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h.  */
12074
12075 /* Override any GCC internal prototype to avoid an error.
12076    Use char because int might match the return type of a GCC
12077    builtin and then its argument prototype would still apply.  */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char dlopen ();
12082 int
12083 main ()
12084 {
12085 return dlopen ();
12086   ;
12087   return 0;
12088 }
12089 _ACEOF
12090 if ac_fn_c_try_link "$LINENO"; then :
12091   ac_cv_lib_dl_dlopen=yes
12092 else
12093   ac_cv_lib_dl_dlopen=no
12094 fi
12095 rm -f core conftest.err conftest.$ac_objext \
12096     conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12101 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12102   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12103 else
12104
12105     lt_cv_dlopen="dyld"
12106     lt_cv_dlopen_libs=
12107     lt_cv_dlopen_self=yes
12108
12109 fi
12110
12111     ;;
12112
12113   *)
12114     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12115 if test "x$ac_cv_func_shl_load" = xyes; then :
12116   lt_cv_dlopen="shl_load"
12117 else
12118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12119 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12120 if ${ac_cv_lib_dld_shl_load+:} false; then :
12121   $as_echo_n "(cached) " >&6
12122 else
12123   ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-ldld  $LIBS"
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h.  */
12127
12128 /* Override any GCC internal prototype to avoid an error.
12129    Use char because int might match the return type of a GCC
12130    builtin and then its argument prototype would still apply.  */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 char shl_load ();
12135 int
12136 main ()
12137 {
12138 return shl_load ();
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144   ac_cv_lib_dld_shl_load=yes
12145 else
12146   ac_cv_lib_dld_shl_load=no
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext \
12149     conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12153 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12154 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12155   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12156 else
12157   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12158 if test "x$ac_cv_func_dlopen" = xyes; then :
12159   lt_cv_dlopen="dlopen"
12160 else
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12163 if ${ac_cv_lib_dl_dlopen+:} false; then :
12164   $as_echo_n "(cached) " >&6
12165 else
12166   ac_check_lib_save_LIBS=$LIBS
12167 LIBS="-ldl  $LIBS"
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h.  */
12170
12171 /* Override any GCC internal prototype to avoid an error.
12172    Use char because int might match the return type of a GCC
12173    builtin and then its argument prototype would still apply.  */
12174 #ifdef __cplusplus
12175 extern "C"
12176 #endif
12177 char dlopen ();
12178 int
12179 main ()
12180 {
12181 return dlopen ();
12182   ;
12183   return 0;
12184 }
12185 _ACEOF
12186 if ac_fn_c_try_link "$LINENO"; then :
12187   ac_cv_lib_dl_dlopen=yes
12188 else
12189   ac_cv_lib_dl_dlopen=no
12190 fi
12191 rm -f core conftest.err conftest.$ac_objext \
12192     conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12194 fi
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12196 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12197 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12198   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12199 else
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12201 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12202 if ${ac_cv_lib_svld_dlopen+:} false; then :
12203   $as_echo_n "(cached) " >&6
12204 else
12205   ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-lsvld  $LIBS"
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h.  */
12209
12210 /* Override any GCC internal prototype to avoid an error.
12211    Use char because int might match the return type of a GCC
12212    builtin and then its argument prototype would still apply.  */
12213 #ifdef __cplusplus
12214 extern "C"
12215 #endif
12216 char dlopen ();
12217 int
12218 main ()
12219 {
12220 return dlopen ();
12221   ;
12222   return 0;
12223 }
12224 _ACEOF
12225 if ac_fn_c_try_link "$LINENO"; then :
12226   ac_cv_lib_svld_dlopen=yes
12227 else
12228   ac_cv_lib_svld_dlopen=no
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext \
12231     conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12233 fi
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12235 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12236 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12237   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12238 else
12239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12240 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12241 if ${ac_cv_lib_dld_dld_link+:} false; then :
12242   $as_echo_n "(cached) " >&6
12243 else
12244   ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-ldld  $LIBS"
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h.  */
12248
12249 /* Override any GCC internal prototype to avoid an error.
12250    Use char because int might match the return type of a GCC
12251    builtin and then its argument prototype would still apply.  */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char dld_link ();
12256 int
12257 main ()
12258 {
12259 return dld_link ();
12260   ;
12261   return 0;
12262 }
12263 _ACEOF
12264 if ac_fn_c_try_link "$LINENO"; then :
12265   ac_cv_lib_dld_dld_link=yes
12266 else
12267   ac_cv_lib_dld_dld_link=no
12268 fi
12269 rm -f core conftest.err conftest.$ac_objext \
12270     conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12274 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12275 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12276   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12277 fi
12278
12279
12280 fi
12281
12282
12283 fi
12284
12285
12286 fi
12287
12288
12289 fi
12290
12291
12292 fi
12293
12294     ;;
12295   esac
12296
12297   if test "x$lt_cv_dlopen" != xno; then
12298     enable_dlopen=yes
12299   else
12300     enable_dlopen=no
12301   fi
12302
12303   case $lt_cv_dlopen in
12304   dlopen)
12305     save_CPPFLAGS="$CPPFLAGS"
12306     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12307
12308     save_LDFLAGS="$LDFLAGS"
12309     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12310
12311     save_LIBS="$LIBS"
12312     LIBS="$lt_cv_dlopen_libs $LIBS"
12313
12314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12315 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12316 if ${lt_cv_dlopen_self+:} false; then :
12317   $as_echo_n "(cached) " >&6
12318 else
12319           if test "$cross_compiling" = yes; then :
12320   lt_cv_dlopen_self=cross
12321 else
12322   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12323   lt_status=$lt_dlunknown
12324   cat > conftest.$ac_ext <<_LT_EOF
12325 #line $LINENO "configure"
12326 #include "confdefs.h"
12327
12328 #if HAVE_DLFCN_H
12329 #include <dlfcn.h>
12330 #endif
12331
12332 #include <stdio.h>
12333
12334 #ifdef RTLD_GLOBAL
12335 #  define LT_DLGLOBAL           RTLD_GLOBAL
12336 #else
12337 #  ifdef DL_GLOBAL
12338 #    define LT_DLGLOBAL         DL_GLOBAL
12339 #  else
12340 #    define LT_DLGLOBAL         0
12341 #  endif
12342 #endif
12343
12344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12345    find out it does not work in some platform. */
12346 #ifndef LT_DLLAZY_OR_NOW
12347 #  ifdef RTLD_LAZY
12348 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12349 #  else
12350 #    ifdef DL_LAZY
12351 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12352 #    else
12353 #      ifdef RTLD_NOW
12354 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12355 #      else
12356 #        ifdef DL_NOW
12357 #          define LT_DLLAZY_OR_NOW      DL_NOW
12358 #        else
12359 #          define LT_DLLAZY_OR_NOW      0
12360 #        endif
12361 #      endif
12362 #    endif
12363 #  endif
12364 #endif
12365
12366 /* When -fvisbility=hidden is used, assume the code has been annotated
12367    correspondingly for the symbols needed.  */
12368 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12369 int fnord () __attribute__((visibility("default")));
12370 #endif
12371
12372 int fnord () { return 42; }
12373 int main ()
12374 {
12375   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12376   int status = $lt_dlunknown;
12377
12378   if (self)
12379     {
12380       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12381       else
12382         {
12383           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12384           else puts (dlerror ());
12385         }
12386       /* dlclose (self); */
12387     }
12388   else
12389     puts (dlerror ());
12390
12391   return status;
12392 }
12393 _LT_EOF
12394   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12395   (eval $ac_link) 2>&5
12396   ac_status=$?
12397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12398   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12399     (./conftest; exit; ) >&5 2>/dev/null
12400     lt_status=$?
12401     case x$lt_status in
12402       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12403       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12404       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12405     esac
12406   else :
12407     # compilation failed
12408     lt_cv_dlopen_self=no
12409   fi
12410 fi
12411 rm -fr conftest*
12412
12413
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12416 $as_echo "$lt_cv_dlopen_self" >&6; }
12417
12418     if test "x$lt_cv_dlopen_self" = xyes; then
12419       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12420       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12421 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12422 if ${lt_cv_dlopen_self_static+:} false; then :
12423   $as_echo_n "(cached) " >&6
12424 else
12425           if test "$cross_compiling" = yes; then :
12426   lt_cv_dlopen_self_static=cross
12427 else
12428   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12429   lt_status=$lt_dlunknown
12430   cat > conftest.$ac_ext <<_LT_EOF
12431 #line $LINENO "configure"
12432 #include "confdefs.h"
12433
12434 #if HAVE_DLFCN_H
12435 #include <dlfcn.h>
12436 #endif
12437
12438 #include <stdio.h>
12439
12440 #ifdef RTLD_GLOBAL
12441 #  define LT_DLGLOBAL           RTLD_GLOBAL
12442 #else
12443 #  ifdef DL_GLOBAL
12444 #    define LT_DLGLOBAL         DL_GLOBAL
12445 #  else
12446 #    define LT_DLGLOBAL         0
12447 #  endif
12448 #endif
12449
12450 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12451    find out it does not work in some platform. */
12452 #ifndef LT_DLLAZY_OR_NOW
12453 #  ifdef RTLD_LAZY
12454 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12455 #  else
12456 #    ifdef DL_LAZY
12457 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12458 #    else
12459 #      ifdef RTLD_NOW
12460 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12461 #      else
12462 #        ifdef DL_NOW
12463 #          define LT_DLLAZY_OR_NOW      DL_NOW
12464 #        else
12465 #          define LT_DLLAZY_OR_NOW      0
12466 #        endif
12467 #      endif
12468 #    endif
12469 #  endif
12470 #endif
12471
12472 /* When -fvisbility=hidden is used, assume the code has been annotated
12473    correspondingly for the symbols needed.  */
12474 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12475 int fnord () __attribute__((visibility("default")));
12476 #endif
12477
12478 int fnord () { return 42; }
12479 int main ()
12480 {
12481   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12482   int status = $lt_dlunknown;
12483
12484   if (self)
12485     {
12486       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12487       else
12488         {
12489           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12490           else puts (dlerror ());
12491         }
12492       /* dlclose (self); */
12493     }
12494   else
12495     puts (dlerror ());
12496
12497   return status;
12498 }
12499 _LT_EOF
12500   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12501   (eval $ac_link) 2>&5
12502   ac_status=$?
12503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12505     (./conftest; exit; ) >&5 2>/dev/null
12506     lt_status=$?
12507     case x$lt_status in
12508       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12509       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12510       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12511     esac
12512   else :
12513     # compilation failed
12514     lt_cv_dlopen_self_static=no
12515   fi
12516 fi
12517 rm -fr conftest*
12518
12519
12520 fi
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12522 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12523     fi
12524
12525     CPPFLAGS="$save_CPPFLAGS"
12526     LDFLAGS="$save_LDFLAGS"
12527     LIBS="$save_LIBS"
12528     ;;
12529   esac
12530
12531   case $lt_cv_dlopen_self in
12532   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12533   *) enable_dlopen_self=unknown ;;
12534   esac
12535
12536   case $lt_cv_dlopen_self_static in
12537   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12538   *) enable_dlopen_self_static=unknown ;;
12539   esac
12540 fi
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558 striplib=
12559 old_striplib=
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12561 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12562 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12563   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12564   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12566 $as_echo "yes" >&6; }
12567 else
12568 # FIXME - insert some real tests, host_os isn't really good enough
12569   case $host_os in
12570   darwin*)
12571     if test -n "$STRIP" ; then
12572       striplib="$STRIP -x"
12573       old_striplib="$STRIP -S"
12574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12576     else
12577       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579     fi
12580     ;;
12581   *)
12582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12584     ;;
12585   esac
12586 fi
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599   # Report which library types will actually be built
12600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12601 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12603 $as_echo "$can_build_shared" >&6; }
12604
12605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12606 $as_echo_n "checking whether to build shared libraries... " >&6; }
12607   test "$can_build_shared" = "no" && enable_shared=no
12608
12609   # On AIX, shared libraries and static libraries use the same namespace, and
12610   # are all built from PIC.
12611   case $host_os in
12612   aix3*)
12613     test "$enable_shared" = yes && enable_static=no
12614     if test -n "$RANLIB"; then
12615       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12616       postinstall_cmds='$RANLIB $lib'
12617     fi
12618     ;;
12619
12620   aix[4-9]*)
12621     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12622       test "$enable_shared" = yes && enable_static=no
12623     fi
12624     ;;
12625   esac
12626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12627 $as_echo "$enable_shared" >&6; }
12628
12629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12630 $as_echo_n "checking whether to build static libraries... " >&6; }
12631   # Make sure either enable_shared or enable_static is yes.
12632   test "$enable_shared" = yes || enable_static=yes
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12634 $as_echo "$enable_static" >&6; }
12635
12636
12637
12638
12639 fi
12640 ac_ext=c
12641 ac_cpp='$CPP $CPPFLAGS'
12642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12645
12646 CC="$lt_save_CC"
12647
12648       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12649     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12650     (test "X$CXX" != "Xg++"))) ; then
12651   ac_ext=cpp
12652 ac_cpp='$CXXCPP $CPPFLAGS'
12653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12657 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12658 if test -z "$CXXCPP"; then
12659   if ${ac_cv_prog_CXXCPP+:} false; then :
12660   $as_echo_n "(cached) " >&6
12661 else
12662       # Double quotes because CXXCPP needs to be expanded
12663     for CXXCPP in "$CXX -E" "/lib/cpp"
12664     do
12665       ac_preproc_ok=false
12666 for ac_cxx_preproc_warn_flag in '' yes
12667 do
12668   # Use a header file that comes with gcc, so configuring glibc
12669   # with a fresh cross-compiler works.
12670   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12671   # <limits.h> exists even on freestanding compilers.
12672   # On the NeXT, cc -E runs the code through the compiler's parser,
12673   # not just through cpp. "Syntax error" is here to catch this case.
12674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h.  */
12676 #ifdef __STDC__
12677 # include <limits.h>
12678 #else
12679 # include <assert.h>
12680 #endif
12681                      Syntax error
12682 _ACEOF
12683 if ac_fn_cxx_try_cpp "$LINENO"; then :
12684
12685 else
12686   # Broken: fails on valid input.
12687 continue
12688 fi
12689 rm -f conftest.err conftest.i conftest.$ac_ext
12690
12691   # OK, works on sane cases.  Now check whether nonexistent headers
12692   # can be detected and how.
12693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h.  */
12695 #include <ac_nonexistent.h>
12696 _ACEOF
12697 if ac_fn_cxx_try_cpp "$LINENO"; then :
12698   # Broken: success on invalid input.
12699 continue
12700 else
12701   # Passes both tests.
12702 ac_preproc_ok=:
12703 break
12704 fi
12705 rm -f conftest.err conftest.i conftest.$ac_ext
12706
12707 done
12708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12709 rm -f conftest.i conftest.err conftest.$ac_ext
12710 if $ac_preproc_ok; then :
12711   break
12712 fi
12713
12714     done
12715     ac_cv_prog_CXXCPP=$CXXCPP
12716
12717 fi
12718   CXXCPP=$ac_cv_prog_CXXCPP
12719 else
12720   ac_cv_prog_CXXCPP=$CXXCPP
12721 fi
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12723 $as_echo "$CXXCPP" >&6; }
12724 ac_preproc_ok=false
12725 for ac_cxx_preproc_warn_flag in '' yes
12726 do
12727   # Use a header file that comes with gcc, so configuring glibc
12728   # with a fresh cross-compiler works.
12729   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12730   # <limits.h> exists even on freestanding compilers.
12731   # On the NeXT, cc -E runs the code through the compiler's parser,
12732   # not just through cpp. "Syntax error" is here to catch this case.
12733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h.  */
12735 #ifdef __STDC__
12736 # include <limits.h>
12737 #else
12738 # include <assert.h>
12739 #endif
12740                      Syntax error
12741 _ACEOF
12742 if ac_fn_cxx_try_cpp "$LINENO"; then :
12743
12744 else
12745   # Broken: fails on valid input.
12746 continue
12747 fi
12748 rm -f conftest.err conftest.i conftest.$ac_ext
12749
12750   # OK, works on sane cases.  Now check whether nonexistent headers
12751   # can be detected and how.
12752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h.  */
12754 #include <ac_nonexistent.h>
12755 _ACEOF
12756 if ac_fn_cxx_try_cpp "$LINENO"; then :
12757   # Broken: success on invalid input.
12758 continue
12759 else
12760   # Passes both tests.
12761 ac_preproc_ok=:
12762 break
12763 fi
12764 rm -f conftest.err conftest.i conftest.$ac_ext
12765
12766 done
12767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12768 rm -f conftest.i conftest.err conftest.$ac_ext
12769 if $ac_preproc_ok; then :
12770
12771 else
12772   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12774 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12775 See \`config.log' for more details" "$LINENO" 5; }
12776 fi
12777
12778 ac_ext=c
12779 ac_cpp='$CPP $CPPFLAGS'
12780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12783
12784 else
12785   _lt_caught_CXX_error=yes
12786 fi
12787
12788 ac_ext=cpp
12789 ac_cpp='$CXXCPP $CPPFLAGS'
12790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12793
12794 archive_cmds_need_lc_CXX=no
12795 allow_undefined_flag_CXX=
12796 always_export_symbols_CXX=no
12797 archive_expsym_cmds_CXX=
12798 compiler_needs_object_CXX=no
12799 export_dynamic_flag_spec_CXX=
12800 hardcode_direct_CXX=no
12801 hardcode_direct_absolute_CXX=no
12802 hardcode_libdir_flag_spec_CXX=
12803 hardcode_libdir_separator_CXX=
12804 hardcode_minus_L_CXX=no
12805 hardcode_shlibpath_var_CXX=unsupported
12806 hardcode_automatic_CXX=no
12807 inherit_rpath_CXX=no
12808 module_cmds_CXX=
12809 module_expsym_cmds_CXX=
12810 link_all_deplibs_CXX=unknown
12811 old_archive_cmds_CXX=$old_archive_cmds
12812 reload_flag_CXX=$reload_flag
12813 reload_cmds_CXX=$reload_cmds
12814 no_undefined_flag_CXX=
12815 whole_archive_flag_spec_CXX=
12816 enable_shared_with_static_runtimes_CXX=no
12817
12818 # Source file extension for C++ test sources.
12819 ac_ext=cpp
12820
12821 # Object file extension for compiled C++ test sources.
12822 objext=o
12823 objext_CXX=$objext
12824
12825 # No sense in running all these tests if we already determined that
12826 # the CXX compiler isn't working.  Some variables (like enable_shared)
12827 # are currently assumed to apply to all compilers on this platform,
12828 # and will be corrupted by setting them based on a non-working compiler.
12829 if test "$_lt_caught_CXX_error" != yes; then
12830   # Code to be used in simple compile tests
12831   lt_simple_compile_test_code="int some_variable = 0;"
12832
12833   # Code to be used in simple link tests
12834   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12835
12836   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12837
12838
12839
12840
12841
12842
12843 # If no C compiler was specified, use CC.
12844 LTCC=${LTCC-"$CC"}
12845
12846 # If no C compiler flags were specified, use CFLAGS.
12847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12848
12849 # Allow CC to be a program name with arguments.
12850 compiler=$CC
12851
12852
12853   # save warnings/boilerplate of simple test code
12854   ac_outfile=conftest.$ac_objext
12855 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12856 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12857 _lt_compiler_boilerplate=`cat conftest.err`
12858 $RM conftest*
12859
12860   ac_outfile=conftest.$ac_objext
12861 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12862 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12863 _lt_linker_boilerplate=`cat conftest.err`
12864 $RM -r conftest*
12865
12866
12867   # Allow CC to be a program name with arguments.
12868   lt_save_CC=$CC
12869   lt_save_CFLAGS=$CFLAGS
12870   lt_save_LD=$LD
12871   lt_save_GCC=$GCC
12872   GCC=$GXX
12873   lt_save_with_gnu_ld=$with_gnu_ld
12874   lt_save_path_LD=$lt_cv_path_LD
12875   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12876     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12877   else
12878     $as_unset lt_cv_prog_gnu_ld
12879   fi
12880   if test -n "${lt_cv_path_LDCXX+set}"; then
12881     lt_cv_path_LD=$lt_cv_path_LDCXX
12882   else
12883     $as_unset lt_cv_path_LD
12884   fi
12885   test -z "${LDCXX+set}" || LD=$LDCXX
12886   CC=${CXX-"c++"}
12887   CFLAGS=$CXXFLAGS
12888   compiler=$CC
12889   compiler_CXX=$CC
12890   for cc_temp in $compiler""; do
12891   case $cc_temp in
12892     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12893     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12894     \-*) ;;
12895     *) break;;
12896   esac
12897 done
12898 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12899
12900
12901   if test -n "$compiler"; then
12902     # We don't want -fno-exception when compiling C++ code, so set the
12903     # no_builtin_flag separately
12904     if test "$GXX" = yes; then
12905       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12906     else
12907       lt_prog_compiler_no_builtin_flag_CXX=
12908     fi
12909
12910     if test "$GXX" = yes; then
12911       # Set up default GNU C++ configuration
12912
12913
12914
12915 # Check whether --with-gnu-ld was given.
12916 if test "${with_gnu_ld+set}" = set; then :
12917   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12918 else
12919   with_gnu_ld=no
12920 fi
12921
12922 ac_prog=ld
12923 if test "$GCC" = yes; then
12924   # Check if gcc -print-prog-name=ld gives a path.
12925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12926 $as_echo_n "checking for ld used by $CC... " >&6; }
12927   case $host in
12928   *-*-mingw*)
12929     # gcc leaves a trailing carriage return which upsets mingw
12930     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12931   *)
12932     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12933   esac
12934   case $ac_prog in
12935     # Accept absolute paths.
12936     [\\/]* | ?:[\\/]*)
12937       re_direlt='/[^/][^/]*/\.\./'
12938       # Canonicalize the pathname of ld
12939       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12940       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12941         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12942       done
12943       test -z "$LD" && LD="$ac_prog"
12944       ;;
12945   "")
12946     # If it fails, then pretend we aren't using GCC.
12947     ac_prog=ld
12948     ;;
12949   *)
12950     # If it is relative, then search for the first ld in PATH.
12951     with_gnu_ld=unknown
12952     ;;
12953   esac
12954 elif test "$with_gnu_ld" = yes; then
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12956 $as_echo_n "checking for GNU ld... " >&6; }
12957 else
12958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12959 $as_echo_n "checking for non-GNU ld... " >&6; }
12960 fi
12961 if ${lt_cv_path_LD+:} false; then :
12962   $as_echo_n "(cached) " >&6
12963 else
12964   if test -z "$LD"; then
12965   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12966   for ac_dir in $PATH; do
12967     IFS="$lt_save_ifs"
12968     test -z "$ac_dir" && ac_dir=.
12969     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12970       lt_cv_path_LD="$ac_dir/$ac_prog"
12971       # Check to see if the program is GNU ld.  I'd rather use --version,
12972       # but apparently some variants of GNU ld only accept -v.
12973       # Break only if it was the GNU/non-GNU ld that we prefer.
12974       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12975       *GNU* | *'with BFD'*)
12976         test "$with_gnu_ld" != no && break
12977         ;;
12978       *)
12979         test "$with_gnu_ld" != yes && break
12980         ;;
12981       esac
12982     fi
12983   done
12984   IFS="$lt_save_ifs"
12985 else
12986   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12987 fi
12988 fi
12989
12990 LD="$lt_cv_path_LD"
12991 if test -n "$LD"; then
12992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12993 $as_echo "$LD" >&6; }
12994 else
12995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12997 fi
12998 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13000 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13001 if ${lt_cv_prog_gnu_ld+:} false; then :
13002   $as_echo_n "(cached) " >&6
13003 else
13004   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13005 case `$LD -v 2>&1 </dev/null` in
13006 *GNU* | *'with BFD'*)
13007   lt_cv_prog_gnu_ld=yes
13008   ;;
13009 *)
13010   lt_cv_prog_gnu_ld=no
13011   ;;
13012 esac
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13015 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13016 with_gnu_ld=$lt_cv_prog_gnu_ld
13017
13018
13019
13020
13021
13022
13023
13024       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13025       # archiving commands below assume that GNU ld is being used.
13026       if test "$with_gnu_ld" = yes; then
13027         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13028         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13029
13030         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13031         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13032
13033         # If archive_cmds runs LD, not CC, wlarc should be empty
13034         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13035         #     investigate it a little bit more. (MM)
13036         wlarc='${wl}'
13037
13038         # ancient GNU ld didn't support --whole-archive et. al.
13039         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13040           $GREP 'no-whole-archive' > /dev/null; then
13041           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13042         else
13043           whole_archive_flag_spec_CXX=
13044         fi
13045       else
13046         with_gnu_ld=no
13047         wlarc=
13048
13049         # A generic and very simple default shared library creation
13050         # command for GNU C++ for the case where it uses the native
13051         # linker, instead of GNU ld.  If possible, this setting should
13052         # overridden to take advantage of the native linker features on
13053         # the platform it is being used on.
13054         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13055       fi
13056
13057       # Commands to make compiler produce verbose output that lists
13058       # what "hidden" libraries, object files and flags are used when
13059       # linking a shared library.
13060       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13061
13062     else
13063       GXX=no
13064       with_gnu_ld=no
13065       wlarc=
13066     fi
13067
13068     # PORTME: fill in a description of your system's C++ link characteristics
13069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13070 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13071     ld_shlibs_CXX=yes
13072     case $host_os in
13073       aix3*)
13074         # FIXME: insert proper C++ library support
13075         ld_shlibs_CXX=no
13076         ;;
13077       aix[4-9]*)
13078         if test "$host_cpu" = ia64; then
13079           # On IA64, the linker does run time linking by default, so we don't
13080           # have to do anything special.
13081           aix_use_runtimelinking=no
13082           exp_sym_flag='-Bexport'
13083           no_entry_flag=""
13084         else
13085           aix_use_runtimelinking=no
13086
13087           # Test if we are trying to use run time linking or normal
13088           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13089           # need to do runtime linking.
13090           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13091             for ld_flag in $LDFLAGS; do
13092               case $ld_flag in
13093               *-brtl*)
13094                 aix_use_runtimelinking=yes
13095                 break
13096                 ;;
13097               esac
13098             done
13099             ;;
13100           esac
13101
13102           exp_sym_flag='-bexport'
13103           no_entry_flag='-bnoentry'
13104         fi
13105
13106         # When large executables or shared objects are built, AIX ld can
13107         # have problems creating the table of contents.  If linking a library
13108         # or program results in "error TOC overflow" add -mminimal-toc to
13109         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13110         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13111
13112         archive_cmds_CXX=''
13113         hardcode_direct_CXX=yes
13114         hardcode_direct_absolute_CXX=yes
13115         hardcode_libdir_separator_CXX=':'
13116         link_all_deplibs_CXX=yes
13117         file_list_spec_CXX='${wl}-f,'
13118
13119         if test "$GXX" = yes; then
13120           case $host_os in aix4.[012]|aix4.[012].*)
13121           # We only want to do this on AIX 4.2 and lower, the check
13122           # below for broken collect2 doesn't work under 4.3+
13123           collect2name=`${CC} -print-prog-name=collect2`
13124           if test -f "$collect2name" &&
13125              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13126           then
13127             # We have reworked collect2
13128             :
13129           else
13130             # We have old collect2
13131             hardcode_direct_CXX=unsupported
13132             # It fails to find uninstalled libraries when the uninstalled
13133             # path is not listed in the libpath.  Setting hardcode_minus_L
13134             # to unsupported forces relinking
13135             hardcode_minus_L_CXX=yes
13136             hardcode_libdir_flag_spec_CXX='-L$libdir'
13137             hardcode_libdir_separator_CXX=
13138           fi
13139           esac
13140           shared_flag='-shared'
13141           if test "$aix_use_runtimelinking" = yes; then
13142             shared_flag="$shared_flag "'${wl}-G'
13143           fi
13144         else
13145           # not using gcc
13146           if test "$host_cpu" = ia64; then
13147           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13148           # chokes on -Wl,-G. The following line is correct:
13149           shared_flag='-G'
13150           else
13151             if test "$aix_use_runtimelinking" = yes; then
13152               shared_flag='${wl}-G'
13153             else
13154               shared_flag='${wl}-bM:SRE'
13155             fi
13156           fi
13157         fi
13158
13159         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13160         # It seems that -bexpall does not export symbols beginning with
13161         # underscore (_), so it is better to generate a list of symbols to
13162         # export.
13163         always_export_symbols_CXX=yes
13164         if test "$aix_use_runtimelinking" = yes; then
13165           # Warning - without using the other runtime loading flags (-brtl),
13166           # -berok will link without error, but may produce a broken library.
13167           allow_undefined_flag_CXX='-berok'
13168           # Determine the default libpath from the value encoded in an empty
13169           # executable.
13170           if test "${lt_cv_aix_libpath+set}" = set; then
13171   aix_libpath=$lt_cv_aix_libpath
13172 else
13173   if ${lt_cv_aix_libpath__CXX+:} false; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h.  */
13178
13179 int
13180 main ()
13181 {
13182
13183   ;
13184   return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_cxx_try_link "$LINENO"; then :
13188
13189   lt_aix_libpath_sed='
13190       /Import File Strings/,/^$/ {
13191           /^0/ {
13192               s/^0  *\([^ ]*\) *$/\1/
13193               p
13194           }
13195       }'
13196   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13197   # Check for a 64-bit object if we didn't find anything.
13198   if test -z "$lt_cv_aix_libpath__CXX"; then
13199     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13200   fi
13201 fi
13202 rm -f core conftest.err conftest.$ac_objext \
13203     conftest$ac_exeext conftest.$ac_ext
13204   if test -z "$lt_cv_aix_libpath__CXX"; then
13205     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13206   fi
13207
13208 fi
13209
13210   aix_libpath=$lt_cv_aix_libpath__CXX
13211 fi
13212
13213           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13214
13215           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13216         else
13217           if test "$host_cpu" = ia64; then
13218             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13219             allow_undefined_flag_CXX="-z nodefs"
13220             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"
13221           else
13222             # Determine the default libpath from the value encoded in an
13223             # empty executable.
13224             if test "${lt_cv_aix_libpath+set}" = set; then
13225   aix_libpath=$lt_cv_aix_libpath
13226 else
13227   if ${lt_cv_aix_libpath__CXX+:} false; then :
13228   $as_echo_n "(cached) " >&6
13229 else
13230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h.  */
13232
13233 int
13234 main ()
13235 {
13236
13237   ;
13238   return 0;
13239 }
13240 _ACEOF
13241 if ac_fn_cxx_try_link "$LINENO"; then :
13242
13243   lt_aix_libpath_sed='
13244       /Import File Strings/,/^$/ {
13245           /^0/ {
13246               s/^0  *\([^ ]*\) *$/\1/
13247               p
13248           }
13249       }'
13250   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13251   # Check for a 64-bit object if we didn't find anything.
13252   if test -z "$lt_cv_aix_libpath__CXX"; then
13253     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13254   fi
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257     conftest$ac_exeext conftest.$ac_ext
13258   if test -z "$lt_cv_aix_libpath__CXX"; then
13259     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13260   fi
13261
13262 fi
13263
13264   aix_libpath=$lt_cv_aix_libpath__CXX
13265 fi
13266
13267             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13268             # Warning - without using the other run time loading flags,
13269             # -berok will link without error, but may produce a broken library.
13270             no_undefined_flag_CXX=' ${wl}-bernotok'
13271             allow_undefined_flag_CXX=' ${wl}-berok'
13272             if test "$with_gnu_ld" = yes; then
13273               # We only use this code for GNU lds that support --whole-archive.
13274               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13275             else
13276               # Exported symbols can be pulled into shared objects from archives
13277               whole_archive_flag_spec_CXX='$convenience'
13278             fi
13279             archive_cmds_need_lc_CXX=yes
13280             # This is similar to how AIX traditionally builds its shared
13281             # libraries.
13282             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'
13283           fi
13284         fi
13285         ;;
13286
13287       beos*)
13288         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13289           allow_undefined_flag_CXX=unsupported
13290           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13291           # support --undefined.  This deserves some investigation.  FIXME
13292           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293         else
13294           ld_shlibs_CXX=no
13295         fi
13296         ;;
13297
13298       chorus*)
13299         case $cc_basename in
13300           *)
13301           # FIXME: insert proper C++ library support
13302           ld_shlibs_CXX=no
13303           ;;
13304         esac
13305         ;;
13306
13307       cygwin* | mingw* | pw32* | cegcc*)
13308         case $GXX,$cc_basename in
13309         ,cl* | no,cl*)
13310           # Native MSVC
13311           # hardcode_libdir_flag_spec is actually meaningless, as there is
13312           # no search path for DLLs.
13313           hardcode_libdir_flag_spec_CXX=' '
13314           allow_undefined_flag_CXX=unsupported
13315           always_export_symbols_CXX=yes
13316           file_list_spec_CXX='@'
13317           # Tell ltmain to make .lib files, not .a files.
13318           libext=lib
13319           # Tell ltmain to make .dll files, not .so files.
13320           shrext_cmds=".dll"
13321           # FIXME: Setting linknames here is a bad hack.
13322           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13323           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13324               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13325             else
13326               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13327             fi~
13328             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13329             linknames='
13330           # The linker will not automatically build a static lib if we build a DLL.
13331           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13332           enable_shared_with_static_runtimes_CXX=yes
13333           # Don't use ranlib
13334           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13335           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13336             lt_tool_outputfile="@TOOL_OUTPUT@"~
13337             case $lt_outputfile in
13338               *.exe|*.EXE) ;;
13339               *)
13340                 lt_outputfile="$lt_outputfile.exe"
13341                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13342                 ;;
13343             esac~
13344             func_to_tool_file "$lt_outputfile"~
13345             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13346               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13347               $RM "$lt_outputfile.manifest";
13348             fi'
13349           ;;
13350         *)
13351           # g++
13352           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13353           # as there is no search path for DLLs.
13354           hardcode_libdir_flag_spec_CXX='-L$libdir'
13355           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13356           allow_undefined_flag_CXX=unsupported
13357           always_export_symbols_CXX=no
13358           enable_shared_with_static_runtimes_CXX=yes
13359
13360           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13361             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'
13362             # If the export-symbols file already is a .def file (1st line
13363             # is EXPORTS), use it as is; otherwise, prepend...
13364             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13365               cp $export_symbols $output_objdir/$soname.def;
13366             else
13367               echo EXPORTS > $output_objdir/$soname.def;
13368               cat $export_symbols >> $output_objdir/$soname.def;
13369             fi~
13370             $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'
13371           else
13372             ld_shlibs_CXX=no
13373           fi
13374           ;;
13375         esac
13376         ;;
13377       darwin* | rhapsody*)
13378
13379
13380   archive_cmds_need_lc_CXX=no
13381   hardcode_direct_CXX=no
13382   hardcode_automatic_CXX=yes
13383   hardcode_shlibpath_var_CXX=unsupported
13384   if test "$lt_cv_ld_force_load" = "yes"; then
13385     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13386
13387   else
13388     whole_archive_flag_spec_CXX=''
13389   fi
13390   link_all_deplibs_CXX=yes
13391   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13392   case $cc_basename in
13393      ifort*) _lt_dar_can_shared=yes ;;
13394      *) _lt_dar_can_shared=$GCC ;;
13395   esac
13396   if test "$_lt_dar_can_shared" = "yes"; then
13397     output_verbose_link_cmd=func_echo_all
13398     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13399     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13400     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13401     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13402        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13403       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13404       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13405     fi
13406
13407   else
13408   ld_shlibs_CXX=no
13409   fi
13410
13411         ;;
13412
13413       dgux*)
13414         case $cc_basename in
13415           ec++*)
13416             # FIXME: insert proper C++ library support
13417             ld_shlibs_CXX=no
13418             ;;
13419           ghcx*)
13420             # Green Hills C++ Compiler
13421             # FIXME: insert proper C++ library support
13422             ld_shlibs_CXX=no
13423             ;;
13424           *)
13425             # FIXME: insert proper C++ library support
13426             ld_shlibs_CXX=no
13427             ;;
13428         esac
13429         ;;
13430
13431       freebsd2.*)
13432         # C++ shared libraries reported to be fairly broken before
13433         # switch to ELF
13434         ld_shlibs_CXX=no
13435         ;;
13436
13437       freebsd-elf*)
13438         archive_cmds_need_lc_CXX=no
13439         ;;
13440
13441       freebsd* | dragonfly*)
13442         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13443         # conventions
13444         ld_shlibs_CXX=yes
13445         ;;
13446
13447       haiku*)
13448         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13449         link_all_deplibs_CXX=yes
13450         ;;
13451
13452       hpux9*)
13453         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13454         hardcode_libdir_separator_CXX=:
13455         export_dynamic_flag_spec_CXX='${wl}-E'
13456         hardcode_direct_CXX=yes
13457         hardcode_minus_L_CXX=yes # Not in the search PATH,
13458                                              # but as the default
13459                                              # location of the library.
13460
13461         case $cc_basename in
13462           CC*)
13463             # FIXME: insert proper C++ library support
13464             ld_shlibs_CXX=no
13465             ;;
13466           aCC*)
13467             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'
13468             # Commands to make compiler produce verbose output that lists
13469             # what "hidden" libraries, object files and flags are used when
13470             # linking a shared library.
13471             #
13472             # There doesn't appear to be a way to prevent this compiler from
13473             # explicitly linking system object files so we need to strip them
13474             # from the output so that they don't get included in the library
13475             # dependencies.
13476             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13477             ;;
13478           *)
13479             if test "$GXX" = yes; then
13480               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13481             else
13482               # FIXME: insert proper C++ library support
13483               ld_shlibs_CXX=no
13484             fi
13485             ;;
13486         esac
13487         ;;
13488
13489       hpux10*|hpux11*)
13490         if test $with_gnu_ld = no; then
13491           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13492           hardcode_libdir_separator_CXX=:
13493
13494           case $host_cpu in
13495             hppa*64*|ia64*)
13496               ;;
13497             *)
13498               export_dynamic_flag_spec_CXX='${wl}-E'
13499               ;;
13500           esac
13501         fi
13502         case $host_cpu in
13503           hppa*64*|ia64*)
13504             hardcode_direct_CXX=no
13505             hardcode_shlibpath_var_CXX=no
13506             ;;
13507           *)
13508             hardcode_direct_CXX=yes
13509             hardcode_direct_absolute_CXX=yes
13510             hardcode_minus_L_CXX=yes # Not in the search PATH,
13511                                                  # but as the default
13512                                                  # location of the library.
13513             ;;
13514         esac
13515
13516         case $cc_basename in
13517           CC*)
13518             # FIXME: insert proper C++ library support
13519             ld_shlibs_CXX=no
13520             ;;
13521           aCC*)
13522             case $host_cpu in
13523               hppa*64*)
13524                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13525                 ;;
13526               ia64*)
13527                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13528                 ;;
13529               *)
13530                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13531                 ;;
13532             esac
13533             # Commands to make compiler produce verbose output that lists
13534             # what "hidden" libraries, object files and flags are used when
13535             # linking a shared library.
13536             #
13537             # There doesn't appear to be a way to prevent this compiler from
13538             # explicitly linking system object files so we need to strip them
13539             # from the output so that they don't get included in the library
13540             # dependencies.
13541             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; func_echo_all "$list"'
13542             ;;
13543           *)
13544             if test "$GXX" = yes; then
13545               if test $with_gnu_ld = no; then
13546                 case $host_cpu in
13547                   hppa*64*)
13548                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13549                     ;;
13550                   ia64*)
13551                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13552                     ;;
13553                   *)
13554                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13555                     ;;
13556                 esac
13557               fi
13558             else
13559               # FIXME: insert proper C++ library support
13560               ld_shlibs_CXX=no
13561             fi
13562             ;;
13563         esac
13564         ;;
13565
13566       interix[3-9]*)
13567         hardcode_direct_CXX=no
13568         hardcode_shlibpath_var_CXX=no
13569         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13570         export_dynamic_flag_spec_CXX='${wl}-E'
13571         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13572         # Instead, shared libraries are loaded at an image base (0x10000000 by
13573         # default) and relocated if they conflict, which is a slow very memory
13574         # consuming and fragmenting process.  To avoid this, we pick a random,
13575         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13576         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13577         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'
13578         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'
13579         ;;
13580       irix5* | irix6*)
13581         case $cc_basename in
13582           CC*)
13583             # SGI C++
13584             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13585
13586             # Archives containing C++ object files must be created using
13587             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13588             # necessary to make sure instantiated templates are included
13589             # in the archive.
13590             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13591             ;;
13592           *)
13593             if test "$GXX" = yes; then
13594               if test "$with_gnu_ld" = no; then
13595                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13596               else
13597                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13598               fi
13599             fi
13600             link_all_deplibs_CXX=yes
13601             ;;
13602         esac
13603         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13604         hardcode_libdir_separator_CXX=:
13605         inherit_rpath_CXX=yes
13606         ;;
13607
13608       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13609         case $cc_basename in
13610           KCC*)
13611             # Kuck and Associates, Inc. (KAI) C++ Compiler
13612
13613             # KCC will only create a shared library if the output file
13614             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13615             # to its proper name (with version) after linking.
13616             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'
13617             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'
13618             # Commands to make compiler produce verbose output that lists
13619             # what "hidden" libraries, object files and flags are used when
13620             # linking a shared library.
13621             #
13622             # There doesn't appear to be a way to prevent this compiler from
13623             # explicitly linking system object files so we need to strip them
13624             # from the output so that they don't get included in the library
13625             # dependencies.
13626             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; func_echo_all "$list"'
13627
13628             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13629             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13630
13631             # Archives containing C++ object files must be created using
13632             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13633             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13634             ;;
13635           icpc* | ecpc* )
13636             # Intel C++
13637             with_gnu_ld=yes
13638             # version 8.0 and above of icpc choke on multiply defined symbols
13639             # if we add $predep_objects and $postdep_objects, however 7.1 and
13640             # earlier do not add the objects themselves.
13641             case `$CC -V 2>&1` in
13642               *"Version 7."*)
13643                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13644                 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'
13645                 ;;
13646               *)  # Version 8.0 or newer
13647                 tmp_idyn=
13648                 case $host_cpu in
13649                   ia64*) tmp_idyn=' -i_dynamic';;
13650                 esac
13651                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652                 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'
13653                 ;;
13654             esac
13655             archive_cmds_need_lc_CXX=no
13656             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13657             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13658             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13659             ;;
13660           pgCC* | pgcpp*)
13661             # Portland Group C++ compiler
13662             case `$CC -V` in
13663             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13664               prelink_cmds_CXX='tpldir=Template.dir~
13665                 rm -rf $tpldir~
13666                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13667                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13668               old_archive_cmds_CXX='tpldir=Template.dir~
13669                 rm -rf $tpldir~
13670                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13671                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13672                 $RANLIB $oldlib'
13673               archive_cmds_CXX='tpldir=Template.dir~
13674                 rm -rf $tpldir~
13675                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13676                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13677               archive_expsym_cmds_CXX='tpldir=Template.dir~
13678                 rm -rf $tpldir~
13679                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13680                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13681               ;;
13682             *) # Version 6 and above use weak symbols
13683               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13684               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'
13685               ;;
13686             esac
13687
13688             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13689             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13690             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13691             ;;
13692           cxx*)
13693             # Compaq C++
13694             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13695             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'
13696
13697             runpath_var=LD_RUN_PATH
13698             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13699             hardcode_libdir_separator_CXX=:
13700
13701             # Commands to make compiler produce verbose output that lists
13702             # what "hidden" libraries, object files and flags are used when
13703             # linking a shared library.
13704             #
13705             # There doesn't appear to be a way to prevent this compiler from
13706             # explicitly linking system object files so we need to strip them
13707             # from the output so that they don't get included in the library
13708             # dependencies.
13709             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13710             ;;
13711           xl* | mpixl* | bgxl*)
13712             # IBM XL 8.0 on PPC, with GNU ld
13713             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13714             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13715             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13716             if test "x$supports_anon_versioning" = xyes; then
13717               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13718                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13719                 echo "local: *; };" >> $output_objdir/$libname.ver~
13720                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13721             fi
13722             ;;
13723           *)
13724             case `$CC -V 2>&1 | sed 5q` in
13725             *Sun\ C*)
13726               # Sun C++ 5.9
13727               no_undefined_flag_CXX=' -zdefs'
13728               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13729               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13730               hardcode_libdir_flag_spec_CXX='-R$libdir'
13731               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13732               compiler_needs_object_CXX=yes
13733
13734               # Not sure whether something based on
13735               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13736               # would be better.
13737               output_verbose_link_cmd='func_echo_all'
13738
13739               # Archives containing C++ object files must be created using
13740               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13741               # necessary to make sure instantiated templates are included
13742               # in the archive.
13743               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13744               ;;
13745             esac
13746             ;;
13747         esac
13748         ;;
13749
13750       lynxos*)
13751         # FIXME: insert proper C++ library support
13752         ld_shlibs_CXX=no
13753         ;;
13754
13755       m88k*)
13756         # FIXME: insert proper C++ library support
13757         ld_shlibs_CXX=no
13758         ;;
13759
13760       mvs*)
13761         case $cc_basename in
13762           cxx*)
13763             # FIXME: insert proper C++ library support
13764             ld_shlibs_CXX=no
13765             ;;
13766           *)
13767             # FIXME: insert proper C++ library support
13768             ld_shlibs_CXX=no
13769             ;;
13770         esac
13771         ;;
13772
13773       netbsd*)
13774         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13775           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13776           wlarc=
13777           hardcode_libdir_flag_spec_CXX='-R$libdir'
13778           hardcode_direct_CXX=yes
13779           hardcode_shlibpath_var_CXX=no
13780         fi
13781         # Workaround some broken pre-1.5 toolchains
13782         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13783         ;;
13784
13785       *nto* | *qnx*)
13786         ld_shlibs_CXX=yes
13787         ;;
13788
13789       openbsd2*)
13790         # C++ shared libraries are fairly broken
13791         ld_shlibs_CXX=no
13792         ;;
13793
13794       openbsd*)
13795         if test -f /usr/libexec/ld.so; then
13796           hardcode_direct_CXX=yes
13797           hardcode_shlibpath_var_CXX=no
13798           hardcode_direct_absolute_CXX=yes
13799           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13800           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13801           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13802             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13803             export_dynamic_flag_spec_CXX='${wl}-E'
13804             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13805           fi
13806           output_verbose_link_cmd=func_echo_all
13807         else
13808           ld_shlibs_CXX=no
13809         fi
13810         ;;
13811
13812       osf3* | osf4* | osf5*)
13813         case $cc_basename in
13814           KCC*)
13815             # Kuck and Associates, Inc. (KAI) C++ Compiler
13816
13817             # KCC will only create a shared library if the output file
13818             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13819             # to its proper name (with version) after linking.
13820             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'
13821
13822             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13823             hardcode_libdir_separator_CXX=:
13824
13825             # Archives containing C++ object files must be created using
13826             # the KAI C++ compiler.
13827             case $host in
13828               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13829               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13830             esac
13831             ;;
13832           RCC*)
13833             # Rational C++ 2.4.1
13834             # FIXME: insert proper C++ library support
13835             ld_shlibs_CXX=no
13836             ;;
13837           cxx*)
13838             case $host in
13839               osf3*)
13840                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13841                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13842                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13843                 ;;
13844               *)
13845                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13846                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13847                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13848                   echo "-hidden">> $lib.exp~
13849                   $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~
13850                   $RM $lib.exp'
13851                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13852                 ;;
13853             esac
13854
13855             hardcode_libdir_separator_CXX=:
13856
13857             # Commands to make compiler produce verbose output that lists
13858             # what "hidden" libraries, object files and flags are used when
13859             # linking a shared library.
13860             #
13861             # There doesn't appear to be a way to prevent this compiler from
13862             # explicitly linking system object files so we need to strip them
13863             # from the output so that they don't get included in the library
13864             # dependencies.
13865             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13866             ;;
13867           *)
13868             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13869               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13870               case $host in
13871                 osf3*)
13872                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13873                   ;;
13874                 *)
13875                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13876                   ;;
13877               esac
13878
13879               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13880               hardcode_libdir_separator_CXX=:
13881
13882               # Commands to make compiler produce verbose output that lists
13883               # what "hidden" libraries, object files and flags are used when
13884               # linking a shared library.
13885               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13886
13887             else
13888               # FIXME: insert proper C++ library support
13889               ld_shlibs_CXX=no
13890             fi
13891             ;;
13892         esac
13893         ;;
13894
13895       psos*)
13896         # FIXME: insert proper C++ library support
13897         ld_shlibs_CXX=no
13898         ;;
13899
13900       sunos4*)
13901         case $cc_basename in
13902           CC*)
13903             # Sun C++ 4.x
13904             # FIXME: insert proper C++ library support
13905             ld_shlibs_CXX=no
13906             ;;
13907           lcc*)
13908             # Lucid
13909             # FIXME: insert proper C++ library support
13910             ld_shlibs_CXX=no
13911             ;;
13912           *)
13913             # FIXME: insert proper C++ library support
13914             ld_shlibs_CXX=no
13915             ;;
13916         esac
13917         ;;
13918
13919       solaris*)
13920         case $cc_basename in
13921           CC* | sunCC*)
13922             # Sun C++ 4.2, 5.x and Centerline C++
13923             archive_cmds_need_lc_CXX=yes
13924             no_undefined_flag_CXX=' -zdefs'
13925             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13926             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13927               $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'
13928
13929             hardcode_libdir_flag_spec_CXX='-R$libdir'
13930             hardcode_shlibpath_var_CXX=no
13931             case $host_os in
13932               solaris2.[0-5] | solaris2.[0-5].*) ;;
13933               *)
13934                 # The compiler driver will combine and reorder linker options,
13935                 # but understands `-z linker_flag'.
13936                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13937                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13938                 ;;
13939             esac
13940             link_all_deplibs_CXX=yes
13941
13942             output_verbose_link_cmd='func_echo_all'
13943
13944             # Archives containing C++ object files must be created using
13945             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13946             # necessary to make sure instantiated templates are included
13947             # in the archive.
13948             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13949             ;;
13950           gcx*)
13951             # Green Hills C++ Compiler
13952             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13953
13954             # The C++ compiler must be used to create the archive.
13955             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13956             ;;
13957           *)
13958             # GNU C++ compiler with Solaris linker
13959             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13960               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13961               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13962                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13963                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13964                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13965
13966                 # Commands to make compiler produce verbose output that lists
13967                 # what "hidden" libraries, object files and flags are used when
13968                 # linking a shared library.
13969                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13970               else
13971                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13972                 # platform.
13973                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13974                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13975                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13976
13977                 # Commands to make compiler produce verbose output that lists
13978                 # what "hidden" libraries, object files and flags are used when
13979                 # linking a shared library.
13980                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13981               fi
13982
13983               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13984               case $host_os in
13985                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13986                 *)
13987                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13988                   ;;
13989               esac
13990             fi
13991             ;;
13992         esac
13993         ;;
13994
13995     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13996       no_undefined_flag_CXX='${wl}-z,text'
13997       archive_cmds_need_lc_CXX=no
13998       hardcode_shlibpath_var_CXX=no
13999       runpath_var='LD_RUN_PATH'
14000
14001       case $cc_basename in
14002         CC*)
14003           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14004           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14005           ;;
14006         *)
14007           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14008           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14009           ;;
14010       esac
14011       ;;
14012
14013       sysv5* | sco3.2v5* | sco5v6*)
14014         # Note: We can NOT use -z defs as we might desire, because we do not
14015         # link with -lc, and that would cause any symbols used from libc to
14016         # always be unresolved, which means just about no library would
14017         # ever link correctly.  If we're not using GNU ld we use -z text
14018         # though, which does catch some bad symbols but isn't as heavy-handed
14019         # as -z defs.
14020         no_undefined_flag_CXX='${wl}-z,text'
14021         allow_undefined_flag_CXX='${wl}-z,nodefs'
14022         archive_cmds_need_lc_CXX=no
14023         hardcode_shlibpath_var_CXX=no
14024         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14025         hardcode_libdir_separator_CXX=':'
14026         link_all_deplibs_CXX=yes
14027         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14028         runpath_var='LD_RUN_PATH'
14029
14030         case $cc_basename in
14031           CC*)
14032             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14033             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14034             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14035               '"$old_archive_cmds_CXX"
14036             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14037               '"$reload_cmds_CXX"
14038             ;;
14039           *)
14040             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14041             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14042             ;;
14043         esac
14044       ;;
14045
14046       tandem*)
14047         case $cc_basename in
14048           NCC*)
14049             # NonStop-UX NCC 3.20
14050             # FIXME: insert proper C++ library support
14051             ld_shlibs_CXX=no
14052             ;;
14053           *)
14054             # FIXME: insert proper C++ library support
14055             ld_shlibs_CXX=no
14056             ;;
14057         esac
14058         ;;
14059
14060       vxworks*)
14061         # FIXME: insert proper C++ library support
14062         ld_shlibs_CXX=no
14063         ;;
14064
14065       *)
14066         # FIXME: insert proper C++ library support
14067         ld_shlibs_CXX=no
14068         ;;
14069     esac
14070
14071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14072 $as_echo "$ld_shlibs_CXX" >&6; }
14073     test "$ld_shlibs_CXX" = no && can_build_shared=no
14074
14075     GCC_CXX="$GXX"
14076     LD_CXX="$LD"
14077
14078     ## CAVEAT EMPTOR:
14079     ## There is no encapsulation within the following macros, do not change
14080     ## the running order or otherwise move them around unless you know exactly
14081     ## what you are doing...
14082     # Dependencies to place before and after the object being linked:
14083 predep_objects_CXX=
14084 postdep_objects_CXX=
14085 predeps_CXX=
14086 postdeps_CXX=
14087 compiler_lib_search_path_CXX=
14088
14089 cat > conftest.$ac_ext <<_LT_EOF
14090 class Foo
14091 {
14092 public:
14093   Foo (void) { a = 0; }
14094 private:
14095   int a;
14096 };
14097 _LT_EOF
14098
14099
14100 _lt_libdeps_save_CFLAGS=$CFLAGS
14101 case "$CC $CFLAGS " in #(
14102 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14103 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14104 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14105 esac
14106
14107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14108   (eval $ac_compile) 2>&5
14109   ac_status=$?
14110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14111   test $ac_status = 0; }; then
14112   # Parse the compiler output and extract the necessary
14113   # objects, libraries and library flags.
14114
14115   # Sentinel used to keep track of whether or not we are before
14116   # the conftest object file.
14117   pre_test_object_deps_done=no
14118
14119   for p in `eval "$output_verbose_link_cmd"`; do
14120     case ${prev}${p} in
14121
14122     -L* | -R* | -l*)
14123        # Some compilers place space between "-{L,R}" and the path.
14124        # Remove the space.
14125        if test $p = "-L" ||
14126           test $p = "-R"; then
14127          prev=$p
14128          continue
14129        fi
14130
14131        # Expand the sysroot to ease extracting the directories later.
14132        if test -z "$prev"; then
14133          case $p in
14134          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14135          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14136          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14137          esac
14138        fi
14139        case $p in
14140        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14141        esac
14142        if test "$pre_test_object_deps_done" = no; then
14143          case ${prev} in
14144          -L | -R)
14145            # Internal compiler library paths should come after those
14146            # provided the user.  The postdeps already come after the
14147            # user supplied libs so there is no need to process them.
14148            if test -z "$compiler_lib_search_path_CXX"; then
14149              compiler_lib_search_path_CXX="${prev}${p}"
14150            else
14151              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14152            fi
14153            ;;
14154          # The "-l" case would never come before the object being
14155          # linked, so don't bother handling this case.
14156          esac
14157        else
14158          if test -z "$postdeps_CXX"; then
14159            postdeps_CXX="${prev}${p}"
14160          else
14161            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14162          fi
14163        fi
14164        prev=
14165        ;;
14166
14167     *.lto.$objext) ;; # Ignore GCC LTO objects
14168     *.$objext)
14169        # This assumes that the test object file only shows up
14170        # once in the compiler output.
14171        if test "$p" = "conftest.$objext"; then
14172          pre_test_object_deps_done=yes
14173          continue
14174        fi
14175
14176        if test "$pre_test_object_deps_done" = no; then
14177          if test -z "$predep_objects_CXX"; then
14178            predep_objects_CXX="$p"
14179          else
14180            predep_objects_CXX="$predep_objects_CXX $p"
14181          fi
14182        else
14183          if test -z "$postdep_objects_CXX"; then
14184            postdep_objects_CXX="$p"
14185          else
14186            postdep_objects_CXX="$postdep_objects_CXX $p"
14187          fi
14188        fi
14189        ;;
14190
14191     *) ;; # Ignore the rest.
14192
14193     esac
14194   done
14195
14196   # Clean up.
14197   rm -f a.out a.exe
14198 else
14199   echo "libtool.m4: error: problem compiling CXX test program"
14200 fi
14201
14202 $RM -f confest.$objext
14203 CFLAGS=$_lt_libdeps_save_CFLAGS
14204
14205 # PORTME: override above test on systems where it is broken
14206 case $host_os in
14207 interix[3-9]*)
14208   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14209   # hack all around it, let's just trust "g++" to DTRT.
14210   predep_objects_CXX=
14211   postdep_objects_CXX=
14212   postdeps_CXX=
14213   ;;
14214
14215 linux*)
14216   case `$CC -V 2>&1 | sed 5q` in
14217   *Sun\ C*)
14218     # Sun C++ 5.9
14219
14220     # The more standards-conforming stlport4 library is
14221     # incompatible with the Cstd library. Avoid specifying
14222     # it if it's in CXXFLAGS. Ignore libCrun as
14223     # -library=stlport4 depends on it.
14224     case " $CXX $CXXFLAGS " in
14225     *" -library=stlport4 "*)
14226       solaris_use_stlport4=yes
14227       ;;
14228     esac
14229
14230     if test "$solaris_use_stlport4" != yes; then
14231       postdeps_CXX='-library=Cstd -library=Crun'
14232     fi
14233     ;;
14234   esac
14235   ;;
14236
14237 solaris*)
14238   case $cc_basename in
14239   CC* | sunCC*)
14240     # The more standards-conforming stlport4 library is
14241     # incompatible with the Cstd library. Avoid specifying
14242     # it if it's in CXXFLAGS. Ignore libCrun as
14243     # -library=stlport4 depends on it.
14244     case " $CXX $CXXFLAGS " in
14245     *" -library=stlport4 "*)
14246       solaris_use_stlport4=yes
14247       ;;
14248     esac
14249
14250     # Adding this requires a known-good setup of shared libraries for
14251     # Sun compiler versions before 5.6, else PIC objects from an old
14252     # archive will be linked into the output, leading to subtle bugs.
14253     if test "$solaris_use_stlport4" != yes; then
14254       postdeps_CXX='-library=Cstd -library=Crun'
14255     fi
14256     ;;
14257   esac
14258   ;;
14259 esac
14260
14261
14262 case " $postdeps_CXX " in
14263 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14264 esac
14265  compiler_lib_search_dirs_CXX=
14266 if test -n "${compiler_lib_search_path_CXX}"; then
14267  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14268 fi
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300     lt_prog_compiler_wl_CXX=
14301 lt_prog_compiler_pic_CXX=
14302 lt_prog_compiler_static_CXX=
14303
14304
14305   # C++ specific cases for pic, static, wl, etc.
14306   if test "$GXX" = yes; then
14307     lt_prog_compiler_wl_CXX='-Wl,'
14308     lt_prog_compiler_static_CXX='-static'
14309
14310     case $host_os in
14311     aix*)
14312       # All AIX code is PIC.
14313       if test "$host_cpu" = ia64; then
14314         # AIX 5 now supports IA64 processor
14315         lt_prog_compiler_static_CXX='-Bstatic'
14316       fi
14317       ;;
14318
14319     amigaos*)
14320       case $host_cpu in
14321       powerpc)
14322             # see comment about AmigaOS4 .so support
14323             lt_prog_compiler_pic_CXX='-fPIC'
14324         ;;
14325       m68k)
14326             # FIXME: we need at least 68020 code to build shared libraries, but
14327             # adding the `-m68020' flag to GCC prevents building anything better,
14328             # like `-m68040'.
14329             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14330         ;;
14331       esac
14332       ;;
14333
14334     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14335       # PIC is the default for these OSes.
14336       ;;
14337     mingw* | cygwin* | os2* | pw32* | cegcc*)
14338       # This hack is so that the source file can tell whether it is being
14339       # built for inclusion in a dll (and should export symbols for example).
14340       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14341       # (--disable-auto-import) libraries
14342       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14343       ;;
14344     darwin* | rhapsody*)
14345       # PIC is the default on this platform
14346       # Common symbols not allowed in MH_DYLIB files
14347       lt_prog_compiler_pic_CXX='-fno-common'
14348       ;;
14349     *djgpp*)
14350       # DJGPP does not support shared libraries at all
14351       lt_prog_compiler_pic_CXX=
14352       ;;
14353     haiku*)
14354       # PIC is the default for Haiku.
14355       # The "-static" flag exists, but is broken.
14356       lt_prog_compiler_static_CXX=
14357       ;;
14358     interix[3-9]*)
14359       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14360       # Instead, we relocate shared libraries at runtime.
14361       ;;
14362     sysv4*MP*)
14363       if test -d /usr/nec; then
14364         lt_prog_compiler_pic_CXX=-Kconform_pic
14365       fi
14366       ;;
14367     hpux*)
14368       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14369       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14370       # sets the default TLS model and affects inlining.
14371       case $host_cpu in
14372       hppa*64*)
14373         ;;
14374       *)
14375         lt_prog_compiler_pic_CXX='-fPIC'
14376         ;;
14377       esac
14378       ;;
14379     *qnx* | *nto*)
14380       # QNX uses GNU C++, but need to define -shared option too, otherwise
14381       # it will coredump.
14382       lt_prog_compiler_pic_CXX='-fPIC -shared'
14383       ;;
14384     *)
14385       lt_prog_compiler_pic_CXX='-fPIC'
14386       ;;
14387     esac
14388   else
14389     case $host_os in
14390       aix[4-9]*)
14391         # All AIX code is PIC.
14392         if test "$host_cpu" = ia64; then
14393           # AIX 5 now supports IA64 processor
14394           lt_prog_compiler_static_CXX='-Bstatic'
14395         else
14396           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14397         fi
14398         ;;
14399       chorus*)
14400         case $cc_basename in
14401         cxch68*)
14402           # Green Hills C++ Compiler
14403           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14404           ;;
14405         esac
14406         ;;
14407       mingw* | cygwin* | os2* | pw32* | cegcc*)
14408         # This hack is so that the source file can tell whether it is being
14409         # built for inclusion in a dll (and should export symbols for example).
14410         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14411         ;;
14412       dgux*)
14413         case $cc_basename in
14414           ec++*)
14415             lt_prog_compiler_pic_CXX='-KPIC'
14416             ;;
14417           ghcx*)
14418             # Green Hills C++ Compiler
14419             lt_prog_compiler_pic_CXX='-pic'
14420             ;;
14421           *)
14422             ;;
14423         esac
14424         ;;
14425       freebsd* | dragonfly*)
14426         # FreeBSD uses GNU C++
14427         ;;
14428       hpux9* | hpux10* | hpux11*)
14429         case $cc_basename in
14430           CC*)
14431             lt_prog_compiler_wl_CXX='-Wl,'
14432             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14433             if test "$host_cpu" != ia64; then
14434               lt_prog_compiler_pic_CXX='+Z'
14435             fi
14436             ;;
14437           aCC*)
14438             lt_prog_compiler_wl_CXX='-Wl,'
14439             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14440             case $host_cpu in
14441             hppa*64*|ia64*)
14442               # +Z the default
14443               ;;
14444             *)
14445               lt_prog_compiler_pic_CXX='+Z'
14446               ;;
14447             esac
14448             ;;
14449           *)
14450             ;;
14451         esac
14452         ;;
14453       interix*)
14454         # This is c89, which is MS Visual C++ (no shared libs)
14455         # Anyone wants to do a port?
14456         ;;
14457       irix5* | irix6* | nonstopux*)
14458         case $cc_basename in
14459           CC*)
14460             lt_prog_compiler_wl_CXX='-Wl,'
14461             lt_prog_compiler_static_CXX='-non_shared'
14462             # CC pic flag -KPIC is the default.
14463             ;;
14464           *)
14465             ;;
14466         esac
14467         ;;
14468       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14469         case $cc_basename in
14470           KCC*)
14471             # KAI C++ Compiler
14472             lt_prog_compiler_wl_CXX='--backend -Wl,'
14473             lt_prog_compiler_pic_CXX='-fPIC'
14474             ;;
14475           ecpc* )
14476             # old Intel C++ for x86_64 which still supported -KPIC.
14477             lt_prog_compiler_wl_CXX='-Wl,'
14478             lt_prog_compiler_pic_CXX='-KPIC'
14479             lt_prog_compiler_static_CXX='-static'
14480             ;;
14481           icpc* )
14482             # Intel C++, used to be incompatible with GCC.
14483             # ICC 10 doesn't accept -KPIC any more.
14484             lt_prog_compiler_wl_CXX='-Wl,'
14485             lt_prog_compiler_pic_CXX='-fPIC'
14486             lt_prog_compiler_static_CXX='-static'
14487             ;;
14488           pgCC* | pgcpp*)
14489             # Portland Group C++ compiler
14490             lt_prog_compiler_wl_CXX='-Wl,'
14491             lt_prog_compiler_pic_CXX='-fpic'
14492             lt_prog_compiler_static_CXX='-Bstatic'
14493             ;;
14494           cxx*)
14495             # Compaq C++
14496             # Make sure the PIC flag is empty.  It appears that all Alpha
14497             # Linux and Compaq Tru64 Unix objects are PIC.
14498             lt_prog_compiler_pic_CXX=
14499             lt_prog_compiler_static_CXX='-non_shared'
14500             ;;
14501           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14502             # IBM XL 8.0, 9.0 on PPC and BlueGene
14503             lt_prog_compiler_wl_CXX='-Wl,'
14504             lt_prog_compiler_pic_CXX='-qpic'
14505             lt_prog_compiler_static_CXX='-qstaticlink'
14506             ;;
14507           *)
14508             case `$CC -V 2>&1 | sed 5q` in
14509             *Sun\ C*)
14510               # Sun C++ 5.9
14511               lt_prog_compiler_pic_CXX='-KPIC'
14512               lt_prog_compiler_static_CXX='-Bstatic'
14513               lt_prog_compiler_wl_CXX='-Qoption ld '
14514               ;;
14515             esac
14516             ;;
14517         esac
14518         ;;
14519       lynxos*)
14520         ;;
14521       m88k*)
14522         ;;
14523       mvs*)
14524         case $cc_basename in
14525           cxx*)
14526             lt_prog_compiler_pic_CXX='-W c,exportall'
14527             ;;
14528           *)
14529             ;;
14530         esac
14531         ;;
14532       netbsd* | netbsdelf*-gnu)
14533         ;;
14534       *qnx* | *nto*)
14535         # QNX uses GNU C++, but need to define -shared option too, otherwise
14536         # it will coredump.
14537         lt_prog_compiler_pic_CXX='-fPIC -shared'
14538         ;;
14539       osf3* | osf4* | osf5*)
14540         case $cc_basename in
14541           KCC*)
14542             lt_prog_compiler_wl_CXX='--backend -Wl,'
14543             ;;
14544           RCC*)
14545             # Rational C++ 2.4.1
14546             lt_prog_compiler_pic_CXX='-pic'
14547             ;;
14548           cxx*)
14549             # Digital/Compaq C++
14550             lt_prog_compiler_wl_CXX='-Wl,'
14551             # Make sure the PIC flag is empty.  It appears that all Alpha
14552             # Linux and Compaq Tru64 Unix objects are PIC.
14553             lt_prog_compiler_pic_CXX=
14554             lt_prog_compiler_static_CXX='-non_shared'
14555             ;;
14556           *)
14557             ;;
14558         esac
14559         ;;
14560       psos*)
14561         ;;
14562       solaris*)
14563         case $cc_basename in
14564           CC* | sunCC*)
14565             # Sun C++ 4.2, 5.x and Centerline C++
14566             lt_prog_compiler_pic_CXX='-KPIC'
14567             lt_prog_compiler_static_CXX='-Bstatic'
14568             lt_prog_compiler_wl_CXX='-Qoption ld '
14569             ;;
14570           gcx*)
14571             # Green Hills C++ Compiler
14572             lt_prog_compiler_pic_CXX='-PIC'
14573             ;;
14574           *)
14575             ;;
14576         esac
14577         ;;
14578       sunos4*)
14579         case $cc_basename in
14580           CC*)
14581             # Sun C++ 4.x
14582             lt_prog_compiler_pic_CXX='-pic'
14583             lt_prog_compiler_static_CXX='-Bstatic'
14584             ;;
14585           lcc*)
14586             # Lucid
14587             lt_prog_compiler_pic_CXX='-pic'
14588             ;;
14589           *)
14590             ;;
14591         esac
14592         ;;
14593       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14594         case $cc_basename in
14595           CC*)
14596             lt_prog_compiler_wl_CXX='-Wl,'
14597             lt_prog_compiler_pic_CXX='-KPIC'
14598             lt_prog_compiler_static_CXX='-Bstatic'
14599             ;;
14600         esac
14601         ;;
14602       tandem*)
14603         case $cc_basename in
14604           NCC*)
14605             # NonStop-UX NCC 3.20
14606             lt_prog_compiler_pic_CXX='-KPIC'
14607             ;;
14608           *)
14609             ;;
14610         esac
14611         ;;
14612       vxworks*)
14613         ;;
14614       *)
14615         lt_prog_compiler_can_build_shared_CXX=no
14616         ;;
14617     esac
14618   fi
14619
14620 case $host_os in
14621   # For platforms which do not support PIC, -DPIC is meaningless:
14622   *djgpp*)
14623     lt_prog_compiler_pic_CXX=
14624     ;;
14625   *)
14626     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14627     ;;
14628 esac
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14631 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14632 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14633   $as_echo_n "(cached) " >&6
14634 else
14635   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14636 fi
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14638 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14639 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14640
14641 #
14642 # Check to make sure the PIC flag actually works.
14643 #
14644 if test -n "$lt_prog_compiler_pic_CXX"; then
14645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14646 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14647 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14648   $as_echo_n "(cached) " >&6
14649 else
14650   lt_cv_prog_compiler_pic_works_CXX=no
14651    ac_outfile=conftest.$ac_objext
14652    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14653    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14654    # Insert the option either (1) after the last *FLAGS variable, or
14655    # (2) before a word containing "conftest.", or (3) at the end.
14656    # Note that $ac_compile itself does not contain backslashes and begins
14657    # with a dollar sign (not a hyphen), so the echo should work correctly.
14658    # The option is referenced via a variable to avoid confusing sed.
14659    lt_compile=`echo "$ac_compile" | $SED \
14660    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14661    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14662    -e 's:$: $lt_compiler_flag:'`
14663    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14664    (eval "$lt_compile" 2>conftest.err)
14665    ac_status=$?
14666    cat conftest.err >&5
14667    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668    if (exit $ac_status) && test -s "$ac_outfile"; then
14669      # The compiler can only warn and ignore the option if not recognized
14670      # So say no if there are warnings other than the usual output.
14671      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14672      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14673      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14674        lt_cv_prog_compiler_pic_works_CXX=yes
14675      fi
14676    fi
14677    $RM conftest*
14678
14679 fi
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14681 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14682
14683 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14684     case $lt_prog_compiler_pic_CXX in
14685      "" | " "*) ;;
14686      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14687      esac
14688 else
14689     lt_prog_compiler_pic_CXX=
14690      lt_prog_compiler_can_build_shared_CXX=no
14691 fi
14692
14693 fi
14694
14695
14696
14697
14698
14699 #
14700 # Check to make sure the static flag actually works.
14701 #
14702 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14704 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14705 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14706   $as_echo_n "(cached) " >&6
14707 else
14708   lt_cv_prog_compiler_static_works_CXX=no
14709    save_LDFLAGS="$LDFLAGS"
14710    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14711    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14712    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14713      # The linker can only warn and ignore the option if not recognized
14714      # So say no if there are warnings
14715      if test -s conftest.err; then
14716        # Append any errors to the config.log.
14717        cat conftest.err 1>&5
14718        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14719        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14720        if diff conftest.exp conftest.er2 >/dev/null; then
14721          lt_cv_prog_compiler_static_works_CXX=yes
14722        fi
14723      else
14724        lt_cv_prog_compiler_static_works_CXX=yes
14725      fi
14726    fi
14727    $RM -r conftest*
14728    LDFLAGS="$save_LDFLAGS"
14729
14730 fi
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14732 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14733
14734 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14735     :
14736 else
14737     lt_prog_compiler_static_CXX=
14738 fi
14739
14740
14741
14742
14743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14744 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14745 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14746   $as_echo_n "(cached) " >&6
14747 else
14748   lt_cv_prog_compiler_c_o_CXX=no
14749    $RM -r conftest 2>/dev/null
14750    mkdir conftest
14751    cd conftest
14752    mkdir out
14753    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14754
14755    lt_compiler_flag="-o out/conftest2.$ac_objext"
14756    # Insert the option either (1) after the last *FLAGS variable, or
14757    # (2) before a word containing "conftest.", or (3) at the end.
14758    # Note that $ac_compile itself does not contain backslashes and begins
14759    # with a dollar sign (not a hyphen), so the echo should work correctly.
14760    lt_compile=`echo "$ac_compile" | $SED \
14761    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14763    -e 's:$: $lt_compiler_flag:'`
14764    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14765    (eval "$lt_compile" 2>out/conftest.err)
14766    ac_status=$?
14767    cat out/conftest.err >&5
14768    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14770    then
14771      # The compiler can only warn and ignore the option if not recognized
14772      # So say no if there are warnings
14773      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14774      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14775      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14776        lt_cv_prog_compiler_c_o_CXX=yes
14777      fi
14778    fi
14779    chmod u+w . 2>&5
14780    $RM conftest*
14781    # SGI C++ compiler will create directory out/ii_files/ for
14782    # template instantiation
14783    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14784    $RM out/* && rmdir out
14785    cd ..
14786    $RM -r conftest
14787    $RM conftest*
14788
14789 fi
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14791 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14792
14793
14794
14795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14796 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14797 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14798   $as_echo_n "(cached) " >&6
14799 else
14800   lt_cv_prog_compiler_c_o_CXX=no
14801    $RM -r conftest 2>/dev/null
14802    mkdir conftest
14803    cd conftest
14804    mkdir out
14805    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14806
14807    lt_compiler_flag="-o out/conftest2.$ac_objext"
14808    # Insert the option either (1) after the last *FLAGS variable, or
14809    # (2) before a word containing "conftest.", or (3) at the end.
14810    # Note that $ac_compile itself does not contain backslashes and begins
14811    # with a dollar sign (not a hyphen), so the echo should work correctly.
14812    lt_compile=`echo "$ac_compile" | $SED \
14813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14815    -e 's:$: $lt_compiler_flag:'`
14816    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14817    (eval "$lt_compile" 2>out/conftest.err)
14818    ac_status=$?
14819    cat out/conftest.err >&5
14820    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14822    then
14823      # The compiler can only warn and ignore the option if not recognized
14824      # So say no if there are warnings
14825      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14826      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14827      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14828        lt_cv_prog_compiler_c_o_CXX=yes
14829      fi
14830    fi
14831    chmod u+w . 2>&5
14832    $RM conftest*
14833    # SGI C++ compiler will create directory out/ii_files/ for
14834    # template instantiation
14835    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14836    $RM out/* && rmdir out
14837    cd ..
14838    $RM -r conftest
14839    $RM conftest*
14840
14841 fi
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14843 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14844
14845
14846
14847
14848 hard_links="nottested"
14849 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14850   # do not overwrite the value of need_locks provided by the user
14851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14852 $as_echo_n "checking if we can lock with hard links... " >&6; }
14853   hard_links=yes
14854   $RM conftest*
14855   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14856   touch conftest.a
14857   ln conftest.a conftest.b 2>&5 || hard_links=no
14858   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14860 $as_echo "$hard_links" >&6; }
14861   if test "$hard_links" = no; then
14862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14863 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14864     need_locks=warn
14865   fi
14866 else
14867   need_locks=no
14868 fi
14869
14870
14871
14872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14873 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14874
14875   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14876   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14877   case $host_os in
14878   aix[4-9]*)
14879     # If we're using GNU nm, then we don't want the "-C" option.
14880     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14881     # Also, AIX nm treats weak defined symbols like other global defined
14882     # symbols, whereas GNU nm marks them as "W".
14883     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14884       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14885     else
14886       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'
14887     fi
14888     ;;
14889   pw32*)
14890     export_symbols_cmds_CXX="$ltdll_cmds"
14891     ;;
14892   cygwin* | mingw* | cegcc*)
14893     case $cc_basename in
14894     cl*)
14895       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14896       ;;
14897     *)
14898       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14899       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14900       ;;
14901     esac
14902     ;;
14903   linux* | k*bsd*-gnu | gnu*)
14904     link_all_deplibs_CXX=no
14905     ;;
14906   *)
14907     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14908     ;;
14909   esac
14910
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14912 $as_echo "$ld_shlibs_CXX" >&6; }
14913 test "$ld_shlibs_CXX" = no && can_build_shared=no
14914
14915 with_gnu_ld_CXX=$with_gnu_ld
14916
14917
14918
14919
14920
14921
14922 #
14923 # Do we need to explicitly link libc?
14924 #
14925 case "x$archive_cmds_need_lc_CXX" in
14926 x|xyes)
14927   # Assume -lc should be added
14928   archive_cmds_need_lc_CXX=yes
14929
14930   if test "$enable_shared" = yes && test "$GCC" = yes; then
14931     case $archive_cmds_CXX in
14932     *'~'*)
14933       # FIXME: we may have to deal with multi-command sequences.
14934       ;;
14935     '$CC '*)
14936       # Test whether the compiler implicitly links with -lc since on some
14937       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14938       # to ld, don't add -lc before -lgcc.
14939       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14940 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14941 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14942   $as_echo_n "(cached) " >&6
14943 else
14944   $RM conftest*
14945         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14946
14947         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14948   (eval $ac_compile) 2>&5
14949   ac_status=$?
14950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14951   test $ac_status = 0; } 2>conftest.err; then
14952           soname=conftest
14953           lib=conftest
14954           libobjs=conftest.$ac_objext
14955           deplibs=
14956           wl=$lt_prog_compiler_wl_CXX
14957           pic_flag=$lt_prog_compiler_pic_CXX
14958           compiler_flags=-v
14959           linker_flags=-v
14960           verstring=
14961           output_objdir=.
14962           libname=conftest
14963           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14964           allow_undefined_flag_CXX=
14965           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14966   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14967   ac_status=$?
14968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14969   test $ac_status = 0; }
14970           then
14971             lt_cv_archive_cmds_need_lc_CXX=no
14972           else
14973             lt_cv_archive_cmds_need_lc_CXX=yes
14974           fi
14975           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14976         else
14977           cat conftest.err 1>&5
14978         fi
14979         $RM conftest*
14980
14981 fi
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14983 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14984       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14985       ;;
14986     esac
14987   fi
14988   ;;
14989 esac
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15053 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15054
15055 library_names_spec=
15056 libname_spec='lib$name'
15057 soname_spec=
15058 shrext_cmds=".so"
15059 postinstall_cmds=
15060 postuninstall_cmds=
15061 finish_cmds=
15062 finish_eval=
15063 shlibpath_var=
15064 shlibpath_overrides_runpath=unknown
15065 version_type=none
15066 dynamic_linker="$host_os ld.so"
15067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15068 need_lib_prefix=unknown
15069 hardcode_into_libs=no
15070
15071 # when you set need_version to no, make sure it does not cause -set_version
15072 # flags to be left without arguments
15073 need_version=unknown
15074
15075 case $host_os in
15076 aix3*)
15077   version_type=linux # correct to gnu/linux during the next big refactor
15078   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15079   shlibpath_var=LIBPATH
15080
15081   # AIX 3 has no versioning support, so we append a major version to the name.
15082   soname_spec='${libname}${release}${shared_ext}$major'
15083   ;;
15084
15085 aix[4-9]*)
15086   version_type=linux # correct to gnu/linux during the next big refactor
15087   need_lib_prefix=no
15088   need_version=no
15089   hardcode_into_libs=yes
15090   if test "$host_cpu" = ia64; then
15091     # AIX 5 supports IA64
15092     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15093     shlibpath_var=LD_LIBRARY_PATH
15094   else
15095     # With GCC up to 2.95.x, collect2 would create an import file
15096     # for dependence libraries.  The import file would start with
15097     # the line `#! .'.  This would cause the generated library to
15098     # depend on `.', always an invalid library.  This was fixed in
15099     # development snapshots of GCC prior to 3.0.
15100     case $host_os in
15101       aix4 | aix4.[01] | aix4.[01].*)
15102       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15103            echo ' yes '
15104            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15105         :
15106       else
15107         can_build_shared=no
15108       fi
15109       ;;
15110     esac
15111     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15112     # soname into executable. Probably we can add versioning support to
15113     # collect2, so additional links can be useful in future.
15114     if test "$aix_use_runtimelinking" = yes; then
15115       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15116       # instead of lib<name>.a to let people know that these are not
15117       # typical AIX shared libraries.
15118       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119     else
15120       # We preserve .a as extension for shared libraries through AIX4.2
15121       # and later when we are not doing run time linking.
15122       library_names_spec='${libname}${release}.a $libname.a'
15123       soname_spec='${libname}${release}${shared_ext}$major'
15124     fi
15125     shlibpath_var=LIBPATH
15126   fi
15127   ;;
15128
15129 amigaos*)
15130   case $host_cpu in
15131   powerpc)
15132     # Since July 2007 AmigaOS4 officially supports .so libraries.
15133     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135     ;;
15136   m68k)
15137     library_names_spec='$libname.ixlibrary $libname.a'
15138     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15139     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15140     ;;
15141   esac
15142   ;;
15143
15144 beos*)
15145   library_names_spec='${libname}${shared_ext}'
15146   dynamic_linker="$host_os ld.so"
15147   shlibpath_var=LIBRARY_PATH
15148   ;;
15149
15150 bsdi[45]*)
15151   version_type=linux # correct to gnu/linux during the next big refactor
15152   need_version=no
15153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15156   shlibpath_var=LD_LIBRARY_PATH
15157   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15158   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15159   # the default ld.so.conf also contains /usr/contrib/lib and
15160   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15161   # libtool to hard-code these into programs
15162   ;;
15163
15164 cygwin* | mingw* | pw32* | cegcc*)
15165   version_type=windows
15166   shrext_cmds=".dll"
15167   need_version=no
15168   need_lib_prefix=no
15169
15170   case $GCC,$cc_basename in
15171   yes,*)
15172     # gcc
15173     library_names_spec='$libname.dll.a'
15174     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15175     postinstall_cmds='base_file=`basename \${file}`~
15176       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15177       dldir=$destdir/`dirname \$dlpath`~
15178       test -d \$dldir || mkdir -p \$dldir~
15179       $install_prog $dir/$dlname \$dldir/$dlname~
15180       chmod a+x \$dldir/$dlname~
15181       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15182         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15183       fi'
15184     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15185       dlpath=$dir/\$dldll~
15186        $RM \$dlpath'
15187     shlibpath_overrides_runpath=yes
15188
15189     case $host_os in
15190     cygwin*)
15191       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15192       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15193
15194       ;;
15195     mingw* | cegcc*)
15196       # MinGW DLLs use traditional 'lib' prefix
15197       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15198       ;;
15199     pw32*)
15200       # pw32 DLLs use 'pw' prefix rather than 'lib'
15201       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15202       ;;
15203     esac
15204     dynamic_linker='Win32 ld.exe'
15205     ;;
15206
15207   *,cl*)
15208     # Native MSVC
15209     libname_spec='$name'
15210     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15211     library_names_spec='${libname}.dll.lib'
15212
15213     case $build_os in
15214     mingw*)
15215       sys_lib_search_path_spec=
15216       lt_save_ifs=$IFS
15217       IFS=';'
15218       for lt_path in $LIB
15219       do
15220         IFS=$lt_save_ifs
15221         # Let DOS variable expansion print the short 8.3 style file name.
15222         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15223         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15224       done
15225       IFS=$lt_save_ifs
15226       # Convert to MSYS style.
15227       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15228       ;;
15229     cygwin*)
15230       # Convert to unix form, then to dos form, then back to unix form
15231       # but this time dos style (no spaces!) so that the unix form looks
15232       # like /cygdrive/c/PROGRA~1:/cygdr...
15233       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15234       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15235       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15236       ;;
15237     *)
15238       sys_lib_search_path_spec="$LIB"
15239       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15240         # It is most probably a Windows format PATH.
15241         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15242       else
15243         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15244       fi
15245       # FIXME: find the short name or the path components, as spaces are
15246       # common. (e.g. "Program Files" -> "PROGRA~1")
15247       ;;
15248     esac
15249
15250     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15251     postinstall_cmds='base_file=`basename \${file}`~
15252       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15253       dldir=$destdir/`dirname \$dlpath`~
15254       test -d \$dldir || mkdir -p \$dldir~
15255       $install_prog $dir/$dlname \$dldir/$dlname'
15256     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15257       dlpath=$dir/\$dldll~
15258        $RM \$dlpath'
15259     shlibpath_overrides_runpath=yes
15260     dynamic_linker='Win32 link.exe'
15261     ;;
15262
15263   *)
15264     # Assume MSVC wrapper
15265     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15266     dynamic_linker='Win32 ld.exe'
15267     ;;
15268   esac
15269   # FIXME: first we should search . and the directory the executable is in
15270   shlibpath_var=PATH
15271   ;;
15272
15273 darwin* | rhapsody*)
15274   dynamic_linker="$host_os dyld"
15275   version_type=darwin
15276   need_lib_prefix=no
15277   need_version=no
15278   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15279   soname_spec='${libname}${release}${major}$shared_ext'
15280   shlibpath_overrides_runpath=yes
15281   shlibpath_var=DYLD_LIBRARY_PATH
15282   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15283
15284   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15285   ;;
15286
15287 dgux*)
15288   version_type=linux # correct to gnu/linux during the next big refactor
15289   need_lib_prefix=no
15290   need_version=no
15291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15292   soname_spec='${libname}${release}${shared_ext}$major'
15293   shlibpath_var=LD_LIBRARY_PATH
15294   ;;
15295
15296 freebsd* | dragonfly*)
15297   # DragonFly does not have aout.  When/if they implement a new
15298   # versioning mechanism, adjust this.
15299   if test -x /usr/bin/objformat; then
15300     objformat=`/usr/bin/objformat`
15301   else
15302     case $host_os in
15303     freebsd[23].*) objformat=aout ;;
15304     *) objformat=elf ;;
15305     esac
15306   fi
15307   version_type=freebsd-$objformat
15308   case $version_type in
15309     freebsd-elf*)
15310       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15311       need_version=no
15312       need_lib_prefix=no
15313       ;;
15314     freebsd-*)
15315       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15316       need_version=yes
15317       ;;
15318   esac
15319   shlibpath_var=LD_LIBRARY_PATH
15320   case $host_os in
15321   freebsd2.*)
15322     shlibpath_overrides_runpath=yes
15323     ;;
15324   freebsd3.[01]* | freebsdelf3.[01]*)
15325     shlibpath_overrides_runpath=yes
15326     hardcode_into_libs=yes
15327     ;;
15328   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15329   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15330     shlibpath_overrides_runpath=no
15331     hardcode_into_libs=yes
15332     ;;
15333   *) # from 4.6 on, and DragonFly
15334     shlibpath_overrides_runpath=yes
15335     hardcode_into_libs=yes
15336     ;;
15337   esac
15338   ;;
15339
15340 haiku*)
15341   version_type=linux # correct to gnu/linux during the next big refactor
15342   need_lib_prefix=no
15343   need_version=no
15344   dynamic_linker="$host_os runtime_loader"
15345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15346   soname_spec='${libname}${release}${shared_ext}$major'
15347   shlibpath_var=LIBRARY_PATH
15348   shlibpath_overrides_runpath=yes
15349   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15350   hardcode_into_libs=yes
15351   ;;
15352
15353 hpux9* | hpux10* | hpux11*)
15354   # Give a soname corresponding to the major version so that dld.sl refuses to
15355   # link against other versions.
15356   version_type=sunos
15357   need_lib_prefix=no
15358   need_version=no
15359   case $host_cpu in
15360   ia64*)
15361     shrext_cmds='.so'
15362     hardcode_into_libs=yes
15363     dynamic_linker="$host_os dld.so"
15364     shlibpath_var=LD_LIBRARY_PATH
15365     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367     soname_spec='${libname}${release}${shared_ext}$major'
15368     if test "X$HPUX_IA64_MODE" = X32; then
15369       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15370     else
15371       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15372     fi
15373     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15374     ;;
15375   hppa*64*)
15376     shrext_cmds='.sl'
15377     hardcode_into_libs=yes
15378     dynamic_linker="$host_os dld.sl"
15379     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382     soname_spec='${libname}${release}${shared_ext}$major'
15383     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15385     ;;
15386   *)
15387     shrext_cmds='.sl'
15388     dynamic_linker="$host_os dld.sl"
15389     shlibpath_var=SHLIB_PATH
15390     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392     soname_spec='${libname}${release}${shared_ext}$major'
15393     ;;
15394   esac
15395   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15396   postinstall_cmds='chmod 555 $lib'
15397   # or fails outright, so override atomically:
15398   install_override_mode=555
15399   ;;
15400
15401 interix[3-9]*)
15402   version_type=linux # correct to gnu/linux during the next big refactor
15403   need_lib_prefix=no
15404   need_version=no
15405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406   soname_spec='${libname}${release}${shared_ext}$major'
15407   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15408   shlibpath_var=LD_LIBRARY_PATH
15409   shlibpath_overrides_runpath=no
15410   hardcode_into_libs=yes
15411   ;;
15412
15413 irix5* | irix6* | nonstopux*)
15414   case $host_os in
15415     nonstopux*) version_type=nonstopux ;;
15416     *)
15417         if test "$lt_cv_prog_gnu_ld" = yes; then
15418                 version_type=linux # correct to gnu/linux during the next big refactor
15419         else
15420                 version_type=irix
15421         fi ;;
15422   esac
15423   need_lib_prefix=no
15424   need_version=no
15425   soname_spec='${libname}${release}${shared_ext}$major'
15426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15427   case $host_os in
15428   irix5* | nonstopux*)
15429     libsuff= shlibsuff=
15430     ;;
15431   *)
15432     case $LD in # libtool.m4 will add one of these switches to LD
15433     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15434       libsuff= shlibsuff= libmagic=32-bit;;
15435     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15436       libsuff=32 shlibsuff=N32 libmagic=N32;;
15437     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15438       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15439     *) libsuff= shlibsuff= libmagic=never-match;;
15440     esac
15441     ;;
15442   esac
15443   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15444   shlibpath_overrides_runpath=no
15445   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15446   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15447   hardcode_into_libs=yes
15448   ;;
15449
15450 # No shared lib support for Linux oldld, aout, or coff.
15451 linux*oldld* | linux*aout* | linux*coff*)
15452   dynamic_linker=no
15453   ;;
15454
15455 # This must be glibc/ELF.
15456 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15457   version_type=linux # correct to gnu/linux during the next big refactor
15458   need_lib_prefix=no
15459   need_version=no
15460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461   soname_spec='${libname}${release}${shared_ext}$major'
15462   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15463   shlibpath_var=LD_LIBRARY_PATH
15464   shlibpath_overrides_runpath=no
15465
15466   # Some binutils ld are patched to set DT_RUNPATH
15467   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15468   $as_echo_n "(cached) " >&6
15469 else
15470   lt_cv_shlibpath_overrides_runpath=no
15471     save_LDFLAGS=$LDFLAGS
15472     save_libdir=$libdir
15473     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15474          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15475     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h.  */
15477
15478 int
15479 main ()
15480 {
15481
15482   ;
15483   return 0;
15484 }
15485 _ACEOF
15486 if ac_fn_cxx_try_link "$LINENO"; then :
15487   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15488   lt_cv_shlibpath_overrides_runpath=yes
15489 fi
15490 fi
15491 rm -f core conftest.err conftest.$ac_objext \
15492     conftest$ac_exeext conftest.$ac_ext
15493     LDFLAGS=$save_LDFLAGS
15494     libdir=$save_libdir
15495
15496 fi
15497
15498   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15499
15500   # This implies no fast_install, which is unacceptable.
15501   # Some rework will be needed to allow for fast_install
15502   # before this can be enabled.
15503   hardcode_into_libs=yes
15504
15505   # Append ld.so.conf contents to the search path
15506   if test -f /etc/ld.so.conf; then
15507     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15508     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15509   fi
15510
15511   # We used to test for /lib/ld.so.1 and disable shared libraries on
15512   # powerpc, because MkLinux only supported shared libraries with the
15513   # GNU dynamic linker.  Since this was broken with cross compilers,
15514   # most powerpc-linux boxes support dynamic linking these days and
15515   # people can always --disable-shared, the test was removed, and we
15516   # assume the GNU/Linux dynamic linker is in use.
15517   dynamic_linker='GNU/Linux ld.so'
15518   ;;
15519
15520 netbsdelf*-gnu)
15521   version_type=linux
15522   need_lib_prefix=no
15523   need_version=no
15524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15525   soname_spec='${libname}${release}${shared_ext}$major'
15526   shlibpath_var=LD_LIBRARY_PATH
15527   shlibpath_overrides_runpath=no
15528   hardcode_into_libs=yes
15529   dynamic_linker='NetBSD ld.elf_so'
15530   ;;
15531
15532 netbsd*)
15533   version_type=sunos
15534   need_lib_prefix=no
15535   need_version=no
15536   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15538     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15539     dynamic_linker='NetBSD (a.out) ld.so'
15540   else
15541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15542     soname_spec='${libname}${release}${shared_ext}$major'
15543     dynamic_linker='NetBSD ld.elf_so'
15544   fi
15545   shlibpath_var=LD_LIBRARY_PATH
15546   shlibpath_overrides_runpath=yes
15547   hardcode_into_libs=yes
15548   ;;
15549
15550 newsos6)
15551   version_type=linux # correct to gnu/linux during the next big refactor
15552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553   shlibpath_var=LD_LIBRARY_PATH
15554   shlibpath_overrides_runpath=yes
15555   ;;
15556
15557 *nto* | *qnx*)
15558   version_type=qnx
15559   need_lib_prefix=no
15560   need_version=no
15561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562   soname_spec='${libname}${release}${shared_ext}$major'
15563   shlibpath_var=LD_LIBRARY_PATH
15564   shlibpath_overrides_runpath=no
15565   hardcode_into_libs=yes
15566   dynamic_linker='ldqnx.so'
15567   ;;
15568
15569 openbsd*)
15570   version_type=sunos
15571   sys_lib_dlsearch_path_spec="/usr/lib"
15572   need_lib_prefix=no
15573   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15574   case $host_os in
15575     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15576     *)                          need_version=no  ;;
15577   esac
15578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15579   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15580   shlibpath_var=LD_LIBRARY_PATH
15581   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15582     case $host_os in
15583       openbsd2.[89] | openbsd2.[89].*)
15584         shlibpath_overrides_runpath=no
15585         ;;
15586       *)
15587         shlibpath_overrides_runpath=yes
15588         ;;
15589       esac
15590   else
15591     shlibpath_overrides_runpath=yes
15592   fi
15593   ;;
15594
15595 os2*)
15596   libname_spec='$name'
15597   shrext_cmds=".dll"
15598   need_lib_prefix=no
15599   library_names_spec='$libname${shared_ext} $libname.a'
15600   dynamic_linker='OS/2 ld.exe'
15601   shlibpath_var=LIBPATH
15602   ;;
15603
15604 osf3* | osf4* | osf5*)
15605   version_type=osf
15606   need_lib_prefix=no
15607   need_version=no
15608   soname_spec='${libname}${release}${shared_ext}$major'
15609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610   shlibpath_var=LD_LIBRARY_PATH
15611   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15612   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15613   ;;
15614
15615 rdos*)
15616   dynamic_linker=no
15617   ;;
15618
15619 solaris*)
15620   version_type=linux # correct to gnu/linux during the next big refactor
15621   need_lib_prefix=no
15622   need_version=no
15623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624   soname_spec='${libname}${release}${shared_ext}$major'
15625   shlibpath_var=LD_LIBRARY_PATH
15626   shlibpath_overrides_runpath=yes
15627   hardcode_into_libs=yes
15628   # ldd complains unless libraries are executable
15629   postinstall_cmds='chmod +x $lib'
15630   ;;
15631
15632 sunos4*)
15633   version_type=sunos
15634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15635   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15636   shlibpath_var=LD_LIBRARY_PATH
15637   shlibpath_overrides_runpath=yes
15638   if test "$with_gnu_ld" = yes; then
15639     need_lib_prefix=no
15640   fi
15641   need_version=yes
15642   ;;
15643
15644 sysv4 | sysv4.3*)
15645   version_type=linux # correct to gnu/linux during the next big refactor
15646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647   soname_spec='${libname}${release}${shared_ext}$major'
15648   shlibpath_var=LD_LIBRARY_PATH
15649   case $host_vendor in
15650     sni)
15651       shlibpath_overrides_runpath=no
15652       need_lib_prefix=no
15653       runpath_var=LD_RUN_PATH
15654       ;;
15655     siemens)
15656       need_lib_prefix=no
15657       ;;
15658     motorola)
15659       need_lib_prefix=no
15660       need_version=no
15661       shlibpath_overrides_runpath=no
15662       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15663       ;;
15664   esac
15665   ;;
15666
15667 sysv4*MP*)
15668   if test -d /usr/nec ;then
15669     version_type=linux # correct to gnu/linux during the next big refactor
15670     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15671     soname_spec='$libname${shared_ext}.$major'
15672     shlibpath_var=LD_LIBRARY_PATH
15673   fi
15674   ;;
15675
15676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15677   version_type=freebsd-elf
15678   need_lib_prefix=no
15679   need_version=no
15680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15681   soname_spec='${libname}${release}${shared_ext}$major'
15682   shlibpath_var=LD_LIBRARY_PATH
15683   shlibpath_overrides_runpath=yes
15684   hardcode_into_libs=yes
15685   if test "$with_gnu_ld" = yes; then
15686     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15687   else
15688     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15689     case $host_os in
15690       sco3.2v5*)
15691         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15692         ;;
15693     esac
15694   fi
15695   sys_lib_dlsearch_path_spec='/usr/lib'
15696   ;;
15697
15698 tpf*)
15699   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15700   version_type=linux # correct to gnu/linux during the next big refactor
15701   need_lib_prefix=no
15702   need_version=no
15703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704   shlibpath_var=LD_LIBRARY_PATH
15705   shlibpath_overrides_runpath=no
15706   hardcode_into_libs=yes
15707   ;;
15708
15709 uts4*)
15710   version_type=linux # correct to gnu/linux during the next big refactor
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712   soname_spec='${libname}${release}${shared_ext}$major'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   ;;
15715
15716 *)
15717   dynamic_linker=no
15718   ;;
15719 esac
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15721 $as_echo "$dynamic_linker" >&6; }
15722 test "$dynamic_linker" = no && can_build_shared=no
15723
15724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15725 if test "$GCC" = yes; then
15726   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15727 fi
15728
15729 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15730   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15731 fi
15732 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15733   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15734 fi
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15775 hardcode_action_CXX=
15776 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15777    test -n "$runpath_var_CXX" ||
15778    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15779
15780   # We can hardcode non-existent directories.
15781   if test "$hardcode_direct_CXX" != no &&
15782      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15783      # have to relink, otherwise we might link with an installed library
15784      # when we should be linking with a yet-to-be-installed one
15785      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15786      test "$hardcode_minus_L_CXX" != no; then
15787     # Linking always hardcodes the temporary library directory.
15788     hardcode_action_CXX=relink
15789   else
15790     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15791     hardcode_action_CXX=immediate
15792   fi
15793 else
15794   # We cannot hardcode anything, or else we can only hardcode existing
15795   # directories.
15796   hardcode_action_CXX=unsupported
15797 fi
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15799 $as_echo "$hardcode_action_CXX" >&6; }
15800
15801 if test "$hardcode_action_CXX" = relink ||
15802    test "$inherit_rpath_CXX" = yes; then
15803   # Fast installation is not supported
15804   enable_fast_install=no
15805 elif test "$shlibpath_overrides_runpath" = yes ||
15806      test "$enable_shared" = no; then
15807   # Fast installation is not necessary
15808   enable_fast_install=needless
15809 fi
15810
15811
15812
15813
15814
15815
15816
15817   fi # test -n "$compiler"
15818
15819   CC=$lt_save_CC
15820   CFLAGS=$lt_save_CFLAGS
15821   LDCXX=$LD
15822   LD=$lt_save_LD
15823   GCC=$lt_save_GCC
15824   with_gnu_ld=$lt_save_with_gnu_ld
15825   lt_cv_path_LDCXX=$lt_cv_path_LD
15826   lt_cv_path_LD=$lt_save_path_LD
15827   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15828   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15829 fi # test "$_lt_caught_CXX_error" != yes
15830
15831 ac_ext=c
15832 ac_cpp='$CPP $CPPFLAGS'
15833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851         ac_config_commands="$ac_config_commands libtool"
15852
15853
15854
15855
15856 # Only expand once:
15857
15858
15859
15860
15861 for ac_prog in gm4 m4
15862 do
15863   # Extract the first word of "$ac_prog", so it can be a program name with args.
15864 set dummy $ac_prog; ac_word=$2
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15866 $as_echo_n "checking for $ac_word... " >&6; }
15867 if ${ac_cv_prog_M4+:} false; then :
15868   $as_echo_n "(cached) " >&6
15869 else
15870   if test -n "$M4"; then
15871   ac_cv_prog_M4="$M4" # Let the user override the test.
15872 else
15873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15874 for as_dir in $PATH
15875 do
15876   IFS=$as_save_IFS
15877   test -z "$as_dir" && as_dir=.
15878     for ac_exec_ext in '' $ac_executable_extensions; do
15879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15880     ac_cv_prog_M4="$ac_prog"
15881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15882     break 2
15883   fi
15884 done
15885   done
15886 IFS=$as_save_IFS
15887
15888 fi
15889 fi
15890 M4=$ac_cv_prog_M4
15891 if test -n "$M4"; then
15892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
15893 $as_echo "$M4" >&6; }
15894 else
15895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896 $as_echo "no" >&6; }
15897 fi
15898
15899
15900   test -n "$M4" && break
15901 done
15902
15903
15904 if test "x$M4" = x; then :
15905   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15907 as_fn_error $? "The GNU M4 macro processor is required for building libsigc++.
15908 See \`config.log' for more details" "$LINENO" 5; }
15909 fi
15910
15911 # Extract the first word of "perl", so it can be a program name with args.
15912 set dummy perl; ac_word=$2
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15914 $as_echo_n "checking for $ac_word... " >&6; }
15915 if ${ac_cv_path_PERL+:} false; then :
15916   $as_echo_n "(cached) " >&6
15917 else
15918   case $PERL in
15919   [\\/]* | ?:[\\/]*)
15920   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15921   ;;
15922   *)
15923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15924 for as_dir in $PATH
15925 do
15926   IFS=$as_save_IFS
15927   test -z "$as_dir" && as_dir=.
15928     for ac_exec_ext in '' $ac_executable_extensions; do
15929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15930     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15932     break 2
15933   fi
15934 done
15935   done
15936 IFS=$as_save_IFS
15937
15938   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
15939   ;;
15940 esac
15941 fi
15942 PERL=$ac_cv_path_PERL
15943 if test -n "$PERL"; then
15944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15945 $as_echo "$PERL" >&6; }
15946 else
15947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15948 $as_echo "no" >&6; }
15949 fi
15950
15951
15952
15953 # Extract the first word of "dot", so it can be a program name with args.
15954 set dummy dot; ac_word=$2
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15956 $as_echo_n "checking for $ac_word... " >&6; }
15957 if ${ac_cv_path_DOT+:} false; then :
15958   $as_echo_n "(cached) " >&6
15959 else
15960   case $DOT in
15961   [\\/]* | ?:[\\/]*)
15962   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
15963   ;;
15964   *)
15965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15966 for as_dir in $PATH
15967 do
15968   IFS=$as_save_IFS
15969   test -z "$as_dir" && as_dir=.
15970     for ac_exec_ext in '' $ac_executable_extensions; do
15971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15972     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
15973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15974     break 2
15975   fi
15976 done
15977   done
15978 IFS=$as_save_IFS
15979
15980   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="dot"
15981   ;;
15982 esac
15983 fi
15984 DOT=$ac_cv_path_DOT
15985 if test -n "$DOT"; then
15986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
15987 $as_echo "$DOT" >&6; }
15988 else
15989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15990 $as_echo "no" >&6; }
15991 fi
15992
15993
15994 # Extract the first word of "doxygen", so it can be a program name with args.
15995 set dummy doxygen; ac_word=$2
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15997 $as_echo_n "checking for $ac_word... " >&6; }
15998 if ${ac_cv_path_DOXYGEN+:} false; then :
15999   $as_echo_n "(cached) " >&6
16000 else
16001   case $DOXYGEN in
16002   [\\/]* | ?:[\\/]*)
16003   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
16004   ;;
16005   *)
16006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16007 for as_dir in $PATH
16008 do
16009   IFS=$as_save_IFS
16010   test -z "$as_dir" && as_dir=.
16011     for ac_exec_ext in '' $ac_executable_extensions; do
16012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16013     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16015     break 2
16016   fi
16017 done
16018   done
16019 IFS=$as_save_IFS
16020
16021   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
16022   ;;
16023 esac
16024 fi
16025 DOXYGEN=$ac_cv_path_DOXYGEN
16026 if test -n "$DOXYGEN"; then
16027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16028 $as_echo "$DOXYGEN" >&6; }
16029 else
16030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16031 $as_echo "no" >&6; }
16032 fi
16033
16034
16035 # Extract the first word of "xsltproc", so it can be a program name with args.
16036 set dummy xsltproc; ac_word=$2
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16038 $as_echo_n "checking for $ac_word... " >&6; }
16039 if ${ac_cv_path_XSLTPROC+:} false; then :
16040   $as_echo_n "(cached) " >&6
16041 else
16042   case $XSLTPROC in
16043   [\\/]* | ?:[\\/]*)
16044   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
16045   ;;
16046   *)
16047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16048 for as_dir in $PATH
16049 do
16050   IFS=$as_save_IFS
16051   test -z "$as_dir" && as_dir=.
16052     for ac_exec_ext in '' $ac_executable_extensions; do
16053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16054     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
16055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16056     break 2
16057   fi
16058 done
16059   done
16060 IFS=$as_save_IFS
16061
16062   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
16063   ;;
16064 esac
16065 fi
16066 XSLTPROC=$ac_cv_path_XSLTPROC
16067 if test -n "$XSLTPROC"; then
16068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16069 $as_echo "$XSLTPROC" >&6; }
16070 else
16071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072 $as_echo "no" >&6; }
16073 fi
16074
16075
16076 # Check whether --enable-documentation was given.
16077 if test "${enable_documentation+set}" = set; then :
16078   enableval=$enable_documentation; ENABLE_DOCUMENTATION=$enableval
16079 else
16080   ENABLE_DOCUMENTATION=auto
16081 fi
16082
16083 if test "x$ENABLE_DOCUMENTATION" != xno; then :
16084
16085   mm_err=
16086   if test "x$MMDOCTOOLDIR" = x; then :
16087   mm_err='The mm-common-util module is available, but the installation of mm-common on this
16088 machine is missing the shared documentation utilities of the GNOME C++
16089 bindings.  It may be necessary to upgrade to a more recent release of
16090 mm-common in order to build '$PACKAGE_NAME' and install the documentation.'
16091 elif test "x$PERL" = xperl; then :
16092   mm_err='Perl is required for installing the documentation.'
16093 elif test "x$USE_MAINTAINER_MODE" != xno; then :
16094
16095     test "x$DOT" != xdot || mm_err=' dot'
16096     test "x$DOXYGEN" != xdoxygen || mm_err="$mm_err doxygen"
16097     test "x$XSLTPROC" != xxsltproc || mm_err="$mm_err xsltproc"
16098     test -z "$mm_err" || mm_err='The documentation cannot be generated because
16099 not all of the required tools are available:'$mm_err
16100
16101 fi
16102   if test -z "$mm_err"; then :
16103   ENABLE_DOCUMENTATION=yes
16104 elif test "x$ENABLE_DOCUMENTATION" = xyes; then :
16105   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16107 as_fn_error $? "$mm_err
16108 See \`config.log' for more details" "$LINENO" 5; }
16109 else
16110   ENABLE_DOCUMENTATION=no; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $mm_err" >&5
16111 $as_echo "$as_me: WARNING: $mm_err" >&2;}
16112 fi
16113
16114 fi
16115  if test "x$ENABLE_DOCUMENTATION" = xyes; then
16116   ENABLE_DOCUMENTATION_TRUE=
16117   ENABLE_DOCUMENTATION_FALSE='#'
16118 else
16119   ENABLE_DOCUMENTATION_TRUE='#'
16120   ENABLE_DOCUMENTATION_FALSE=
16121 fi
16122
16123 DOXYGEN_TAGFILES=
16124
16125 DOCINSTALL_FLAGS=
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16136         if test -n "$ac_tool_prefix"; then
16137   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16138 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16140 $as_echo_n "checking for $ac_word... " >&6; }
16141 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16142   $as_echo_n "(cached) " >&6
16143 else
16144   case $PKG_CONFIG in
16145   [\\/]* | ?:[\\/]*)
16146   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16147   ;;
16148   *)
16149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16150 for as_dir in $PATH
16151 do
16152   IFS=$as_save_IFS
16153   test -z "$as_dir" && as_dir=.
16154     for ac_exec_ext in '' $ac_executable_extensions; do
16155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16156     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16158     break 2
16159   fi
16160 done
16161   done
16162 IFS=$as_save_IFS
16163
16164   ;;
16165 esac
16166 fi
16167 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16168 if test -n "$PKG_CONFIG"; then
16169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16170 $as_echo "$PKG_CONFIG" >&6; }
16171 else
16172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16174 fi
16175
16176
16177 fi
16178 if test -z "$ac_cv_path_PKG_CONFIG"; then
16179   ac_pt_PKG_CONFIG=$PKG_CONFIG
16180   # Extract the first word of "pkg-config", so it can be a program name with args.
16181 set dummy pkg-config; ac_word=$2
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16183 $as_echo_n "checking for $ac_word... " >&6; }
16184 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16185   $as_echo_n "(cached) " >&6
16186 else
16187   case $ac_pt_PKG_CONFIG in
16188   [\\/]* | ?:[\\/]*)
16189   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16190   ;;
16191   *)
16192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16193 for as_dir in $PATH
16194 do
16195   IFS=$as_save_IFS
16196   test -z "$as_dir" && as_dir=.
16197     for ac_exec_ext in '' $ac_executable_extensions; do
16198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16199     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16201     break 2
16202   fi
16203 done
16204   done
16205 IFS=$as_save_IFS
16206
16207   ;;
16208 esac
16209 fi
16210 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16211 if test -n "$ac_pt_PKG_CONFIG"; then
16212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16213 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16214 else
16215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16216 $as_echo "no" >&6; }
16217 fi
16218
16219   if test "x$ac_pt_PKG_CONFIG" = x; then
16220     PKG_CONFIG=""
16221   else
16222     case $cross_compiling:$ac_tool_warned in
16223 yes:)
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16226 ac_tool_warned=yes ;;
16227 esac
16228     PKG_CONFIG=$ac_pt_PKG_CONFIG
16229   fi
16230 else
16231   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16232 fi
16233
16234 fi
16235 if test -n "$PKG_CONFIG"; then
16236         _pkg_min_version=0.9.0
16237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16238 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16239         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16240                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16241 $as_echo "yes" >&6; }
16242         else
16243                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16244 $as_echo "no" >&6; }
16245                 PKG_CONFIG=""
16246         fi
16247 fi
16248 if test "x$ENABLE_DOCUMENTATION" != xno; then :
16249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstdc documentation" >&5
16250 $as_echo_n "checking for libstdc documentation... " >&6; }
16251
16252 # Check whether --with-libstdc-doc was given.
16253 if test "${with_libstdc_doc+set}" = set; then :
16254   withval=$with_libstdc_doc;
16255     mm_htmlrefdir=`expr "X@$withval" : '.*@\(.*\)' 2>&5`
16256     mm_tagname=`expr "X/$withval" : '[^@]*[\\/]\([^\\/@]*\)@' 2>&5`
16257     mm_tagpath=`expr "X$withval" : 'X\([^@]*\)@' 2>&5`
16258     test "x$mm_tagname" != x || mm_tagname="libstdc++.tag"
16259     test "x$mm_tagpath" != x || mm_tagpath=$mm_tagname
16260 else
16261
16262     mm_htmlrefdir=
16263     mm_tagname="libstdc++.tag"
16264     mm_tagpath=$mm_tagname
16265 fi
16266
16267   # Prepend working direcory if the tag file path starts with ./ or ../
16268   case $mm_tagpath in #(
16269   .[\\/]*|..[\\/]*) :
16270     mm_tagpath=`pwd`/$mm_tagpath ;; #(
16271   *) :
16272      ;;
16273 esac
16274
16275   # If no local directory was specified, get the default from the .pc file
16276   if test "x$mm_htmlrefdir" = x; then :
16277
16278     mm_htmlrefdir=`$PKG_CONFIG --variable=htmlrefdir "mm-common-libstdc++" 2>&5`
16279 fi
16280   # If the user specified a Web URL, allow it to override the public location
16281   case $mm_htmlrefdir in #(
16282   http://*|https://*) :
16283     mm_htmlrefpub=$mm_htmlrefdir ;; #(
16284   *) :
16285
16286     mm_htmlrefpub=`$PKG_CONFIG --variable=htmlrefpub "mm-common-libstdc++" 2>&5`
16287     test "x$mm_htmlrefpub" != x || mm_htmlrefpub=$mm_htmlrefdir
16288     test "x$mm_htmlrefdir" != x || mm_htmlrefdir=$mm_htmlrefpub
16289    ;;
16290 esac
16291   # The user-supplied tag-file name takes precedence if it includes the path
16292   case $mm_tagpath in #(
16293   *[\\/]*) :
16294      ;; #(
16295   *) :
16296
16297     mm_doxytagfile=`$PKG_CONFIG --variable=doxytagfile "mm-common-libstdc++" 2>&5`
16298     test "x$mm_doxytagfile" = x || mm_tagpath=$mm_doxytagfile
16299    ;;
16300 esac
16301   # Remove trailing slashes and translate to URI
16302   mm_htmlrefpub=`expr "X$mm_htmlrefpub" : 'X\(.*[^\\/]\)[\\/]*' 2>&5 | sed 's|[\\]|/|g;s| |%20|g;s|^/|file:///|;s|^.:/|file:///&|' 2>&5`
16303   mm_htmlrefdir=`expr "X$mm_htmlrefdir" : 'X\(.*[^\\/]\)[\\/]*' 2>&5 | sed 's|[\\]|/|g;s| |%20|g;s|^/|file:///|;s|^.:/|file:///&|' 2>&5`
16304
16305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mm_tagpath@$mm_htmlrefdir" >&5
16306 $as_echo "$mm_tagpath@$mm_htmlrefdir" >&6; }
16307
16308   if test "x$USE_MAINTAINER_MODE" != xno && test ! -f "$mm_tagpath"; then :
16309   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen tag file libstdc++.tag not found" >&5
16310 $as_echo "$as_me: WARNING: Doxygen tag file libstdc++.tag not found" >&2;}
16311 fi
16312   if test "x$mm_htmlrefdir" = x; then :
16313   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Location of external libstdc documentation not set" >&5
16314 $as_echo "$as_me: WARNING: Location of external libstdc documentation not set" >&2;}
16315 else
16316   if test "x$DOCINSTALL_FLAGS" = x; then :
16317   DOCINSTALL_FLAGS="-l '$mm_tagname@$mm_htmlrefdir/'"
16318 else
16319   DOCINSTALL_FLAGS="$DOCINSTALL_FLAGS -l '$mm_tagname@$mm_htmlrefdir/'"
16320 fi
16321 fi
16322
16323   if test "x$mm_htmlrefpub" = x; then :
16324   mm_val=$mm_tagpath
16325 else
16326   mm_val="$mm_tagpath=$mm_htmlrefpub"
16327 fi
16328   if test "x$DOXYGEN_TAGFILES" = x; then :
16329   DOXYGEN_TAGFILES=\"$mm_val\"
16330 else
16331   DOXYGEN_TAGFILES="$DOXYGEN_TAGFILES "\"$mm_val\"
16332 fi
16333 fi
16334
16335 ac_ext=cpp
16336 ac_cpp='$CXXCPP $CPPFLAGS'
16337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16340
16341
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports the use of a particular specialization when calling operator() template methods." >&5
16343 $as_echo_n "checking if C++ compiler supports the use of a particular specialization when calling operator() template methods.... " >&6; }
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h.  */
16346
16347   #include <iostream>
16348
16349   class Thing
16350   {
16351     public:
16352     Thing()
16353     {}
16354
16355     template <class T>
16356     void operator()(T a, T b)
16357     {
16358       T c = a + b;
16359       std::cout << c << std::endl;
16360     }
16361   };
16362
16363   template<class T2>
16364   class OtherThing
16365   {
16366   public:
16367     void do_something()
16368     {
16369        Thing thing_;
16370        thing_.template operator()<T2>(1, 2);
16371        //This fails with or without the template keyword, on SUN Forte C++ 5.3, 5.4, and 5.5:
16372     }
16373   };
16374
16375 int
16376 main ()
16377 {
16378
16379   OtherThing<int> thing;
16380   thing.do_something();
16381
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 if ac_fn_cxx_try_compile "$LINENO"; then :
16387
16388   sigcm_cxx_gcc_template_specialization_operator_overload=yes
16389
16390 $as_echo "#define SIGC_GCC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD 1" >>confdefs.h
16391
16392
16393 else
16394
16395   sigcm_cxx_gcc_template_specialization_operator_overload=no
16396
16397 fi
16398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigcm_cxx_gcc_template_specialization_operator_overload" >&5
16400 $as_echo "$sigcm_cxx_gcc_template_specialization_operator_overload" >&6; }
16401
16402
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports the use of a particular specialization when calling operator() template methods omitting the template keyword." >&5
16404 $as_echo_n "checking if C++ compiler supports the use of a particular specialization when calling operator() template methods omitting the template keyword.... " >&6; }
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h.  */
16407
16408   #include <iostream>
16409
16410   class Thing
16411   {
16412     public:
16413     Thing()
16414     {}
16415
16416     template <class T>
16417     void operator()(T a, T b)
16418     {
16419       T c = a + b;
16420       std::cout << c << std::endl;
16421     }
16422   };
16423
16424   template<class T2>
16425   class OtherThing
16426   {
16427   public:
16428     void do_something()
16429     {
16430        Thing thing_;
16431        thing_.operator()<T2>(1, 2);
16432        //This fails with or without the template keyword, on SUN Forte C++ 5.3, 5.4, and 5.5:
16433     }
16434   };
16435
16436 int
16437 main ()
16438 {
16439
16440   OtherThing<int> thing;
16441   thing.do_something();
16442
16443   ;
16444   return 0;
16445 }
16446 _ACEOF
16447 if ac_fn_cxx_try_compile "$LINENO"; then :
16448
16449   sigcm_cxx_msvc_template_specialization_operator_overload=yes
16450
16451 $as_echo "#define SIGC_MSVC_TEMPLATE_SPECIALIZATION_OPERATOR_OVERLOAD 1" >>confdefs.h
16452
16453
16454 else
16455
16456   sigcm_cxx_msvc_template_specialization_operator_overload=no
16457
16458 fi
16459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigcm_cxx_msvc_template_specialization_operator_overload" >&5
16461 $as_echo "$sigcm_cxx_msvc_template_specialization_operator_overload" >&6; }
16462
16463
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ preprocessor supports pragma push_macro() and pop_macro()." >&5
16465 $as_echo_n "checking if C++ preprocessor supports pragma push_macro() and pop_macro().... " >&6; }
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h.  */
16468
16469   #define BEGIN {
16470   #define END   }
16471   #pragma push_macro("BEGIN")
16472   #pragma push_macro("END")
16473   #undef BEGIN
16474   #undef END
16475
16476   // BEGIN and END are not prepreprocessor macros
16477   struct Test1
16478   {
16479     int BEGIN;
16480     double END;
16481   };
16482
16483   #pragma pop_macro("BEGIN")
16484   #pragma pop_macro("END")
16485
16486   // BEGIN and END are prepreprocessor macros
16487   struct Test2
16488   BEGIN
16489     int i;
16490     double d;
16491   END;
16492
16493   void func1(Test1& x);
16494   void func2(Test2& x);
16495
16496 int
16497 main ()
16498 {
16499
16500   Test1 test1;
16501   Test2 test2;
16502   func1(test1);
16503   func2(test2);
16504
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 if ac_fn_cxx_try_compile "$LINENO"; then :
16510
16511   sigcm_cxx_pragma_push_pop_macro=yes
16512
16513 $as_echo "#define SIGC_PRAGMA_PUSH_POP_MACRO 1" >>confdefs.h
16514
16515
16516 else
16517
16518   sigcm_cxx_pragma_push_pop_macro=no
16519
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigcm_cxx_pragma_push_pop_macro" >&5
16523 $as_echo "$sigcm_cxx_pragma_push_pop_macro" >&6; }
16524
16525
16526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-standard Sun libCstd reverse_iterator" >&5
16527 $as_echo_n "checking for non-standard Sun libCstd reverse_iterator... " >&6; }
16528 if ${sigc_cv_cxx_has_sun_reverse_iterator+:} false; then :
16529   $as_echo_n "(cached) " >&6
16530 else
16531
16532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533 /* end confdefs.h.  */
16534
16535       #include <iterator>
16536
16537 int
16538 main ()
16539 {
16540
16541       typedef std::reverse_iterator<char*, std::random_access_iterator_tag, char, char&, char*, int> ReverseIter;
16542
16543   ;
16544   return 0;
16545 }
16546 _ACEOF
16547 if ac_fn_cxx_try_compile "$LINENO"; then :
16548   sigc_cv_cxx_has_sun_reverse_iterator='yes'
16549 else
16550   sigc_cv_cxx_has_sun_reverse_iterator='no'
16551
16552 fi
16553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554
16555 fi
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sigc_cv_cxx_has_sun_reverse_iterator" >&5
16557 $as_echo "$sigc_cv_cxx_has_sun_reverse_iterator" >&6; }
16558
16559   if test "x${sigc_cv_cxx_has_sun_reverse_iterator}" = 'xyes'; then :
16560
16561 $as_echo "#define SIGC_HAVE_SUN_REVERSE_ITERATOR 1" >>confdefs.h
16562
16563 fi
16564
16565
16566 if test "x$config_error" = xyes; then :
16567   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16569 as_fn_error $? "One or more of the required C++ compiler features is missing.
16570 See \`config.log' for more details" "$LINENO" 5; }
16571 fi
16572
16573 # Evaluate the --enable-warnings=level option.
16574 # Check whether --enable-warnings was given.
16575 if test "${enable_warnings+set}" = set; then :
16576   enableval=$enable_warnings; mm_enable_warnings=$enableval
16577 else
16578   mm_enable_warnings=min
16579 fi
16580
16581 case $ac_compile in #(
16582   *'$CXXFLAGS '*) :
16583     mm_lang='C++' mm_cc=$CXX mm_conftest="conftest.${ac_ext-cc}" ;; #(
16584   *'$CFLAGS '*) :
16585     mm_lang=C mm_cc=$CC mm_conftest="conftest.${ac_ext-c}" ;; #(
16586   *) :
16587     as_fn_error $? "current language is neither C nor C++" "$LINENO" 5 ;;
16588 esac
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which $mm_lang compiler warning flags to use" >&5
16590 $as_echo_n "checking which $mm_lang compiler warning flags to use... " >&6; }
16591 mm_tested_flags=
16592 case $mm_enable_warnings in #(
16593   no) :
16594     mm_warning_flags= ;; #(
16595   max) :
16596     mm_warning_flags="-pedantic -Wall -Wextra -Wsuggest-override -Wshadow -Wzero-as-null-pointer-constant -Wformat-security" ;; #(
16597   fatal) :
16598     mm_warning_flags="-pedantic -Wall -Wextra -Wsuggest-override -Wshadow -Wzero-as-null-pointer-constant -Wformat-security -Werror" ;; #(
16599   *) :
16600     mm_warning_flags="-Wall" ;;
16601 esac
16602 if test "x$mm_warning_flags" != x; then :
16603
16604   # Keep in mind that the dummy source must be devoid of any
16605   # problems that might cause diagnostics.
16606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h.  */
16608
16609 int main(int argc, char** argv) { return !argv ? 0 : argc; }
16610
16611 _ACEOF
16612   for mm_flag in $mm_warning_flags
16613   do
16614     # Test whether the compiler accepts the flag.  Look at standard output,
16615     # since GCC only shows a warning message if an option is not supported.
16616     mm_cc_out=`$mm_cc $mm_tested_flags $mm_flag -c "$mm_conftest" 2>&1 || echo failed`
16617     rm -f "conftest.${OBJEXT-o}"
16618
16619     if test "x$mm_cc_out" = x; then :
16620   if test "x$mm_tested_flags" = x; then :
16621   mm_tested_flags=$mm_flag
16622 else
16623   mm_tested_flags="$mm_tested_flags $mm_flag"
16624 fi
16625 else
16626   cat <<_MMEOF >&5
16627 $mm_cc: $mm_cc_out
16628 _MMEOF
16629
16630 fi
16631   done
16632   rm -f "$mm_conftest"
16633
16634 fi
16635 mm_all_flags=$mm_tested_flags
16636 SIGC_WXXFLAGS=$mm_all_flags
16637
16638 test "x$mm_all_flags" != x || mm_all_flags=none
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mm_all_flags" >&5
16640 $as_echo "$mm_all_flags" >&6; }
16641
16642 # Offer the ability to omit some API from the library.
16643 # Check whether --enable-deprecated-api was given.
16644 if test "${enable_deprecated_api+set}" = set; then :
16645   enableval=$enable_deprecated_api; mm_enable_deprecated_api=$enableval
16646 else
16647   mm_enable_deprecated_api=yes
16648 fi
16649 if test "x$mm_enable_deprecated_api" = xno; then :
16650   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Deprecated API will not be built, breaking compatibility.
16651 Do not use this option for distribution packages." >&5
16652 $as_echo "$as_me: WARNING: Deprecated API will not be built, breaking compatibility.
16653 Do not use this option for distribution packages." >&2;}
16654 else
16655   { $as_echo "$as_me:${as_lineno-$LINENO}: Deprecated API will be built, for backwards-compatibility." >&5
16656 $as_echo "$as_me: Deprecated API will be built, for backwards-compatibility." >&6;}
16657 fi
16658  if test "x$mm_enable_deprecated_api" = xno; then
16659   DISABLE_DEPRECATED_API_TRUE=
16660   DISABLE_DEPRECATED_API_FALSE='#'
16661 else
16662   DISABLE_DEPRECATED_API_TRUE='#'
16663   DISABLE_DEPRECATED_API_FALSE=
16664 fi
16665
16666 if test "x$mm_enable_deprecated_api" = xno; then :
16667
16668 $as_echo "#define SIGCXX_DISABLE_DEPRECATED 1" >>confdefs.h
16669
16670
16671 fi
16672
16673 ac_config_files="$ac_config_files Makefile ${SIGCXX_MODULE_NAME}.pc:sigc++.pc.in ${SIGCXX_MODULE_NAME}-uninstalled.pc:sigc++-uninstalled.pc.in sigc++/Makefile examples/Makefile tests/Makefile docs/Makefile docs/reference/Doxyfile MSVC_Net2013/sigc.rc"
16674
16675
16676 # Copy the generated configuration headers into the MSVC project directories.
16677 ac_config_commands="$ac_config_commands MSVC_Net2013/sigc++config.h"
16678
16679 cat >confcache <<\_ACEOF
16680 # This file is a shell script that caches the results of configure
16681 # tests run on this system so they can be shared between configure
16682 # scripts and configure runs, see configure's option --config-cache.
16683 # It is not useful on other systems.  If it contains results you don't
16684 # want to keep, you may remove or edit it.
16685 #
16686 # config.status only pays attention to the cache file if you give it
16687 # the --recheck option to rerun configure.
16688 #
16689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16691 # following values.
16692
16693 _ACEOF
16694
16695 # The following way of writing the cache mishandles newlines in values,
16696 # but we know of no workaround that is simple, portable, and efficient.
16697 # So, we kill variables containing newlines.
16698 # Ultrix sh set writes to stderr and can't be redirected directly,
16699 # and sets the high bit in the cache file unless we assign to the vars.
16700 (
16701   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16702     eval ac_val=\$$ac_var
16703     case $ac_val in #(
16704     *${as_nl}*)
16705       case $ac_var in #(
16706       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16708       esac
16709       case $ac_var in #(
16710       _ | IFS | as_nl) ;; #(
16711       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16712       *) { eval $ac_var=; unset $ac_var;} ;;
16713       esac ;;
16714     esac
16715   done
16716
16717   (set) 2>&1 |
16718     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16719     *${as_nl}ac_space=\ *)
16720       # `set' does not quote correctly, so add quotes: double-quote
16721       # substitution turns \\\\ into \\, and sed turns \\ into \.
16722       sed -n \
16723         "s/'/'\\\\''/g;
16724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16725       ;; #(
16726     *)
16727       # `set' quotes correctly as required by POSIX, so do not add quotes.
16728       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16729       ;;
16730     esac |
16731     sort
16732 ) |
16733   sed '
16734      /^ac_cv_env_/b end
16735      t clear
16736      :clear
16737      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16738      t end
16739      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16740      :end' >>confcache
16741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16742   if test -w "$cache_file"; then
16743     if test "x$cache_file" != "x/dev/null"; then
16744       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16745 $as_echo "$as_me: updating cache $cache_file" >&6;}
16746       if test ! -f "$cache_file" || test -h "$cache_file"; then
16747         cat confcache >"$cache_file"
16748       else
16749         case $cache_file in #(
16750         */* | ?:*)
16751           mv -f confcache "$cache_file"$$ &&
16752           mv -f "$cache_file"$$ "$cache_file" ;; #(
16753         *)
16754           mv -f confcache "$cache_file" ;;
16755         esac
16756       fi
16757     fi
16758   else
16759     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16761   fi
16762 fi
16763 rm -f confcache
16764
16765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16766 # Let make expand exec_prefix.
16767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16768
16769 DEFS=-DHAVE_CONFIG_H
16770
16771 ac_libobjs=
16772 ac_ltlibobjs=
16773 U=
16774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16775   # 1. Remove the extension, and $U if already installed.
16776   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16777   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16778   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16779   #    will be set to the directory where LIBOBJS objects are built.
16780   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16781   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16782 done
16783 LIBOBJS=$ac_libobjs
16784
16785 LTLIBOBJS=$ac_ltlibobjs
16786
16787
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16789 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16790    if test -n "$am_sleep_pid"; then
16791      # Hide warnings about reused PIDs.
16792      wait $am_sleep_pid 2>/dev/null
16793    fi
16794    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16795 $as_echo "done" >&6; }
16796  if test -n "$EXEEXT"; then
16797   am__EXEEXT_TRUE=
16798   am__EXEEXT_FALSE='#'
16799 else
16800   am__EXEEXT_TRUE='#'
16801   am__EXEEXT_FALSE=
16802 fi
16803
16804 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16805   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16807 fi
16808 if test -z "${DIST_DOCTOOLS_TRUE}" && test -z "${DIST_DOCTOOLS_FALSE}"; then
16809   as_fn_error $? "conditional \"DIST_DOCTOOLS\" was never defined.
16810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16811 fi
16812 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16813   as_fn_error $? "conditional \"AMDEP\" was never defined.
16814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16815 fi
16816 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16817   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16819 fi
16820 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16821   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16823 fi
16824 if test -z "${ENABLE_DOCUMENTATION_TRUE}" && test -z "${ENABLE_DOCUMENTATION_FALSE}"; then
16825   as_fn_error $? "conditional \"ENABLE_DOCUMENTATION\" was never defined.
16826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16827 fi
16828 if test -z "${DISABLE_DEPRECATED_API_TRUE}" && test -z "${DISABLE_DEPRECATED_API_FALSE}"; then
16829   as_fn_error $? "conditional \"DISABLE_DEPRECATED_API\" was never defined.
16830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16831 fi
16832
16833 : "${CONFIG_STATUS=./config.status}"
16834 ac_write_fail=0
16835 ac_clean_files_save=$ac_clean_files
16836 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16838 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16839 as_write_fail=0
16840 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16841 #! $SHELL
16842 # Generated by $as_me.
16843 # Run this file to recreate the current configuration.
16844 # Compiler output produced by configure, useful for debugging
16845 # configure, is in config.log if it exists.
16846
16847 debug=false
16848 ac_cs_recheck=false
16849 ac_cs_silent=false
16850
16851 SHELL=\${CONFIG_SHELL-$SHELL}
16852 export SHELL
16853 _ASEOF
16854 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16855 ## -------------------- ##
16856 ## M4sh Initialization. ##
16857 ## -------------------- ##
16858
16859 # Be more Bourne compatible
16860 DUALCASE=1; export DUALCASE # for MKS sh
16861 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16862   emulate sh
16863   NULLCMD=:
16864   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16865   # is contrary to our usage.  Disable this feature.
16866   alias -g '${1+"$@"}'='"$@"'
16867   setopt NO_GLOB_SUBST
16868 else
16869   case `(set -o) 2>/dev/null` in #(
16870   *posix*) :
16871     set -o posix ;; #(
16872   *) :
16873      ;;
16874 esac
16875 fi
16876
16877
16878 as_nl='
16879 '
16880 export as_nl
16881 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16882 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16883 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16885 # Prefer a ksh shell builtin over an external printf program on Solaris,
16886 # but without wasting forks for bash or zsh.
16887 if test -z "$BASH_VERSION$ZSH_VERSION" \
16888     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16889   as_echo='print -r --'
16890   as_echo_n='print -rn --'
16891 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16892   as_echo='printf %s\n'
16893   as_echo_n='printf %s'
16894 else
16895   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16896     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16897     as_echo_n='/usr/ucb/echo -n'
16898   else
16899     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16900     as_echo_n_body='eval
16901       arg=$1;
16902       case $arg in #(
16903       *"$as_nl"*)
16904         expr "X$arg" : "X\\(.*\\)$as_nl";
16905         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16906       esac;
16907       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16908     '
16909     export as_echo_n_body
16910     as_echo_n='sh -c $as_echo_n_body as_echo'
16911   fi
16912   export as_echo_body
16913   as_echo='sh -c $as_echo_body as_echo'
16914 fi
16915
16916 # The user is always right.
16917 if test "${PATH_SEPARATOR+set}" != set; then
16918   PATH_SEPARATOR=:
16919   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16920     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16921       PATH_SEPARATOR=';'
16922   }
16923 fi
16924
16925
16926 # IFS
16927 # We need space, tab and new line, in precisely that order.  Quoting is
16928 # there to prevent editors from complaining about space-tab.
16929 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16930 # splitting by setting IFS to empty value.)
16931 IFS=" ""        $as_nl"
16932
16933 # Find who we are.  Look in the path if we contain no directory separator.
16934 as_myself=
16935 case $0 in #((
16936   *[\\/]* ) as_myself=$0 ;;
16937   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16938 for as_dir in $PATH
16939 do
16940   IFS=$as_save_IFS
16941   test -z "$as_dir" && as_dir=.
16942     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16943   done
16944 IFS=$as_save_IFS
16945
16946      ;;
16947 esac
16948 # We did not find ourselves, most probably we were run as `sh COMMAND'
16949 # in which case we are not to be found in the path.
16950 if test "x$as_myself" = x; then
16951   as_myself=$0
16952 fi
16953 if test ! -f "$as_myself"; then
16954   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16955   exit 1
16956 fi
16957
16958 # Unset variables that we do not need and which cause bugs (e.g. in
16959 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16960 # suppresses any "Segmentation fault" message there.  '((' could
16961 # trigger a bug in pdksh 5.2.14.
16962 for as_var in BASH_ENV ENV MAIL MAILPATH
16963 do eval test x\${$as_var+set} = xset \
16964   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16965 done
16966 PS1='$ '
16967 PS2='> '
16968 PS4='+ '
16969
16970 # NLS nuisances.
16971 LC_ALL=C
16972 export LC_ALL
16973 LANGUAGE=C
16974 export LANGUAGE
16975
16976 # CDPATH.
16977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16978
16979
16980 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16981 # ----------------------------------------
16982 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16983 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16984 # script with STATUS, using 1 if that was 0.
16985 as_fn_error ()
16986 {
16987   as_status=$1; test $as_status -eq 0 && as_status=1
16988   if test "$4"; then
16989     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16990     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16991   fi
16992   $as_echo "$as_me: error: $2" >&2
16993   as_fn_exit $as_status
16994 } # as_fn_error
16995
16996
16997 # as_fn_set_status STATUS
16998 # -----------------------
16999 # Set $? to STATUS, without forking.
17000 as_fn_set_status ()
17001 {
17002   return $1
17003 } # as_fn_set_status
17004
17005 # as_fn_exit STATUS
17006 # -----------------
17007 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17008 as_fn_exit ()
17009 {
17010   set +e
17011   as_fn_set_status $1
17012   exit $1
17013 } # as_fn_exit
17014
17015 # as_fn_unset VAR
17016 # ---------------
17017 # Portably unset VAR.
17018 as_fn_unset ()
17019 {
17020   { eval $1=; unset $1;}
17021 }
17022 as_unset=as_fn_unset
17023 # as_fn_append VAR VALUE
17024 # ----------------------
17025 # Append the text in VALUE to the end of the definition contained in VAR. Take
17026 # advantage of any shell optimizations that allow amortized linear growth over
17027 # repeated appends, instead of the typical quadratic growth present in naive
17028 # implementations.
17029 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17030   eval 'as_fn_append ()
17031   {
17032     eval $1+=\$2
17033   }'
17034 else
17035   as_fn_append ()
17036   {
17037     eval $1=\$$1\$2
17038   }
17039 fi # as_fn_append
17040
17041 # as_fn_arith ARG...
17042 # ------------------
17043 # Perform arithmetic evaluation on the ARGs, and store the result in the
17044 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17045 # must be portable across $(()) and expr.
17046 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17047   eval 'as_fn_arith ()
17048   {
17049     as_val=$(( $* ))
17050   }'
17051 else
17052   as_fn_arith ()
17053   {
17054     as_val=`expr "$@" || test $? -eq 1`
17055   }
17056 fi # as_fn_arith
17057
17058
17059 if expr a : '\(a\)' >/dev/null 2>&1 &&
17060    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17061   as_expr=expr
17062 else
17063   as_expr=false
17064 fi
17065
17066 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17067   as_basename=basename
17068 else
17069   as_basename=false
17070 fi
17071
17072 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17073   as_dirname=dirname
17074 else
17075   as_dirname=false
17076 fi
17077
17078 as_me=`$as_basename -- "$0" ||
17079 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17080          X"$0" : 'X\(//\)$' \| \
17081          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17082 $as_echo X/"$0" |
17083     sed '/^.*\/\([^/][^/]*\)\/*$/{
17084             s//\1/
17085             q
17086           }
17087           /^X\/\(\/\/\)$/{
17088             s//\1/
17089             q
17090           }
17091           /^X\/\(\/\).*/{
17092             s//\1/
17093             q
17094           }
17095           s/.*/./; q'`
17096
17097 # Avoid depending upon Character Ranges.
17098 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17099 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17100 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17101 as_cr_digits='0123456789'
17102 as_cr_alnum=$as_cr_Letters$as_cr_digits
17103
17104 ECHO_C= ECHO_N= ECHO_T=
17105 case `echo -n x` in #(((((
17106 -n*)
17107   case `echo 'xy\c'` in
17108   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17109   xy)  ECHO_C='\c';;
17110   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17111        ECHO_T=' ';;
17112   esac;;
17113 *)
17114   ECHO_N='-n';;
17115 esac
17116
17117 rm -f conf$$ conf$$.exe conf$$.file
17118 if test -d conf$$.dir; then
17119   rm -f conf$$.dir/conf$$.file
17120 else
17121   rm -f conf$$.dir
17122   mkdir conf$$.dir 2>/dev/null
17123 fi
17124 if (echo >conf$$.file) 2>/dev/null; then
17125   if ln -s conf$$.file conf$$ 2>/dev/null; then
17126     as_ln_s='ln -s'
17127     # ... but there are two gotchas:
17128     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17129     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17130     # In both cases, we have to default to `cp -pR'.
17131     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17132       as_ln_s='cp -pR'
17133   elif ln conf$$.file conf$$ 2>/dev/null; then
17134     as_ln_s=ln
17135   else
17136     as_ln_s='cp -pR'
17137   fi
17138 else
17139   as_ln_s='cp -pR'
17140 fi
17141 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17142 rmdir conf$$.dir 2>/dev/null
17143
17144
17145 # as_fn_mkdir_p
17146 # -------------
17147 # Create "$as_dir" as a directory, including parents if necessary.
17148 as_fn_mkdir_p ()
17149 {
17150
17151   case $as_dir in #(
17152   -*) as_dir=./$as_dir;;
17153   esac
17154   test -d "$as_dir" || eval $as_mkdir_p || {
17155     as_dirs=
17156     while :; do
17157       case $as_dir in #(
17158       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17159       *) as_qdir=$as_dir;;
17160       esac
17161       as_dirs="'$as_qdir' $as_dirs"
17162       as_dir=`$as_dirname -- "$as_dir" ||
17163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17164          X"$as_dir" : 'X\(//\)[^/]' \| \
17165          X"$as_dir" : 'X\(//\)$' \| \
17166          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17167 $as_echo X"$as_dir" |
17168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17169             s//\1/
17170             q
17171           }
17172           /^X\(\/\/\)[^/].*/{
17173             s//\1/
17174             q
17175           }
17176           /^X\(\/\/\)$/{
17177             s//\1/
17178             q
17179           }
17180           /^X\(\/\).*/{
17181             s//\1/
17182             q
17183           }
17184           s/.*/./; q'`
17185       test -d "$as_dir" && break
17186     done
17187     test -z "$as_dirs" || eval "mkdir $as_dirs"
17188   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17189
17190
17191 } # as_fn_mkdir_p
17192 if mkdir -p . 2>/dev/null; then
17193   as_mkdir_p='mkdir -p "$as_dir"'
17194 else
17195   test -d ./-p && rmdir ./-p
17196   as_mkdir_p=false
17197 fi
17198
17199
17200 # as_fn_executable_p FILE
17201 # -----------------------
17202 # Test if FILE is an executable regular file.
17203 as_fn_executable_p ()
17204 {
17205   test -f "$1" && test -x "$1"
17206 } # as_fn_executable_p
17207 as_test_x='test -x'
17208 as_executable_p=as_fn_executable_p
17209
17210 # Sed expression to map a string onto a valid CPP name.
17211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17212
17213 # Sed expression to map a string onto a valid variable name.
17214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17215
17216
17217 exec 6>&1
17218 ## ----------------------------------- ##
17219 ## Main body of $CONFIG_STATUS script. ##
17220 ## ----------------------------------- ##
17221 _ASEOF
17222 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17223
17224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17225 # Save the log message, to keep $0 and so on meaningful, and to
17226 # report actual input values of CONFIG_FILES etc. instead of their
17227 # values after options handling.
17228 ac_log="
17229 This file was extended by libsigc++ $as_me 2.9.2, which was
17230 generated by GNU Autoconf 2.69.  Invocation command line was
17231
17232   CONFIG_FILES    = $CONFIG_FILES
17233   CONFIG_HEADERS  = $CONFIG_HEADERS
17234   CONFIG_LINKS    = $CONFIG_LINKS
17235   CONFIG_COMMANDS = $CONFIG_COMMANDS
17236   $ $0 $@
17237
17238 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17239 "
17240
17241 _ACEOF
17242
17243 case $ac_config_files in *"
17244 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17245 esac
17246
17247 case $ac_config_headers in *"
17248 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17249 esac
17250
17251
17252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17253 # Files that config.status was made for.
17254 config_files="$ac_config_files"
17255 config_headers="$ac_config_headers"
17256 config_commands="$ac_config_commands"
17257
17258 _ACEOF
17259
17260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17261 ac_cs_usage="\
17262 \`$as_me' instantiates files and other configuration actions
17263 from templates according to the current configuration.  Unless the files
17264 and actions are specified as TAGs, all are instantiated by default.
17265
17266 Usage: $0 [OPTION]... [TAG]...
17267
17268   -h, --help       print this help, then exit
17269   -V, --version    print version number and configuration settings, then exit
17270       --config     print configuration, then exit
17271   -q, --quiet, --silent
17272                    do not print progress messages
17273   -d, --debug      don't remove temporary files
17274       --recheck    update $as_me by reconfiguring in the same conditions
17275       --file=FILE[:TEMPLATE]
17276                    instantiate the configuration file FILE
17277       --header=FILE[:TEMPLATE]
17278                    instantiate the configuration header FILE
17279
17280 Configuration files:
17281 $config_files
17282
17283 Configuration headers:
17284 $config_headers
17285
17286 Configuration commands:
17287 $config_commands
17288
17289 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B>.
17290 libsigc++ home page: <http://libsigc.sourceforge.net/>."
17291
17292 _ACEOF
17293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17294 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17295 ac_cs_version="\\
17296 libsigc++ config.status 2.9.2
17297 configured by $0, generated by GNU Autoconf 2.69,
17298   with options \\"\$ac_cs_config\\"
17299
17300 Copyright (C) 2012 Free Software Foundation, Inc.
17301 This config.status script is free software; the Free Software Foundation
17302 gives unlimited permission to copy, distribute and modify it."
17303
17304 ac_pwd='$ac_pwd'
17305 srcdir='$srcdir'
17306 INSTALL='$INSTALL'
17307 MKDIR_P='$MKDIR_P'
17308 AWK='$AWK'
17309 test -n "\$AWK" || AWK=awk
17310 _ACEOF
17311
17312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17313 # The default lists apply if the user does not specify any file.
17314 ac_need_defaults=:
17315 while test $# != 0
17316 do
17317   case $1 in
17318   --*=?*)
17319     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17320     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17321     ac_shift=:
17322     ;;
17323   --*=)
17324     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17325     ac_optarg=
17326     ac_shift=:
17327     ;;
17328   *)
17329     ac_option=$1
17330     ac_optarg=$2
17331     ac_shift=shift
17332     ;;
17333   esac
17334
17335   case $ac_option in
17336   # Handling of the options.
17337   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17338     ac_cs_recheck=: ;;
17339   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17340     $as_echo "$ac_cs_version"; exit ;;
17341   --config | --confi | --conf | --con | --co | --c )
17342     $as_echo "$ac_cs_config"; exit ;;
17343   --debug | --debu | --deb | --de | --d | -d )
17344     debug=: ;;
17345   --file | --fil | --fi | --f )
17346     $ac_shift
17347     case $ac_optarg in
17348     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17349     '') as_fn_error $? "missing file argument" ;;
17350     esac
17351     as_fn_append CONFIG_FILES " '$ac_optarg'"
17352     ac_need_defaults=false;;
17353   --header | --heade | --head | --hea )
17354     $ac_shift
17355     case $ac_optarg in
17356     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17357     esac
17358     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17359     ac_need_defaults=false;;
17360   --he | --h)
17361     # Conflict between --help and --header
17362     as_fn_error $? "ambiguous option: \`$1'
17363 Try \`$0 --help' for more information.";;
17364   --help | --hel | -h )
17365     $as_echo "$ac_cs_usage"; exit ;;
17366   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17367   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17368     ac_cs_silent=: ;;
17369
17370   # This is an error.
17371   -*) as_fn_error $? "unrecognized option: \`$1'
17372 Try \`$0 --help' for more information." ;;
17373
17374   *) as_fn_append ac_config_targets " $1"
17375      ac_need_defaults=false ;;
17376
17377   esac
17378   shift
17379 done
17380
17381 ac_configure_extra_args=
17382
17383 if $ac_cs_silent; then
17384   exec 6>/dev/null
17385   ac_configure_extra_args="$ac_configure_extra_args --silent"
17386 fi
17387
17388 _ACEOF
17389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17390 if \$ac_cs_recheck; then
17391   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17392   shift
17393   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17394   CONFIG_SHELL='$SHELL'
17395   export CONFIG_SHELL
17396   exec "\$@"
17397 fi
17398
17399 _ACEOF
17400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17401 exec 5>>config.log
17402 {
17403   echo
17404   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17405 ## Running $as_me. ##
17406 _ASBOX
17407   $as_echo "$ac_log"
17408 } >&5
17409
17410 _ACEOF
17411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17412 #
17413 # INIT-COMMANDS
17414 #
17415 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17416
17417
17418 # The HP-UX ksh and POSIX shell print the target directory to stdout
17419 # if CDPATH is set.
17420 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17421
17422 sed_quote_subst='$sed_quote_subst'
17423 double_quote_subst='$double_quote_subst'
17424 delay_variable_subst='$delay_variable_subst'
17425 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17426 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17427 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17428 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17429 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17430 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17431 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17432 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17433 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17434 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17435 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17436 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17437 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17438 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17439 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17440 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17441 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17442 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17443 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17444 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17445 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17446 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17447 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17448 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17449 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17450 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17451 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17452 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17453 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17454 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17455 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17456 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17457 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17458 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17459 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17460 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17461 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17462 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17463 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17464 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17465 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17466 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17467 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17468 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17469 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17470 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17471 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17472 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17473 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17474 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17475 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17476 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17477 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17478 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17479 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17480 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17481 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17482 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17483 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17484 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17485 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17486 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17487 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17488 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17489 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17490 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17491 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17492 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17493 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17494 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17495 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17496 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17497 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17498 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17499 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17500 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17501 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17502 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17503 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17504 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17505 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17506 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17507 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17508 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17509 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17510 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17511 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17512 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17513 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17514 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17515 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17516 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17517 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17518 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17519 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17520 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17521 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17522 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17523 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17524 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17525 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17526 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17527 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17528 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17529 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17530 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17531 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17532 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17533 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17534 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17535 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17536 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17537 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17538 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17539 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17540 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17541 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17542 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17543 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17544 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17545 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17546 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17547 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17548 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17549 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17550 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17551 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17552 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17553 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17554 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17555 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17556 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17557 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17558 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17559 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17560 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17561 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17562 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17563 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17564 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17565 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17566 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17567 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17568 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17569 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17570 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17571 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17572 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17573 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17574 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17575 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17576 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17577 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17578 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17579 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17580 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17581 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17582 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17583 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17584 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17585 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17586 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17587 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17588 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17589 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17590 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17591 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17592 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17593 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17594 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17595 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17596 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17597 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17598 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17599 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17600 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17601 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17602 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17603 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17604 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17605 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17606 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17607 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17608 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17609 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17610
17611 LTCC='$LTCC'
17612 LTCFLAGS='$LTCFLAGS'
17613 compiler='$compiler_DEFAULT'
17614
17615 # A function that is used when there is no print builtin or printf.
17616 func_fallback_echo ()
17617 {
17618   eval 'cat <<_LTECHO_EOF
17619 \$1
17620 _LTECHO_EOF'
17621 }
17622
17623 # Quote evaled strings.
17624 for var in AS \
17625 DLLTOOL \
17626 OBJDUMP \
17627 SHELL \
17628 ECHO \
17629 PATH_SEPARATOR \
17630 SED \
17631 GREP \
17632 EGREP \
17633 FGREP \
17634 LD \
17635 NM \
17636 LN_S \
17637 lt_SP2NL \
17638 lt_NL2SP \
17639 reload_flag \
17640 deplibs_check_method \
17641 file_magic_cmd \
17642 file_magic_glob \
17643 want_nocaseglob \
17644 sharedlib_from_linklib_cmd \
17645 AR \
17646 AR_FLAGS \
17647 archiver_list_spec \
17648 STRIP \
17649 RANLIB \
17650 CC \
17651 CFLAGS \
17652 compiler \
17653 lt_cv_sys_global_symbol_pipe \
17654 lt_cv_sys_global_symbol_to_cdecl \
17655 lt_cv_sys_global_symbol_to_c_name_address \
17656 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17657 nm_file_list_spec \
17658 lt_prog_compiler_no_builtin_flag \
17659 lt_prog_compiler_pic \
17660 lt_prog_compiler_wl \
17661 lt_prog_compiler_static \
17662 lt_cv_prog_compiler_c_o \
17663 need_locks \
17664 MANIFEST_TOOL \
17665 DSYMUTIL \
17666 NMEDIT \
17667 LIPO \
17668 OTOOL \
17669 OTOOL64 \
17670 shrext_cmds \
17671 export_dynamic_flag_spec \
17672 whole_archive_flag_spec \
17673 compiler_needs_object \
17674 with_gnu_ld \
17675 allow_undefined_flag \
17676 no_undefined_flag \
17677 hardcode_libdir_flag_spec \
17678 hardcode_libdir_separator \
17679 exclude_expsyms \
17680 include_expsyms \
17681 file_list_spec \
17682 variables_saved_for_relink \
17683 libname_spec \
17684 library_names_spec \
17685 soname_spec \
17686 install_override_mode \
17687 finish_eval \
17688 old_striplib \
17689 striplib \
17690 compiler_lib_search_dirs \
17691 predep_objects \
17692 postdep_objects \
17693 predeps \
17694 postdeps \
17695 compiler_lib_search_path \
17696 LD_CXX \
17697 reload_flag_CXX \
17698 compiler_CXX \
17699 lt_prog_compiler_no_builtin_flag_CXX \
17700 lt_prog_compiler_pic_CXX \
17701 lt_prog_compiler_wl_CXX \
17702 lt_prog_compiler_static_CXX \
17703 lt_cv_prog_compiler_c_o_CXX \
17704 export_dynamic_flag_spec_CXX \
17705 whole_archive_flag_spec_CXX \
17706 compiler_needs_object_CXX \
17707 with_gnu_ld_CXX \
17708 allow_undefined_flag_CXX \
17709 no_undefined_flag_CXX \
17710 hardcode_libdir_flag_spec_CXX \
17711 hardcode_libdir_separator_CXX \
17712 exclude_expsyms_CXX \
17713 include_expsyms_CXX \
17714 file_list_spec_CXX \
17715 compiler_lib_search_dirs_CXX \
17716 predep_objects_CXX \
17717 postdep_objects_CXX \
17718 predeps_CXX \
17719 postdeps_CXX \
17720 compiler_lib_search_path_CXX; do
17721     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17722     *[\\\\\\\`\\"\\\$]*)
17723       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17724       ;;
17725     *)
17726       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17727       ;;
17728     esac
17729 done
17730
17731 # Double-quote double-evaled strings.
17732 for var in reload_cmds \
17733 old_postinstall_cmds \
17734 old_postuninstall_cmds \
17735 old_archive_cmds \
17736 extract_expsyms_cmds \
17737 old_archive_from_new_cmds \
17738 old_archive_from_expsyms_cmds \
17739 archive_cmds \
17740 archive_expsym_cmds \
17741 module_cmds \
17742 module_expsym_cmds \
17743 export_symbols_cmds \
17744 prelink_cmds \
17745 postlink_cmds \
17746 postinstall_cmds \
17747 postuninstall_cmds \
17748 finish_cmds \
17749 sys_lib_search_path_spec \
17750 sys_lib_dlsearch_path_spec \
17751 reload_cmds_CXX \
17752 old_archive_cmds_CXX \
17753 old_archive_from_new_cmds_CXX \
17754 old_archive_from_expsyms_cmds_CXX \
17755 archive_cmds_CXX \
17756 archive_expsym_cmds_CXX \
17757 module_cmds_CXX \
17758 module_expsym_cmds_CXX \
17759 export_symbols_cmds_CXX \
17760 prelink_cmds_CXX \
17761 postlink_cmds_CXX; do
17762     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17763     *[\\\\\\\`\\"\\\$]*)
17764       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17765       ;;
17766     *)
17767       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17768       ;;
17769     esac
17770 done
17771
17772 ac_aux_dir='$ac_aux_dir'
17773 xsi_shell='$xsi_shell'
17774 lt_shell_append='$lt_shell_append'
17775
17776 # See if we are running on zsh, and set the options which allow our
17777 # commands through without removal of \ escapes INIT.
17778 if test -n "\${ZSH_VERSION+set}" ; then
17779    setopt NO_GLOB_SUBST
17780 fi
17781
17782
17783     PACKAGE='$PACKAGE'
17784     VERSION='$VERSION'
17785     TIMESTAMP='$TIMESTAMP'
17786     RM='$RM'
17787     ofile='$ofile'
17788
17789
17790
17791
17792
17793
17794 _ACEOF
17795
17796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17797
17798 # Handling of arguments.
17799 for ac_config_target in $ac_config_targets
17800 do
17801   case $ac_config_target in
17802     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17803     "sigc++config.h") CONFIG_HEADERS="$CONFIG_HEADERS sigc++config.h" ;;
17804     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17805     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17806     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17807     "${SIGCXX_MODULE_NAME}.pc") CONFIG_FILES="$CONFIG_FILES ${SIGCXX_MODULE_NAME}.pc:sigc++.pc.in" ;;
17808     "${SIGCXX_MODULE_NAME}-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ${SIGCXX_MODULE_NAME}-uninstalled.pc:sigc++-uninstalled.pc.in" ;;
17809     "sigc++/Makefile") CONFIG_FILES="$CONFIG_FILES sigc++/Makefile" ;;
17810     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17811     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17812     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17813     "docs/reference/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/reference/Doxyfile" ;;
17814     "MSVC_Net2013/sigc.rc") CONFIG_FILES="$CONFIG_FILES MSVC_Net2013/sigc.rc" ;;
17815     "MSVC_Net2013/sigc++config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MSVC_Net2013/sigc++config.h" ;;
17816
17817   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17818   esac
17819 done
17820
17821
17822 # If the user did not use the arguments to specify the items to instantiate,
17823 # then the envvar interface is used.  Set only those that are not.
17824 # We use the long form for the default assignment because of an extremely
17825 # bizarre bug on SunOS 4.1.3.
17826 if $ac_need_defaults; then
17827   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17828   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17829   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17830 fi
17831
17832 # Have a temporary directory for convenience.  Make it in the build tree
17833 # simply because there is no reason against having it here, and in addition,
17834 # creating and moving files from /tmp can sometimes cause problems.
17835 # Hook for its removal unless debugging.
17836 # Note that there is a small window in which the directory will not be cleaned:
17837 # after its creation but before its name has been assigned to `$tmp'.
17838 $debug ||
17839 {
17840   tmp= ac_tmp=
17841   trap 'exit_status=$?
17842   : "${ac_tmp:=$tmp}"
17843   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17844 ' 0
17845   trap 'as_fn_exit 1' 1 2 13 15
17846 }
17847 # Create a (secure) tmp directory for tmp files.
17848
17849 {
17850   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17851   test -d "$tmp"
17852 }  ||
17853 {
17854   tmp=./conf$$-$RANDOM
17855   (umask 077 && mkdir "$tmp")
17856 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17857 ac_tmp=$tmp
17858
17859 # Set up the scripts for CONFIG_FILES section.
17860 # No need to generate them if there are no CONFIG_FILES.
17861 # This happens for instance with `./config.status config.h'.
17862 if test -n "$CONFIG_FILES"; then
17863
17864
17865 ac_cr=`echo X | tr X '\015'`
17866 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17867 # But we know of no other shell where ac_cr would be empty at this
17868 # point, so we can use a bashism as a fallback.
17869 if test "x$ac_cr" = x; then
17870   eval ac_cr=\$\'\\r\'
17871 fi
17872 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17873 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17874   ac_cs_awk_cr='\\r'
17875 else
17876   ac_cs_awk_cr=$ac_cr
17877 fi
17878
17879 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17880 _ACEOF
17881
17882
17883 {
17884   echo "cat >conf$$subs.awk <<_ACEOF" &&
17885   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17886   echo "_ACEOF"
17887 } >conf$$subs.sh ||
17888   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17889 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17890 ac_delim='%!_!# '
17891 for ac_last_try in false false false false false :; do
17892   . ./conf$$subs.sh ||
17893     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17894
17895   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17896   if test $ac_delim_n = $ac_delim_num; then
17897     break
17898   elif $ac_last_try; then
17899     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17900   else
17901     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17902   fi
17903 done
17904 rm -f conf$$subs.sh
17905
17906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17907 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17908 _ACEOF
17909 sed -n '
17910 h
17911 s/^/S["/; s/!.*/"]=/
17912 p
17913 g
17914 s/^[^!]*!//
17915 :repl
17916 t repl
17917 s/'"$ac_delim"'$//
17918 t delim
17919 :nl
17920 h
17921 s/\(.\{148\}\)..*/\1/
17922 t more1
17923 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17924 p
17925 n
17926 b repl
17927 :more1
17928 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17929 p
17930 g
17931 s/.\{148\}//
17932 t nl
17933 :delim
17934 h
17935 s/\(.\{148\}\)..*/\1/
17936 t more2
17937 s/["\\]/\\&/g; s/^/"/; s/$/"/
17938 p
17939 b
17940 :more2
17941 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17942 p
17943 g
17944 s/.\{148\}//
17945 t delim
17946 ' <conf$$subs.awk | sed '
17947 /^[^""]/{
17948   N
17949   s/\n//
17950 }
17951 ' >>$CONFIG_STATUS || ac_write_fail=1
17952 rm -f conf$$subs.awk
17953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17954 _ACAWK
17955 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17956   for (key in S) S_is_set[key] = 1
17957   FS = "\a"
17958
17959 }
17960 {
17961   line = $ 0
17962   nfields = split(line, field, "@")
17963   substed = 0
17964   len = length(field[1])
17965   for (i = 2; i < nfields; i++) {
17966     key = field[i]
17967     keylen = length(key)
17968     if (S_is_set[key]) {
17969       value = S[key]
17970       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17971       len += length(value) + length(field[++i])
17972       substed = 1
17973     } else
17974       len += 1 + keylen
17975   }
17976
17977   print line
17978 }
17979
17980 _ACAWK
17981 _ACEOF
17982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17983 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17984   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17985 else
17986   cat
17987 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17988   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17989 _ACEOF
17990
17991 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17992 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17993 # trailing colons and then remove the whole line if VPATH becomes empty
17994 # (actually we leave an empty line to preserve line numbers).
17995 if test "x$srcdir" = x.; then
17996   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17997 h
17998 s///
17999 s/^/:/
18000 s/[      ]*$/:/
18001 s/:\$(srcdir):/:/g
18002 s/:\${srcdir}:/:/g
18003 s/:@srcdir@:/:/g
18004 s/^:*//
18005 s/:*$//
18006 x
18007 s/\(=[   ]*\).*/\1/
18008 G
18009 s/\n//
18010 s/^[^=]*=[       ]*$//
18011 }'
18012 fi
18013
18014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18015 fi # test -n "$CONFIG_FILES"
18016
18017 # Set up the scripts for CONFIG_HEADERS section.
18018 # No need to generate them if there are no CONFIG_HEADERS.
18019 # This happens for instance with `./config.status Makefile'.
18020 if test -n "$CONFIG_HEADERS"; then
18021 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18022 BEGIN {
18023 _ACEOF
18024
18025 # Transform confdefs.h into an awk script `defines.awk', embedded as
18026 # here-document in config.status, that substitutes the proper values into
18027 # config.h.in to produce config.h.
18028
18029 # Create a delimiter string that does not exist in confdefs.h, to ease
18030 # handling of long lines.
18031 ac_delim='%!_!# '
18032 for ac_last_try in false false :; do
18033   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18034   if test -z "$ac_tt"; then
18035     break
18036   elif $ac_last_try; then
18037     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18038   else
18039     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18040   fi
18041 done
18042
18043 # For the awk script, D is an array of macro values keyed by name,
18044 # likewise P contains macro parameters if any.  Preserve backslash
18045 # newline sequences.
18046
18047 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18048 sed -n '
18049 s/.\{148\}/&'"$ac_delim"'/g
18050 t rset
18051 :rset
18052 s/^[     ]*#[    ]*define[       ][      ]*/ /
18053 t def
18054 d
18055 :def
18056 s/\\$//
18057 t bsnl
18058 s/["\\]/\\&/g
18059 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18060 D["\1"]=" \3"/p
18061 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18062 d
18063 :bsnl
18064 s/["\\]/\\&/g
18065 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18066 D["\1"]=" \3\\\\\\n"\\/p
18067 t cont
18068 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18069 t cont
18070 d
18071 :cont
18072 n
18073 s/.\{148\}/&'"$ac_delim"'/g
18074 t clear
18075 :clear
18076 s/\\$//
18077 t bsnlc
18078 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18079 d
18080 :bsnlc
18081 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18082 b cont
18083 ' <confdefs.h | sed '
18084 s/'"$ac_delim"'/"\\\
18085 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18086
18087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18088   for (key in D) D_is_set[key] = 1
18089   FS = "\a"
18090 }
18091 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18092   line = \$ 0
18093   split(line, arg, " ")
18094   if (arg[1] == "#") {
18095     defundef = arg[2]
18096     mac1 = arg[3]
18097   } else {
18098     defundef = substr(arg[1], 2)
18099     mac1 = arg[2]
18100   }
18101   split(mac1, mac2, "(") #)
18102   macro = mac2[1]
18103   prefix = substr(line, 1, index(line, defundef) - 1)
18104   if (D_is_set[macro]) {
18105     # Preserve the white space surrounding the "#".
18106     print prefix "define", macro P[macro] D[macro]
18107     next
18108   } else {
18109     # Replace #undef with comments.  This is necessary, for example,
18110     # in the case of _POSIX_SOURCE, which is predefined and required
18111     # on some systems where configure will not decide to define it.
18112     if (defundef == "undef") {
18113       print "/*", prefix defundef, macro, "*/"
18114       next
18115     }
18116   }
18117 }
18118 { print }
18119 _ACAWK
18120 _ACEOF
18121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18122   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18123 fi # test -n "$CONFIG_HEADERS"
18124
18125
18126 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18127 shift
18128 for ac_tag
18129 do
18130   case $ac_tag in
18131   :[FHLC]) ac_mode=$ac_tag; continue;;
18132   esac
18133   case $ac_mode$ac_tag in
18134   :[FHL]*:*);;
18135   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18136   :[FH]-) ac_tag=-:-;;
18137   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18138   esac
18139   ac_save_IFS=$IFS
18140   IFS=:
18141   set x $ac_tag
18142   IFS=$ac_save_IFS
18143   shift
18144   ac_file=$1
18145   shift
18146
18147   case $ac_mode in
18148   :L) ac_source=$1;;
18149   :[FH])
18150     ac_file_inputs=
18151     for ac_f
18152     do
18153       case $ac_f in
18154       -) ac_f="$ac_tmp/stdin";;
18155       *) # Look for the file first in the build tree, then in the source tree
18156          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18157          # because $ac_f cannot contain `:'.
18158          test -f "$ac_f" ||
18159            case $ac_f in
18160            [\\/$]*) false;;
18161            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18162            esac ||
18163            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18164       esac
18165       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18166       as_fn_append ac_file_inputs " '$ac_f'"
18167     done
18168
18169     # Let's still pretend it is `configure' which instantiates (i.e., don't
18170     # use $as_me), people would be surprised to read:
18171     #    /* config.h.  Generated by config.status.  */
18172     configure_input='Generated from '`
18173           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18174         `' by configure.'
18175     if test x"$ac_file" != x-; then
18176       configure_input="$ac_file.  $configure_input"
18177       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18178 $as_echo "$as_me: creating $ac_file" >&6;}
18179     fi
18180     # Neutralize special characters interpreted by sed in replacement strings.
18181     case $configure_input in #(
18182     *\&* | *\|* | *\\* )
18183        ac_sed_conf_input=`$as_echo "$configure_input" |
18184        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18185     *) ac_sed_conf_input=$configure_input;;
18186     esac
18187
18188     case $ac_tag in
18189     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18190       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18191     esac
18192     ;;
18193   esac
18194
18195   ac_dir=`$as_dirname -- "$ac_file" ||
18196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18197          X"$ac_file" : 'X\(//\)[^/]' \| \
18198          X"$ac_file" : 'X\(//\)$' \| \
18199          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18200 $as_echo X"$ac_file" |
18201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18202             s//\1/
18203             q
18204           }
18205           /^X\(\/\/\)[^/].*/{
18206             s//\1/
18207             q
18208           }
18209           /^X\(\/\/\)$/{
18210             s//\1/
18211             q
18212           }
18213           /^X\(\/\).*/{
18214             s//\1/
18215             q
18216           }
18217           s/.*/./; q'`
18218   as_dir="$ac_dir"; as_fn_mkdir_p
18219   ac_builddir=.
18220
18221 case "$ac_dir" in
18222 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18223 *)
18224   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18225   # A ".." for each directory in $ac_dir_suffix.
18226   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18227   case $ac_top_builddir_sub in
18228   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18229   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18230   esac ;;
18231 esac
18232 ac_abs_top_builddir=$ac_pwd
18233 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18234 # for backward compatibility:
18235 ac_top_builddir=$ac_top_build_prefix
18236
18237 case $srcdir in
18238   .)  # We are building in place.
18239     ac_srcdir=.
18240     ac_top_srcdir=$ac_top_builddir_sub
18241     ac_abs_top_srcdir=$ac_pwd ;;
18242   [\\/]* | ?:[\\/]* )  # Absolute name.
18243     ac_srcdir=$srcdir$ac_dir_suffix;
18244     ac_top_srcdir=$srcdir
18245     ac_abs_top_srcdir=$srcdir ;;
18246   *) # Relative name.
18247     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18248     ac_top_srcdir=$ac_top_build_prefix$srcdir
18249     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18250 esac
18251 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18252
18253
18254   case $ac_mode in
18255   :F)
18256   #
18257   # CONFIG_FILE
18258   #
18259
18260   case $INSTALL in
18261   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18262   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18263   esac
18264   ac_MKDIR_P=$MKDIR_P
18265   case $MKDIR_P in
18266   [\\/$]* | ?:[\\/]* ) ;;
18267   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18268   esac
18269 _ACEOF
18270
18271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18272 # If the template does not know about datarootdir, expand it.
18273 # FIXME: This hack should be removed a few years after 2.60.
18274 ac_datarootdir_hack=; ac_datarootdir_seen=
18275 ac_sed_dataroot='
18276 /datarootdir/ {
18277   p
18278   q
18279 }
18280 /@datadir@/p
18281 /@docdir@/p
18282 /@infodir@/p
18283 /@localedir@/p
18284 /@mandir@/p'
18285 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18286 *datarootdir*) ac_datarootdir_seen=yes;;
18287 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18289 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18290 _ACEOF
18291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18292   ac_datarootdir_hack='
18293   s&@datadir@&$datadir&g
18294   s&@docdir@&$docdir&g
18295   s&@infodir@&$infodir&g
18296   s&@localedir@&$localedir&g
18297   s&@mandir@&$mandir&g
18298   s&\\\${datarootdir}&$datarootdir&g' ;;
18299 esac
18300 _ACEOF
18301
18302 # Neutralize VPATH when `$srcdir' = `.'.
18303 # Shell code in configure.ac might set extrasub.
18304 # FIXME: do we really want to maintain this feature?
18305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18306 ac_sed_extra="$ac_vpsub
18307 $extrasub
18308 _ACEOF
18309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18310 :t
18311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18312 s|@configure_input@|$ac_sed_conf_input|;t t
18313 s&@top_builddir@&$ac_top_builddir_sub&;t t
18314 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18315 s&@srcdir@&$ac_srcdir&;t t
18316 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18317 s&@top_srcdir@&$ac_top_srcdir&;t t
18318 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18319 s&@builddir@&$ac_builddir&;t t
18320 s&@abs_builddir@&$ac_abs_builddir&;t t
18321 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18322 s&@INSTALL@&$ac_INSTALL&;t t
18323 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18324 $ac_datarootdir_hack
18325 "
18326 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18327   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18328
18329 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18330   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18331   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18332       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18333   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18334 which seems to be undefined.  Please make sure it is defined" >&5
18335 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18336 which seems to be undefined.  Please make sure it is defined" >&2;}
18337
18338   rm -f "$ac_tmp/stdin"
18339   case $ac_file in
18340   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18341   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18342   esac \
18343   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18344  ;;
18345   :H)
18346   #
18347   # CONFIG_HEADER
18348   #
18349   if test x"$ac_file" != x-; then
18350     {
18351       $as_echo "/* $configure_input  */" \
18352       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18353     } >"$ac_tmp/config.h" \
18354       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18355     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18356       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18357 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18358     else
18359       rm -f "$ac_file"
18360       mv "$ac_tmp/config.h" "$ac_file" \
18361         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18362     fi
18363   else
18364     $as_echo "/* $configure_input  */" \
18365       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18366       || as_fn_error $? "could not create -" "$LINENO" 5
18367   fi
18368 # Compute "$ac_file"'s index in $config_headers.
18369 _am_arg="$ac_file"
18370 _am_stamp_count=1
18371 for _am_header in $config_headers :; do
18372   case $_am_header in
18373     $_am_arg | $_am_arg:* )
18374       break ;;
18375     * )
18376       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18377   esac
18378 done
18379 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18380 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18381          X"$_am_arg" : 'X\(//\)[^/]' \| \
18382          X"$_am_arg" : 'X\(//\)$' \| \
18383          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18384 $as_echo X"$_am_arg" |
18385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18386             s//\1/
18387             q
18388           }
18389           /^X\(\/\/\)[^/].*/{
18390             s//\1/
18391             q
18392           }
18393           /^X\(\/\/\)$/{
18394             s//\1/
18395             q
18396           }
18397           /^X\(\/\).*/{
18398             s//\1/
18399             q
18400           }
18401           s/.*/./; q'`/stamp-h$_am_stamp_count
18402  ;;
18403
18404   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18405 $as_echo "$as_me: executing $ac_file commands" >&6;}
18406  ;;
18407   esac
18408
18409
18410   case $ac_file$ac_mode in
18411     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18412   # Older Autoconf quotes --file arguments for eval, but not when files
18413   # are listed without --file.  Let's play safe and only enable the eval
18414   # if we detect the quoting.
18415   case $CONFIG_FILES in
18416   *\'*) eval set x "$CONFIG_FILES" ;;
18417   *)   set x $CONFIG_FILES ;;
18418   esac
18419   shift
18420   for mf
18421   do
18422     # Strip MF so we end up with the name of the file.
18423     mf=`echo "$mf" | sed -e 's/:.*$//'`
18424     # Check whether this is an Automake generated Makefile or not.
18425     # We used to match only the files named 'Makefile.in', but
18426     # some people rename them; so instead we look at the file content.
18427     # Grep'ing the first line is not enough: some people post-process
18428     # each Makefile.in and add a new line on top of each file to say so.
18429     # Grep'ing the whole file is not good either: AIX grep has a line
18430     # limit of 2048, but all sed's we know have understand at least 4000.
18431     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18432       dirpart=`$as_dirname -- "$mf" ||
18433 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18434          X"$mf" : 'X\(//\)[^/]' \| \
18435          X"$mf" : 'X\(//\)$' \| \
18436          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18437 $as_echo X"$mf" |
18438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18439             s//\1/
18440             q
18441           }
18442           /^X\(\/\/\)[^/].*/{
18443             s//\1/
18444             q
18445           }
18446           /^X\(\/\/\)$/{
18447             s//\1/
18448             q
18449           }
18450           /^X\(\/\).*/{
18451             s//\1/
18452             q
18453           }
18454           s/.*/./; q'`
18455     else
18456       continue
18457     fi
18458     # Extract the definition of DEPDIR, am__include, and am__quote
18459     # from the Makefile without running 'make'.
18460     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18461     test -z "$DEPDIR" && continue
18462     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18463     test -z "$am__include" && continue
18464     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18465     # Find all dependency output files, they are included files with
18466     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18467     # simplest approach to changing $(DEPDIR) to its actual value in the
18468     # expansion.
18469     for file in `sed -n "
18470       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18471          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18472       # Make sure the directory exists.
18473       test -f "$dirpart/$file" && continue
18474       fdir=`$as_dirname -- "$file" ||
18475 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18476          X"$file" : 'X\(//\)[^/]' \| \
18477          X"$file" : 'X\(//\)$' \| \
18478          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18479 $as_echo X"$file" |
18480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18481             s//\1/
18482             q
18483           }
18484           /^X\(\/\/\)[^/].*/{
18485             s//\1/
18486             q
18487           }
18488           /^X\(\/\/\)$/{
18489             s//\1/
18490             q
18491           }
18492           /^X\(\/\).*/{
18493             s//\1/
18494             q
18495           }
18496           s/.*/./; q'`
18497       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18498       # echo "creating $dirpart/$file"
18499       echo '# dummy' > "$dirpart/$file"
18500     done
18501   done
18502 }
18503  ;;
18504     "libtool":C)
18505
18506     # See if we are running on zsh, and set the options which allow our
18507     # commands through without removal of \ escapes.
18508     if test -n "${ZSH_VERSION+set}" ; then
18509       setopt NO_GLOB_SUBST
18510     fi
18511
18512     cfgfile="${ofile}T"
18513     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18514     $RM "$cfgfile"
18515
18516     cat <<_LT_EOF >> "$cfgfile"
18517 #! $SHELL
18518
18519 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18520 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18522 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18523 #
18524 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18525 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18526 #                 Foundation, Inc.
18527 #   Written by Gordon Matzigkeit, 1996
18528 #
18529 #   This file is part of GNU Libtool.
18530 #
18531 # GNU Libtool is free software; you can redistribute it and/or
18532 # modify it under the terms of the GNU General Public License as
18533 # published by the Free Software Foundation; either version 2 of
18534 # the License, or (at your option) any later version.
18535 #
18536 # As a special exception to the GNU General Public License,
18537 # if you distribute this file as part of a program or library that
18538 # is built using GNU Libtool, you may include this file under the
18539 # same distribution terms that you use for the rest of that program.
18540 #
18541 # GNU Libtool is distributed in the hope that it will be useful,
18542 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18544 # GNU General Public License for more details.
18545 #
18546 # You should have received a copy of the GNU General Public License
18547 # along with GNU Libtool; see the file COPYING.  If not, a copy
18548 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18549 # obtained by writing to the Free Software Foundation, Inc.,
18550 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18551
18552
18553 # The names of the tagged configurations supported by this script.
18554 available_tags="CXX "
18555
18556 # ### BEGIN LIBTOOL CONFIG
18557
18558 # Whether or not to build static libraries.
18559 build_old_libs=$enable_static
18560
18561 # Which release of libtool.m4 was used?
18562 macro_version=$macro_version
18563 macro_revision=$macro_revision
18564
18565 # Assembler program.
18566 AS=$lt_AS
18567
18568 # DLL creation program.
18569 DLLTOOL=$lt_DLLTOOL
18570
18571 # Object dumper program.
18572 OBJDUMP=$lt_OBJDUMP
18573
18574 # Whether or not to build shared libraries.
18575 build_libtool_libs=$enable_shared
18576
18577 # What type of objects to build.
18578 pic_mode=$pic_mode
18579
18580 # Whether or not to optimize for fast installation.
18581 fast_install=$enable_fast_install
18582
18583 # Shell to use when invoking shell scripts.
18584 SHELL=$lt_SHELL
18585
18586 # An echo program that protects backslashes.
18587 ECHO=$lt_ECHO
18588
18589 # The PATH separator for the build system.
18590 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18591
18592 # The host system.
18593 host_alias=$host_alias
18594 host=$host
18595 host_os=$host_os
18596
18597 # The build system.
18598 build_alias=$build_alias
18599 build=$build
18600 build_os=$build_os
18601
18602 # A sed program that does not truncate output.
18603 SED=$lt_SED
18604
18605 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18606 Xsed="\$SED -e 1s/^X//"
18607
18608 # A grep program that handles long lines.
18609 GREP=$lt_GREP
18610
18611 # An ERE matcher.
18612 EGREP=$lt_EGREP
18613
18614 # A literal string matcher.
18615 FGREP=$lt_FGREP
18616
18617 # A BSD- or MS-compatible name lister.
18618 NM=$lt_NM
18619
18620 # Whether we need soft or hard links.
18621 LN_S=$lt_LN_S
18622
18623 # What is the maximum length of a command?
18624 max_cmd_len=$max_cmd_len
18625
18626 # Object file suffix (normally "o").
18627 objext=$ac_objext
18628
18629 # Executable file suffix (normally "").
18630 exeext=$exeext
18631
18632 # whether the shell understands "unset".
18633 lt_unset=$lt_unset
18634
18635 # turn spaces into newlines.
18636 SP2NL=$lt_lt_SP2NL
18637
18638 # turn newlines into spaces.
18639 NL2SP=$lt_lt_NL2SP
18640
18641 # convert \$build file names to \$host format.
18642 to_host_file_cmd=$lt_cv_to_host_file_cmd
18643
18644 # convert \$build files to toolchain format.
18645 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18646
18647 # Method to check whether dependent libraries are shared objects.
18648 deplibs_check_method=$lt_deplibs_check_method
18649
18650 # Command to use when deplibs_check_method = "file_magic".
18651 file_magic_cmd=$lt_file_magic_cmd
18652
18653 # How to find potential files when deplibs_check_method = "file_magic".
18654 file_magic_glob=$lt_file_magic_glob
18655
18656 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18657 want_nocaseglob=$lt_want_nocaseglob
18658
18659 # Command to associate shared and link libraries.
18660 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18661
18662 # The archiver.
18663 AR=$lt_AR
18664
18665 # Flags to create an archive.
18666 AR_FLAGS=$lt_AR_FLAGS
18667
18668 # How to feed a file listing to the archiver.
18669 archiver_list_spec=$lt_archiver_list_spec
18670
18671 # A symbol stripping program.
18672 STRIP=$lt_STRIP
18673
18674 # Commands used to install an old-style archive.
18675 RANLIB=$lt_RANLIB
18676 old_postinstall_cmds=$lt_old_postinstall_cmds
18677 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18678
18679 # Whether to use a lock for old archive extraction.
18680 lock_old_archive_extraction=$lock_old_archive_extraction
18681
18682 # A C compiler.
18683 LTCC=$lt_CC
18684
18685 # LTCC compiler flags.
18686 LTCFLAGS=$lt_CFLAGS
18687
18688 # Take the output of nm and produce a listing of raw symbols and C names.
18689 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18690
18691 # Transform the output of nm in a proper C declaration.
18692 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18693
18694 # Transform the output of nm in a C name address pair.
18695 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18696
18697 # Transform the output of nm in a C name address pair when lib prefix is needed.
18698 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18699
18700 # Specify filename containing input files for \$NM.
18701 nm_file_list_spec=$lt_nm_file_list_spec
18702
18703 # The root where to search for dependent libraries,and in which our libraries should be installed.
18704 lt_sysroot=$lt_sysroot
18705
18706 # The name of the directory that contains temporary libtool files.
18707 objdir=$objdir
18708
18709 # Used to examine libraries when file_magic_cmd begins with "file".
18710 MAGIC_CMD=$MAGIC_CMD
18711
18712 # Must we lock files when doing compilation?
18713 need_locks=$lt_need_locks
18714
18715 # Manifest tool.
18716 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18717
18718 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18719 DSYMUTIL=$lt_DSYMUTIL
18720
18721 # Tool to change global to local symbols on Mac OS X.
18722 NMEDIT=$lt_NMEDIT
18723
18724 # Tool to manipulate fat objects and archives on Mac OS X.
18725 LIPO=$lt_LIPO
18726
18727 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18728 OTOOL=$lt_OTOOL
18729
18730 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18731 OTOOL64=$lt_OTOOL64
18732
18733 # Old archive suffix (normally "a").
18734 libext=$libext
18735
18736 # Shared library suffix (normally ".so").
18737 shrext_cmds=$lt_shrext_cmds
18738
18739 # The commands to extract the exported symbol list from a shared archive.
18740 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18741
18742 # Variables whose values should be saved in libtool wrapper scripts and
18743 # restored at link time.
18744 variables_saved_for_relink=$lt_variables_saved_for_relink
18745
18746 # Do we need the "lib" prefix for modules?
18747 need_lib_prefix=$need_lib_prefix
18748
18749 # Do we need a version for libraries?
18750 need_version=$need_version
18751
18752 # Library versioning type.
18753 version_type=$version_type
18754
18755 # Shared library runtime path variable.
18756 runpath_var=$runpath_var
18757
18758 # Shared library path variable.
18759 shlibpath_var=$shlibpath_var
18760
18761 # Is shlibpath searched before the hard-coded library search path?
18762 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18763
18764 # Format of library name prefix.
18765 libname_spec=$lt_libname_spec
18766
18767 # List of archive names.  First name is the real one, the rest are links.
18768 # The last name is the one that the linker finds with -lNAME
18769 library_names_spec=$lt_library_names_spec
18770
18771 # The coded name of the library, if different from the real name.
18772 soname_spec=$lt_soname_spec
18773
18774 # Permission mode override for installation of shared libraries.
18775 install_override_mode=$lt_install_override_mode
18776
18777 # Command to use after installation of a shared archive.
18778 postinstall_cmds=$lt_postinstall_cmds
18779
18780 # Command to use after uninstallation of a shared archive.
18781 postuninstall_cmds=$lt_postuninstall_cmds
18782
18783 # Commands used to finish a libtool library installation in a directory.
18784 finish_cmds=$lt_finish_cmds
18785
18786 # As "finish_cmds", except a single script fragment to be evaled but
18787 # not shown.
18788 finish_eval=$lt_finish_eval
18789
18790 # Whether we should hardcode library paths into libraries.
18791 hardcode_into_libs=$hardcode_into_libs
18792
18793 # Compile-time system search path for libraries.
18794 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18795
18796 # Run-time system search path for libraries.
18797 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18798
18799 # Whether dlopen is supported.
18800 dlopen_support=$enable_dlopen
18801
18802 # Whether dlopen of programs is supported.
18803 dlopen_self=$enable_dlopen_self
18804
18805 # Whether dlopen of statically linked programs is supported.
18806 dlopen_self_static=$enable_dlopen_self_static
18807
18808 # Commands to strip libraries.
18809 old_striplib=$lt_old_striplib
18810 striplib=$lt_striplib
18811
18812
18813 # The linker used to build libraries.
18814 LD=$lt_LD
18815
18816 # How to create reloadable object files.
18817 reload_flag=$lt_reload_flag
18818 reload_cmds=$lt_reload_cmds
18819
18820 # Commands used to build an old-style archive.
18821 old_archive_cmds=$lt_old_archive_cmds
18822
18823 # A language specific compiler.
18824 CC=$lt_compiler
18825
18826 # Is the compiler the GNU compiler?
18827 with_gcc=$GCC
18828
18829 # Compiler flag to turn off builtin functions.
18830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18831
18832 # Additional compiler flags for building library objects.
18833 pic_flag=$lt_lt_prog_compiler_pic
18834
18835 # How to pass a linker flag through the compiler.
18836 wl=$lt_lt_prog_compiler_wl
18837
18838 # Compiler flag to prevent dynamic linking.
18839 link_static_flag=$lt_lt_prog_compiler_static
18840
18841 # Does compiler simultaneously support -c and -o options?
18842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18843
18844 # Whether or not to add -lc for building shared libraries.
18845 build_libtool_need_lc=$archive_cmds_need_lc
18846
18847 # Whether or not to disallow shared libs when runtime libs are static.
18848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18849
18850 # Compiler flag to allow reflexive dlopens.
18851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18852
18853 # Compiler flag to generate shared objects directly from archives.
18854 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18855
18856 # Whether the compiler copes with passing no objects directly.
18857 compiler_needs_object=$lt_compiler_needs_object
18858
18859 # Create an old-style archive from a shared archive.
18860 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18861
18862 # Create a temporary old-style archive to link instead of a shared archive.
18863 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18864
18865 # Commands used to build a shared archive.
18866 archive_cmds=$lt_archive_cmds
18867 archive_expsym_cmds=$lt_archive_expsym_cmds
18868
18869 # Commands used to build a loadable module if different from building
18870 # a shared archive.
18871 module_cmds=$lt_module_cmds
18872 module_expsym_cmds=$lt_module_expsym_cmds
18873
18874 # Whether we are building with GNU ld or not.
18875 with_gnu_ld=$lt_with_gnu_ld
18876
18877 # Flag that allows shared libraries with undefined symbols to be built.
18878 allow_undefined_flag=$lt_allow_undefined_flag
18879
18880 # Flag that enforces no undefined symbols.
18881 no_undefined_flag=$lt_no_undefined_flag
18882
18883 # Flag to hardcode \$libdir into a binary during linking.
18884 # This must work even if \$libdir does not exist
18885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18886
18887 # Whether we need a single "-rpath" flag with a separated argument.
18888 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18889
18890 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18891 # DIR into the resulting binary.
18892 hardcode_direct=$hardcode_direct
18893
18894 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18895 # DIR into the resulting binary and the resulting library dependency is
18896 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18897 # library is relocated.
18898 hardcode_direct_absolute=$hardcode_direct_absolute
18899
18900 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18901 # into the resulting binary.
18902 hardcode_minus_L=$hardcode_minus_L
18903
18904 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18905 # into the resulting binary.
18906 hardcode_shlibpath_var=$hardcode_shlibpath_var
18907
18908 # Set to "yes" if building a shared library automatically hardcodes DIR
18909 # into the library and all subsequent libraries and executables linked
18910 # against it.
18911 hardcode_automatic=$hardcode_automatic
18912
18913 # Set to yes if linker adds runtime paths of dependent libraries
18914 # to runtime path list.
18915 inherit_rpath=$inherit_rpath
18916
18917 # Whether libtool must link a program against all its dependency libraries.
18918 link_all_deplibs=$link_all_deplibs
18919
18920 # Set to "yes" if exported symbols are required.
18921 always_export_symbols=$always_export_symbols
18922
18923 # The commands to list exported symbols.
18924 export_symbols_cmds=$lt_export_symbols_cmds
18925
18926 # Symbols that should not be listed in the preloaded symbols.
18927 exclude_expsyms=$lt_exclude_expsyms
18928
18929 # Symbols that must always be exported.
18930 include_expsyms=$lt_include_expsyms
18931
18932 # Commands necessary for linking programs (against libraries) with templates.
18933 prelink_cmds=$lt_prelink_cmds
18934
18935 # Commands necessary for finishing linking programs.
18936 postlink_cmds=$lt_postlink_cmds
18937
18938 # Specify filename containing input files.
18939 file_list_spec=$lt_file_list_spec
18940
18941 # How to hardcode a shared library path into an executable.
18942 hardcode_action=$hardcode_action
18943
18944 # The directories searched by this compiler when creating a shared library.
18945 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18946
18947 # Dependencies to place before and after the objects being linked to
18948 # create a shared library.
18949 predep_objects=$lt_predep_objects
18950 postdep_objects=$lt_postdep_objects
18951 predeps=$lt_predeps
18952 postdeps=$lt_postdeps
18953
18954 # The library search path used internally by the compiler when linking
18955 # a shared library.
18956 compiler_lib_search_path=$lt_compiler_lib_search_path
18957
18958 # ### END LIBTOOL CONFIG
18959
18960 _LT_EOF
18961
18962   case $host_os in
18963   aix3*)
18964     cat <<\_LT_EOF >> "$cfgfile"
18965 # AIX sometimes has problems with the GCC collect2 program.  For some
18966 # reason, if we set the COLLECT_NAMES environment variable, the problems
18967 # vanish in a puff of smoke.
18968 if test "X${COLLECT_NAMES+set}" != Xset; then
18969   COLLECT_NAMES=
18970   export COLLECT_NAMES
18971 fi
18972 _LT_EOF
18973     ;;
18974   esac
18975
18976
18977 ltmain="$ac_aux_dir/ltmain.sh"
18978
18979
18980   # We use sed instead of cat because bash on DJGPP gets confused if
18981   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18982   # text mode, it properly converts lines to CR/LF.  This bash problem
18983   # is reportedly fixed, but why not run on old versions too?
18984   sed '$q' "$ltmain" >> "$cfgfile" \
18985      || (rm -f "$cfgfile"; exit 1)
18986
18987   if test x"$xsi_shell" = xyes; then
18988   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18989 func_dirname ()\
18990 {\
18991 \    case ${1} in\
18992 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18993 \      *  ) func_dirname_result="${3}" ;;\
18994 \    esac\
18995 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18996   && mv -f "$cfgfile.tmp" "$cfgfile" \
18997     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18998 test 0 -eq $? || _lt_function_replace_fail=:
18999
19000
19001   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19002 func_basename ()\
19003 {\
19004 \    func_basename_result="${1##*/}"\
19005 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19006   && mv -f "$cfgfile.tmp" "$cfgfile" \
19007     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19008 test 0 -eq $? || _lt_function_replace_fail=:
19009
19010
19011   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19012 func_dirname_and_basename ()\
19013 {\
19014 \    case ${1} in\
19015 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19016 \      *  ) func_dirname_result="${3}" ;;\
19017 \    esac\
19018 \    func_basename_result="${1##*/}"\
19019 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19020   && mv -f "$cfgfile.tmp" "$cfgfile" \
19021     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19022 test 0 -eq $? || _lt_function_replace_fail=:
19023
19024
19025   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19026 func_stripname ()\
19027 {\
19028 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19029 \    # positional parameters, so assign one to ordinary parameter first.\
19030 \    func_stripname_result=${3}\
19031 \    func_stripname_result=${func_stripname_result#"${1}"}\
19032 \    func_stripname_result=${func_stripname_result%"${2}"}\
19033 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19034   && mv -f "$cfgfile.tmp" "$cfgfile" \
19035     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19036 test 0 -eq $? || _lt_function_replace_fail=:
19037
19038
19039   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19040 func_split_long_opt ()\
19041 {\
19042 \    func_split_long_opt_name=${1%%=*}\
19043 \    func_split_long_opt_arg=${1#*=}\
19044 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19045   && mv -f "$cfgfile.tmp" "$cfgfile" \
19046     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19047 test 0 -eq $? || _lt_function_replace_fail=:
19048
19049
19050   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19051 func_split_short_opt ()\
19052 {\
19053 \    func_split_short_opt_arg=${1#??}\
19054 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19055 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19056   && mv -f "$cfgfile.tmp" "$cfgfile" \
19057     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19058 test 0 -eq $? || _lt_function_replace_fail=:
19059
19060
19061   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19062 func_lo2o ()\
19063 {\
19064 \    case ${1} in\
19065 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19066 \      *)    func_lo2o_result=${1} ;;\
19067 \    esac\
19068 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19069   && mv -f "$cfgfile.tmp" "$cfgfile" \
19070     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19071 test 0 -eq $? || _lt_function_replace_fail=:
19072
19073
19074   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19075 func_xform ()\
19076 {\
19077     func_xform_result=${1%.*}.lo\
19078 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19079   && mv -f "$cfgfile.tmp" "$cfgfile" \
19080     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19081 test 0 -eq $? || _lt_function_replace_fail=:
19082
19083
19084   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19085 func_arith ()\
19086 {\
19087     func_arith_result=$(( $* ))\
19088 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19089   && mv -f "$cfgfile.tmp" "$cfgfile" \
19090     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19091 test 0 -eq $? || _lt_function_replace_fail=:
19092
19093
19094   sed -e '/^func_len ()$/,/^} # func_len /c\
19095 func_len ()\
19096 {\
19097     func_len_result=${#1}\
19098 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19099   && mv -f "$cfgfile.tmp" "$cfgfile" \
19100     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19101 test 0 -eq $? || _lt_function_replace_fail=:
19102
19103 fi
19104
19105 if test x"$lt_shell_append" = xyes; then
19106   sed -e '/^func_append ()$/,/^} # func_append /c\
19107 func_append ()\
19108 {\
19109     eval "${1}+=\\${2}"\
19110 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19111   && mv -f "$cfgfile.tmp" "$cfgfile" \
19112     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19113 test 0 -eq $? || _lt_function_replace_fail=:
19114
19115
19116   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19117 func_append_quoted ()\
19118 {\
19119 \    func_quote_for_eval "${2}"\
19120 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19121 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19122   && mv -f "$cfgfile.tmp" "$cfgfile" \
19123     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19124 test 0 -eq $? || _lt_function_replace_fail=:
19125
19126
19127   # Save a `func_append' function call where possible by direct use of '+='
19128   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19129     && mv -f "$cfgfile.tmp" "$cfgfile" \
19130       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19131   test 0 -eq $? || _lt_function_replace_fail=:
19132 else
19133   # Save a `func_append' function call even when '+=' is not available
19134   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19135     && mv -f "$cfgfile.tmp" "$cfgfile" \
19136       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19137   test 0 -eq $? || _lt_function_replace_fail=:
19138 fi
19139
19140 if test x"$_lt_function_replace_fail" = x":"; then
19141   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19142 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19143 fi
19144
19145
19146    mv -f "$cfgfile" "$ofile" ||
19147     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19148   chmod +x "$ofile"
19149
19150
19151     cat <<_LT_EOF >> "$ofile"
19152
19153 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19154
19155 # The linker used to build libraries.
19156 LD=$lt_LD_CXX
19157
19158 # How to create reloadable object files.
19159 reload_flag=$lt_reload_flag_CXX
19160 reload_cmds=$lt_reload_cmds_CXX
19161
19162 # Commands used to build an old-style archive.
19163 old_archive_cmds=$lt_old_archive_cmds_CXX
19164
19165 # A language specific compiler.
19166 CC=$lt_compiler_CXX
19167
19168 # Is the compiler the GNU compiler?
19169 with_gcc=$GCC_CXX
19170
19171 # Compiler flag to turn off builtin functions.
19172 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19173
19174 # Additional compiler flags for building library objects.
19175 pic_flag=$lt_lt_prog_compiler_pic_CXX
19176
19177 # How to pass a linker flag through the compiler.
19178 wl=$lt_lt_prog_compiler_wl_CXX
19179
19180 # Compiler flag to prevent dynamic linking.
19181 link_static_flag=$lt_lt_prog_compiler_static_CXX
19182
19183 # Does compiler simultaneously support -c and -o options?
19184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19185
19186 # Whether or not to add -lc for building shared libraries.
19187 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19188
19189 # Whether or not to disallow shared libs when runtime libs are static.
19190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19191
19192 # Compiler flag to allow reflexive dlopens.
19193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19194
19195 # Compiler flag to generate shared objects directly from archives.
19196 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19197
19198 # Whether the compiler copes with passing no objects directly.
19199 compiler_needs_object=$lt_compiler_needs_object_CXX
19200
19201 # Create an old-style archive from a shared archive.
19202 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19203
19204 # Create a temporary old-style archive to link instead of a shared archive.
19205 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19206
19207 # Commands used to build a shared archive.
19208 archive_cmds=$lt_archive_cmds_CXX
19209 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19210
19211 # Commands used to build a loadable module if different from building
19212 # a shared archive.
19213 module_cmds=$lt_module_cmds_CXX
19214 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19215
19216 # Whether we are building with GNU ld or not.
19217 with_gnu_ld=$lt_with_gnu_ld_CXX
19218
19219 # Flag that allows shared libraries with undefined symbols to be built.
19220 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19221
19222 # Flag that enforces no undefined symbols.
19223 no_undefined_flag=$lt_no_undefined_flag_CXX
19224
19225 # Flag to hardcode \$libdir into a binary during linking.
19226 # This must work even if \$libdir does not exist
19227 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19228
19229 # Whether we need a single "-rpath" flag with a separated argument.
19230 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19231
19232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19233 # DIR into the resulting binary.
19234 hardcode_direct=$hardcode_direct_CXX
19235
19236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19237 # DIR into the resulting binary and the resulting library dependency is
19238 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19239 # library is relocated.
19240 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19241
19242 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19243 # into the resulting binary.
19244 hardcode_minus_L=$hardcode_minus_L_CXX
19245
19246 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19247 # into the resulting binary.
19248 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19249
19250 # Set to "yes" if building a shared library automatically hardcodes DIR
19251 # into the library and all subsequent libraries and executables linked
19252 # against it.
19253 hardcode_automatic=$hardcode_automatic_CXX
19254
19255 # Set to yes if linker adds runtime paths of dependent libraries
19256 # to runtime path list.
19257 inherit_rpath=$inherit_rpath_CXX
19258
19259 # Whether libtool must link a program against all its dependency libraries.
19260 link_all_deplibs=$link_all_deplibs_CXX
19261
19262 # Set to "yes" if exported symbols are required.
19263 always_export_symbols=$always_export_symbols_CXX
19264
19265 # The commands to list exported symbols.
19266 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19267
19268 # Symbols that should not be listed in the preloaded symbols.
19269 exclude_expsyms=$lt_exclude_expsyms_CXX
19270
19271 # Symbols that must always be exported.
19272 include_expsyms=$lt_include_expsyms_CXX
19273
19274 # Commands necessary for linking programs (against libraries) with templates.
19275 prelink_cmds=$lt_prelink_cmds_CXX
19276
19277 # Commands necessary for finishing linking programs.
19278 postlink_cmds=$lt_postlink_cmds_CXX
19279
19280 # Specify filename containing input files.
19281 file_list_spec=$lt_file_list_spec_CXX
19282
19283 # How to hardcode a shared library path into an executable.
19284 hardcode_action=$hardcode_action_CXX
19285
19286 # The directories searched by this compiler when creating a shared library.
19287 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19288
19289 # Dependencies to place before and after the objects being linked to
19290 # create a shared library.
19291 predep_objects=$lt_predep_objects_CXX
19292 postdep_objects=$lt_postdep_objects_CXX
19293 predeps=$lt_predeps_CXX
19294 postdeps=$lt_postdeps_CXX
19295
19296 # The library search path used internally by the compiler when linking
19297 # a shared library.
19298 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19299
19300 # ### END LIBTOOL TAG CONFIG: CXX
19301 _LT_EOF
19302
19303  ;;
19304     "MSVC_Net2013/sigc++config.h":C) cp -f sigc++config.h MSVC_Net2013/sigc++config.h ;;
19305
19306   esac
19307 done # for ac_tag
19308
19309
19310 as_fn_exit 0
19311 _ACEOF
19312 ac_clean_files=$ac_clean_files_save
19313
19314 test $ac_write_fail = 0 ||
19315   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19316
19317
19318 # configure is writing to config.log, and then calls config.status.
19319 # config.status does its own redirection, appending to config.log.
19320 # Unfortunately, on DOS this fails, as config.log is still kept open
19321 # by configure, so config.status won't be able to write to it; its
19322 # output is simply discarded.  So we exec the FD to /dev/null,
19323 # effectively closing config.log, so it can be properly (re)opened and
19324 # appended to by config.status.  When coming back to configure, we
19325 # need to make the FD available again.
19326 if test "$no_create" != yes; then
19327   ac_cs_success=:
19328   ac_config_status_args=
19329   test "$silent" = yes &&
19330     ac_config_status_args="$ac_config_status_args --quiet"
19331   exec 5>/dev/null
19332   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19333   exec 5>>config.log
19334   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19335   # would make configure fail if this is the last instruction.
19336   $ac_cs_success || as_fn_exit 1
19337 fi
19338 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19339   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19340 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19341 fi
19342