]> Git Repo - binutils.git/blob - gprofng/configure
Automatic date update in version.in
[binutils.git] / gprofng / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gprofng 2.39.50.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='gprofng'
589 PACKAGE_TARNAME='gprofng'
590 PACKAGE_VERSION='2.39.50'
591 PACKAGE_STRING='gprofng 2.39.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 #  include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #  include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 enable_option_checking=no
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 BUILD_SUBDIRS
637 CLOCK_GETTIME_LINK
638 GPROFNG_CPPFLAGS
639 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
640 GPROFNG_CFLAGS
641 LD_NO_AS_NEEDED
642 BUILD_MAN_FALSE
643 BUILD_MAN_TRUE
644 HELP2MAN
645 zlibinc
646 zlibdir
647 TCL_TRY_FALSE
648 TCL_TRY_TRUE
649 EXPECT
650 jdk_inc
651 GPROFNG_BROKEN_JAVAC
652 JAVA
653 JAVAC
654 PTHREAD_CFLAGS
655 PTHREAD_LIBS
656 PTHREAD_CC
657 ax_pthread_config
658 RUN_TESTS_FALSE
659 RUN_TESTS_TRUE
660 subdirs
661 BUILD_SRC_FALSE
662 BUILD_SRC_TRUE
663 BUILD_COLLECTOR_FALSE
664 BUILD_COLLECTOR_TRUE
665 GPROFNG_NO_SWITCH_CFLAGS
666 gprofng_cflags
667 WERROR
668 GPROFNG_LIBADD
669 CXXCPP
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 OBJDUMP
676 LN_S
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 SED
683 LIBTOOL
684 BISON
685 ac_ct_AR
686 AR
687 RANLIB
688 am__fastdepCXX_FALSE
689 am__fastdepCXX_TRUE
690 CXXDEPMODE
691 ac_ct_CXX
692 CXXFLAGS
693 CXX
694 EGREP
695 GREP
696 CPP
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 AM_BACKSLASH
718 AM_DEFAULT_VERBOSITY
719 AM_DEFAULT_V
720 AM_V
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_maintainer_mode
799 enable_dependency_tracking
800 enable_shared
801 enable_static
802 with_pic
803 enable_fast_install
804 with_gnu_ld
805 enable_libtool_lock
806 enable_werror_always
807 enable_gprofng_tools
808 with_jdk
809 enable_gprofng_debug
810 with_system_zlib
811 '
812       ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CPP
821 CXX
822 CXXFLAGS
823 CCC
824 CXXCPP'
825 ac_subdirs_all='libcollector'
826
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879   # If the previous option needs an argument, assign it.
880   if test -n "$ac_prev"; then
881     eval $ac_prev=\$ac_option
882     ac_prev=
883     continue
884   fi
885
886   case $ac_option in
887   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888   *=)   ac_optarg= ;;
889   *)    ac_optarg=yes ;;
890   esac
891
892   # Accept the important Cygnus configure options, so we can diagnose typos.
893
894   case $ac_dashdash$ac_option in
895   --)
896     ac_dashdash=yes ;;
897
898   -bindir | --bindir | --bindi | --bind | --bin | --bi)
899     ac_prev=bindir ;;
900   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901     bindir=$ac_optarg ;;
902
903   -build | --build | --buil | --bui | --bu)
904     ac_prev=build_alias ;;
905   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906     build_alias=$ac_optarg ;;
907
908   -cache-file | --cache-file | --cache-fil | --cache-fi \
909   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910     ac_prev=cache_file ;;
911   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913     cache_file=$ac_optarg ;;
914
915   --config-cache | -C)
916     cache_file=config.cache ;;
917
918   -datadir | --datadir | --datadi | --datad)
919     ac_prev=datadir ;;
920   -datadir=* | --datadir=* | --datadi=* | --datad=*)
921     datadir=$ac_optarg ;;
922
923   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924   | --dataroo | --dataro | --datar)
925     ac_prev=datarootdir ;;
926   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928     datarootdir=$ac_optarg ;;
929
930   -disable-* | --disable-*)
931     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932     # Reject names that are not valid shell variable names.
933     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934       as_fn_error $? "invalid feature name: $ac_useropt"
935     ac_useropt_orig=$ac_useropt
936     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937     case $ac_user_opts in
938       *"
939 "enable_$ac_useropt"
940 "*) ;;
941       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942          ac_unrecognized_sep=', ';;
943     esac
944     eval enable_$ac_useropt=no ;;
945
946   -docdir | --docdir | --docdi | --doc | --do)
947     ac_prev=docdir ;;
948   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949     docdir=$ac_optarg ;;
950
951   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952     ac_prev=dvidir ;;
953   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954     dvidir=$ac_optarg ;;
955
956   -enable-* | --enable-*)
957     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958     # Reject names that are not valid shell variable names.
959     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960       as_fn_error $? "invalid feature name: $ac_useropt"
961     ac_useropt_orig=$ac_useropt
962     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963     case $ac_user_opts in
964       *"
965 "enable_$ac_useropt"
966 "*) ;;
967       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968          ac_unrecognized_sep=', ';;
969     esac
970     eval enable_$ac_useropt=\$ac_optarg ;;
971
972   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974   | --exec | --exe | --ex)
975     ac_prev=exec_prefix ;;
976   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978   | --exec=* | --exe=* | --ex=*)
979     exec_prefix=$ac_optarg ;;
980
981   -gas | --gas | --ga | --g)
982     # Obsolete; use --with-gas.
983     with_gas=yes ;;
984
985   -help | --help | --hel | --he | -h)
986     ac_init_help=long ;;
987   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988     ac_init_help=recursive ;;
989   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990     ac_init_help=short ;;
991
992   -host | --host | --hos | --ho)
993     ac_prev=host_alias ;;
994   -host=* | --host=* | --hos=* | --ho=*)
995     host_alias=$ac_optarg ;;
996
997   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998     ac_prev=htmldir ;;
999   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000   | --ht=*)
1001     htmldir=$ac_optarg ;;
1002
1003   -includedir | --includedir | --includedi | --included | --include \
1004   | --includ | --inclu | --incl | --inc)
1005     ac_prev=includedir ;;
1006   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007   | --includ=* | --inclu=* | --incl=* | --inc=*)
1008     includedir=$ac_optarg ;;
1009
1010   -infodir | --infodir | --infodi | --infod | --info | --inf)
1011     ac_prev=infodir ;;
1012   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013     infodir=$ac_optarg ;;
1014
1015   -libdir | --libdir | --libdi | --libd)
1016     ac_prev=libdir ;;
1017   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018     libdir=$ac_optarg ;;
1019
1020   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021   | --libexe | --libex | --libe)
1022     ac_prev=libexecdir ;;
1023   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024   | --libexe=* | --libex=* | --libe=*)
1025     libexecdir=$ac_optarg ;;
1026
1027   -localedir | --localedir | --localedi | --localed | --locale)
1028     ac_prev=localedir ;;
1029   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030     localedir=$ac_optarg ;;
1031
1032   -localstatedir | --localstatedir | --localstatedi | --localstated \
1033   | --localstate | --localstat | --localsta | --localst | --locals)
1034     ac_prev=localstatedir ;;
1035   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037     localstatedir=$ac_optarg ;;
1038
1039   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040     ac_prev=mandir ;;
1041   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042     mandir=$ac_optarg ;;
1043
1044   -nfp | --nfp | --nf)
1045     # Obsolete; use --without-fp.
1046     with_fp=no ;;
1047
1048   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049   | --no-cr | --no-c | -n)
1050     no_create=yes ;;
1051
1052   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054     no_recursion=yes ;;
1055
1056   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058   | --oldin | --oldi | --old | --ol | --o)
1059     ac_prev=oldincludedir ;;
1060   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063     oldincludedir=$ac_optarg ;;
1064
1065   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066     ac_prev=prefix ;;
1067   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068     prefix=$ac_optarg ;;
1069
1070   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071   | --program-pre | --program-pr | --program-p)
1072     ac_prev=program_prefix ;;
1073   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075     program_prefix=$ac_optarg ;;
1076
1077   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078   | --program-suf | --program-su | --program-s)
1079     ac_prev=program_suffix ;;
1080   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082     program_suffix=$ac_optarg ;;
1083
1084   -program-transform-name | --program-transform-name \
1085   | --program-transform-nam | --program-transform-na \
1086   | --program-transform-n | --program-transform- \
1087   | --program-transform | --program-transfor \
1088   | --program-transfo | --program-transf \
1089   | --program-trans | --program-tran \
1090   | --progr-tra | --program-tr | --program-t)
1091     ac_prev=program_transform_name ;;
1092   -program-transform-name=* | --program-transform-name=* \
1093   | --program-transform-nam=* | --program-transform-na=* \
1094   | --program-transform-n=* | --program-transform-=* \
1095   | --program-transform=* | --program-transfor=* \
1096   | --program-transfo=* | --program-transf=* \
1097   | --program-trans=* | --program-tran=* \
1098   | --progr-tra=* | --program-tr=* | --program-t=*)
1099     program_transform_name=$ac_optarg ;;
1100
1101   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102     ac_prev=pdfdir ;;
1103   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104     pdfdir=$ac_optarg ;;
1105
1106   -psdir | --psdir | --psdi | --psd | --ps)
1107     ac_prev=psdir ;;
1108   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109     psdir=$ac_optarg ;;
1110
1111   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112   | -silent | --silent | --silen | --sile | --sil)
1113     silent=yes ;;
1114
1115   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116     ac_prev=sbindir ;;
1117   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118   | --sbi=* | --sb=*)
1119     sbindir=$ac_optarg ;;
1120
1121   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123   | --sharedst | --shareds | --shared | --share | --shar \
1124   | --sha | --sh)
1125     ac_prev=sharedstatedir ;;
1126   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129   | --sha=* | --sh=*)
1130     sharedstatedir=$ac_optarg ;;
1131
1132   -site | --site | --sit)
1133     ac_prev=site ;;
1134   -site=* | --site=* | --sit=*)
1135     site=$ac_optarg ;;
1136
1137   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138     ac_prev=srcdir ;;
1139   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140     srcdir=$ac_optarg ;;
1141
1142   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143   | --syscon | --sysco | --sysc | --sys | --sy)
1144     ac_prev=sysconfdir ;;
1145   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147     sysconfdir=$ac_optarg ;;
1148
1149   -target | --target | --targe | --targ | --tar | --ta | --t)
1150     ac_prev=target_alias ;;
1151   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152     target_alias=$ac_optarg ;;
1153
1154   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155     verbose=yes ;;
1156
1157   -version | --version | --versio | --versi | --vers | -V)
1158     ac_init_version=: ;;
1159
1160   -with-* | --with-*)
1161     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162     # Reject names that are not valid shell variable names.
1163     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164       as_fn_error $? "invalid package name: $ac_useropt"
1165     ac_useropt_orig=$ac_useropt
1166     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167     case $ac_user_opts in
1168       *"
1169 "with_$ac_useropt"
1170 "*) ;;
1171       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172          ac_unrecognized_sep=', ';;
1173     esac
1174     eval with_$ac_useropt=\$ac_optarg ;;
1175
1176   -without-* | --without-*)
1177     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180       as_fn_error $? "invalid package name: $ac_useropt"
1181     ac_useropt_orig=$ac_useropt
1182     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183     case $ac_user_opts in
1184       *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188          ac_unrecognized_sep=', ';;
1189     esac
1190     eval with_$ac_useropt=no ;;
1191
1192   --x)
1193     # Obsolete; use --with-x.
1194     with_x=yes ;;
1195
1196   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197   | --x-incl | --x-inc | --x-in | --x-i)
1198     ac_prev=x_includes ;;
1199   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201     x_includes=$ac_optarg ;;
1202
1203   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205     ac_prev=x_libraries ;;
1206   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208     x_libraries=$ac_optarg ;;
1209
1210   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211 Try \`$0 --help' for more information"
1212     ;;
1213
1214   *=*)
1215     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216     # Reject names that are not valid shell variable names.
1217     case $ac_envvar in #(
1218       '' | [0-9]* | *[!_$as_cr_alnum]* )
1219       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1220     esac
1221     eval $ac_envvar=\$ac_optarg
1222     export $ac_envvar ;;
1223
1224   *)
1225     # FIXME: should be removed in autoconf 3.0.
1226     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230     ;;
1231
1232   esac
1233 done
1234
1235 if test -n "$ac_prev"; then
1236   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237   as_fn_error $? "missing argument to $ac_option"
1238 fi
1239
1240 if test -n "$ac_unrecognized_opts"; then
1241   case $enable_option_checking in
1242     no) ;;
1243     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1244     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245   esac
1246 fi
1247
1248 # Check all directory arguments for consistency.
1249 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250                 datadir sysconfdir sharedstatedir localstatedir includedir \
1251                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252                 libdir localedir mandir
1253 do
1254   eval ac_val=\$$ac_var
1255   # Remove trailing slashes.
1256   case $ac_val in
1257     */ )
1258       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259       eval $ac_var=\$ac_val;;
1260   esac
1261   # Be sure to have absolute directory names.
1262   case $ac_val in
1263     [\\/$]* | ?:[\\/]* )  continue;;
1264     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265   esac
1266   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267 done
1268
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1272 build=$build_alias
1273 host=$host_alias
1274 target=$target_alias
1275
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278   if test "x$build_alias" = x; then
1279     cross_compiling=maybe
1280   elif test "x$build_alias" != "x$host_alias"; then
1281     cross_compiling=yes
1282   fi
1283 fi
1284
1285 ac_tool_prefix=
1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288 test "$silent" = yes && exec 6>/dev/null
1289
1290
1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di=`ls -di .` &&
1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294   as_fn_error $? "working directory cannot be determined"
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296   as_fn_error $? "pwd does not report name of working directory"
1297
1298
1299 # Find the source files, if location was not specified.
1300 if test -z "$srcdir"; then
1301   ac_srcdir_defaulted=yes
1302   # Try the directory containing this script, then the parent directory.
1303   ac_confdir=`$as_dirname -- "$as_myself" ||
1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305          X"$as_myself" : 'X\(//\)[^/]' \| \
1306          X"$as_myself" : 'X\(//\)$' \| \
1307          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308 $as_echo X"$as_myself" |
1309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310             s//\1/
1311             q
1312           }
1313           /^X\(\/\/\)[^/].*/{
1314             s//\1/
1315             q
1316           }
1317           /^X\(\/\/\)$/{
1318             s//\1/
1319             q
1320           }
1321           /^X\(\/\).*/{
1322             s//\1/
1323             q
1324           }
1325           s/.*/./; q'`
1326   srcdir=$ac_confdir
1327   if test ! -r "$srcdir/$ac_unique_file"; then
1328     srcdir=..
1329   fi
1330 else
1331   ac_srcdir_defaulted=no
1332 fi
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1336 fi
1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338 ac_abs_confdir=`(
1339         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340         pwd)`
1341 # When building in place, set srcdir=.
1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343   srcdir=.
1344 fi
1345 # Remove unnecessary trailing slashes from srcdir.
1346 # Double slashes in file names in object file debugging info
1347 # mess up M-x gdb in Emacs.
1348 case $srcdir in
1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 esac
1351 for ac_var in $ac_precious_vars; do
1352   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353   eval ac_env_${ac_var}_value=\$${ac_var}
1354   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 done
1357
1358 #
1359 # Report the --help message.
1360 #
1361 if test "$ac_init_help" = "long"; then
1362   # Omit some internal or obsolete options to make the list less imposing.
1363   # This message is too long to be a string in the A/UX 3.1 sh.
1364   cat <<_ACEOF
1365 \`configure' configures gprofng 2.39.50 to adapt to many kinds of systems.
1366
1367 Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370 VAR=VALUE.  See below for descriptions of some of the useful variables.
1371
1372 Defaults for the options are specified in brackets.
1373
1374 Configuration:
1375   -h, --help              display this help and exit
1376       --help=short        display options specific to this package
1377       --help=recursive    display the short help of all the included packages
1378   -V, --version           display version information and exit
1379   -q, --quiet, --silent   do not print \`checking ...' messages
1380       --cache-file=FILE   cache test results in FILE [disabled]
1381   -C, --config-cache      alias for \`--cache-file=config.cache'
1382   -n, --no-create         do not create output files
1383       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1384
1385 Installation directories:
1386   --prefix=PREFIX         install architecture-independent files in PREFIX
1387                           [$ac_default_prefix]
1388   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1389                           [PREFIX]
1390
1391 By default, \`make install' will install all the files in
1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394 for instance \`--prefix=\$HOME'.
1395
1396 For better control, use the options below.
1397
1398 Fine tuning of the installation directories:
1399   --bindir=DIR            user executables [EPREFIX/bin]
1400   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1401   --libexecdir=DIR        program executables [EPREFIX/libexec]
1402   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1403   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1404   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1405   --libdir=DIR            object code libraries [EPREFIX/lib]
1406   --includedir=DIR        C header files [PREFIX/include]
1407   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1408   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1409   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1410   --infodir=DIR           info documentation [DATAROOTDIR/info]
1411   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1412   --mandir=DIR            man documentation [DATAROOTDIR/man]
1413   --docdir=DIR            documentation root [DATAROOTDIR/doc/gprofng]
1414   --htmldir=DIR           html documentation [DOCDIR]
1415   --dvidir=DIR            dvi documentation [DOCDIR]
1416   --pdfdir=DIR            pdf documentation [DOCDIR]
1417   --psdir=DIR             ps documentation [DOCDIR]
1418 _ACEOF
1419
1420   cat <<\_ACEOF
1421
1422 Program names:
1423   --program-prefix=PREFIX            prepend PREFIX to installed program names
1424   --program-suffix=SUFFIX            append SUFFIX to installed program names
1425   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1426
1427 System types:
1428   --build=BUILD     configure for building on BUILD [guessed]
1429   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1430   --target=TARGET   configure for building compilers for TARGET [HOST]
1431 _ACEOF
1432 fi
1433
1434 if test -n "$ac_init_help"; then
1435   case $ac_init_help in
1436      short | recursive ) echo "Configuration of gprofng 2.39.50:";;
1437    esac
1438   cat <<\_ACEOF
1439
1440 Optional Features:
1441   --disable-option-checking  ignore unrecognized --enable/--with options
1442   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1443   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1444   --enable-silent-rules   less verbose build output (undo: "make V=1")
1445   --disable-silent-rules  verbose build output (undo: "make V=0")
1446   --enable-maintainer-mode
1447                           enable make rules and dependencies not useful (and
1448                           sometimes confusing) to the casual installer
1449   --enable-dependency-tracking
1450                           do not reject slow dependency extractors
1451   --disable-dependency-tracking
1452                           speeds up one-time build
1453   --enable-shared[=PKGS]  build shared libraries [default=no]
1454   --enable-static[=PKGS]  build static libraries [default=yes]
1455   --enable-fast-install[=PKGS]
1456                           optimize for fast installation [default=yes]
1457   --disable-libtool-lock  avoid locking (might break parallel builds)
1458   --enable-werror-always  enable -Werror despite compiler version
1459   --disable-gprofng-tools do not build gprofng/src directory
1460   --enable-gprofng-debug  Enable debugging output [default=no]
1461
1462 Optional Packages:
1463   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465   --with-pic              try to use only PIC/non-PIC objects [default=use
1466                           both]
1467   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1468   --with-jdk=PATH         specify prefix directory for installed JDK.
1469   --with-system-zlib      use installed libz
1470
1471 Some influential environment variables:
1472   CC          C compiler command
1473   CFLAGS      C compiler flags
1474   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1475               nonstandard directory <lib dir>
1476   LIBS        libraries to pass to the linker, e.g. -l<library>
1477   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478               you have headers in a nonstandard directory <include dir>
1479   CPP         C preprocessor
1480   CXX         C++ compiler command
1481   CXXFLAGS    C++ compiler flags
1482   CXXCPP      C++ preprocessor
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 Report bugs to the package provider.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493   # If there are subdirs, report their specific --help.
1494   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495     test -d "$ac_dir" ||
1496       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497       continue
1498     ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504   # A ".." for each directory in $ac_dir_suffix.
1505   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506   case $ac_top_builddir_sub in
1507   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509   esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517   .)  # We are building in place.
1518     ac_srcdir=.
1519     ac_top_srcdir=$ac_top_builddir_sub
1520     ac_abs_top_srcdir=$ac_pwd ;;
1521   [\\/]* | ?:[\\/]* )  # Absolute name.
1522     ac_srcdir=$srcdir$ac_dir_suffix;
1523     ac_top_srcdir=$srcdir
1524     ac_abs_top_srcdir=$srcdir ;;
1525   *) # Relative name.
1526     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527     ac_top_srcdir=$ac_top_build_prefix$srcdir
1528     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532     cd "$ac_dir" || { ac_status=$?; continue; }
1533     # Check for guested configure.
1534     if test -f "$ac_srcdir/configure.gnu"; then
1535       echo &&
1536       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537     elif test -f "$ac_srcdir/configure"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure" --help=recursive
1540     else
1541       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542     fi || ac_status=$?
1543     cd "$ac_pwd" || { ac_status=$?; break; }
1544   done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549   cat <<\_ACEOF
1550 gprofng configure 2.39.50
1551 generated by GNU Autoconf 2.69
1552
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557   exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   rm -f conftest.$ac_objext
1571   if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574   *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578   (eval "$ac_compile") 2>conftest.err
1579   ac_status=$?
1580   if test -s conftest.err; then
1581     grep -v '^ *+' conftest.err >conftest.er1
1582     cat conftest.er1 >&5
1583     mv -f conftest.er1 conftest.err
1584   fi
1585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586   test $ac_status = 0; } && {
1587          test -z "$ac_c_werror_flag" ||
1588          test ! -s conftest.err
1589        } && test -s conftest.$ac_objext; then :
1590   ac_retval=0
1591 else
1592   $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595         ac_retval=1
1596 fi
1597   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598   as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_compile
1601
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } > conftest.i && {
1624          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625          test ! -s conftest.err
1626        }; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632     ac_retval=1
1633 fi
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_cpp
1638
1639 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642 # the include files in INCLUDES and setting the cache variable VAR
1643 # accordingly.
1644 ac_fn_c_check_header_mongrel ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   if eval \${$3+:} false; then :
1648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651   $as_echo_n "(cached) " >&6
1652 fi
1653 eval ac_res=\$$3
1654                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 else
1657   # Is the header compilable?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659 $as_echo_n "checking $2 usability... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h.  */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666   ac_header_compiler=yes
1667 else
1668   ac_header_compiler=no
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672 $as_echo "$ac_header_compiler" >&6; }
1673
1674 # Is the header present?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676 $as_echo_n "checking $2 presence... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h.  */
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_cpp "$LINENO"; then :
1682   ac_header_preproc=yes
1683 else
1684   ac_header_preproc=no
1685 fi
1686 rm -f conftest.err conftest.i conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688 $as_echo "$ac_header_preproc" >&6; }
1689
1690 # So?  What about this header?
1691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1692   yes:no: )
1693     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697     ;;
1698   no:yes:* )
1699     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1702 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1703     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1706 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1707     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709     ;;
1710 esac
1711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714   $as_echo_n "(cached) " >&6
1715 else
1716   eval "$3=\$ac_header_compiler"
1717 fi
1718 eval ac_res=\$$3
1719                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1721 fi
1722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724 } # ac_fn_c_check_header_mongrel
1725
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_link") 2>&5
1741   ac_status=$?
1742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1751   ac_status=$?
1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753   test $ac_status = 0; }; }; then :
1754   ac_retval=0
1755 else
1756   $as_echo "$as_me: program exited with status $ac_status" >&5
1757        $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760        ac_retval=$ac_status
1761 fi
1762   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764   as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_run
1767
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778   $as_echo_n "(cached) " >&6
1779 else
1780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h.  */
1782 $4
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786   eval "$3=yes"
1787 else
1788   eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_header_compile
1798
1799 # ac_fn_cxx_try_compile LINENO
1800 # ----------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_compile ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   rm -f conftest.$ac_objext
1806   if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809   *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813   (eval "$ac_compile") 2>conftest.err
1814   ac_status=$?
1815   if test -s conftest.err; then
1816     grep -v '^ *+' conftest.err >conftest.er1
1817     cat conftest.er1 >&5
1818     mv -f conftest.er1 conftest.err
1819   fi
1820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821   test $ac_status = 0; } && {
1822          test -z "$ac_cxx_werror_flag" ||
1823          test ! -s conftest.err
1824        } && test -s conftest.$ac_objext; then :
1825   ac_retval=0
1826 else
1827   $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830         ac_retval=1
1831 fi
1832   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833   as_fn_set_status $ac_retval
1834
1835 } # ac_fn_cxx_try_compile
1836
1837 # ac_fn_c_try_link LINENO
1838 # -----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_link ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   rm -f conftest.$ac_objext conftest$ac_exeext
1844   if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_link") 2>conftest.err
1852   ac_status=$?
1853   if test -s conftest.err; then
1854     grep -v '^ *+' conftest.err >conftest.er1
1855     cat conftest.er1 >&5
1856     mv -f conftest.er1 conftest.err
1857   fi
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; } && {
1860          test -z "$ac_c_werror_flag" ||
1861          test ! -s conftest.err
1862        } && test -s conftest$ac_exeext && {
1863          test "$cross_compiling" = yes ||
1864          test -x conftest$ac_exeext
1865        }; then :
1866   ac_retval=0
1867 else
1868   $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871         ac_retval=1
1872 fi
1873   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875   # interfere with the next link command; also delete a directory that is
1876   # left behind by Apple's compiler.  We do this before executing the actions.
1877   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879   as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_link
1882
1883 # ac_fn_c_check_func LINENO FUNC VAR
1884 # ----------------------------------
1885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1886 ac_fn_c_check_func ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892   $as_echo_n "(cached) " >&6
1893 else
1894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h.  */
1896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1898 #define $2 innocuous_$2
1899
1900 /* System header to define __stub macros and hopefully few prototypes,
1901     which can conflict with char $2 (); below.
1902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1903     <limits.h> exists even on freestanding compilers.  */
1904
1905 #ifdef __STDC__
1906 # include <limits.h>
1907 #else
1908 # include <assert.h>
1909 #endif
1910
1911 #undef $2
1912
1913 /* Override any GCC internal prototype to avoid an error.
1914    Use char because int might match the return type of a GCC
1915    builtin and then its argument prototype would still apply.  */
1916 #ifdef __cplusplus
1917 extern "C"
1918 #endif
1919 char $2 ();
1920 /* The GNU C library defines this for functions which it implements
1921     to always fail with ENOSYS.  Some functions are actually named
1922     something starting with __ and the normal name is an alias.  */
1923 #if defined __stub_$2 || defined __stub___$2
1924 choke me
1925 #endif
1926
1927 int
1928 main ()
1929 {
1930 return $2 ();
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_link "$LINENO"; then :
1936   eval "$3=yes"
1937 else
1938   eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext \
1941     conftest$ac_exeext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948 } # ac_fn_c_check_func
1949
1950 # ac_fn_cxx_try_cpp LINENO
1951 # ------------------------
1952 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_cxx_try_cpp ()
1954 {
1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956   if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 case "(($ac_try" in
1958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959   *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964   ac_status=$?
1965   if test -s conftest.err; then
1966     grep -v '^ *+' conftest.err >conftest.er1
1967     cat conftest.er1 >&5
1968     mv -f conftest.er1 conftest.err
1969   fi
1970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971   test $ac_status = 0; } > conftest.i && {
1972          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1973          test ! -s conftest.err
1974        }; then :
1975   ac_retval=0
1976 else
1977   $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1979
1980     ac_retval=1
1981 fi
1982   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983   as_fn_set_status $ac_retval
1984
1985 } # ac_fn_cxx_try_cpp
1986
1987 # ac_fn_cxx_try_link LINENO
1988 # -------------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_link ()
1991 {
1992   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993   rm -f conftest.$ac_objext conftest$ac_exeext
1994   if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997   *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001   (eval "$ac_link") 2>conftest.err
2002   ac_status=$?
2003   if test -s conftest.err; then
2004     grep -v '^ *+' conftest.err >conftest.er1
2005     cat conftest.er1 >&5
2006     mv -f conftest.er1 conftest.err
2007   fi
2008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009   test $ac_status = 0; } && {
2010          test -z "$ac_cxx_werror_flag" ||
2011          test ! -s conftest.err
2012        } && test -s conftest$ac_exeext && {
2013          test "$cross_compiling" = yes ||
2014          test -x conftest$ac_exeext
2015        }; then :
2016   ac_retval=0
2017 else
2018   $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2020
2021         ac_retval=1
2022 fi
2023   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025   # interfere with the next link command; also delete a directory that is
2026   # left behind by Apple's compiler.  We do this before executing the actions.
2027   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029   as_fn_set_status $ac_retval
2030
2031 } # ac_fn_cxx_try_link
2032
2033 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2034 # ---------------------------------------------
2035 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2036 # accordingly.
2037 ac_fn_c_check_decl ()
2038 {
2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040   as_decl_name=`echo $2|sed 's/ *(.*//'`
2041   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2043 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2044 if eval \${$3+:} false; then :
2045   $as_echo_n "(cached) " >&6
2046 else
2047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $4
2050 int
2051 main ()
2052 {
2053 #ifndef $as_decl_name
2054 #ifdef __cplusplus
2055   (void) $as_decl_use;
2056 #else
2057   (void) $as_decl_name;
2058 #endif
2059 #endif
2060
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066   eval "$3=yes"
2067 else
2068   eval "$3=no"
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 eval ac_res=\$$3
2073                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077 } # ac_fn_c_check_decl
2078 cat >config.log <<_ACEOF
2079 This file contains any messages produced by compilers while
2080 running configure, to aid debugging if configure makes a mistake.
2081
2082 It was created by gprofng $as_me 2.39.50, which was
2083 generated by GNU Autoconf 2.69.  Invocation command line was
2084
2085   $ $0 $@
2086
2087 _ACEOF
2088 exec 5>>config.log
2089 {
2090 cat <<_ASUNAME
2091 ## --------- ##
2092 ## Platform. ##
2093 ## --------- ##
2094
2095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2100
2101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2103
2104 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2105 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2107 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2108 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2109 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2110 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2111
2112 _ASUNAME
2113
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117   IFS=$as_save_IFS
2118   test -z "$as_dir" && as_dir=.
2119     $as_echo "PATH: $as_dir"
2120   done
2121 IFS=$as_save_IFS
2122
2123 } >&5
2124
2125 cat >&5 <<_ACEOF
2126
2127
2128 ## ----------- ##
2129 ## Core tests. ##
2130 ## ----------- ##
2131
2132 _ACEOF
2133
2134
2135 # Keep a trace of the command line.
2136 # Strip out --no-create and --no-recursion so they do not pile up.
2137 # Strip out --silent because we don't want to record it for future runs.
2138 # Also quote any args containing shell meta-characters.
2139 # Make two passes to allow for proper duplicate-argument suppression.
2140 ac_configure_args=
2141 ac_configure_args0=
2142 ac_configure_args1=
2143 ac_must_keep_next=false
2144 for ac_pass in 1 2
2145 do
2146   for ac_arg
2147   do
2148     case $ac_arg in
2149     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151     | -silent | --silent | --silen | --sile | --sil)
2152       continue ;;
2153     *\'*)
2154       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2155     esac
2156     case $ac_pass in
2157     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2158     2)
2159       as_fn_append ac_configure_args1 " '$ac_arg'"
2160       if test $ac_must_keep_next = true; then
2161         ac_must_keep_next=false # Got value, back to normal.
2162       else
2163         case $ac_arg in
2164           *=* | --config-cache | -C | -disable-* | --disable-* \
2165           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167           | -with-* | --with-* | -without-* | --without-* | --x)
2168             case "$ac_configure_args0 " in
2169               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170             esac
2171             ;;
2172           -* ) ac_must_keep_next=true ;;
2173         esac
2174       fi
2175       as_fn_append ac_configure_args " '$ac_arg'"
2176       ;;
2177     esac
2178   done
2179 done
2180 { ac_configure_args0=; unset ac_configure_args0;}
2181 { ac_configure_args1=; unset ac_configure_args1;}
2182
2183 # When interrupted or exit'd, cleanup temporary files, and complete
2184 # config.log.  We remove comments because anyway the quotes in there
2185 # would cause problems or look ugly.
2186 # WARNING: Use '\'' to represent an apostrophe within the trap.
2187 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188 trap 'exit_status=$?
2189   # Save into config.log some information that might help in debugging.
2190   {
2191     echo
2192
2193     $as_echo "## ---------------- ##
2194 ## Cache variables. ##
2195 ## ---------------- ##"
2196     echo
2197     # The following way of writing the cache mishandles newlines in values,
2198 (
2199   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2200     eval ac_val=\$$ac_var
2201     case $ac_val in #(
2202     *${as_nl}*)
2203       case $ac_var in #(
2204       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2206       esac
2207       case $ac_var in #(
2208       _ | IFS | as_nl) ;; #(
2209       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2210       *) { eval $ac_var=; unset $ac_var;} ;;
2211       esac ;;
2212     esac
2213   done
2214   (set) 2>&1 |
2215     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216     *${as_nl}ac_space=\ *)
2217       sed -n \
2218         "s/'\''/'\''\\\\'\'''\''/g;
2219           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220       ;; #(
2221     *)
2222       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223       ;;
2224     esac |
2225     sort
2226 )
2227     echo
2228
2229     $as_echo "## ----------------- ##
2230 ## Output variables. ##
2231 ## ----------------- ##"
2232     echo
2233     for ac_var in $ac_subst_vars
2234     do
2235       eval ac_val=\$$ac_var
2236       case $ac_val in
2237       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238       esac
2239       $as_echo "$ac_var='\''$ac_val'\''"
2240     done | sort
2241     echo
2242
2243     if test -n "$ac_subst_files"; then
2244       $as_echo "## ------------------- ##
2245 ## File substitutions. ##
2246 ## ------------------- ##"
2247       echo
2248       for ac_var in $ac_subst_files
2249       do
2250         eval ac_val=\$$ac_var
2251         case $ac_val in
2252         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253         esac
2254         $as_echo "$ac_var='\''$ac_val'\''"
2255       done | sort
2256       echo
2257     fi
2258
2259     if test -s confdefs.h; then
2260       $as_echo "## ----------- ##
2261 ## confdefs.h. ##
2262 ## ----------- ##"
2263       echo
2264       cat confdefs.h
2265       echo
2266     fi
2267     test "$ac_signal" != 0 &&
2268       $as_echo "$as_me: caught signal $ac_signal"
2269     $as_echo "$as_me: exit $exit_status"
2270   } >&5
2271   rm -f core *.core core.conftest.* &&
2272     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2273     exit $exit_status
2274 ' 0
2275 for ac_signal in 1 2 13 15; do
2276   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2277 done
2278 ac_signal=0
2279
2280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2281 rm -f -r conftest* confdefs.h
2282
2283 $as_echo "/* confdefs.h */" > confdefs.h
2284
2285 # Predefined preprocessor variables.
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_NAME "$PACKAGE_NAME"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_STRING "$PACKAGE_STRING"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_URL "$PACKAGE_URL"
2309 _ACEOF
2310
2311
2312 # Let the site file select an alternate cache file if it wants to.
2313 # Prefer an explicitly selected file to automatically selected ones.
2314 ac_site_file1=NONE
2315 ac_site_file2=NONE
2316 if test -n "$CONFIG_SITE"; then
2317   # We do not want a PATH search for config.site.
2318   case $CONFIG_SITE in #((
2319     -*)  ac_site_file1=./$CONFIG_SITE;;
2320     */*) ac_site_file1=$CONFIG_SITE;;
2321     *)   ac_site_file1=./$CONFIG_SITE;;
2322   esac
2323 elif test "x$prefix" != xNONE; then
2324   ac_site_file1=$prefix/share/config.site
2325   ac_site_file2=$prefix/etc/config.site
2326 else
2327   ac_site_file1=$ac_default_prefix/share/config.site
2328   ac_site_file2=$ac_default_prefix/etc/config.site
2329 fi
2330 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331 do
2332   test "x$ac_site_file" = xNONE && continue
2333   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2334     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336     sed 's/^/| /' "$ac_site_file" >&5
2337     . "$ac_site_file" \
2338       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340 as_fn_error $? "failed to load site script $ac_site_file
2341 See \`config.log' for more details" "$LINENO" 5; }
2342   fi
2343 done
2344
2345 if test -r "$cache_file"; then
2346   # Some versions of bash will fail to source /dev/null (special files
2347   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2348   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2349     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2350 $as_echo "$as_me: loading cache $cache_file" >&6;}
2351     case $cache_file in
2352       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2353       *)                      . "./$cache_file";;
2354     esac
2355   fi
2356 else
2357   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2358 $as_echo "$as_me: creating cache $cache_file" >&6;}
2359   >$cache_file
2360 fi
2361
2362 # Check that the precious variables saved in the cache have kept the same
2363 # value.
2364 ac_cache_corrupted=false
2365 for ac_var in $ac_precious_vars; do
2366   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2367   eval ac_new_set=\$ac_env_${ac_var}_set
2368   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2369   eval ac_new_val=\$ac_env_${ac_var}_value
2370   case $ac_old_set,$ac_new_set in
2371     set,)
2372       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2374       ac_cache_corrupted=: ;;
2375     ,set)
2376       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2377 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2378       ac_cache_corrupted=: ;;
2379     ,);;
2380     *)
2381       if test "x$ac_old_val" != "x$ac_new_val"; then
2382         # differences in whitespace do not lead to failure.
2383         ac_old_val_w=`echo x $ac_old_val`
2384         ac_new_val_w=`echo x $ac_new_val`
2385         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2386           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2387 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2388           ac_cache_corrupted=:
2389         else
2390           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2391 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2392           eval $ac_var=\$ac_old_val
2393         fi
2394         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2395 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2396         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2397 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2398       fi;;
2399   esac
2400   # Pass precious variables to config.status.
2401   if test "$ac_new_set" = set; then
2402     case $ac_new_val in
2403     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2404     *) ac_arg=$ac_var=$ac_new_val ;;
2405     esac
2406     case " $ac_configure_args " in
2407       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2408       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2409     esac
2410   fi
2411 done
2412 if $ac_cache_corrupted; then
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2416 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2417   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2418 fi
2419 ## -------------------- ##
2420 ## Main body of script. ##
2421 ## -------------------- ##
2422
2423 ac_ext=c
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428
2429
2430 ac_aux_dir=
2431 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2432   if test -f "$ac_dir/install-sh"; then
2433     ac_aux_dir=$ac_dir
2434     ac_install_sh="$ac_aux_dir/install-sh -c"
2435     break
2436   elif test -f "$ac_dir/install.sh"; then
2437     ac_aux_dir=$ac_dir
2438     ac_install_sh="$ac_aux_dir/install.sh -c"
2439     break
2440   elif test -f "$ac_dir/shtool"; then
2441     ac_aux_dir=$ac_dir
2442     ac_install_sh="$ac_aux_dir/shtool install -c"
2443     break
2444   fi
2445 done
2446 if test -z "$ac_aux_dir"; then
2447   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2448 fi
2449
2450 # These three variables are undocumented and unsupported,
2451 # and are intended to be withdrawn in a future Autoconf release.
2452 # They can cause serious problems if a builder's source tree is in a directory
2453 # whose full name contains unusual characters.
2454 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2455 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2456 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2457
2458
2459 # Make sure we can run config.sub.
2460 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2461   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2462
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2464 $as_echo_n "checking build system type... " >&6; }
2465 if ${ac_cv_build+:} false; then :
2466   $as_echo_n "(cached) " >&6
2467 else
2468   ac_build_alias=$build_alias
2469 test "x$ac_build_alias" = x &&
2470   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2471 test "x$ac_build_alias" = x &&
2472   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2474   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2475
2476 fi
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2478 $as_echo "$ac_cv_build" >&6; }
2479 case $ac_cv_build in
2480 *-*-*) ;;
2481 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2482 esac
2483 build=$ac_cv_build
2484 ac_save_IFS=$IFS; IFS='-'
2485 set x $ac_cv_build
2486 shift
2487 build_cpu=$1
2488 build_vendor=$2
2489 shift; shift
2490 # Remember, the first character of IFS is used to create $*,
2491 # except with old shells:
2492 build_os=$*
2493 IFS=$ac_save_IFS
2494 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2495
2496
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2498 $as_echo_n "checking host system type... " >&6; }
2499 if ${ac_cv_host+:} false; then :
2500   $as_echo_n "(cached) " >&6
2501 else
2502   if test "x$host_alias" = x; then
2503   ac_cv_host=$ac_cv_build
2504 else
2505   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2506     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2507 fi
2508
2509 fi
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2511 $as_echo "$ac_cv_host" >&6; }
2512 case $ac_cv_host in
2513 *-*-*) ;;
2514 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2515 esac
2516 host=$ac_cv_host
2517 ac_save_IFS=$IFS; IFS='-'
2518 set x $ac_cv_host
2519 shift
2520 host_cpu=$1
2521 host_vendor=$2
2522 shift; shift
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2525 host_os=$*
2526 IFS=$ac_save_IFS
2527 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2528
2529
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2531 $as_echo_n "checking target system type... " >&6; }
2532 if ${ac_cv_target+:} false; then :
2533   $as_echo_n "(cached) " >&6
2534 else
2535   if test "x$target_alias" = x; then
2536   ac_cv_target=$ac_cv_host
2537 else
2538   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2539     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2540 fi
2541
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2544 $as_echo "$ac_cv_target" >&6; }
2545 case $ac_cv_target in
2546 *-*-*) ;;
2547 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2548 esac
2549 target=$ac_cv_target
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_target
2552 shift
2553 target_cpu=$1
2554 target_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 target_os=$*
2559 IFS=$ac_save_IFS
2560 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2561
2562
2563 # The aliases save the names the user supplied, while $host etc.
2564 # will get canonicalized.
2565 test -n "$target_alias" &&
2566   test "$program_prefix$program_suffix$program_transform_name" = \
2567     NONENONEs,x,x, &&
2568   program_prefix=${target_alias}-
2569 am__api_version='1.15'
2570
2571 # Find a good install program.  We prefer a C program (faster),
2572 # so one script is as good as another.  But avoid the broken or
2573 # incompatible versions:
2574 # SysV /etc/install, /usr/sbin/install
2575 # SunOS /usr/etc/install
2576 # IRIX /sbin/install
2577 # AIX /bin/install
2578 # AmigaOS /C/install, which installs bootblocks on floppy discs
2579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2582 # OS/2's system install, which has a completely different semantic
2583 # ./install, which can be erroneously created by make from ./install.sh.
2584 # Reject install programs that cannot install multiple files.
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2586 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2587 if test -z "$INSTALL"; then
2588 if ${ac_cv_path_install+:} false; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594   IFS=$as_save_IFS
2595   test -z "$as_dir" && as_dir=.
2596     # Account for people who put trailing slashes in PATH elements.
2597 case $as_dir/ in #((
2598   ./ | .// | /[cC]/* | \
2599   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2600   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2601   /usr/ucb/* ) ;;
2602   *)
2603     # OSF1 and SCO ODT 3.0 have their own names for install.
2604     # Don't use installbsd from OSF since it installs stuff as root
2605     # by default.
2606     for ac_prog in ginstall scoinst install; do
2607       for ac_exec_ext in '' $ac_executable_extensions; do
2608         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2609           if test $ac_prog = install &&
2610             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2611             # AIX install.  It has an incompatible calling convention.
2612             :
2613           elif test $ac_prog = install &&
2614             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2615             # program-specific install script used by HP pwplus--don't use.
2616             :
2617           else
2618             rm -rf conftest.one conftest.two conftest.dir
2619             echo one > conftest.one
2620             echo two > conftest.two
2621             mkdir conftest.dir
2622             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2623               test -s conftest.one && test -s conftest.two &&
2624               test -s conftest.dir/conftest.one &&
2625               test -s conftest.dir/conftest.two
2626             then
2627               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2628               break 3
2629             fi
2630           fi
2631         fi
2632       done
2633     done
2634     ;;
2635 esac
2636
2637   done
2638 IFS=$as_save_IFS
2639
2640 rm -rf conftest.one conftest.two conftest.dir
2641
2642 fi
2643   if test "${ac_cv_path_install+set}" = set; then
2644     INSTALL=$ac_cv_path_install
2645   else
2646     # As a last resort, use the slow shell script.  Don't cache a
2647     # value for INSTALL within a source directory, because that will
2648     # break other packages using the cache if that directory is
2649     # removed, or if the value is a relative name.
2650     INSTALL=$ac_install_sh
2651   fi
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2654 $as_echo "$INSTALL" >&6; }
2655
2656 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2657 # It thinks the first close brace ends the variable substitution.
2658 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2659
2660 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2661
2662 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2665 $as_echo_n "checking whether build environment is sane... " >&6; }
2666 # Reject unsafe characters in $srcdir or the absolute working directory
2667 # name.  Accept space and tab only in the latter.
2668 am_lf='
2669 '
2670 case `pwd` in
2671   *[\\\"\#\$\&\'\`$am_lf]*)
2672     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2673 esac
2674 case $srcdir in
2675   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2676     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2677 esac
2678
2679 # Do 'set' in a subshell so we don't clobber the current shell's
2680 # arguments.  Must try -L first in case configure is actually a
2681 # symlink; some systems play weird games with the mod time of symlinks
2682 # (eg FreeBSD returns the mod time of the symlink's containing
2683 # directory).
2684 if (
2685    am_has_slept=no
2686    for am_try in 1 2; do
2687      echo "timestamp, slept: $am_has_slept" > conftest.file
2688      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2689      if test "$*" = "X"; then
2690         # -L didn't work.
2691         set X `ls -t "$srcdir/configure" conftest.file`
2692      fi
2693      if test "$*" != "X $srcdir/configure conftest.file" \
2694         && test "$*" != "X conftest.file $srcdir/configure"; then
2695
2696         # If neither matched, then we have a broken ls.  This can happen
2697         # if, for instance, CONFIG_SHELL is bash and it inherits a
2698         # broken ls alias from the environment.  This has actually
2699         # happened.  Such a system could not be considered "sane".
2700         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2701   alias in your environment" "$LINENO" 5
2702      fi
2703      if test "$2" = conftest.file || test $am_try -eq 2; then
2704        break
2705      fi
2706      # Just in case.
2707      sleep 1
2708      am_has_slept=yes
2709    done
2710    test "$2" = conftest.file
2711    )
2712 then
2713    # Ok.
2714    :
2715 else
2716    as_fn_error $? "newly created file is older than distributed files!
2717 Check your system clock" "$LINENO" 5
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720 $as_echo "yes" >&6; }
2721 # If we didn't sleep, we still need to ensure time stamps of config.status and
2722 # generated files are strictly newer.
2723 am_sleep_pid=
2724 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2725   ( sleep 1 ) &
2726   am_sleep_pid=$!
2727 fi
2728
2729 rm -f conftest.file
2730
2731 test "$program_prefix" != NONE &&
2732   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2733 # Use a double $ so make ignores it.
2734 test "$program_suffix" != NONE &&
2735   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2736 # Double any \ or $.
2737 # By default was `s,x,x', remove it if useless.
2738 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2739 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2740
2741 # Expand $ac_aux_dir to an absolute path.
2742 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2743
2744 if test x"${MISSING+set}" != xset; then
2745   case $am_aux_dir in
2746   *\ * | *\     *)
2747     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2748   *)
2749     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2750   esac
2751 fi
2752 # Use eval to expand $SHELL
2753 if eval "$MISSING --is-lightweight"; then
2754   am_missing_run="$MISSING "
2755 else
2756   am_missing_run=
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2758 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2759 fi
2760
2761 if test x"${install_sh+set}" != xset; then
2762   case $am_aux_dir in
2763   *\ * | *\     *)
2764     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2765   *)
2766     install_sh="\${SHELL} $am_aux_dir/install-sh"
2767   esac
2768 fi
2769
2770 # Installed binaries are usually stripped using 'strip' when the user
2771 # run "make install-strip".  However 'strip' might not be the right
2772 # tool to use in cross-compilation environments, therefore Automake
2773 # will honor the 'STRIP' environment variable to overrule this program.
2774 if test "$cross_compiling" != no; then
2775   if test -n "$ac_tool_prefix"; then
2776   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}strip; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_STRIP+:} false; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   if test -n "$STRIP"; then
2784   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791     for ac_exec_ext in '' $ac_executable_extensions; do
2792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798   done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 STRIP=$ac_cv_prog_STRIP
2804 if test -n "$STRIP"; then
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2806 $as_echo "$STRIP" >&6; }
2807 else
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 fi
2814 if test -z "$ac_cv_prog_STRIP"; then
2815   ac_ct_STRIP=$STRIP
2816   # Extract the first word of "strip", so it can be a program name with args.
2817 set dummy strip; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2821   $as_echo_n "(cached) " >&6
2822 else
2823   if test -n "$ac_ct_STRIP"; then
2824   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831     for ac_exec_ext in '' $ac_executable_extensions; do
2832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833     ac_cv_prog_ac_ct_STRIP="strip"
2834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838   done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2844 if test -n "$ac_ct_STRIP"; then
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2846 $as_echo "$ac_ct_STRIP" >&6; }
2847 else
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852   if test "x$ac_ct_STRIP" = x; then
2853     STRIP=":"
2854   else
2855     case $cross_compiling:$ac_tool_warned in
2856 yes:)
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859 ac_tool_warned=yes ;;
2860 esac
2861     STRIP=$ac_ct_STRIP
2862   fi
2863 else
2864   STRIP="$ac_cv_prog_STRIP"
2865 fi
2866
2867 fi
2868 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2871 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2872 if test -z "$MKDIR_P"; then
2873   if ${ac_cv_path_mkdir+:} false; then :
2874   $as_echo_n "(cached) " >&6
2875 else
2876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2878 do
2879   IFS=$as_save_IFS
2880   test -z "$as_dir" && as_dir=.
2881     for ac_prog in mkdir gmkdir; do
2882          for ac_exec_ext in '' $ac_executable_extensions; do
2883            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2884            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2885              'mkdir (GNU coreutils) '* | \
2886              'mkdir (coreutils) '* | \
2887              'mkdir (fileutils) '4.1*)
2888                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2889                break 3;;
2890            esac
2891          done
2892        done
2893   done
2894 IFS=$as_save_IFS
2895
2896 fi
2897
2898   test -d ./--version && rmdir ./--version
2899   if test "${ac_cv_path_mkdir+set}" = set; then
2900     MKDIR_P="$ac_cv_path_mkdir -p"
2901   else
2902     # As a last resort, use the slow shell script.  Don't cache a
2903     # value for MKDIR_P within a source directory, because that will
2904     # break other packages using the cache if that directory is
2905     # removed, or if the value is a relative name.
2906     MKDIR_P="$ac_install_sh -d"
2907   fi
2908 fi
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2910 $as_echo "$MKDIR_P" >&6; }
2911
2912 for ac_prog in gawk mawk nawk awk
2913 do
2914   # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_AWK+:} false; then :
2919   $as_echo_n "(cached) " >&6
2920 else
2921   if test -n "$AWK"; then
2922   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929     for ac_exec_ext in '' $ac_executable_extensions; do
2930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931     ac_cv_prog_AWK="$ac_prog"
2932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933     break 2
2934   fi
2935 done
2936   done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 AWK=$ac_cv_prog_AWK
2942 if test -n "$AWK"; then
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2944 $as_echo "$AWK" >&6; }
2945 else
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951   test -n "$AWK" && break
2952 done
2953
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2955 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2956 set x ${MAKE-make}
2957 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2958 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2959   $as_echo_n "(cached) " >&6
2960 else
2961   cat >conftest.make <<\_ACEOF
2962 SHELL = /bin/sh
2963 all:
2964         @echo '@@@%%%=$(MAKE)=@@@%%%'
2965 _ACEOF
2966 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2967 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2968   *@@@%%%=?*=@@@%%%*)
2969     eval ac_cv_prog_make_${ac_make}_set=yes;;
2970   *)
2971     eval ac_cv_prog_make_${ac_make}_set=no;;
2972 esac
2973 rm -f conftest.make
2974 fi
2975 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2977 $as_echo "yes" >&6; }
2978   SET_MAKE=
2979 else
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982   SET_MAKE="MAKE=${MAKE-make}"
2983 fi
2984
2985 rm -rf .tst 2>/dev/null
2986 mkdir .tst 2>/dev/null
2987 if test -d .tst; then
2988   am__leading_dot=.
2989 else
2990   am__leading_dot=_
2991 fi
2992 rmdir .tst 2>/dev/null
2993
2994 # Check whether --enable-silent-rules was given.
2995 if test "${enable_silent_rules+set}" = set; then :
2996   enableval=$enable_silent_rules;
2997 fi
2998
2999 case $enable_silent_rules in # (((
3000   yes) AM_DEFAULT_VERBOSITY=0;;
3001    no) AM_DEFAULT_VERBOSITY=1;;
3002     *) AM_DEFAULT_VERBOSITY=1;;
3003 esac
3004 am_make=${MAKE-make}
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3006 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3007 if ${am_cv_make_support_nested_variables+:} false; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if $as_echo 'TRUE=$(BAR$(V))
3011 BAR0=false
3012 BAR1=true
3013 V=1
3014 am__doit:
3015         @$(TRUE)
3016 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3017   am_cv_make_support_nested_variables=yes
3018 else
3019   am_cv_make_support_nested_variables=no
3020 fi
3021 fi
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3023 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3024 if test $am_cv_make_support_nested_variables = yes; then
3025     AM_V='$(V)'
3026   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3027 else
3028   AM_V=$AM_DEFAULT_VERBOSITY
3029   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3030 fi
3031 AM_BACKSLASH='\'
3032
3033 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3034   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3035   # is not polluted with repeated "-I."
3036   am__isrc=' -I$(srcdir)'
3037   # test to see if srcdir already configured
3038   if test -f $srcdir/config.status; then
3039     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3040   fi
3041 fi
3042
3043 # test whether we have cygpath
3044 if test -z "$CYGPATH_W"; then
3045   if (cygpath --version) >/dev/null 2>/dev/null; then
3046     CYGPATH_W='cygpath -w'
3047   else
3048     CYGPATH_W=echo
3049   fi
3050 fi
3051
3052
3053 # Define the identity of the package.
3054  PACKAGE='gprofng'
3055  VERSION='2.39.50'
3056
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE "$PACKAGE"
3060 _ACEOF
3061
3062
3063 cat >>confdefs.h <<_ACEOF
3064 #define VERSION "$VERSION"
3065 _ACEOF
3066
3067 # Some tools Automake needs.
3068
3069 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3070
3071
3072 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3073
3074
3075 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3076
3077
3078 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3079
3080
3081 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3082
3083 # For better backward compatibility.  To be removed once Automake 1.9.x
3084 # dies out for good.  For more background, see:
3085 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3086 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3087 mkdir_p='$(MKDIR_P)'
3088
3089 # We need awk for the "check" target (and possibly the TAP driver).  The
3090 # system "awk" is bad on some platforms.
3091 # Always define AMTAR for backward compatibility.  Yes, it's still used
3092 # in the wild :-(  We should find a proper way to deprecate it ...
3093 AMTAR='$${TAR-tar}'
3094
3095
3096 # We'll loop over all known methods to create a tar archive until one works.
3097 _am_tools='gnutar  pax cpio none'
3098
3099 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3100
3101
3102
3103
3104
3105
3106 # POSIX will say in a future version that running "rm -f" with no argument
3107 # is OK; and we want to be able to make that assumption in our Makefile
3108 # recipes.  So use an aggressive probe to check that the usage we want is
3109 # actually supported "in the wild" to an acceptable degree.
3110 # See automake bug#10828.
3111 # To make any issue more visible, cause the running configure to be aborted
3112 # by default if the 'rm' program in use doesn't match our expectations; the
3113 # user can still override this though.
3114 if rm -f && rm -fr && rm -rf; then : OK; else
3115   cat >&2 <<'END'
3116 Oops!
3117
3118 Your 'rm' program seems unable to run without file operands specified
3119 on the command line, even when the '-f' option is present.  This is contrary
3120 to the behaviour of most rm programs out there, and not conforming with
3121 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3122
3123 Please tell [email protected] about your system, including the value
3124 of your $PATH and any error possibly output before this message.  This
3125 can help us improve future automake versions.
3126
3127 END
3128   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3129     echo 'Configuration will proceed anyway, since you have set the' >&2
3130     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3131     echo >&2
3132   else
3133     cat >&2 <<'END'
3134 Aborting the configuration process, to ensure you take notice of the issue.
3135
3136 You can download and install GNU coreutils to get an 'rm' implementation
3137 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3138
3139 If you want to complete the configuration process using your problematic
3140 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3141 to "yes", and re-run configure.
3142
3143 END
3144     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3145   fi
3146 fi
3147
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3150 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3151     # Check whether --enable-maintainer-mode was given.
3152 if test "${enable_maintainer_mode+set}" = set; then :
3153   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3154 else
3155   USE_MAINTAINER_MODE=no
3156 fi
3157
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3159 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3160    if test $USE_MAINTAINER_MODE = yes; then
3161   MAINTAINER_MODE_TRUE=
3162   MAINTAINER_MODE_FALSE='#'
3163 else
3164   MAINTAINER_MODE_TRUE='#'
3165   MAINTAINER_MODE_FALSE=
3166 fi
3167
3168   MAINT=$MAINTAINER_MODE_TRUE
3169
3170
3171
3172 DEPDIR="${am__leading_dot}deps"
3173
3174 ac_config_commands="$ac_config_commands depfiles"
3175
3176
3177 am_make=${MAKE-make}
3178 cat > confinc << 'END'
3179 am__doit:
3180         @echo this is the am__doit target
3181 .PHONY: am__doit
3182 END
3183 # If we don't find an include directive, just comment out the code.
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3185 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3186 am__include="#"
3187 am__quote=
3188 _am_result=none
3189 # First try GNU make style include.
3190 echo "include confinc" > confmf
3191 # Ignore all kinds of additional output from 'make'.
3192 case `$am_make -s -f confmf 2> /dev/null` in #(
3193 *the\ am__doit\ target*)
3194   am__include=include
3195   am__quote=
3196   _am_result=GNU
3197   ;;
3198 esac
3199 # Now try BSD make style include.
3200 if test "$am__include" = "#"; then
3201    echo '.include "confinc"' > confmf
3202    case `$am_make -s -f confmf 2> /dev/null` in #(
3203    *the\ am__doit\ target*)
3204      am__include=.include
3205      am__quote="\""
3206      _am_result=BSD
3207      ;;
3208    esac
3209 fi
3210
3211
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3213 $as_echo "$_am_result" >&6; }
3214 rm -f confinc confmf
3215
3216 # Check whether --enable-dependency-tracking was given.
3217 if test "${enable_dependency_tracking+set}" = set; then :
3218   enableval=$enable_dependency_tracking;
3219 fi
3220
3221 if test "x$enable_dependency_tracking" != xno; then
3222   am_depcomp="$ac_aux_dir/depcomp"
3223   AMDEPBACKSLASH='\'
3224   am__nodep='_no'
3225 fi
3226  if test "x$enable_dependency_tracking" != xno; then
3227   AMDEP_TRUE=
3228   AMDEP_FALSE='#'
3229 else
3230   AMDEP_TRUE='#'
3231   AMDEP_FALSE=
3232 fi
3233
3234
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 if test -n "$ac_tool_prefix"; then
3241   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_CC+:} false; then :
3246   $as_echo_n "(cached) " >&6
3247 else
3248   if test -n "$CC"; then
3249   ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263   done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278 fi
3279 if test -z "$ac_cv_prog_CC"; then
3280   ac_ct_CC=$CC
3281   # Extract the first word of "gcc", so it can be a program name with args.
3282 set dummy gcc; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3286   $as_echo_n "(cached) " >&6
3287 else
3288   if test -n "$ac_ct_CC"; then
3289   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294   IFS=$as_save_IFS
3295   test -z "$as_dir" && as_dir=.
3296     for ac_exec_ext in '' $ac_executable_extensions; do
3297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298     ac_cv_prog_ac_ct_CC="gcc"
3299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300     break 2
3301   fi
3302 done
3303   done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3311 $as_echo "$ac_ct_CC" >&6; }
3312 else
3313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 fi
3316
3317   if test "x$ac_ct_CC" = x; then
3318     CC=""
3319   else
3320     case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326     CC=$ac_ct_CC
3327   fi
3328 else
3329   CC="$ac_cv_prog_CC"
3330 fi
3331
3332 if test -z "$CC"; then
3333           if test -n "$ac_tool_prefix"; then
3334     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}cc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   if test -n "$CC"; then
3342   ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347   IFS=$as_save_IFS
3348   test -z "$as_dir" && as_dir=.
3349     for ac_exec_ext in '' $ac_executable_extensions; do
3350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351     ac_cv_prog_CC="${ac_tool_prefix}cc"
3352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353     break 2
3354   fi
3355 done
3356   done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371   fi
3372 fi
3373 if test -z "$CC"; then
3374   # Extract the first word of "cc", so it can be a program name with args.
3375 set dummy cc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_CC+:} false; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   if test -n "$CC"; then
3382   ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384   ac_prog_rejected=no
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390     for ac_exec_ext in '' $ac_executable_extensions; do
3391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3393        ac_prog_rejected=yes
3394        continue
3395      fi
3396     ac_cv_prog_CC="cc"
3397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401   done
3402 IFS=$as_save_IFS
3403
3404 if test $ac_prog_rejected = yes; then
3405   # We found a bogon in the path, so make sure we never use it.
3406   set dummy $ac_cv_prog_CC
3407   shift
3408   if test $# != 0; then
3409     # We chose a different compiler from the bogus one.
3410     # However, it has the same basename, so the bogon will be chosen
3411     # first if we set CC to just the basename; use the full file name.
3412     shift
3413     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3414   fi
3415 fi
3416 fi
3417 fi
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428 fi
3429 if test -z "$CC"; then
3430   if test -n "$ac_tool_prefix"; then
3431   for ac_prog in cl.exe
3432   do
3433     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   if test -n "$CC"; then
3441   ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446   IFS=$as_save_IFS
3447   test -z "$as_dir" && as_dir=.
3448     for ac_exec_ext in '' $ac_executable_extensions; do
3449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452     break 2
3453   fi
3454 done
3455   done
3456 IFS=$as_save_IFS
3457
3458 fi
3459 fi
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3464 else
3465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 fi
3468
3469
3470     test -n "$CC" && break
3471   done
3472 fi
3473 if test -z "$CC"; then
3474   ac_ct_CC=$CC
3475   for ac_prog in cl.exe
3476 do
3477   # Extract the first word of "$ac_prog", so it can be a program name with args.
3478 set dummy $ac_prog; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   if test -n "$ac_ct_CC"; then
3485   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3489 do
3490   IFS=$as_save_IFS
3491   test -z "$as_dir" && as_dir=.
3492     for ac_exec_ext in '' $ac_executable_extensions; do
3493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494     ac_cv_prog_ac_ct_CC="$ac_prog"
3495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496     break 2
3497   fi
3498 done
3499   done
3500 IFS=$as_save_IFS
3501
3502 fi
3503 fi
3504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505 if test -n "$ac_ct_CC"; then
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3507 $as_echo "$ac_ct_CC" >&6; }
3508 else
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514   test -n "$ac_ct_CC" && break
3515 done
3516
3517   if test "x$ac_ct_CC" = x; then
3518     CC=""
3519   else
3520     case $cross_compiling:$ac_tool_warned in
3521 yes:)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned=yes ;;
3525 esac
3526     CC=$ac_ct_CC
3527   fi
3528 fi
3529
3530 fi
3531
3532
3533 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "no acceptable C compiler found in \$PATH
3536 See \`config.log' for more details" "$LINENO" 5; }
3537
3538 # Provide some information about the compiler.
3539 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3540 set X $ac_compile
3541 ac_compiler=$2
3542 for ac_option in --version -v -V -qversion; do
3543   { { ac_try="$ac_compiler $ac_option >&5"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3551   ac_status=$?
3552   if test -s conftest.err; then
3553     sed '10a\
3554 ... rest of stderr output deleted ...
3555          10q' conftest.err >conftest.er1
3556     cat conftest.er1 >&5
3557   fi
3558   rm -f conftest.er1 conftest.err
3559   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560   test $ac_status = 0; }
3561 done
3562
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 ac_clean_files_save=$ac_clean_files
3575 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3576 # Try to create an executable without -o first, disregard a.out.
3577 # It will help us diagnose broken compilers, and finding out an intuition
3578 # of exeext.
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3580 $as_echo_n "checking whether the C compiler works... " >&6; }
3581 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3582
3583 # The possible output files:
3584 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3585
3586 ac_rmfiles=
3587 for ac_file in $ac_files
3588 do
3589   case $ac_file in
3590     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3591     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3592   esac
3593 done
3594 rm -f $ac_rmfiles
3595
3596 if { { ac_try="$ac_link_default"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603   (eval "$ac_link_default") 2>&5
3604   ac_status=$?
3605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606   test $ac_status = 0; }; then :
3607   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3608 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3609 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3610 # so that the user can short-circuit this test for compilers unknown to
3611 # Autoconf.
3612 for ac_file in $ac_files ''
3613 do
3614   test -f "$ac_file" || continue
3615   case $ac_file in
3616     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3617         ;;
3618     [ab].out )
3619         # We found the default executable, but exeext='' is most
3620         # certainly right.
3621         break;;
3622     *.* )
3623         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3624         then :; else
3625            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626         fi
3627         # We set ac_cv_exeext here because the later test for it is not
3628         # safe: cross compilers may not add the suffix if given an `-o'
3629         # argument, so we may need to know it at that point already.
3630         # Even if this section looks crufty: it has the advantage of
3631         # actually working.
3632         break;;
3633     * )
3634         break;;
3635   esac
3636 done
3637 test "$ac_cv_exeext" = no && ac_cv_exeext=
3638
3639 else
3640   ac_file=''
3641 fi
3642 if test -z "$ac_file"; then :
3643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error 77 "C compiler cannot create executables
3651 See \`config.log' for more details" "$LINENO" 5; }
3652 else
3653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3654 $as_echo "yes" >&6; }
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3657 $as_echo_n "checking for C compiler default output file name... " >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3659 $as_echo "$ac_file" >&6; }
3660 ac_exeext=$ac_cv_exeext
3661
3662 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3663 ac_clean_files=$ac_clean_files_save
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3665 $as_echo_n "checking for suffix of executables... " >&6; }
3666 if { { ac_try="$ac_link"
3667 case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673   (eval "$ac_link") 2>&5
3674   ac_status=$?
3675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676   test $ac_status = 0; }; then :
3677   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3678 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3679 # work properly (i.e., refer to `conftest.exe'), while it won't with
3680 # `rm'.
3681 for ac_file in conftest.exe conftest conftest.*; do
3682   test -f "$ac_file" || continue
3683   case $ac_file in
3684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3685     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686           break;;
3687     * ) break;;
3688   esac
3689 done
3690 else
3691   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3694 See \`config.log' for more details" "$LINENO" 5; }
3695 fi
3696 rm -f conftest conftest$ac_cv_exeext
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3698 $as_echo "$ac_cv_exeext" >&6; }
3699
3700 rm -f conftest.$ac_ext
3701 EXEEXT=$ac_cv_exeext
3702 ac_exeext=$EXEEXT
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h.  */
3705 #include <stdio.h>
3706 int
3707 main ()
3708 {
3709 FILE *f = fopen ("conftest.out", "w");
3710  return ferror (f) || fclose (f) != 0;
3711
3712   ;
3713   return 0;
3714 }
3715 _ACEOF
3716 ac_clean_files="$ac_clean_files conftest.out"
3717 # Check that the compiler produces executables we can run.  If not, either
3718 # the compiler is broken, or we cross compile.
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3720 $as_echo_n "checking whether we are cross compiling... " >&6; }
3721 if test "$cross_compiling" != yes; then
3722   { { ac_try="$ac_link"
3723 case "(($ac_try" in
3724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725   *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3728 $as_echo "$ac_try_echo"; } >&5
3729   (eval "$ac_link") 2>&5
3730   ac_status=$?
3731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732   test $ac_status = 0; }
3733   if { ac_try='./conftest$ac_cv_exeext'
3734   { { case "(($ac_try" in
3735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736   *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740   (eval "$ac_try") 2>&5
3741   ac_status=$?
3742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743   test $ac_status = 0; }; }; then
3744     cross_compiling=no
3745   else
3746     if test "$cross_compiling" = maybe; then
3747         cross_compiling=yes
3748     else
3749         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot run C compiled programs.
3752 If you meant to cross compile, use \`--host'.
3753 See \`config.log' for more details" "$LINENO" 5; }
3754     fi
3755   fi
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3758 $as_echo "$cross_compiling" >&6; }
3759
3760 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3761 ac_clean_files=$ac_clean_files_save
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3763 $as_echo_n "checking for suffix of object files... " >&6; }
3764 if ${ac_cv_objext+:} false; then :
3765   $as_echo_n "(cached) " >&6
3766 else
3767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h.  */
3769
3770 int
3771 main ()
3772 {
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.o conftest.obj
3779 if { { ac_try="$ac_compile"
3780 case "(($ac_try" in
3781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782   *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786   (eval "$ac_compile") 2>&5
3787   ac_status=$?
3788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789   test $ac_status = 0; }; then :
3790   for ac_file in conftest.o conftest.obj conftest.*; do
3791   test -f "$ac_file" || continue;
3792   case $ac_file in
3793     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3794     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3795        break;;
3796   esac
3797 done
3798 else
3799   $as_echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error $? "cannot compute suffix of object files: cannot compile
3805 See \`config.log' for more details" "$LINENO" 5; }
3806 fi
3807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3810 $as_echo "$ac_cv_objext" >&6; }
3811 OBJEXT=$ac_cv_objext
3812 ac_objext=$OBJEXT
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3814 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3815 if ${ac_cv_c_compiler_gnu+:} false; then :
3816   $as_echo_n "(cached) " >&6
3817 else
3818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h.  */
3820
3821 int
3822 main ()
3823 {
3824 #ifndef __GNUC__
3825        choke me
3826 #endif
3827
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833   ac_compiler_gnu=yes
3834 else
3835   ac_compiler_gnu=no
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3839
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3842 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3843 if test $ac_compiler_gnu = yes; then
3844   GCC=yes
3845 else
3846   GCC=
3847 fi
3848 ac_test_CFLAGS=${CFLAGS+set}
3849 ac_save_CFLAGS=$CFLAGS
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3851 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3852 if ${ac_cv_prog_cc_g+:} false; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   ac_save_c_werror_flag=$ac_c_werror_flag
3856    ac_c_werror_flag=yes
3857    ac_cv_prog_cc_g=no
3858    CFLAGS="-g"
3859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h.  */
3861
3862 int
3863 main ()
3864 {
3865
3866   ;
3867   return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871   ac_cv_prog_cc_g=yes
3872 else
3873   CFLAGS=""
3874       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h.  */
3876
3877 int
3878 main ()
3879 {
3880
3881   ;
3882   return 0;
3883 }
3884 _ACEOF
3885 if ac_fn_c_try_compile "$LINENO"; then :
3886
3887 else
3888   ac_c_werror_flag=$ac_save_c_werror_flag
3889          CFLAGS="-g"
3890          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902   ac_cv_prog_cc_g=yes
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909    ac_c_werror_flag=$ac_save_c_werror_flag
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3912 $as_echo "$ac_cv_prog_cc_g" >&6; }
3913 if test "$ac_test_CFLAGS" = set; then
3914   CFLAGS=$ac_save_CFLAGS
3915 elif test $ac_cv_prog_cc_g = yes; then
3916   if test "$GCC" = yes; then
3917     CFLAGS="-g -O2"
3918   else
3919     CFLAGS="-g"
3920   fi
3921 else
3922   if test "$GCC" = yes; then
3923     CFLAGS="-O2"
3924   else
3925     CFLAGS=
3926   fi
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3929 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3930 if ${ac_cv_prog_cc_c89+:} false; then :
3931   $as_echo_n "(cached) " >&6
3932 else
3933   ac_cv_prog_cc_c89=no
3934 ac_save_CC=$CC
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h.  */
3937 #include <stdarg.h>
3938 #include <stdio.h>
3939 struct stat;
3940 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3941 struct buf { int x; };
3942 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3943 static char *e (p, i)
3944      char **p;
3945      int i;
3946 {
3947   return p[i];
3948 }
3949 static char *f (char * (*g) (char **, int), char **p, ...)
3950 {
3951   char *s;
3952   va_list v;
3953   va_start (v,p);
3954   s = g (p, va_arg (v,int));
3955   va_end (v);
3956   return s;
3957 }
3958
3959 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3960    function prototypes and stuff, but not '\xHH' hex character constants.
3961    These don't provoke an error unfortunately, instead are silently treated
3962    as 'x'.  The following induces an error, until -std is added to get
3963    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3964    array size at least.  It's necessary to write '\x00'==0 to get something
3965    that's true only with -std.  */
3966 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3967
3968 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3969    inside strings and character constants.  */
3970 #define FOO(x) 'x'
3971 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3972
3973 int test (int i, double x);
3974 struct s1 {int (*f) (int a);};
3975 struct s2 {int (*f) (double a);};
3976 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3977 int argc;
3978 char **argv;
3979 int
3980 main ()
3981 {
3982 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3988         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3989 do
3990   CC="$ac_save_CC $ac_arg"
3991   if ac_fn_c_try_compile "$LINENO"; then :
3992   ac_cv_prog_cc_c89=$ac_arg
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext
3995   test "x$ac_cv_prog_cc_c89" != "xno" && break
3996 done
3997 rm -f conftest.$ac_ext
3998 CC=$ac_save_CC
3999
4000 fi
4001 # AC_CACHE_VAL
4002 case "x$ac_cv_prog_cc_c89" in
4003   x)
4004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4005 $as_echo "none needed" >&6; } ;;
4006   xno)
4007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4008 $as_echo "unsupported" >&6; } ;;
4009   *)
4010     CC="$CC $ac_cv_prog_cc_c89"
4011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4012 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4013 esac
4014 if test "x$ac_cv_prog_cc_c89" != xno; then :
4015
4016 fi
4017
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 ac_ext=c
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4030 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4031 if ${am_cv_prog_cc_c_o+:} false; then :
4032   $as_echo_n "(cached) " >&6
4033 else
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036
4037 int
4038 main ()
4039 {
4040
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045   # Make sure it works both with $CC and with simple cc.
4046   # Following AC_PROG_CC_C_O, we do the test twice because some
4047   # compilers refuse to overwrite an existing .o file with -o,
4048   # though they will create one.
4049   am_cv_prog_cc_c_o=yes
4050   for am_i in 1 2; do
4051     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4052    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4053    ac_status=$?
4054    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055    (exit $ac_status); } \
4056          && test -f conftest2.$ac_objext; then
4057       : OK
4058     else
4059       am_cv_prog_cc_c_o=no
4060       break
4061     fi
4062   done
4063   rm -f core conftest*
4064   unset am_i
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4067 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4068 if test "$am_cv_prog_cc_c_o" != yes; then
4069    # Losing compiler, so override with the script.
4070    # FIXME: It is wrong to rewrite CC.
4071    # But if we don't then we get into trouble of one sort or another.
4072    # A longer-term fix would be to have automake use am__CC in this case,
4073    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4074    CC="$am_aux_dir/compile $CC"
4075 fi
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081
4082
4083 depcc="$CC"   am_compiler_list=
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4086 $as_echo_n "checking dependency style of $depcc... " >&6; }
4087 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4088   $as_echo_n "(cached) " >&6
4089 else
4090   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4091   # We make a subdir and do the tests there.  Otherwise we can end up
4092   # making bogus files that we don't know about and never remove.  For
4093   # instance it was reported that on HP-UX the gcc test will end up
4094   # making a dummy file named 'D' -- because '-MD' means "put the output
4095   # in D".
4096   rm -rf conftest.dir
4097   mkdir conftest.dir
4098   # Copy depcomp to subdir because otherwise we won't find it if we're
4099   # using a relative directory.
4100   cp "$am_depcomp" conftest.dir
4101   cd conftest.dir
4102   # We will build objects and dependencies in a subdirectory because
4103   # it helps to detect inapplicable dependency modes.  For instance
4104   # both Tru64's cc and ICC support -MD to output dependencies as a
4105   # side effect of compilation, but ICC will put the dependencies in
4106   # the current directory while Tru64 will put them in the object
4107   # directory.
4108   mkdir sub
4109
4110   am_cv_CC_dependencies_compiler_type=none
4111   if test "$am_compiler_list" = ""; then
4112      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4113   fi
4114   am__universal=false
4115   case " $depcc " in #(
4116      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4117      esac
4118
4119   for depmode in $am_compiler_list; do
4120     # Setup a source with many dependencies, because some compilers
4121     # like to wrap large dependency lists on column 80 (with \), and
4122     # we should not choose a depcomp mode which is confused by this.
4123     #
4124     # We need to recreate these files for each test, as the compiler may
4125     # overwrite some of them when testing with obscure command lines.
4126     # This happens at least with the AIX C compiler.
4127     : > sub/conftest.c
4128     for i in 1 2 3 4 5 6; do
4129       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4130       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4131       # Solaris 10 /bin/sh.
4132       echo '/* dummy */' > sub/conftst$i.h
4133     done
4134     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4135
4136     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4137     # mode.  It turns out that the SunPro C++ compiler does not properly
4138     # handle '-M -o', and we need to detect this.  Also, some Intel
4139     # versions had trouble with output in subdirs.
4140     am__obj=sub/conftest.${OBJEXT-o}
4141     am__minus_obj="-o $am__obj"
4142     case $depmode in
4143     gcc)
4144       # This depmode causes a compiler race in universal mode.
4145       test "$am__universal" = false || continue
4146       ;;
4147     nosideeffect)
4148       # After this tag, mechanisms are not by side-effect, so they'll
4149       # only be used when explicitly requested.
4150       if test "x$enable_dependency_tracking" = xyes; then
4151         continue
4152       else
4153         break
4154       fi
4155       ;;
4156     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4157       # This compiler won't grok '-c -o', but also, the minuso test has
4158       # not run yet.  These depmodes are late enough in the game, and
4159       # so weak that their functioning should not be impacted.
4160       am__obj=conftest.${OBJEXT-o}
4161       am__minus_obj=
4162       ;;
4163     none) break ;;
4164     esac
4165     if depmode=$depmode \
4166        source=sub/conftest.c object=$am__obj \
4167        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4168        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4169          >/dev/null 2>conftest.err &&
4170        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4171        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4172        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4173        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4174       # icc doesn't choke on unknown options, it will just issue warnings
4175       # or remarks (even with -Werror).  So we grep stderr for any message
4176       # that says an option was ignored or not supported.
4177       # When given -MP, icc 7.0 and 7.1 complain thusly:
4178       #   icc: Command line warning: ignoring option '-M'; no argument required
4179       # The diagnosis changed in icc 8.0:
4180       #   icc: Command line remark: option '-MP' not supported
4181       if (grep 'ignoring option' conftest.err ||
4182           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4183         am_cv_CC_dependencies_compiler_type=$depmode
4184         break
4185       fi
4186     fi
4187   done
4188
4189   cd ..
4190   rm -rf conftest.dir
4191 else
4192   am_cv_CC_dependencies_compiler_type=none
4193 fi
4194
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4197 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4198 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4199
4200  if
4201   test "x$enable_dependency_tracking" != xno \
4202   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4203   am__fastdepCC_TRUE=
4204   am__fastdepCC_FALSE='#'
4205 else
4206   am__fastdepCC_TRUE='#'
4207   am__fastdepCC_FALSE=
4208 fi
4209
4210
4211
4212 ac_ext=c
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4218 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4219 # On Suns, sometimes $CPP names a directory.
4220 if test -n "$CPP" && test -d "$CPP"; then
4221   CPP=
4222 fi
4223 if test -z "$CPP"; then
4224   if ${ac_cv_prog_CPP+:} false; then :
4225   $as_echo_n "(cached) " >&6
4226 else
4227       # Double quotes because CPP needs to be expanded
4228     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4229     do
4230       ac_preproc_ok=false
4231 for ac_c_preproc_warn_flag in '' yes
4232 do
4233   # Use a header file that comes with gcc, so configuring glibc
4234   # with a fresh cross-compiler works.
4235   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4236   # <limits.h> exists even on freestanding compilers.
4237   # On the NeXT, cc -E runs the code through the compiler's parser,
4238   # not just through cpp. "Syntax error" is here to catch this case.
4239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h.  */
4241 #ifdef __STDC__
4242 # include <limits.h>
4243 #else
4244 # include <assert.h>
4245 #endif
4246                      Syntax error
4247 _ACEOF
4248 if ac_fn_c_try_cpp "$LINENO"; then :
4249
4250 else
4251   # Broken: fails on valid input.
4252 continue
4253 fi
4254 rm -f conftest.err conftest.i conftest.$ac_ext
4255
4256   # OK, works on sane cases.  Now check whether nonexistent headers
4257   # can be detected and how.
4258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h.  */
4260 #include <ac_nonexistent.h>
4261 _ACEOF
4262 if ac_fn_c_try_cpp "$LINENO"; then :
4263   # Broken: success on invalid input.
4264 continue
4265 else
4266   # Passes both tests.
4267 ac_preproc_ok=:
4268 break
4269 fi
4270 rm -f conftest.err conftest.i conftest.$ac_ext
4271
4272 done
4273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274 rm -f conftest.i conftest.err conftest.$ac_ext
4275 if $ac_preproc_ok; then :
4276   break
4277 fi
4278
4279     done
4280     ac_cv_prog_CPP=$CPP
4281
4282 fi
4283   CPP=$ac_cv_prog_CPP
4284 else
4285   ac_cv_prog_CPP=$CPP
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4288 $as_echo "$CPP" >&6; }
4289 ac_preproc_ok=false
4290 for ac_c_preproc_warn_flag in '' yes
4291 do
4292   # Use a header file that comes with gcc, so configuring glibc
4293   # with a fresh cross-compiler works.
4294   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4295   # <limits.h> exists even on freestanding compilers.
4296   # On the NeXT, cc -E runs the code through the compiler's parser,
4297   # not just through cpp. "Syntax error" is here to catch this case.
4298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h.  */
4300 #ifdef __STDC__
4301 # include <limits.h>
4302 #else
4303 # include <assert.h>
4304 #endif
4305                      Syntax error
4306 _ACEOF
4307 if ac_fn_c_try_cpp "$LINENO"; then :
4308
4309 else
4310   # Broken: fails on valid input.
4311 continue
4312 fi
4313 rm -f conftest.err conftest.i conftest.$ac_ext
4314
4315   # OK, works on sane cases.  Now check whether nonexistent headers
4316   # can be detected and how.
4317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h.  */
4319 #include <ac_nonexistent.h>
4320 _ACEOF
4321 if ac_fn_c_try_cpp "$LINENO"; then :
4322   # Broken: success on invalid input.
4323 continue
4324 else
4325   # Passes both tests.
4326 ac_preproc_ok=:
4327 break
4328 fi
4329 rm -f conftest.err conftest.i conftest.$ac_ext
4330
4331 done
4332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4333 rm -f conftest.i conftest.err conftest.$ac_ext
4334 if $ac_preproc_ok; then :
4335
4336 else
4337   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4339 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4340 See \`config.log' for more details" "$LINENO" 5; }
4341 fi
4342
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4351 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4352 if ${ac_cv_path_GREP+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   if test -z "$GREP"; then
4356   ac_path_GREP_found=false
4357   # Loop through the user's path and test for each of PROGNAME-LIST
4358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363     for ac_prog in grep ggrep; do
4364     for ac_exec_ext in '' $ac_executable_extensions; do
4365       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4366       as_fn_executable_p "$ac_path_GREP" || continue
4367 # Check for GNU ac_path_GREP and select it if it is found.
4368   # Check for GNU $ac_path_GREP
4369 case `"$ac_path_GREP" --version 2>&1` in
4370 *GNU*)
4371   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4372 *)
4373   ac_count=0
4374   $as_echo_n 0123456789 >"conftest.in"
4375   while :
4376   do
4377     cat "conftest.in" "conftest.in" >"conftest.tmp"
4378     mv "conftest.tmp" "conftest.in"
4379     cp "conftest.in" "conftest.nl"
4380     $as_echo 'GREP' >> "conftest.nl"
4381     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4382     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4383     as_fn_arith $ac_count + 1 && ac_count=$as_val
4384     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4385       # Best one so far, save it but keep looking for a better one
4386       ac_cv_path_GREP="$ac_path_GREP"
4387       ac_path_GREP_max=$ac_count
4388     fi
4389     # 10*(2^10) chars as input seems more than enough
4390     test $ac_count -gt 10 && break
4391   done
4392   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4393 esac
4394
4395       $ac_path_GREP_found && break 3
4396     done
4397   done
4398   done
4399 IFS=$as_save_IFS
4400   if test -z "$ac_cv_path_GREP"; then
4401     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4402   fi
4403 else
4404   ac_cv_path_GREP=$GREP
4405 fi
4406
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4409 $as_echo "$ac_cv_path_GREP" >&6; }
4410  GREP="$ac_cv_path_GREP"
4411
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4414 $as_echo_n "checking for egrep... " >&6; }
4415 if ${ac_cv_path_EGREP+:} false; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4419    then ac_cv_path_EGREP="$GREP -E"
4420    else
4421      if test -z "$EGREP"; then
4422   ac_path_EGREP_found=false
4423   # Loop through the user's path and test for each of PROGNAME-LIST
4424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429     for ac_prog in egrep; do
4430     for ac_exec_ext in '' $ac_executable_extensions; do
4431       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4432       as_fn_executable_p "$ac_path_EGREP" || continue
4433 # Check for GNU ac_path_EGREP and select it if it is found.
4434   # Check for GNU $ac_path_EGREP
4435 case `"$ac_path_EGREP" --version 2>&1` in
4436 *GNU*)
4437   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4438 *)
4439   ac_count=0
4440   $as_echo_n 0123456789 >"conftest.in"
4441   while :
4442   do
4443     cat "conftest.in" "conftest.in" >"conftest.tmp"
4444     mv "conftest.tmp" "conftest.in"
4445     cp "conftest.in" "conftest.nl"
4446     $as_echo 'EGREP' >> "conftest.nl"
4447     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449     as_fn_arith $ac_count + 1 && ac_count=$as_val
4450     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4451       # Best one so far, save it but keep looking for a better one
4452       ac_cv_path_EGREP="$ac_path_EGREP"
4453       ac_path_EGREP_max=$ac_count
4454     fi
4455     # 10*(2^10) chars as input seems more than enough
4456     test $ac_count -gt 10 && break
4457   done
4458   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4459 esac
4460
4461       $ac_path_EGREP_found && break 3
4462     done
4463   done
4464   done
4465 IFS=$as_save_IFS
4466   if test -z "$ac_cv_path_EGREP"; then
4467     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4468   fi
4469 else
4470   ac_cv_path_EGREP=$EGREP
4471 fi
4472
4473    fi
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4476 $as_echo "$ac_cv_path_EGREP" >&6; }
4477  EGREP="$ac_cv_path_EGREP"
4478
4479
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4481 $as_echo_n "checking for ANSI C header files... " >&6; }
4482 if ${ac_cv_header_stdc+:} false; then :
4483   $as_echo_n "(cached) " >&6
4484 else
4485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h.  */
4487 #include <stdlib.h>
4488 #include <stdarg.h>
4489 #include <string.h>
4490 #include <float.h>
4491
4492 int
4493 main ()
4494 {
4495
4496   ;
4497   return 0;
4498 }
4499 _ACEOF
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501   ac_cv_header_stdc=yes
4502 else
4503   ac_cv_header_stdc=no
4504 fi
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506
4507 if test $ac_cv_header_stdc = yes; then
4508   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511 #include <string.h>
4512
4513 _ACEOF
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515   $EGREP "memchr" >/dev/null 2>&1; then :
4516
4517 else
4518   ac_cv_header_stdc=no
4519 fi
4520 rm -f conftest*
4521
4522 fi
4523
4524 if test $ac_cv_header_stdc = yes; then
4525   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h.  */
4528 #include <stdlib.h>
4529
4530 _ACEOF
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532   $EGREP "free" >/dev/null 2>&1; then :
4533
4534 else
4535   ac_cv_header_stdc=no
4536 fi
4537 rm -f conftest*
4538
4539 fi
4540
4541 if test $ac_cv_header_stdc = yes; then
4542   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4543   if test "$cross_compiling" = yes; then :
4544   :
4545 else
4546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548 #include <ctype.h>
4549 #include <stdlib.h>
4550 #if ((' ' & 0x0FF) == 0x020)
4551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4553 #else
4554 # define ISLOWER(c) \
4555                    (('a' <= (c) && (c) <= 'i') \
4556                      || ('j' <= (c) && (c) <= 'r') \
4557                      || ('s' <= (c) && (c) <= 'z'))
4558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4559 #endif
4560
4561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4562 int
4563 main ()
4564 {
4565   int i;
4566   for (i = 0; i < 256; i++)
4567     if (XOR (islower (i), ISLOWER (i))
4568         || toupper (i) != TOUPPER (i))
4569       return 2;
4570   return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_c_try_run "$LINENO"; then :
4574
4575 else
4576   ac_cv_header_stdc=no
4577 fi
4578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4579   conftest.$ac_objext conftest.beam conftest.$ac_ext
4580 fi
4581
4582 fi
4583 fi
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4585 $as_echo "$ac_cv_header_stdc" >&6; }
4586 if test $ac_cv_header_stdc = yes; then
4587
4588 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4589
4590 fi
4591
4592 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4594                   inttypes.h stdint.h unistd.h
4595 do :
4596   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4597 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4598 "
4599 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4600   cat >>confdefs.h <<_ACEOF
4601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4602 _ACEOF
4603
4604 fi
4605
4606 done
4607
4608
4609
4610   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4611 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4612   MINIX=yes
4613 else
4614   MINIX=
4615 fi
4616
4617
4618   if test "$MINIX" = yes; then
4619
4620 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4621
4622
4623 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4624
4625
4626 $as_echo "#define _MINIX 1" >>confdefs.h
4627
4628   fi
4629
4630
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4632 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4633 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638
4639 #         define __EXTENSIONS__ 1
4640           $ac_includes_default
4641 int
4642 main ()
4643 {
4644
4645   ;
4646   return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650   ac_cv_safe_to_define___extensions__=yes
4651 else
4652   ac_cv_safe_to_define___extensions__=no
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4657 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4658   test $ac_cv_safe_to_define___extensions__ = yes &&
4659     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4660
4661   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4662
4663   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4664
4665   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4666
4667   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4668
4669
4670 ac_ext=c
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675 if test -n "$ac_tool_prefix"; then
4676   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_CC+:} false; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if test -n "$CC"; then
4684   ac_cv_prog_CC="$CC" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691     for ac_exec_ext in '' $ac_executable_extensions; do
4692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698   done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 CC=$ac_cv_prog_CC
4704 if test -n "$CC"; then
4705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4706 $as_echo "$CC" >&6; }
4707 else
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712
4713 fi
4714 if test -z "$ac_cv_prog_CC"; then
4715   ac_ct_CC=$CC
4716   # Extract the first word of "gcc", so it can be a program name with args.
4717 set dummy gcc; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4721   $as_echo_n "(cached) " >&6
4722 else
4723   if test -n "$ac_ct_CC"; then
4724   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731     for ac_exec_ext in '' $ac_executable_extensions; do
4732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733     ac_cv_prog_ac_ct_CC="gcc"
4734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738   done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4744 if test -n "$ac_ct_CC"; then
4745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4746 $as_echo "$ac_ct_CC" >&6; }
4747 else
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752   if test "x$ac_ct_CC" = x; then
4753     CC=""
4754   else
4755     case $cross_compiling:$ac_tool_warned in
4756 yes:)
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759 ac_tool_warned=yes ;;
4760 esac
4761     CC=$ac_ct_CC
4762   fi
4763 else
4764   CC="$ac_cv_prog_CC"
4765 fi
4766
4767 if test -z "$CC"; then
4768           if test -n "$ac_tool_prefix"; then
4769     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4770 set dummy ${ac_tool_prefix}cc; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_prog_CC+:} false; then :
4774   $as_echo_n "(cached) " >&6
4775 else
4776   if test -n "$CC"; then
4777   ac_cv_prog_CC="$CC" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782   IFS=$as_save_IFS
4783   test -z "$as_dir" && as_dir=.
4784     for ac_exec_ext in '' $ac_executable_extensions; do
4785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786     ac_cv_prog_CC="${ac_tool_prefix}cc"
4787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788     break 2
4789   fi
4790 done
4791   done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 CC=$ac_cv_prog_CC
4797 if test -n "$CC"; then
4798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4799 $as_echo "$CC" >&6; }
4800 else
4801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805
4806   fi
4807 fi
4808 if test -z "$CC"; then
4809   # Extract the first word of "cc", so it can be a program name with args.
4810 set dummy cc; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if ${ac_cv_prog_CC+:} false; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   if test -n "$CC"; then
4817   ac_cv_prog_CC="$CC" # Let the user override the test.
4818 else
4819   ac_prog_rejected=no
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825     for ac_exec_ext in '' $ac_executable_extensions; do
4826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4828        ac_prog_rejected=yes
4829        continue
4830      fi
4831     ac_cv_prog_CC="cc"
4832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833     break 2
4834   fi
4835 done
4836   done
4837 IFS=$as_save_IFS
4838
4839 if test $ac_prog_rejected = yes; then
4840   # We found a bogon in the path, so make sure we never use it.
4841   set dummy $ac_cv_prog_CC
4842   shift
4843   if test $# != 0; then
4844     # We chose a different compiler from the bogus one.
4845     # However, it has the same basename, so the bogon will be chosen
4846     # first if we set CC to just the basename; use the full file name.
4847     shift
4848     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4849   fi
4850 fi
4851 fi
4852 fi
4853 CC=$ac_cv_prog_CC
4854 if test -n "$CC"; then
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4856 $as_echo "$CC" >&6; }
4857 else
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862
4863 fi
4864 if test -z "$CC"; then
4865   if test -n "$ac_tool_prefix"; then
4866   for ac_prog in cl.exe
4867   do
4868     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if ${ac_cv_prog_CC+:} false; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   if test -n "$CC"; then
4876   ac_cv_prog_CC="$CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881   IFS=$as_save_IFS
4882   test -z "$as_dir" && as_dir=.
4883     for ac_exec_ext in '' $ac_executable_extensions; do
4884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887     break 2
4888   fi
4889 done
4890   done
4891 IFS=$as_save_IFS
4892
4893 fi
4894 fi
4895 CC=$ac_cv_prog_CC
4896 if test -n "$CC"; then
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4898 $as_echo "$CC" >&6; }
4899 else
4900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903
4904
4905     test -n "$CC" && break
4906   done
4907 fi
4908 if test -z "$CC"; then
4909   ac_ct_CC=$CC
4910   for ac_prog in cl.exe
4911 do
4912   # Extract the first word of "$ac_prog", so it can be a program name with args.
4913 set dummy $ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   if test -n "$ac_ct_CC"; then
4920   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927     for ac_exec_ext in '' $ac_executable_extensions; do
4928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929     ac_cv_prog_ac_ct_CC="$ac_prog"
4930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934   done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4940 if test -n "$ac_ct_CC"; then
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4942 $as_echo "$ac_ct_CC" >&6; }
4943 else
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949   test -n "$ac_ct_CC" && break
4950 done
4951
4952   if test "x$ac_ct_CC" = x; then
4953     CC=""
4954   else
4955     case $cross_compiling:$ac_tool_warned in
4956 yes:)
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4959 ac_tool_warned=yes ;;
4960 esac
4961     CC=$ac_ct_CC
4962   fi
4963 fi
4964
4965 fi
4966
4967
4968 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4970 as_fn_error $? "no acceptable C compiler found in \$PATH
4971 See \`config.log' for more details" "$LINENO" 5; }
4972
4973 # Provide some information about the compiler.
4974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4975 set X $ac_compile
4976 ac_compiler=$2
4977 for ac_option in --version -v -V -qversion; do
4978   { { ac_try="$ac_compiler $ac_option >&5"
4979 case "(($ac_try" in
4980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981   *) ac_try_echo=$ac_try;;
4982 esac
4983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4984 $as_echo "$ac_try_echo"; } >&5
4985   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4986   ac_status=$?
4987   if test -s conftest.err; then
4988     sed '10a\
4989 ... rest of stderr output deleted ...
4990          10q' conftest.err >conftest.er1
4991     cat conftest.er1 >&5
4992   fi
4993   rm -f conftest.er1 conftest.err
4994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995   test $ac_status = 0; }
4996 done
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4999 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5000 if ${ac_cv_c_compiler_gnu+:} false; then :
5001   $as_echo_n "(cached) " >&6
5002 else
5003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h.  */
5005
5006 int
5007 main ()
5008 {
5009 #ifndef __GNUC__
5010        choke me
5011 #endif
5012
5013   ;
5014   return 0;
5015 }
5016 _ACEOF
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018   ac_compiler_gnu=yes
5019 else
5020   ac_compiler_gnu=no
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5024
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5027 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5028 if test $ac_compiler_gnu = yes; then
5029   GCC=yes
5030 else
5031   GCC=
5032 fi
5033 ac_test_CFLAGS=${CFLAGS+set}
5034 ac_save_CFLAGS=$CFLAGS
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5036 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5037 if ${ac_cv_prog_cc_g+:} false; then :
5038   $as_echo_n "(cached) " >&6
5039 else
5040   ac_save_c_werror_flag=$ac_c_werror_flag
5041    ac_c_werror_flag=yes
5042    ac_cv_prog_cc_g=no
5043    CFLAGS="-g"
5044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h.  */
5046
5047 int
5048 main ()
5049 {
5050
5051   ;
5052   return 0;
5053 }
5054 _ACEOF
5055 if ac_fn_c_try_compile "$LINENO"; then :
5056   ac_cv_prog_cc_g=yes
5057 else
5058   CFLAGS=""
5059       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h.  */
5061
5062 int
5063 main ()
5064 {
5065
5066   ;
5067   return 0;
5068 }
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071
5072 else
5073   ac_c_werror_flag=$ac_save_c_werror_flag
5074          CFLAGS="-g"
5075          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h.  */
5077
5078 int
5079 main ()
5080 {
5081
5082   ;
5083   return 0;
5084 }
5085 _ACEOF
5086 if ac_fn_c_try_compile "$LINENO"; then :
5087   ac_cv_prog_cc_g=yes
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 fi
5093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094    ac_c_werror_flag=$ac_save_c_werror_flag
5095 fi
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5097 $as_echo "$ac_cv_prog_cc_g" >&6; }
5098 if test "$ac_test_CFLAGS" = set; then
5099   CFLAGS=$ac_save_CFLAGS
5100 elif test $ac_cv_prog_cc_g = yes; then
5101   if test "$GCC" = yes; then
5102     CFLAGS="-g -O2"
5103   else
5104     CFLAGS="-g"
5105   fi
5106 else
5107   if test "$GCC" = yes; then
5108     CFLAGS="-O2"
5109   else
5110     CFLAGS=
5111   fi
5112 fi
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5114 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5115 if ${ac_cv_prog_cc_c89+:} false; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   ac_cv_prog_cc_c89=no
5119 ac_save_CC=$CC
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h.  */
5122 #include <stdarg.h>
5123 #include <stdio.h>
5124 struct stat;
5125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5126 struct buf { int x; };
5127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5128 static char *e (p, i)
5129      char **p;
5130      int i;
5131 {
5132   return p[i];
5133 }
5134 static char *f (char * (*g) (char **, int), char **p, ...)
5135 {
5136   char *s;
5137   va_list v;
5138   va_start (v,p);
5139   s = g (p, va_arg (v,int));
5140   va_end (v);
5141   return s;
5142 }
5143
5144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5145    function prototypes and stuff, but not '\xHH' hex character constants.
5146    These don't provoke an error unfortunately, instead are silently treated
5147    as 'x'.  The following induces an error, until -std is added to get
5148    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5149    array size at least.  It's necessary to write '\x00'==0 to get something
5150    that's true only with -std.  */
5151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5152
5153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5154    inside strings and character constants.  */
5155 #define FOO(x) 'x'
5156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5157
5158 int test (int i, double x);
5159 struct s1 {int (*f) (int a);};
5160 struct s2 {int (*f) (double a);};
5161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5162 int argc;
5163 char **argv;
5164 int
5165 main ()
5166 {
5167 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5168   ;
5169   return 0;
5170 }
5171 _ACEOF
5172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5173         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5174 do
5175   CC="$ac_save_CC $ac_arg"
5176   if ac_fn_c_try_compile "$LINENO"; then :
5177   ac_cv_prog_cc_c89=$ac_arg
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext
5180   test "x$ac_cv_prog_cc_c89" != "xno" && break
5181 done
5182 rm -f conftest.$ac_ext
5183 CC=$ac_save_CC
5184
5185 fi
5186 # AC_CACHE_VAL
5187 case "x$ac_cv_prog_cc_c89" in
5188   x)
5189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5190 $as_echo "none needed" >&6; } ;;
5191   xno)
5192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5193 $as_echo "unsupported" >&6; } ;;
5194   *)
5195     CC="$CC $ac_cv_prog_cc_c89"
5196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5198 esac
5199 if test "x$ac_cv_prog_cc_c89" != xno; then :
5200
5201 fi
5202
5203 ac_ext=c
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208
5209 ac_ext=c
5210 ac_cpp='$CPP $CPPFLAGS'
5211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5215 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5216 if ${am_cv_prog_cc_c_o+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h.  */
5221
5222 int
5223 main ()
5224 {
5225
5226   ;
5227   return 0;
5228 }
5229 _ACEOF
5230   # Make sure it works both with $CC and with simple cc.
5231   # Following AC_PROG_CC_C_O, we do the test twice because some
5232   # compilers refuse to overwrite an existing .o file with -o,
5233   # though they will create one.
5234   am_cv_prog_cc_c_o=yes
5235   for am_i in 1 2; do
5236     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5237    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5238    ac_status=$?
5239    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240    (exit $ac_status); } \
5241          && test -f conftest2.$ac_objext; then
5242       : OK
5243     else
5244       am_cv_prog_cc_c_o=no
5245       break
5246     fi
5247   done
5248   rm -f core conftest*
5249   unset am_i
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5252 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5253 if test "$am_cv_prog_cc_c_o" != yes; then
5254    # Losing compiler, so override with the script.
5255    # FIXME: It is wrong to rewrite CC.
5256    # But if we don't then we get into trouble of one sort or another.
5257    # A longer-term fix would be to have automake use am__CC in this case,
5258    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5259    CC="$am_aux_dir/compile $CC"
5260 fi
5261 ac_ext=c
5262 ac_cpp='$CPP $CPPFLAGS'
5263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266
5267
5268 depcc="$CC"   am_compiler_list=
5269
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5271 $as_echo_n "checking dependency style of $depcc... " >&6; }
5272 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5273   $as_echo_n "(cached) " >&6
5274 else
5275   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5276   # We make a subdir and do the tests there.  Otherwise we can end up
5277   # making bogus files that we don't know about and never remove.  For
5278   # instance it was reported that on HP-UX the gcc test will end up
5279   # making a dummy file named 'D' -- because '-MD' means "put the output
5280   # in D".
5281   rm -rf conftest.dir
5282   mkdir conftest.dir
5283   # Copy depcomp to subdir because otherwise we won't find it if we're
5284   # using a relative directory.
5285   cp "$am_depcomp" conftest.dir
5286   cd conftest.dir
5287   # We will build objects and dependencies in a subdirectory because
5288   # it helps to detect inapplicable dependency modes.  For instance
5289   # both Tru64's cc and ICC support -MD to output dependencies as a
5290   # side effect of compilation, but ICC will put the dependencies in
5291   # the current directory while Tru64 will put them in the object
5292   # directory.
5293   mkdir sub
5294
5295   am_cv_CC_dependencies_compiler_type=none
5296   if test "$am_compiler_list" = ""; then
5297      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5298   fi
5299   am__universal=false
5300   case " $depcc " in #(
5301      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5302      esac
5303
5304   for depmode in $am_compiler_list; do
5305     # Setup a source with many dependencies, because some compilers
5306     # like to wrap large dependency lists on column 80 (with \), and
5307     # we should not choose a depcomp mode which is confused by this.
5308     #
5309     # We need to recreate these files for each test, as the compiler may
5310     # overwrite some of them when testing with obscure command lines.
5311     # This happens at least with the AIX C compiler.
5312     : > sub/conftest.c
5313     for i in 1 2 3 4 5 6; do
5314       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5315       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5316       # Solaris 10 /bin/sh.
5317       echo '/* dummy */' > sub/conftst$i.h
5318     done
5319     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5320
5321     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5322     # mode.  It turns out that the SunPro C++ compiler does not properly
5323     # handle '-M -o', and we need to detect this.  Also, some Intel
5324     # versions had trouble with output in subdirs.
5325     am__obj=sub/conftest.${OBJEXT-o}
5326     am__minus_obj="-o $am__obj"
5327     case $depmode in
5328     gcc)
5329       # This depmode causes a compiler race in universal mode.
5330       test "$am__universal" = false || continue
5331       ;;
5332     nosideeffect)
5333       # After this tag, mechanisms are not by side-effect, so they'll
5334       # only be used when explicitly requested.
5335       if test "x$enable_dependency_tracking" = xyes; then
5336         continue
5337       else
5338         break
5339       fi
5340       ;;
5341     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5342       # This compiler won't grok '-c -o', but also, the minuso test has
5343       # not run yet.  These depmodes are late enough in the game, and
5344       # so weak that their functioning should not be impacted.
5345       am__obj=conftest.${OBJEXT-o}
5346       am__minus_obj=
5347       ;;
5348     none) break ;;
5349     esac
5350     if depmode=$depmode \
5351        source=sub/conftest.c object=$am__obj \
5352        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5353        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5354          >/dev/null 2>conftest.err &&
5355        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5356        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5357        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5358        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5359       # icc doesn't choke on unknown options, it will just issue warnings
5360       # or remarks (even with -Werror).  So we grep stderr for any message
5361       # that says an option was ignored or not supported.
5362       # When given -MP, icc 7.0 and 7.1 complain thusly:
5363       #   icc: Command line warning: ignoring option '-M'; no argument required
5364       # The diagnosis changed in icc 8.0:
5365       #   icc: Command line remark: option '-MP' not supported
5366       if (grep 'ignoring option' conftest.err ||
5367           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5368         am_cv_CC_dependencies_compiler_type=$depmode
5369         break
5370       fi
5371     fi
5372   done
5373
5374   cd ..
5375   rm -rf conftest.dir
5376 else
5377   am_cv_CC_dependencies_compiler_type=none
5378 fi
5379
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5382 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5383 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5384
5385  if
5386   test "x$enable_dependency_tracking" != xno \
5387   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5388   am__fastdepCC_TRUE=
5389   am__fastdepCC_FALSE='#'
5390 else
5391   am__fastdepCC_TRUE='#'
5392   am__fastdepCC_FALSE=
5393 fi
5394
5395
5396 ac_ext=cpp
5397 ac_cpp='$CXXCPP $CPPFLAGS'
5398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5401 if test -z "$CXX"; then
5402   if test -n "$CCC"; then
5403     CXX=$CCC
5404   else
5405     if test -n "$ac_tool_prefix"; then
5406   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5407   do
5408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_CXX+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   if test -n "$CXX"; then
5416   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423     for ac_exec_ext in '' $ac_executable_extensions; do
5424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430   done
5431 IFS=$as_save_IFS
5432
5433 fi
5434 fi
5435 CXX=$ac_cv_prog_CXX
5436 if test -n "$CXX"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5438 $as_echo "$CXX" >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443
5444
5445     test -n "$CXX" && break
5446   done
5447 fi
5448 if test -z "$CXX"; then
5449   ac_ct_CXX=$CXX
5450   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5451 do
5452   # Extract the first word of "$ac_prog", so it can be a program name with args.
5453 set dummy $ac_prog; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   if test -n "$ac_ct_CXX"; then
5460   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469     ac_cv_prog_ac_ct_CXX="$ac_prog"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5480 if test -n "$ac_ct_CXX"; then
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5482 $as_echo "$ac_ct_CXX" >&6; }
5483 else
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488
5489   test -n "$ac_ct_CXX" && break
5490 done
5491
5492   if test "x$ac_ct_CXX" = x; then
5493     CXX="g++"
5494   else
5495     case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501     CXX=$ac_ct_CXX
5502   fi
5503 fi
5504
5505   fi
5506 fi
5507 # Provide some information about the compiler.
5508 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5509 set X $ac_compile
5510 ac_compiler=$2
5511 for ac_option in --version -v -V -qversion; do
5512   { { ac_try="$ac_compiler $ac_option >&5"
5513 case "(($ac_try" in
5514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515   *) ac_try_echo=$ac_try;;
5516 esac
5517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5518 $as_echo "$ac_try_echo"; } >&5
5519   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5520   ac_status=$?
5521   if test -s conftest.err; then
5522     sed '10a\
5523 ... rest of stderr output deleted ...
5524          10q' conftest.err >conftest.er1
5525     cat conftest.er1 >&5
5526   fi
5527   rm -f conftest.er1 conftest.err
5528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5529   test $ac_status = 0; }
5530 done
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5533 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5534 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h.  */
5539
5540 int
5541 main ()
5542 {
5543 #ifndef __GNUC__
5544        choke me
5545 #endif
5546
5547   ;
5548   return 0;
5549 }
5550 _ACEOF
5551 if ac_fn_cxx_try_compile "$LINENO"; then :
5552   ac_compiler_gnu=yes
5553 else
5554   ac_compiler_gnu=no
5555 fi
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5558
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5561 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5562 if test $ac_compiler_gnu = yes; then
5563   GXX=yes
5564 else
5565   GXX=
5566 fi
5567 ac_test_CXXFLAGS=${CXXFLAGS+set}
5568 ac_save_CXXFLAGS=$CXXFLAGS
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5570 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5571 if ${ac_cv_prog_cxx_g+:} false; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5575    ac_cxx_werror_flag=yes
5576    ac_cv_prog_cxx_g=no
5577    CXXFLAGS="-g"
5578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h.  */
5580
5581 int
5582 main ()
5583 {
5584
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 if ac_fn_cxx_try_compile "$LINENO"; then :
5590   ac_cv_prog_cxx_g=yes
5591 else
5592   CXXFLAGS=""
5593       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h.  */
5595
5596 int
5597 main ()
5598 {
5599
5600   ;
5601   return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_cxx_try_compile "$LINENO"; then :
5605
5606 else
5607   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5608          CXXFLAGS="-g"
5609          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h.  */
5611
5612 int
5613 main ()
5614 {
5615
5616   ;
5617   return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_cxx_try_compile "$LINENO"; then :
5621   ac_cv_prog_cxx_g=yes
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5631 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5632 if test "$ac_test_CXXFLAGS" = set; then
5633   CXXFLAGS=$ac_save_CXXFLAGS
5634 elif test $ac_cv_prog_cxx_g = yes; then
5635   if test "$GXX" = yes; then
5636     CXXFLAGS="-g -O2"
5637   else
5638     CXXFLAGS="-g"
5639   fi
5640 else
5641   if test "$GXX" = yes; then
5642     CXXFLAGS="-O2"
5643   else
5644     CXXFLAGS=
5645   fi
5646 fi
5647 ac_ext=c
5648 ac_cpp='$CPP $CPPFLAGS'
5649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652
5653 depcc="$CXX"  am_compiler_list=
5654
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5656 $as_echo_n "checking dependency style of $depcc... " >&6; }
5657 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5658   $as_echo_n "(cached) " >&6
5659 else
5660   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5661   # We make a subdir and do the tests there.  Otherwise we can end up
5662   # making bogus files that we don't know about and never remove.  For
5663   # instance it was reported that on HP-UX the gcc test will end up
5664   # making a dummy file named 'D' -- because '-MD' means "put the output
5665   # in D".
5666   rm -rf conftest.dir
5667   mkdir conftest.dir
5668   # Copy depcomp to subdir because otherwise we won't find it if we're
5669   # using a relative directory.
5670   cp "$am_depcomp" conftest.dir
5671   cd conftest.dir
5672   # We will build objects and dependencies in a subdirectory because
5673   # it helps to detect inapplicable dependency modes.  For instance
5674   # both Tru64's cc and ICC support -MD to output dependencies as a
5675   # side effect of compilation, but ICC will put the dependencies in
5676   # the current directory while Tru64 will put them in the object
5677   # directory.
5678   mkdir sub
5679
5680   am_cv_CXX_dependencies_compiler_type=none
5681   if test "$am_compiler_list" = ""; then
5682      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5683   fi
5684   am__universal=false
5685   case " $depcc " in #(
5686      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5687      esac
5688
5689   for depmode in $am_compiler_list; do
5690     # Setup a source with many dependencies, because some compilers
5691     # like to wrap large dependency lists on column 80 (with \), and
5692     # we should not choose a depcomp mode which is confused by this.
5693     #
5694     # We need to recreate these files for each test, as the compiler may
5695     # overwrite some of them when testing with obscure command lines.
5696     # This happens at least with the AIX C compiler.
5697     : > sub/conftest.c
5698     for i in 1 2 3 4 5 6; do
5699       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5700       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5701       # Solaris 10 /bin/sh.
5702       echo '/* dummy */' > sub/conftst$i.h
5703     done
5704     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5705
5706     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5707     # mode.  It turns out that the SunPro C++ compiler does not properly
5708     # handle '-M -o', and we need to detect this.  Also, some Intel
5709     # versions had trouble with output in subdirs.
5710     am__obj=sub/conftest.${OBJEXT-o}
5711     am__minus_obj="-o $am__obj"
5712     case $depmode in
5713     gcc)
5714       # This depmode causes a compiler race in universal mode.
5715       test "$am__universal" = false || continue
5716       ;;
5717     nosideeffect)
5718       # After this tag, mechanisms are not by side-effect, so they'll
5719       # only be used when explicitly requested.
5720       if test "x$enable_dependency_tracking" = xyes; then
5721         continue
5722       else
5723         break
5724       fi
5725       ;;
5726     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5727       # This compiler won't grok '-c -o', but also, the minuso test has
5728       # not run yet.  These depmodes are late enough in the game, and
5729       # so weak that their functioning should not be impacted.
5730       am__obj=conftest.${OBJEXT-o}
5731       am__minus_obj=
5732       ;;
5733     none) break ;;
5734     esac
5735     if depmode=$depmode \
5736        source=sub/conftest.c object=$am__obj \
5737        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5738        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5739          >/dev/null 2>conftest.err &&
5740        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5741        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5742        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5743        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5744       # icc doesn't choke on unknown options, it will just issue warnings
5745       # or remarks (even with -Werror).  So we grep stderr for any message
5746       # that says an option was ignored or not supported.
5747       # When given -MP, icc 7.0 and 7.1 complain thusly:
5748       #   icc: Command line warning: ignoring option '-M'; no argument required
5749       # The diagnosis changed in icc 8.0:
5750       #   icc: Command line remark: option '-MP' not supported
5751       if (grep 'ignoring option' conftest.err ||
5752           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5753         am_cv_CXX_dependencies_compiler_type=$depmode
5754         break
5755       fi
5756     fi
5757   done
5758
5759   cd ..
5760   rm -rf conftest.dir
5761 else
5762   am_cv_CXX_dependencies_compiler_type=none
5763 fi
5764
5765 fi
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5767 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5768 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5769
5770  if
5771   test "x$enable_dependency_tracking" != xno \
5772   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5773   am__fastdepCXX_TRUE=
5774   am__fastdepCXX_FALSE='#'
5775 else
5776   am__fastdepCXX_TRUE='#'
5777   am__fastdepCXX_FALSE=
5778 fi
5779
5780
5781
5782 if test -n "$ac_tool_prefix"; then
5783   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_RANLIB+:} false; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   if test -n "$RANLIB"; then
5791   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805   done
5806 IFS=$as_save_IFS
5807
5808 fi
5809 fi
5810 RANLIB=$ac_cv_prog_RANLIB
5811 if test -n "$RANLIB"; then
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5813 $as_echo "$RANLIB" >&6; }
5814 else
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818
5819
5820 fi
5821 if test -z "$ac_cv_prog_RANLIB"; then
5822   ac_ct_RANLIB=$RANLIB
5823   # Extract the first word of "ranlib", so it can be a program name with args.
5824 set dummy ranlib; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830   if test -n "$ac_ct_RANLIB"; then
5831   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838     for ac_exec_ext in '' $ac_executable_extensions; do
5839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840     ac_cv_prog_ac_ct_RANLIB="ranlib"
5841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845   done
5846 IFS=$as_save_IFS
5847
5848 fi
5849 fi
5850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5851 if test -n "$ac_ct_RANLIB"; then
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5853 $as_echo "$ac_ct_RANLIB" >&6; }
5854 else
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857 fi
5858
5859   if test "x$ac_ct_RANLIB" = x; then
5860     RANLIB=":"
5861   else
5862     case $cross_compiling:$ac_tool_warned in
5863 yes:)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866 ac_tool_warned=yes ;;
5867 esac
5868     RANLIB=$ac_ct_RANLIB
5869   fi
5870 else
5871   RANLIB="$ac_cv_prog_RANLIB"
5872 fi
5873
5874 if test -n "$ac_tool_prefix"; then
5875   for ac_prog in ar lib "link -lib"
5876   do
5877     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_AR+:} false; then :
5882   $as_echo_n "(cached) " >&6
5883 else
5884   if test -n "$AR"; then
5885   ac_cv_prog_AR="$AR" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892     for ac_exec_ext in '' $ac_executable_extensions; do
5893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899   done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 AR=$ac_cv_prog_AR
5905 if test -n "$AR"; then
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5907 $as_echo "$AR" >&6; }
5908 else
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913
5914     test -n "$AR" && break
5915   done
5916 fi
5917 if test -z "$AR"; then
5918   ac_ct_AR=$AR
5919   for ac_prog in ar lib "link -lib"
5920 do
5921   # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5926   $as_echo_n "(cached) " >&6
5927 else
5928   if test -n "$ac_ct_AR"; then
5929   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936     for ac_exec_ext in '' $ac_executable_extensions; do
5937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938     ac_cv_prog_ac_ct_AR="$ac_prog"
5939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943   done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5949 if test -n "$ac_ct_AR"; then
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5951 $as_echo "$ac_ct_AR" >&6; }
5952 else
5953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5955 fi
5956
5957
5958   test -n "$ac_ct_AR" && break
5959 done
5960
5961   if test "x$ac_ct_AR" = x; then
5962     AR="false"
5963   else
5964     case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970     AR=$ac_ct_AR
5971   fi
5972 fi
5973
5974 : ${AR=ar}
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5977 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5978 if ${am_cv_ar_interface+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   ac_ext=c
5982 ac_cpp='$CPP $CPPFLAGS'
5983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986
5987    am_cv_ar_interface=ar
5988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h.  */
5990 int some_variable = 0;
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"; then :
5993   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5994       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5995   (eval $am_ar_try) 2>&5
5996   ac_status=$?
5997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998   test $ac_status = 0; }
5999       if test "$ac_status" -eq 0; then
6000         am_cv_ar_interface=ar
6001       else
6002         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6003         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6004   (eval $am_ar_try) 2>&5
6005   ac_status=$?
6006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007   test $ac_status = 0; }
6008         if test "$ac_status" -eq 0; then
6009           am_cv_ar_interface=lib
6010         else
6011           am_cv_ar_interface=unknown
6012         fi
6013       fi
6014       rm -f conftest.lib libconftest.a
6015
6016 fi
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018    ac_ext=c
6019 ac_cpp='$CPP $CPPFLAGS'
6020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6026 $as_echo "$am_cv_ar_interface" >&6; }
6027
6028 case $am_cv_ar_interface in
6029 ar)
6030   ;;
6031 lib)
6032   # Microsoft lib, so override with the ar-lib wrapper script.
6033   # FIXME: It is wrong to rewrite AR.
6034   # But if we don't then we get into trouble of one sort or another.
6035   # A longer-term fix would be to have automake use am__AR in this case,
6036   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6037   # similar.
6038   AR="$am_aux_dir/ar-lib $AR"
6039   ;;
6040 unknown)
6041   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6042   ;;
6043 esac
6044
6045
6046   for ac_prog in bison
6047 do
6048   # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_BISON+:} false; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   if test -n "$BISON"; then
6056   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063     for ac_exec_ext in '' $ac_executable_extensions; do
6064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065     ac_cv_prog_BISON="$ac_prog"
6066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070   done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 BISON=$ac_cv_prog_BISON
6076 if test -n "$BISON"; then
6077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6078 $as_echo "$BISON" >&6; }
6079 else
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085   test -n "$BISON" && break
6086 done
6087
6088   if test -z "$BISON"; then
6089     ac_verc_fail=yes
6090   else
6091     cat >conftest.y <<_ACEOF
6092 %require "3.0.4"
6093 %%
6094 exp:
6095 _ACEOF
6096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison 3.0.4 or newer" >&5
6097 $as_echo_n "checking for bison 3.0.4 or newer... " >&6; }
6098     ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6099     : ${ac_prog_version:='v. ?.??'}
6100     if $BISON conftest.y -o conftest.c 2>/dev/null; then
6101       ac_prog_version="$ac_prog_version, ok"
6102       ac_verc_fail=no
6103     else
6104       ac_prog_version="$ac_prog_version, bad"
6105       ac_verc_fail=yes
6106     fi
6107     rm -f conftest.y conftest.c
6108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
6109 $as_echo "$ac_prog_version" >&6; }
6110   fi
6111   if test $ac_verc_fail = yes; then
6112     BISON=:
6113   fi
6114
6115
6116 if test x$BISON = "x:"; then
6117   as_fn_error $? "Building gprofng requires bison 3.0.4 or later." "$LINENO" 5
6118 fi
6119
6120 # Check whether --enable-shared was given.
6121 if test "${enable_shared+set}" = set; then :
6122   enableval=$enable_shared; p=${PACKAGE-default}
6123     case $enableval in
6124     yes) enable_shared=yes ;;
6125     no) enable_shared=no ;;
6126     *)
6127       enable_shared=no
6128       # Look at the argument we got.  We use all the common list separators.
6129       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6130       for pkg in $enableval; do
6131         IFS="$lt_save_ifs"
6132         if test "X$pkg" = "X$p"; then
6133           enable_shared=yes
6134         fi
6135       done
6136       IFS="$lt_save_ifs"
6137       ;;
6138     esac
6139 else
6140   enable_shared=no
6141 fi
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 case `pwd` in
6152   *\ * | *\     *)
6153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6154 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6155 esac
6156
6157
6158
6159 macro_version='2.2.7a'
6160 macro_revision='1.3134'
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 ltmain="$ac_aux_dir/ltmain.sh"
6175
6176 # Backslashify metacharacters that are still active within
6177 # double-quoted strings.
6178 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6179
6180 # Same as above, but do not quote variable references.
6181 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6182
6183 # Sed substitution to delay expansion of an escaped shell variable in a
6184 # double_quote_subst'ed string.
6185 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6186
6187 # Sed substitution to delay expansion of an escaped single quote.
6188 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6189
6190 # Sed substitution to avoid accidental globbing in evaled expressions
6191 no_glob_subst='s/\*/\\\*/g'
6192
6193 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6194 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6195 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6198 $as_echo_n "checking how to print strings... " >&6; }
6199 # Test print first, because it will be a builtin if present.
6200 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6201    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6202   ECHO='print -r --'
6203 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6204   ECHO='printf %s\n'
6205 else
6206   # Use this function as a fallback that always works.
6207   func_fallback_echo ()
6208   {
6209     eval 'cat <<_LTECHO_EOF
6210 $1
6211 _LTECHO_EOF'
6212   }
6213   ECHO='func_fallback_echo'
6214 fi
6215
6216 # func_echo_all arg...
6217 # Invoke $ECHO with all args, space-separated.
6218 func_echo_all ()
6219 {
6220     $ECHO ""
6221 }
6222
6223 case "$ECHO" in
6224   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6225 $as_echo "printf" >&6; } ;;
6226   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6227 $as_echo "print -r" >&6; } ;;
6228   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6229 $as_echo "cat" >&6; } ;;
6230 esac
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6246 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6247 if ${ac_cv_path_SED+:} false; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6251      for ac_i in 1 2 3 4 5 6 7; do
6252        ac_script="$ac_script$as_nl$ac_script"
6253      done
6254      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6255      { ac_script=; unset ac_script;}
6256      if test -z "$SED"; then
6257   ac_path_SED_found=false
6258   # Loop through the user's path and test for each of PROGNAME-LIST
6259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264     for ac_prog in sed gsed; do
6265     for ac_exec_ext in '' $ac_executable_extensions; do
6266       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6267       as_fn_executable_p "$ac_path_SED" || continue
6268 # Check for GNU ac_path_SED and select it if it is found.
6269   # Check for GNU $ac_path_SED
6270 case `"$ac_path_SED" --version 2>&1` in
6271 *GNU*)
6272   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6273 *)
6274   ac_count=0
6275   $as_echo_n 0123456789 >"conftest.in"
6276   while :
6277   do
6278     cat "conftest.in" "conftest.in" >"conftest.tmp"
6279     mv "conftest.tmp" "conftest.in"
6280     cp "conftest.in" "conftest.nl"
6281     $as_echo '' >> "conftest.nl"
6282     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6283     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6284     as_fn_arith $ac_count + 1 && ac_count=$as_val
6285     if test $ac_count -gt ${ac_path_SED_max-0}; then
6286       # Best one so far, save it but keep looking for a better one
6287       ac_cv_path_SED="$ac_path_SED"
6288       ac_path_SED_max=$ac_count
6289     fi
6290     # 10*(2^10) chars as input seems more than enough
6291     test $ac_count -gt 10 && break
6292   done
6293   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6294 esac
6295
6296       $ac_path_SED_found && break 3
6297     done
6298   done
6299   done
6300 IFS=$as_save_IFS
6301   if test -z "$ac_cv_path_SED"; then
6302     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6303   fi
6304 else
6305   ac_cv_path_SED=$SED
6306 fi
6307
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6310 $as_echo "$ac_cv_path_SED" >&6; }
6311  SED="$ac_cv_path_SED"
6312   rm -f conftest.sed
6313
6314 test -z "$SED" && SED=sed
6315 Xsed="$SED -e 1s/^X//"
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6328 $as_echo_n "checking for fgrep... " >&6; }
6329 if ${ac_cv_path_FGREP+:} false; then :
6330   $as_echo_n "(cached) " >&6
6331 else
6332   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6333    then ac_cv_path_FGREP="$GREP -F"
6334    else
6335      if test -z "$FGREP"; then
6336   ac_path_FGREP_found=false
6337   # Loop through the user's path and test for each of PROGNAME-LIST
6338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343     for ac_prog in fgrep; do
6344     for ac_exec_ext in '' $ac_executable_extensions; do
6345       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6346       as_fn_executable_p "$ac_path_FGREP" || continue
6347 # Check for GNU ac_path_FGREP and select it if it is found.
6348   # Check for GNU $ac_path_FGREP
6349 case `"$ac_path_FGREP" --version 2>&1` in
6350 *GNU*)
6351   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6352 *)
6353   ac_count=0
6354   $as_echo_n 0123456789 >"conftest.in"
6355   while :
6356   do
6357     cat "conftest.in" "conftest.in" >"conftest.tmp"
6358     mv "conftest.tmp" "conftest.in"
6359     cp "conftest.in" "conftest.nl"
6360     $as_echo 'FGREP' >> "conftest.nl"
6361     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6362     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6363     as_fn_arith $ac_count + 1 && ac_count=$as_val
6364     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6365       # Best one so far, save it but keep looking for a better one
6366       ac_cv_path_FGREP="$ac_path_FGREP"
6367       ac_path_FGREP_max=$ac_count
6368     fi
6369     # 10*(2^10) chars as input seems more than enough
6370     test $ac_count -gt 10 && break
6371   done
6372   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6373 esac
6374
6375       $ac_path_FGREP_found && break 3
6376     done
6377   done
6378   done
6379 IFS=$as_save_IFS
6380   if test -z "$ac_cv_path_FGREP"; then
6381     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6382   fi
6383 else
6384   ac_cv_path_FGREP=$FGREP
6385 fi
6386
6387    fi
6388 fi
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6390 $as_echo "$ac_cv_path_FGREP" >&6; }
6391  FGREP="$ac_cv_path_FGREP"
6392
6393
6394 test -z "$GREP" && GREP=grep
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414 # Check whether --with-gnu-ld was given.
6415 if test "${with_gnu_ld+set}" = set; then :
6416   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6417 else
6418   with_gnu_ld=no
6419 fi
6420
6421 ac_prog=ld
6422 if test "$GCC" = yes; then
6423   # Check if gcc -print-prog-name=ld gives a path.
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6425 $as_echo_n "checking for ld used by $CC... " >&6; }
6426   case $host in
6427   *-*-mingw*)
6428     # gcc leaves a trailing carriage return which upsets mingw
6429     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6430   *)
6431     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6432   esac
6433   case $ac_prog in
6434     # Accept absolute paths.
6435     [\\/]* | ?:[\\/]*)
6436       re_direlt='/[^/][^/]*/\.\./'
6437       # Canonicalize the pathname of ld
6438       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6439       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6440         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6441       done
6442       test -z "$LD" && LD="$ac_prog"
6443       ;;
6444   "")
6445     # If it fails, then pretend we aren't using GCC.
6446     ac_prog=ld
6447     ;;
6448   *)
6449     # If it is relative, then search for the first ld in PATH.
6450     with_gnu_ld=unknown
6451     ;;
6452   esac
6453 elif test "$with_gnu_ld" = yes; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6455 $as_echo_n "checking for GNU ld... " >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6458 $as_echo_n "checking for non-GNU ld... " >&6; }
6459 fi
6460 if ${lt_cv_path_LD+:} false; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   if test -z "$LD"; then
6464   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6465   for ac_dir in $PATH; do
6466     IFS="$lt_save_ifs"
6467     test -z "$ac_dir" && ac_dir=.
6468     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6469       lt_cv_path_LD="$ac_dir/$ac_prog"
6470       # Check to see if the program is GNU ld.  I'd rather use --version,
6471       # but apparently some variants of GNU ld only accept -v.
6472       # Break only if it was the GNU/non-GNU ld that we prefer.
6473       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6474       *GNU* | *'with BFD'*)
6475         test "$with_gnu_ld" != no && break
6476         ;;
6477       *)
6478         test "$with_gnu_ld" != yes && break
6479         ;;
6480       esac
6481     fi
6482   done
6483   IFS="$lt_save_ifs"
6484 else
6485   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6486 fi
6487 fi
6488
6489 LD="$lt_cv_path_LD"
6490 if test -n "$LD"; then
6491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6492 $as_echo "$LD" >&6; }
6493 else
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6496 fi
6497 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6499 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6500 if ${lt_cv_prog_gnu_ld+:} false; then :
6501   $as_echo_n "(cached) " >&6
6502 else
6503   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6504 case `$LD -v 2>&1 </dev/null` in
6505 *GNU* | *'with BFD'*)
6506   lt_cv_prog_gnu_ld=yes
6507   ;;
6508 *)
6509   lt_cv_prog_gnu_ld=no
6510   ;;
6511 esac
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6514 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6515 with_gnu_ld=$lt_cv_prog_gnu_ld
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6526 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6527 if ${lt_cv_path_NM+:} false; then :
6528   $as_echo_n "(cached) " >&6
6529 else
6530   if test -n "$NM"; then
6531    # Let the user override the nm to test.
6532    lt_nm_to_check="$NM"
6533  else
6534    lt_nm_to_check="${ac_tool_prefix}nm"
6535    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6536      lt_nm_to_check="$lt_nm_to_check nm"
6537    fi
6538  fi
6539  for lt_tmp_nm in "$lt_nm_to_check"; do
6540    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6541    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6542      IFS="$lt_save_ifs"
6543      test -z "$ac_dir" && ac_dir=.
6544      # Strip out any user-provided options from the nm to test twice,
6545      # the first time to test to see if nm (rather than its options) has
6546      # an explicit path, the second time to yield a file which can be
6547      # nm'ed itself.
6548      tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6549      case "$tmp_nm_path" in
6550      */*|*\\*) tmp_nm="$lt_tmp_nm";;
6551      *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6552      esac
6553      tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6554      if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6555        # Check to see if the nm accepts a BSD-compat flag.
6556        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6557        #   nm: unknown option "B" ignored
6558        case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6559        *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6560          break
6561          ;;
6562        *)
6563          case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6564          *$tmp_nm*)
6565            lt_cv_path_NM="$tmp_nm -p"
6566            break
6567            ;;
6568          *)
6569            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6570            continue # so that we can try to find one that supports BSD flags
6571            ;;
6572          esac
6573          ;;
6574        esac
6575      fi
6576    done
6577    IFS="$lt_save_ifs"
6578  done
6579  : ${lt_cv_path_NM=no}
6580 fi
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6582 $as_echo "$lt_cv_path_NM" >&6; }
6583 if test "$lt_cv_path_NM" != "no"; then
6584   NM="$lt_cv_path_NM"
6585 else
6586   # Didn't find any BSD compatible name lister, look for dumpbin.
6587   if test -n "$DUMPBIN"; then :
6588     # Let the user override the test.
6589   else
6590     if test -n "$ac_tool_prefix"; then
6591   for ac_prog in dumpbin "link -dump"
6592   do
6593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_DUMPBIN+:} false; then :
6598   $as_echo_n "(cached) " >&6
6599 else
6600   if test -n "$DUMPBIN"; then
6601   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608     for ac_exec_ext in '' $ac_executable_extensions; do
6609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615   done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 DUMPBIN=$ac_cv_prog_DUMPBIN
6621 if test -n "$DUMPBIN"; then
6622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6623 $as_echo "$DUMPBIN" >&6; }
6624 else
6625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629
6630     test -n "$DUMPBIN" && break
6631   done
6632 fi
6633 if test -z "$DUMPBIN"; then
6634   ac_ct_DUMPBIN=$DUMPBIN
6635   for ac_prog in dumpbin "link -dump"
6636 do
6637   # Extract the first word of "$ac_prog", so it can be a program name with args.
6638 set dummy $ac_prog; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   if test -n "$ac_ct_DUMPBIN"; then
6645   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652     for ac_exec_ext in '' $ac_executable_extensions; do
6653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659   done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6665 if test -n "$ac_ct_DUMPBIN"; then
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6667 $as_echo "$ac_ct_DUMPBIN" >&6; }
6668 else
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673
6674   test -n "$ac_ct_DUMPBIN" && break
6675 done
6676
6677   if test "x$ac_ct_DUMPBIN" = x; then
6678     DUMPBIN=":"
6679   else
6680     case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686     DUMPBIN=$ac_ct_DUMPBIN
6687   fi
6688 fi
6689
6690     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6691     *COFF*)
6692       DUMPBIN="$DUMPBIN -symbols"
6693       ;;
6694     *)
6695       DUMPBIN=:
6696       ;;
6697     esac
6698   fi
6699
6700   if test "$DUMPBIN" != ":"; then
6701     NM="$DUMPBIN"
6702   fi
6703 fi
6704 test -z "$NM" && NM=nm
6705
6706
6707
6708
6709
6710
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6712 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6713 if ${lt_cv_nm_interface+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   lt_cv_nm_interface="BSD nm"
6717   echo "int some_variable = 0;" > conftest.$ac_ext
6718   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6719   (eval "$ac_compile" 2>conftest.err)
6720   cat conftest.err >&5
6721   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6722   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6723   cat conftest.err >&5
6724   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6725   cat conftest.out >&5
6726   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6727     lt_cv_nm_interface="MS dumpbin"
6728   fi
6729   rm -f conftest*
6730 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6732 $as_echo "$lt_cv_nm_interface" >&6; }
6733
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6735 $as_echo_n "checking whether ln -s works... " >&6; }
6736 LN_S=$as_ln_s
6737 if test "$LN_S" = "ln -s"; then
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6739 $as_echo "yes" >&6; }
6740 else
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6742 $as_echo "no, using $LN_S" >&6; }
6743 fi
6744
6745 # find the maximum length of command line arguments
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6747 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6748 if ${lt_cv_sys_max_cmd_len+:} false; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751     i=0
6752   teststring="ABCD"
6753
6754   case $build_os in
6755   msdosdjgpp*)
6756     # On DJGPP, this test can blow up pretty badly due to problems in libc
6757     # (any single argument exceeding 2000 bytes causes a buffer overrun
6758     # during glob expansion).  Even if it were fixed, the result of this
6759     # check would be larger than it should be.
6760     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6761     ;;
6762
6763   gnu*)
6764     # Under GNU Hurd, this test is not required because there is
6765     # no limit to the length of command line arguments.
6766     # Libtool will interpret -1 as no limit whatsoever
6767     lt_cv_sys_max_cmd_len=-1;
6768     ;;
6769
6770   cygwin* | mingw* | cegcc*)
6771     # On Win9x/ME, this test blows up -- it succeeds, but takes
6772     # about 5 minutes as the teststring grows exponentially.
6773     # Worse, since 9x/ME are not pre-emptively multitasking,
6774     # you end up with a "frozen" computer, even though with patience
6775     # the test eventually succeeds (with a max line length of 256k).
6776     # Instead, let's just punt: use the minimum linelength reported by
6777     # all of the supported platforms: 8192 (on NT/2K/XP).
6778     lt_cv_sys_max_cmd_len=8192;
6779     ;;
6780
6781   mint*)
6782     # On MiNT this can take a long time and run out of memory.
6783     lt_cv_sys_max_cmd_len=8192;
6784     ;;
6785
6786   amigaos*)
6787     # On AmigaOS with pdksh, this test takes hours, literally.
6788     # So we just punt and use a minimum line length of 8192.
6789     lt_cv_sys_max_cmd_len=8192;
6790     ;;
6791
6792   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6793     # This has been around since 386BSD, at least.  Likely further.
6794     if test -x /sbin/sysctl; then
6795       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6796     elif test -x /usr/sbin/sysctl; then
6797       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6798     else
6799       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6800     fi
6801     # And add a safety zone
6802     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6803     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6804     ;;
6805
6806   interix*)
6807     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6808     lt_cv_sys_max_cmd_len=196608
6809     ;;
6810
6811   osf*)
6812     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6813     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6814     # nice to cause kernel panics so lets avoid the loop below.
6815     # First set a reasonable default.
6816     lt_cv_sys_max_cmd_len=16384
6817     #
6818     if test -x /sbin/sysconfig; then
6819       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6820         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6821       esac
6822     fi
6823     ;;
6824   sco3.2v5*)
6825     lt_cv_sys_max_cmd_len=102400
6826     ;;
6827   sysv5* | sco5v6* | sysv4.2uw2*)
6828     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6829     if test -n "$kargmax"; then
6830       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6831     else
6832       lt_cv_sys_max_cmd_len=32768
6833     fi
6834     ;;
6835   *)
6836     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6837     if test -n "$lt_cv_sys_max_cmd_len"; then
6838       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6839       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6840     else
6841       # Make teststring a little bigger before we do anything with it.
6842       # a 1K string should be a reasonable start.
6843       for i in 1 2 3 4 5 6 7 8 ; do
6844         teststring=$teststring$teststring
6845       done
6846       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6847       # If test is not a shell built-in, we'll probably end up computing a
6848       # maximum length that is only half of the actual maximum length, but
6849       # we can't tell.
6850       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6851                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6852               test $i != 17 # 1/2 MB should be enough
6853       do
6854         i=`expr $i + 1`
6855         teststring=$teststring$teststring
6856       done
6857       # Only check the string length outside the loop.
6858       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6859       teststring=
6860       # Add a significant safety factor because C++ compilers can tack on
6861       # massive amounts of additional arguments before passing them to the
6862       # linker.  It appears as though 1/2 is a usable value.
6863       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6864     fi
6865     ;;
6866   esac
6867
6868 fi
6869
6870 if test -n $lt_cv_sys_max_cmd_len ; then
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6872 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6873 else
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6875 $as_echo "none" >&6; }
6876 fi
6877 max_cmd_len=$lt_cv_sys_max_cmd_len
6878
6879
6880
6881
6882
6883
6884 : ${CP="cp -f"}
6885 : ${MV="mv -f"}
6886 : ${RM="rm -f"}
6887
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6889 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6890 # Try some XSI features
6891 xsi_shell=no
6892 ( _lt_dummy="a/b/c"
6893   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6894       = c,a/b,, \
6895     && eval 'test $(( 1 + 1 )) -eq 2 \
6896     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6897   && xsi_shell=yes
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6899 $as_echo "$xsi_shell" >&6; }
6900
6901
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6903 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6904 lt_shell_append=no
6905 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6906     >/dev/null 2>&1 \
6907   && lt_shell_append=yes
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6909 $as_echo "$lt_shell_append" >&6; }
6910
6911
6912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6913   lt_unset=unset
6914 else
6915   lt_unset=false
6916 fi
6917
6918
6919
6920
6921
6922 # test EBCDIC or ASCII
6923 case `echo X|tr X '\101'` in
6924  A) # ASCII based system
6925     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6926   lt_SP2NL='tr \040 \012'
6927   lt_NL2SP='tr \015\012 \040\040'
6928   ;;
6929  *) # EBCDIC based system
6930   lt_SP2NL='tr \100 \n'
6931   lt_NL2SP='tr \r\n \100\100'
6932   ;;
6933 esac
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6944 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6945 if ${lt_cv_ld_reload_flag+:} false; then :
6946   $as_echo_n "(cached) " >&6
6947 else
6948   lt_cv_ld_reload_flag='-r'
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6951 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6952 reload_flag=$lt_cv_ld_reload_flag
6953 case $reload_flag in
6954 "" | " "*) ;;
6955 *) reload_flag=" $reload_flag" ;;
6956 esac
6957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6958 case $host_os in
6959   darwin*)
6960     if test "$GCC" = yes; then
6961       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6962     else
6963       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6964     fi
6965     ;;
6966 esac
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976 if test -n "$ac_tool_prefix"; then
6977   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_OBJDUMP+:} false; then :
6982   $as_echo_n "(cached) " >&6
6983 else
6984   if test -n "$OBJDUMP"; then
6985   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990   IFS=$as_save_IFS
6991   test -z "$as_dir" && as_dir=.
6992     for ac_exec_ext in '' $ac_executable_extensions; do
6993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996     break 2
6997   fi
6998 done
6999   done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 OBJDUMP=$ac_cv_prog_OBJDUMP
7005 if test -n "$OBJDUMP"; then
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7007 $as_echo "$OBJDUMP" >&6; }
7008 else
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013
7014 fi
7015 if test -z "$ac_cv_prog_OBJDUMP"; then
7016   ac_ct_OBJDUMP=$OBJDUMP
7017   # Extract the first word of "objdump", so it can be a program name with args.
7018 set dummy objdump; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   if test -n "$ac_ct_OBJDUMP"; then
7025   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032     for ac_exec_ext in '' $ac_executable_extensions; do
7033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039   done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7045 if test -n "$ac_ct_OBJDUMP"; then
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7047 $as_echo "$ac_ct_OBJDUMP" >&6; }
7048 else
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053   if test "x$ac_ct_OBJDUMP" = x; then
7054     OBJDUMP="false"
7055   else
7056     case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062     OBJDUMP=$ac_ct_OBJDUMP
7063   fi
7064 else
7065   OBJDUMP="$ac_cv_prog_OBJDUMP"
7066 fi
7067
7068 test -z "$OBJDUMP" && OBJDUMP=objdump
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7079 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7080 if ${lt_cv_deplibs_check_method+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   lt_cv_file_magic_cmd='$MAGIC_CMD'
7084 lt_cv_file_magic_test_file=
7085 lt_cv_deplibs_check_method='unknown'
7086 # Need to set the preceding variable on all platforms that support
7087 # interlibrary dependencies.
7088 # 'none' -- dependencies not supported.
7089 # `unknown' -- same as none, but documents that we really don't know.
7090 # 'pass_all' -- all dependencies passed with no checks.
7091 # 'test_compile' -- check by making test program.
7092 # 'file_magic [[regex]]' -- check by looking for files in library path
7093 # which responds to the $file_magic_cmd with a given extended regex.
7094 # If you have `file' or equivalent on your system and you're not sure
7095 # whether `pass_all' will *always* work, you probably want this one.
7096
7097 case $host_os in
7098 aix[4-9]*)
7099   lt_cv_deplibs_check_method=pass_all
7100   ;;
7101
7102 beos*)
7103   lt_cv_deplibs_check_method=pass_all
7104   ;;
7105
7106 bsdi[45]*)
7107   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7108   lt_cv_file_magic_cmd='/usr/bin/file -L'
7109   lt_cv_file_magic_test_file=/shlib/libc.so
7110   ;;
7111
7112 cygwin*)
7113   # func_win32_libid is a shell function defined in ltmain.sh
7114   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7115   lt_cv_file_magic_cmd='func_win32_libid'
7116   ;;
7117
7118 mingw* | pw32*)
7119   # Base MSYS/MinGW do not provide the 'file' command needed by
7120   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7121   # unless we find 'file', for example because we are cross-compiling.
7122   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7123   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7124     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7125     lt_cv_file_magic_cmd='func_win32_libid'
7126   else
7127     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7128     lt_cv_file_magic_cmd='$OBJDUMP -f'
7129   fi
7130   ;;
7131
7132 cegcc*)
7133   # use the weaker test based on 'objdump'. See mingw*.
7134   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7135   lt_cv_file_magic_cmd='$OBJDUMP -f'
7136   ;;
7137
7138 darwin* | rhapsody*)
7139   lt_cv_deplibs_check_method=pass_all
7140   ;;
7141
7142 freebsd* | dragonfly*)
7143   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7144     case $host_cpu in
7145     i*86 )
7146       # Not sure whether the presence of OpenBSD here was a mistake.
7147       # Let's accept both of them until this is cleared up.
7148       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7149       lt_cv_file_magic_cmd=/usr/bin/file
7150       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7151       ;;
7152     esac
7153   else
7154     lt_cv_deplibs_check_method=pass_all
7155   fi
7156   ;;
7157
7158 gnu*)
7159   lt_cv_deplibs_check_method=pass_all
7160   ;;
7161
7162 haiku*)
7163   lt_cv_deplibs_check_method=pass_all
7164   ;;
7165
7166 hpux10.20* | hpux11*)
7167   lt_cv_file_magic_cmd=/usr/bin/file
7168   case $host_cpu in
7169   ia64*)
7170     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7171     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7172     ;;
7173   hppa*64*)
7174     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]'
7175     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7176     ;;
7177   *)
7178     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7179     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7180     ;;
7181   esac
7182   ;;
7183
7184 interix[3-9]*)
7185   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7186   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7187   ;;
7188
7189 irix5* | irix6* | nonstopux*)
7190   case $LD in
7191   *-32|*"-32 ") libmagic=32-bit;;
7192   *-n32|*"-n32 ") libmagic=N32;;
7193   *-64|*"-64 ") libmagic=64-bit;;
7194   *) libmagic=never-match;;
7195   esac
7196   lt_cv_deplibs_check_method=pass_all
7197   ;;
7198
7199 # This must be Linux ELF.
7200 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7201   lt_cv_deplibs_check_method=pass_all
7202   ;;
7203
7204 netbsd*)
7205   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7206     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7207   else
7208     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7209   fi
7210   ;;
7211
7212 newos6*)
7213   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7214   lt_cv_file_magic_cmd=/usr/bin/file
7215   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7216   ;;
7217
7218 *nto* | *qnx*)
7219   lt_cv_deplibs_check_method=pass_all
7220   ;;
7221
7222 openbsd*)
7223   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7224     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7225   else
7226     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7227   fi
7228   ;;
7229
7230 osf3* | osf4* | osf5*)
7231   lt_cv_deplibs_check_method=pass_all
7232   ;;
7233
7234 rdos*)
7235   lt_cv_deplibs_check_method=pass_all
7236   ;;
7237
7238 solaris*)
7239   lt_cv_deplibs_check_method=pass_all
7240   ;;
7241
7242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7243   lt_cv_deplibs_check_method=pass_all
7244   ;;
7245
7246 sysv4 | sysv4.3*)
7247   case $host_vendor in
7248   motorola)
7249     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]'
7250     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7251     ;;
7252   ncr)
7253     lt_cv_deplibs_check_method=pass_all
7254     ;;
7255   sequent)
7256     lt_cv_file_magic_cmd='/bin/file'
7257     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7258     ;;
7259   sni)
7260     lt_cv_file_magic_cmd='/bin/file'
7261     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7262     lt_cv_file_magic_test_file=/lib/libc.so
7263     ;;
7264   siemens)
7265     lt_cv_deplibs_check_method=pass_all
7266     ;;
7267   pc)
7268     lt_cv_deplibs_check_method=pass_all
7269     ;;
7270   esac
7271   ;;
7272
7273 tpf*)
7274   lt_cv_deplibs_check_method=pass_all
7275   ;;
7276 esac
7277
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7280 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7281 file_magic_cmd=$lt_cv_file_magic_cmd
7282 deplibs_check_method=$lt_cv_deplibs_check_method
7283 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 plugin_option=
7297 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7298 for plugin in $plugin_names; do
7299   plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7300   if test x$plugin_so = x$plugin; then
7301     plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7302   fi
7303   if test x$plugin_so != x$plugin; then
7304     plugin_option="--plugin $plugin_so"
7305     break
7306   fi
7307 done
7308
7309 if test -n "$ac_tool_prefix"; then
7310   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}ar; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_AR+:} false; then :
7315   $as_echo_n "(cached) " >&6
7316 else
7317   if test -n "$AR"; then
7318   ac_cv_prog_AR="$AR" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323   IFS=$as_save_IFS
7324   test -z "$as_dir" && as_dir=.
7325     for ac_exec_ext in '' $ac_executable_extensions; do
7326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327     ac_cv_prog_AR="${ac_tool_prefix}ar"
7328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329     break 2
7330   fi
7331 done
7332   done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 AR=$ac_cv_prog_AR
7338 if test -n "$AR"; then
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7340 $as_echo "$AR" >&6; }
7341 else
7342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346
7347 fi
7348 if test -z "$ac_cv_prog_AR"; then
7349   ac_ct_AR=$AR
7350   # Extract the first word of "ar", so it can be a program name with args.
7351 set dummy ar; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$ac_ct_AR"; then
7358   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367     ac_cv_prog_ac_ct_AR="ar"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7378 if test -n "$ac_ct_AR"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7380 $as_echo "$ac_ct_AR" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386   if test "x$ac_ct_AR" = x; then
7387     AR="false"
7388   else
7389     case $cross_compiling:$ac_tool_warned in
7390 yes:)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7394 esac
7395     AR=$ac_ct_AR
7396   fi
7397 else
7398   AR="$ac_cv_prog_AR"
7399 fi
7400
7401 test -z "$AR" && AR=ar
7402 if test -n "$plugin_option"; then
7403   if $AR --help 2>&1 | grep -q "\--plugin"; then
7404     touch conftest.c
7405     $AR $plugin_option rc conftest.a conftest.c
7406     if test "$?" != 0; then
7407       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7408 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7409     else
7410       AR="$AR $plugin_option"
7411     fi
7412     rm -f conftest.*
7413   fi
7414 fi
7415 test -z "$AR_FLAGS" && AR_FLAGS=cru
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 if test -n "$ac_tool_prefix"; then
7428   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7429 set dummy ${ac_tool_prefix}strip; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_STRIP+:} false; then :
7433   $as_echo_n "(cached) " >&6
7434 else
7435   if test -n "$STRIP"; then
7436   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441   IFS=$as_save_IFS
7442   test -z "$as_dir" && as_dir=.
7443     for ac_exec_ext in '' $ac_executable_extensions; do
7444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447     break 2
7448   fi
7449 done
7450   done
7451 IFS=$as_save_IFS
7452
7453 fi
7454 fi
7455 STRIP=$ac_cv_prog_STRIP
7456 if test -n "$STRIP"; then
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7458 $as_echo "$STRIP" >&6; }
7459 else
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463
7464
7465 fi
7466 if test -z "$ac_cv_prog_STRIP"; then
7467   ac_ct_STRIP=$STRIP
7468   # Extract the first word of "strip", so it can be a program name with args.
7469 set dummy strip; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7473   $as_echo_n "(cached) " >&6
7474 else
7475   if test -n "$ac_ct_STRIP"; then
7476   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483     for ac_exec_ext in '' $ac_executable_extensions; do
7484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485     ac_cv_prog_ac_ct_STRIP="strip"
7486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490   done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7496 if test -n "$ac_ct_STRIP"; then
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7498 $as_echo "$ac_ct_STRIP" >&6; }
7499 else
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504   if test "x$ac_ct_STRIP" = x; then
7505     STRIP=":"
7506   else
7507     case $cross_compiling:$ac_tool_warned in
7508 yes:)
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7512 esac
7513     STRIP=$ac_ct_STRIP
7514   fi
7515 else
7516   STRIP="$ac_cv_prog_STRIP"
7517 fi
7518
7519 test -z "$STRIP" && STRIP=:
7520
7521
7522
7523
7524
7525
7526 if test -n "$ac_tool_prefix"; then
7527   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_RANLIB+:} false; then :
7532   $as_echo_n "(cached) " >&6
7533 else
7534   if test -n "$RANLIB"; then
7535   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542     for ac_exec_ext in '' $ac_executable_extensions; do
7543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549   done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 RANLIB=$ac_cv_prog_RANLIB
7555 if test -n "$RANLIB"; then
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7557 $as_echo "$RANLIB" >&6; }
7558 else
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563
7564 fi
7565 if test -z "$ac_cv_prog_RANLIB"; then
7566   ac_ct_RANLIB=$RANLIB
7567   # Extract the first word of "ranlib", so it can be a program name with args.
7568 set dummy ranlib; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7572   $as_echo_n "(cached) " >&6
7573 else
7574   if test -n "$ac_ct_RANLIB"; then
7575   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580   IFS=$as_save_IFS
7581   test -z "$as_dir" && as_dir=.
7582     for ac_exec_ext in '' $ac_executable_extensions; do
7583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584     ac_cv_prog_ac_ct_RANLIB="ranlib"
7585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586     break 2
7587   fi
7588 done
7589   done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7595 if test -n "$ac_ct_RANLIB"; then
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7597 $as_echo "$ac_ct_RANLIB" >&6; }
7598 else
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603   if test "x$ac_ct_RANLIB" = x; then
7604     RANLIB=":"
7605   else
7606     case $cross_compiling:$ac_tool_warned in
7607 yes:)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610 ac_tool_warned=yes ;;
7611 esac
7612     RANLIB=$ac_ct_RANLIB
7613   fi
7614 else
7615   RANLIB="$ac_cv_prog_RANLIB"
7616 fi
7617
7618 test -z "$RANLIB" && RANLIB=:
7619 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7620   if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7621     RANLIB="$RANLIB $plugin_option"
7622   fi
7623 fi
7624
7625
7626
7627
7628
7629
7630 # Determine commands to create old-style static archives.
7631 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7632 old_postinstall_cmds='chmod 644 $oldlib'
7633 old_postuninstall_cmds=
7634
7635 if test -n "$RANLIB"; then
7636   case $host_os in
7637   openbsd*)
7638     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7639     ;;
7640   *)
7641     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7642     ;;
7643   esac
7644   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7645 fi
7646
7647 case $host_os in
7648   darwin*)
7649     lock_old_archive_extraction=yes ;;
7650   *)
7651     lock_old_archive_extraction=no ;;
7652 esac
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692 # If no C compiler was specified, use CC.
7693 LTCC=${LTCC-"$CC"}
7694
7695 # If no C compiler flags were specified, use CFLAGS.
7696 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7697
7698 # Allow CC to be a program name with arguments.
7699 compiler=$CC
7700
7701
7702 # Check for command to grab the raw symbol name followed by C symbol from nm.
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7704 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7705 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708
7709 # These are sane defaults that work on at least a few old systems.
7710 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7711
7712 # Character class describing NM global symbol codes.
7713 symcode='[BCDEGRST]'
7714
7715 # Regexp to match symbols that can be accessed directly from C.
7716 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7717
7718 # Define system-specific variables.
7719 case $host_os in
7720 aix*)
7721   symcode='[BCDT]'
7722   ;;
7723 cygwin* | mingw* | pw32* | cegcc*)
7724   symcode='[ABCDGISTW]'
7725   ;;
7726 hpux*)
7727   if test "$host_cpu" = ia64; then
7728     symcode='[ABCDEGRST]'
7729   fi
7730   ;;
7731 irix* | nonstopux*)
7732   symcode='[BCDEGRST]'
7733   ;;
7734 osf*)
7735   symcode='[BCDEGQRST]'
7736   ;;
7737 solaris*)
7738   symcode='[BCDRT]'
7739   ;;
7740 sco3.2v5*)
7741   symcode='[DT]'
7742   ;;
7743 sysv4.2uw2*)
7744   symcode='[DT]'
7745   ;;
7746 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7747   symcode='[ABDT]'
7748   ;;
7749 sysv4)
7750   symcode='[DFNSTU]'
7751   ;;
7752 esac
7753
7754 # If we're using GNU nm, then use its standard symbol codes.
7755 case `$NM -V 2>&1` in
7756 *GNU* | *'with BFD'*)
7757   symcode='[ABCDGIRSTW]' ;;
7758 esac
7759
7760 # Transform an extracted symbol line into a proper C declaration.
7761 # Some systems (esp. on ia64) link data and code symbols differently,
7762 # so use this general approach.
7763 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7764
7765 # Transform an extracted symbol line into symbol name and symbol address
7766 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7767 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'"
7768
7769 # Handle CRLF in mingw tool chain
7770 opt_cr=
7771 case $build_os in
7772 mingw*)
7773   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7774   ;;
7775 esac
7776
7777 # Try without a prefix underscore, then with it.
7778 for ac_symprfx in "" "_"; do
7779
7780   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7781   symxfrm="\\1 $ac_symprfx\\2 \\2"
7782
7783   # Write the raw and C identifiers.
7784   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7785     # Fake it for dumpbin and say T for any non-static function
7786     # and D for any global variable.
7787     # Also find C++ and __fastcall symbols from MSVC++,
7788     # which start with @ or ?.
7789     lt_cv_sys_global_symbol_pipe="$AWK '"\
7790 "     {last_section=section; section=\$ 3};"\
7791 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7792 "     \$ 0!~/External *\|/{next};"\
7793 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7794 "     {if(hide[section]) next};"\
7795 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7796 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7797 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7798 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7799 "     ' prfx=^$ac_symprfx"
7800   else
7801     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7802   fi
7803
7804   # Check to see that the pipe works correctly.
7805   pipe_works=no
7806
7807   rm -f conftest*
7808   cat > conftest.$ac_ext <<_LT_EOF
7809 #ifdef __cplusplus
7810 extern "C" {
7811 #endif
7812 char nm_test_var;
7813 void nm_test_func(void);
7814 void nm_test_func(void){}
7815 #ifdef __cplusplus
7816 }
7817 #endif
7818 int main(){nm_test_var='a';nm_test_func();return(0);}
7819 _LT_EOF
7820
7821   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7822   (eval $ac_compile) 2>&5
7823   ac_status=$?
7824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7825   test $ac_status = 0; }; then
7826     # Now try to grab the symbols.
7827     nlist=conftest.nm
7828     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7829   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7830   ac_status=$?
7831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7832   test $ac_status = 0; } && test -s "$nlist"; then
7833       # Try sorting and uniquifying the output.
7834       if sort "$nlist" | uniq > "$nlist"T; then
7835         mv -f "$nlist"T "$nlist"
7836       else
7837         rm -f "$nlist"T
7838       fi
7839
7840       # Make sure that we snagged all the symbols we need.
7841       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7842         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7843           cat <<_LT_EOF > conftest.$ac_ext
7844 #ifdef __cplusplus
7845 extern "C" {
7846 #endif
7847
7848 _LT_EOF
7849           # Now generate the symbol file.
7850           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7851
7852           cat <<_LT_EOF >> conftest.$ac_ext
7853
7854 /* The mapping between symbol names and symbols.  */
7855 const struct {
7856   const char *name;
7857   void       *address;
7858 }
7859 lt__PROGRAM__LTX_preloaded_symbols[] =
7860 {
7861   { "@PROGRAM@", (void *) 0 },
7862 _LT_EOF
7863           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7864           cat <<\_LT_EOF >> conftest.$ac_ext
7865   {0, (void *) 0}
7866 };
7867
7868 /* This works around a problem in FreeBSD linker */
7869 #ifdef FREEBSD_WORKAROUND
7870 static const void *lt_preloaded_setup() {
7871   return lt__PROGRAM__LTX_preloaded_symbols;
7872 }
7873 #endif
7874
7875 #ifdef __cplusplus
7876 }
7877 #endif
7878 _LT_EOF
7879           # Now try linking the two files.
7880           mv conftest.$ac_objext conftstm.$ac_objext
7881           lt_save_LIBS="$LIBS"
7882           lt_save_CFLAGS="$CFLAGS"
7883           LIBS="conftstm.$ac_objext"
7884           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7885           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7886   (eval $ac_link) 2>&5
7887   ac_status=$?
7888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7889   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7890             pipe_works=yes
7891           fi
7892           LIBS="$lt_save_LIBS"
7893           CFLAGS="$lt_save_CFLAGS"
7894         else
7895           echo "cannot find nm_test_func in $nlist" >&5
7896         fi
7897       else
7898         echo "cannot find nm_test_var in $nlist" >&5
7899       fi
7900     else
7901       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7902     fi
7903   else
7904     echo "$progname: failed program was:" >&5
7905     cat conftest.$ac_ext >&5
7906   fi
7907   rm -rf conftest* conftst*
7908
7909   # Do not use the global_symbol_pipe unless it works.
7910   if test "$pipe_works" = yes; then
7911     break
7912   else
7913     lt_cv_sys_global_symbol_pipe=
7914   fi
7915 done
7916
7917 fi
7918
7919 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7920   lt_cv_sys_global_symbol_to_cdecl=
7921 fi
7922 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7924 $as_echo "failed" >&6; }
7925 else
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7927 $as_echo "ok" >&6; }
7928 fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951 # Check whether --enable-libtool-lock was given.
7952 if test "${enable_libtool_lock+set}" = set; then :
7953   enableval=$enable_libtool_lock;
7954 fi
7955
7956 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7957
7958 # Some flags need to be propagated to the compiler or linker for good
7959 # libtool support.
7960 case $host in
7961 ia64-*-hpux*)
7962   # Find out which ABI we are using.
7963   echo 'int i;' > conftest.$ac_ext
7964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7965   (eval $ac_compile) 2>&5
7966   ac_status=$?
7967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7968   test $ac_status = 0; }; then
7969     case `/usr/bin/file conftest.$ac_objext` in
7970       *ELF-32*)
7971         HPUX_IA64_MODE="32"
7972         ;;
7973       *ELF-64*)
7974         HPUX_IA64_MODE="64"
7975         ;;
7976     esac
7977   fi
7978   rm -rf conftest*
7979   ;;
7980 *-*-irix6*)
7981   # Find out which ABI we are using.
7982   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7983   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7984   (eval $ac_compile) 2>&5
7985   ac_status=$?
7986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7987   test $ac_status = 0; }; then
7988     if test "$lt_cv_prog_gnu_ld" = yes; then
7989       case `/usr/bin/file conftest.$ac_objext` in
7990         *32-bit*)
7991           LD="${LD-ld} -melf32bsmip"
7992           ;;
7993         *N32*)
7994           LD="${LD-ld} -melf32bmipn32"
7995           ;;
7996         *64-bit*)
7997           LD="${LD-ld} -melf64bmip"
7998         ;;
7999       esac
8000     else
8001       case `/usr/bin/file conftest.$ac_objext` in
8002         *32-bit*)
8003           LD="${LD-ld} -32"
8004           ;;
8005         *N32*)
8006           LD="${LD-ld} -n32"
8007           ;;
8008         *64-bit*)
8009           LD="${LD-ld} -64"
8010           ;;
8011       esac
8012     fi
8013   fi
8014   rm -rf conftest*
8015   ;;
8016
8017 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8018 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8019   # Find out which ABI we are using.
8020   echo 'int i;' > conftest.$ac_ext
8021   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8022   (eval $ac_compile) 2>&5
8023   ac_status=$?
8024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8025   test $ac_status = 0; }; then
8026     case `/usr/bin/file conftest.o` in
8027       *32-bit*)
8028         case $host in
8029           x86_64-*kfreebsd*-gnu)
8030             LD="${LD-ld} -m elf_i386_fbsd"
8031             ;;
8032           x86_64-*linux*)
8033             case `/usr/bin/file conftest.o` in
8034               *x86-64*)
8035                 LD="${LD-ld} -m elf32_x86_64"
8036                 ;;
8037               *)
8038                 LD="${LD-ld} -m elf_i386"
8039                 ;;
8040             esac
8041             ;;
8042           powerpc64le-*linux*)
8043             LD="${LD-ld} -m elf32lppclinux"
8044             ;;
8045           powerpc64-*linux*)
8046             LD="${LD-ld} -m elf32ppclinux"
8047             ;;
8048           s390x-*linux*)
8049             LD="${LD-ld} -m elf_s390"
8050             ;;
8051           sparc64-*linux*)
8052             LD="${LD-ld} -m elf32_sparc"
8053             ;;
8054         esac
8055         ;;
8056       *64-bit*)
8057         case $host in
8058           x86_64-*kfreebsd*-gnu)
8059             LD="${LD-ld} -m elf_x86_64_fbsd"
8060             ;;
8061           x86_64-*linux*)
8062             LD="${LD-ld} -m elf_x86_64"
8063             ;;
8064           powerpcle-*linux*)
8065             LD="${LD-ld} -m elf64lppc"
8066             ;;
8067           powerpc-*linux*)
8068             LD="${LD-ld} -m elf64ppc"
8069             ;;
8070           s390*-*linux*|s390*-*tpf*)
8071             LD="${LD-ld} -m elf64_s390"
8072             ;;
8073           sparc*-*linux*)
8074             LD="${LD-ld} -m elf64_sparc"
8075             ;;
8076         esac
8077         ;;
8078     esac
8079   fi
8080   rm -rf conftest*
8081   ;;
8082
8083 *-*-sco3.2v5*)
8084   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8085   SAVE_CFLAGS="$CFLAGS"
8086   CFLAGS="$CFLAGS -belf"
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8088 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8089 if ${lt_cv_cc_needs_belf+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   ac_ext=c
8093 ac_cpp='$CPP $CPPFLAGS'
8094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8097
8098      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h.  */
8100
8101 int
8102 main ()
8103 {
8104
8105   ;
8106   return 0;
8107 }
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"; then :
8110   lt_cv_cc_needs_belf=yes
8111 else
8112   lt_cv_cc_needs_belf=no
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext \
8115     conftest$ac_exeext conftest.$ac_ext
8116      ac_ext=c
8117 ac_cpp='$CPP $CPPFLAGS'
8118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8121
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8124 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8125   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8126     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8127     CFLAGS="$SAVE_CFLAGS"
8128   fi
8129   ;;
8130 sparc*-*solaris*)
8131   # Find out which ABI we are using.
8132   echo 'int i;' > conftest.$ac_ext
8133   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8134   (eval $ac_compile) 2>&5
8135   ac_status=$?
8136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8137   test $ac_status = 0; }; then
8138     case `/usr/bin/file conftest.o` in
8139     *64-bit*)
8140       case $lt_cv_prog_gnu_ld in
8141       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8142       *)
8143         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8144           LD="${LD-ld} -64"
8145         fi
8146         ;;
8147       esac
8148       ;;
8149     esac
8150   fi
8151   rm -rf conftest*
8152   ;;
8153 esac
8154
8155 need_locks="$enable_libtool_lock"
8156
8157
8158   case $host_os in
8159     rhapsody* | darwin*)
8160     if test -n "$ac_tool_prefix"; then
8161   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8162 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8166   $as_echo_n "(cached) " >&6
8167 else
8168   if test -n "$DSYMUTIL"; then
8169   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174   IFS=$as_save_IFS
8175   test -z "$as_dir" && as_dir=.
8176     for ac_exec_ext in '' $ac_executable_extensions; do
8177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180     break 2
8181   fi
8182 done
8183   done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8189 if test -n "$DSYMUTIL"; then
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8191 $as_echo "$DSYMUTIL" >&6; }
8192 else
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196
8197
8198 fi
8199 if test -z "$ac_cv_prog_DSYMUTIL"; then
8200   ac_ct_DSYMUTIL=$DSYMUTIL
8201   # Extract the first word of "dsymutil", so it can be a program name with args.
8202 set dummy dsymutil; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208   if test -n "$ac_ct_DSYMUTIL"; then
8209   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8210 else
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 for as_dir in $PATH
8213 do
8214   IFS=$as_save_IFS
8215   test -z "$as_dir" && as_dir=.
8216     for ac_exec_ext in '' $ac_executable_extensions; do
8217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220     break 2
8221   fi
8222 done
8223   done
8224 IFS=$as_save_IFS
8225
8226 fi
8227 fi
8228 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8229 if test -n "$ac_ct_DSYMUTIL"; then
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8231 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8232 else
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236
8237   if test "x$ac_ct_DSYMUTIL" = x; then
8238     DSYMUTIL=":"
8239   else
8240     case $cross_compiling:$ac_tool_warned in
8241 yes:)
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8244 ac_tool_warned=yes ;;
8245 esac
8246     DSYMUTIL=$ac_ct_DSYMUTIL
8247   fi
8248 else
8249   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8250 fi
8251
8252     if test -n "$ac_tool_prefix"; then
8253   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8254 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if ${ac_cv_prog_NMEDIT+:} false; then :
8258   $as_echo_n "(cached) " >&6
8259 else
8260   if test -n "$NMEDIT"; then
8261   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266   IFS=$as_save_IFS
8267   test -z "$as_dir" && as_dir=.
8268     for ac_exec_ext in '' $ac_executable_extensions; do
8269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8270     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272     break 2
8273   fi
8274 done
8275   done
8276 IFS=$as_save_IFS
8277
8278 fi
8279 fi
8280 NMEDIT=$ac_cv_prog_NMEDIT
8281 if test -n "$NMEDIT"; then
8282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8283 $as_echo "$NMEDIT" >&6; }
8284 else
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8287 fi
8288
8289
8290 fi
8291 if test -z "$ac_cv_prog_NMEDIT"; then
8292   ac_ct_NMEDIT=$NMEDIT
8293   # Extract the first word of "nmedit", so it can be a program name with args.
8294 set dummy nmedit; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8298   $as_echo_n "(cached) " >&6
8299 else
8300   if test -n "$ac_ct_NMEDIT"; then
8301   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306   IFS=$as_save_IFS
8307   test -z "$as_dir" && as_dir=.
8308     for ac_exec_ext in '' $ac_executable_extensions; do
8309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8312     break 2
8313   fi
8314 done
8315   done
8316 IFS=$as_save_IFS
8317
8318 fi
8319 fi
8320 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8321 if test -n "$ac_ct_NMEDIT"; then
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8323 $as_echo "$ac_ct_NMEDIT" >&6; }
8324 else
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328
8329   if test "x$ac_ct_NMEDIT" = x; then
8330     NMEDIT=":"
8331   else
8332     case $cross_compiling:$ac_tool_warned in
8333 yes:)
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8336 ac_tool_warned=yes ;;
8337 esac
8338     NMEDIT=$ac_ct_NMEDIT
8339   fi
8340 else
8341   NMEDIT="$ac_cv_prog_NMEDIT"
8342 fi
8343
8344     if test -n "$ac_tool_prefix"; then
8345   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8346 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if ${ac_cv_prog_LIPO+:} false; then :
8350   $as_echo_n "(cached) " >&6
8351 else
8352   if test -n "$LIPO"; then
8353   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358   IFS=$as_save_IFS
8359   test -z "$as_dir" && as_dir=.
8360     for ac_exec_ext in '' $ac_executable_extensions; do
8361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8362     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364     break 2
8365   fi
8366 done
8367   done
8368 IFS=$as_save_IFS
8369
8370 fi
8371 fi
8372 LIPO=$ac_cv_prog_LIPO
8373 if test -n "$LIPO"; then
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8375 $as_echo "$LIPO" >&6; }
8376 else
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8379 fi
8380
8381
8382 fi
8383 if test -z "$ac_cv_prog_LIPO"; then
8384   ac_ct_LIPO=$LIPO
8385   # Extract the first word of "lipo", so it can be a program name with args.
8386 set dummy lipo; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8390   $as_echo_n "(cached) " >&6
8391 else
8392   if test -n "$ac_ct_LIPO"; then
8393   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398   IFS=$as_save_IFS
8399   test -z "$as_dir" && as_dir=.
8400     for ac_exec_ext in '' $ac_executable_extensions; do
8401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402     ac_cv_prog_ac_ct_LIPO="lipo"
8403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404     break 2
8405   fi
8406 done
8407   done
8408 IFS=$as_save_IFS
8409
8410 fi
8411 fi
8412 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8413 if test -n "$ac_ct_LIPO"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8415 $as_echo "$ac_ct_LIPO" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421   if test "x$ac_ct_LIPO" = x; then
8422     LIPO=":"
8423   else
8424     case $cross_compiling:$ac_tool_warned in
8425 yes:)
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8428 ac_tool_warned=yes ;;
8429 esac
8430     LIPO=$ac_ct_LIPO
8431   fi
8432 else
8433   LIPO="$ac_cv_prog_LIPO"
8434 fi
8435
8436     if test -n "$ac_tool_prefix"; then
8437   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8438 set dummy ${ac_tool_prefix}otool; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_prog_OTOOL+:} false; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   if test -n "$OTOOL"; then
8445   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450   IFS=$as_save_IFS
8451   test -z "$as_dir" && as_dir=.
8452     for ac_exec_ext in '' $ac_executable_extensions; do
8453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8454     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8456     break 2
8457   fi
8458 done
8459   done
8460 IFS=$as_save_IFS
8461
8462 fi
8463 fi
8464 OTOOL=$ac_cv_prog_OTOOL
8465 if test -n "$OTOOL"; then
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8467 $as_echo "$OTOOL" >&6; }
8468 else
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472
8473
8474 fi
8475 if test -z "$ac_cv_prog_OTOOL"; then
8476   ac_ct_OTOOL=$OTOOL
8477   # Extract the first word of "otool", so it can be a program name with args.
8478 set dummy otool; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484   if test -n "$ac_ct_OTOOL"; then
8485   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8486 else
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8489 do
8490   IFS=$as_save_IFS
8491   test -z "$as_dir" && as_dir=.
8492     for ac_exec_ext in '' $ac_executable_extensions; do
8493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494     ac_cv_prog_ac_ct_OTOOL="otool"
8495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496     break 2
8497   fi
8498 done
8499   done
8500 IFS=$as_save_IFS
8501
8502 fi
8503 fi
8504 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8505 if test -n "$ac_ct_OTOOL"; then
8506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8507 $as_echo "$ac_ct_OTOOL" >&6; }
8508 else
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512
8513   if test "x$ac_ct_OTOOL" = x; then
8514     OTOOL=":"
8515   else
8516     case $cross_compiling:$ac_tool_warned in
8517 yes:)
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8520 ac_tool_warned=yes ;;
8521 esac
8522     OTOOL=$ac_ct_OTOOL
8523   fi
8524 else
8525   OTOOL="$ac_cv_prog_OTOOL"
8526 fi
8527
8528     if test -n "$ac_tool_prefix"; then
8529   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8530 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_OTOOL64+:} false; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   if test -n "$OTOOL64"; then
8537   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542   IFS=$as_save_IFS
8543   test -z "$as_dir" && as_dir=.
8544     for ac_exec_ext in '' $ac_executable_extensions; do
8545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548     break 2
8549   fi
8550 done
8551   done
8552 IFS=$as_save_IFS
8553
8554 fi
8555 fi
8556 OTOOL64=$ac_cv_prog_OTOOL64
8557 if test -n "$OTOOL64"; then
8558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8559 $as_echo "$OTOOL64" >&6; }
8560 else
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 fi
8564
8565
8566 fi
8567 if test -z "$ac_cv_prog_OTOOL64"; then
8568   ac_ct_OTOOL64=$OTOOL64
8569   # Extract the first word of "otool64", so it can be a program name with args.
8570 set dummy otool64; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8574   $as_echo_n "(cached) " >&6
8575 else
8576   if test -n "$ac_ct_OTOOL64"; then
8577   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8578 else
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8581 do
8582   IFS=$as_save_IFS
8583   test -z "$as_dir" && as_dir=.
8584     for ac_exec_ext in '' $ac_executable_extensions; do
8585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8586     ac_cv_prog_ac_ct_OTOOL64="otool64"
8587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588     break 2
8589   fi
8590 done
8591   done
8592 IFS=$as_save_IFS
8593
8594 fi
8595 fi
8596 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8597 if test -n "$ac_ct_OTOOL64"; then
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8599 $as_echo "$ac_ct_OTOOL64" >&6; }
8600 else
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8603 fi
8604
8605   if test "x$ac_ct_OTOOL64" = x; then
8606     OTOOL64=":"
8607   else
8608     case $cross_compiling:$ac_tool_warned in
8609 yes:)
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8612 ac_tool_warned=yes ;;
8613 esac
8614     OTOOL64=$ac_ct_OTOOL64
8615   fi
8616 else
8617   OTOOL64="$ac_cv_prog_OTOOL64"
8618 fi
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8647 $as_echo_n "checking for -single_module linker flag... " >&6; }
8648 if ${lt_cv_apple_cc_single_mod+:} false; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   lt_cv_apple_cc_single_mod=no
8652       if test -z "${LT_MULTI_MODULE}"; then
8653         # By default we will add the -single_module flag. You can override
8654         # by either setting the environment variable LT_MULTI_MODULE
8655         # non-empty at configure time, or by adding -multi_module to the
8656         # link flags.
8657         rm -rf libconftest.dylib*
8658         echo "int foo(void){return 1;}" > conftest.c
8659         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8660 -dynamiclib -Wl,-single_module conftest.c" >&5
8661         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8662           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8663         _lt_result=$?
8664         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8665           lt_cv_apple_cc_single_mod=yes
8666         else
8667           cat conftest.err >&5
8668         fi
8669         rm -rf libconftest.dylib*
8670         rm -f conftest.*
8671       fi
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8674 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8676 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8677 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8678   $as_echo_n "(cached) " >&6
8679 else
8680   lt_cv_ld_exported_symbols_list=no
8681       save_LDFLAGS=$LDFLAGS
8682       echo "_main" > conftest.sym
8683       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8684       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h.  */
8686
8687 int
8688 main ()
8689 {
8690
8691   ;
8692   return 0;
8693 }
8694 _ACEOF
8695 if ac_fn_c_try_link "$LINENO"; then :
8696   lt_cv_ld_exported_symbols_list=yes
8697 else
8698   lt_cv_ld_exported_symbols_list=no
8699 fi
8700 rm -f core conftest.err conftest.$ac_objext \
8701     conftest$ac_exeext conftest.$ac_ext
8702         LDFLAGS="$save_LDFLAGS"
8703
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8706 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8708 $as_echo_n "checking for -force_load linker flag... " >&6; }
8709 if ${lt_cv_ld_force_load+:} false; then :
8710   $as_echo_n "(cached) " >&6
8711 else
8712   lt_cv_ld_force_load=no
8713       cat > conftest.c << _LT_EOF
8714 int forced_loaded() { return 2;}
8715 _LT_EOF
8716       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8717       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8718       echo "$AR cru libconftest.a conftest.o" >&5
8719       $AR cru libconftest.a conftest.o 2>&5
8720       cat > conftest.c << _LT_EOF
8721 int main() { return 0;}
8722 _LT_EOF
8723       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8724       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8725       _lt_result=$?
8726       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8727         lt_cv_ld_force_load=yes
8728       else
8729         cat conftest.err >&5
8730       fi
8731         rm -f conftest.err libconftest.a conftest conftest.c
8732         rm -rf conftest.dSYM
8733
8734 fi
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8736 $as_echo "$lt_cv_ld_force_load" >&6; }
8737     case $host_os in
8738     rhapsody* | darwin1.[012])
8739       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8740     darwin1.*)
8741       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8742     darwin*) # darwin 5.x on
8743       # if running on 10.5 or later, the deployment target defaults
8744       # to the OS version, if on x86, and 10.4, the deployment
8745       # target defaults to 10.4. Don't you love it?
8746       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8747         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8748           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8749         10.[012][,.]*)
8750           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8751         10.*)
8752           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8753       esac
8754     ;;
8755   esac
8756     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8757       _lt_dar_single_mod='$single_module'
8758     fi
8759     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8760       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8761     else
8762       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8763     fi
8764     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8765       _lt_dsymutil='~$DSYMUTIL $lib || :'
8766     else
8767       _lt_dsymutil=
8768     fi
8769     ;;
8770   esac
8771
8772 for ac_header in dlfcn.h
8773 do :
8774   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8775 "
8776 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8777   cat >>confdefs.h <<_ACEOF
8778 #define HAVE_DLFCN_H 1
8779 _ACEOF
8780
8781 fi
8782
8783 done
8784
8785
8786
8787
8788
8789
8790 # Set options
8791
8792
8793
8794         enable_dlopen=no
8795
8796
8797   enable_win32_dll=no
8798
8799
8800
8801   # Check whether --enable-static was given.
8802 if test "${enable_static+set}" = set; then :
8803   enableval=$enable_static; p=${PACKAGE-default}
8804     case $enableval in
8805     yes) enable_static=yes ;;
8806     no) enable_static=no ;;
8807     *)
8808      enable_static=no
8809       # Look at the argument we got.  We use all the common list separators.
8810       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8811       for pkg in $enableval; do
8812         IFS="$lt_save_ifs"
8813         if test "X$pkg" = "X$p"; then
8814           enable_static=yes
8815         fi
8816       done
8817       IFS="$lt_save_ifs"
8818       ;;
8819     esac
8820 else
8821   enable_static=yes
8822 fi
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833 # Check whether --with-pic was given.
8834 if test "${with_pic+set}" = set; then :
8835   withval=$with_pic; pic_mode="$withval"
8836 else
8837   pic_mode=default
8838 fi
8839
8840
8841 test -z "$pic_mode" && pic_mode=default
8842
8843
8844
8845
8846
8847
8848
8849   # Check whether --enable-fast-install was given.
8850 if test "${enable_fast_install+set}" = set; then :
8851   enableval=$enable_fast_install; p=${PACKAGE-default}
8852     case $enableval in
8853     yes) enable_fast_install=yes ;;
8854     no) enable_fast_install=no ;;
8855     *)
8856       enable_fast_install=no
8857       # Look at the argument we got.  We use all the common list separators.
8858       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8859       for pkg in $enableval; do
8860         IFS="$lt_save_ifs"
8861         if test "X$pkg" = "X$p"; then
8862           enable_fast_install=yes
8863         fi
8864       done
8865       IFS="$lt_save_ifs"
8866       ;;
8867     esac
8868 else
8869   enable_fast_install=yes
8870 fi
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882 # This can be used to rebuild libtool when needed
8883 LIBTOOL_DEPS="$ltmain"
8884
8885 # Always use our own libtool.
8886 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913 test -z "$LN_S" && LN_S="ln -s"
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928 if test -n "${ZSH_VERSION+set}" ; then
8929    setopt NO_GLOB_SUBST
8930 fi
8931
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8933 $as_echo_n "checking for objdir... " >&6; }
8934 if ${lt_cv_objdir+:} false; then :
8935   $as_echo_n "(cached) " >&6
8936 else
8937   rm -f .libs 2>/dev/null
8938 mkdir .libs 2>/dev/null
8939 if test -d .libs; then
8940   lt_cv_objdir=.libs
8941 else
8942   # MS-DOS does not allow filenames that begin with a dot.
8943   lt_cv_objdir=_libs
8944 fi
8945 rmdir .libs 2>/dev/null
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8948 $as_echo "$lt_cv_objdir" >&6; }
8949 objdir=$lt_cv_objdir
8950
8951
8952
8953
8954
8955 cat >>confdefs.h <<_ACEOF
8956 #define LT_OBJDIR "$lt_cv_objdir/"
8957 _ACEOF
8958
8959
8960
8961
8962 case $host_os in
8963 aix3*)
8964   # AIX sometimes has problems with the GCC collect2 program.  For some
8965   # reason, if we set the COLLECT_NAMES environment variable, the problems
8966   # vanish in a puff of smoke.
8967   if test "X${COLLECT_NAMES+set}" != Xset; then
8968     COLLECT_NAMES=
8969     export COLLECT_NAMES
8970   fi
8971   ;;
8972 esac
8973
8974 # Global variables:
8975 ofile=libtool
8976 can_build_shared=yes
8977
8978 # All known linkers require a `.a' archive for static linking (except MSVC,
8979 # which needs '.lib').
8980 libext=a
8981
8982 with_gnu_ld="$lt_cv_prog_gnu_ld"
8983
8984 old_CC="$CC"
8985 old_CFLAGS="$CFLAGS"
8986
8987 # Set sane defaults for various variables
8988 test -z "$CC" && CC=cc
8989 test -z "$LTCC" && LTCC=$CC
8990 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8991 test -z "$LD" && LD=ld
8992 test -z "$ac_objext" && ac_objext=o
8993
8994 for cc_temp in $compiler""; do
8995   case $cc_temp in
8996     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8997     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8998     \-*) ;;
8999     *) break;;
9000   esac
9001 done
9002 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9003
9004
9005 # Only perform the check for file, if the check method requires it
9006 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9007 case $deplibs_check_method in
9008 file_magic*)
9009   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9011 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9012 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9013   $as_echo_n "(cached) " >&6
9014 else
9015   case $MAGIC_CMD in
9016 [\\/*] |  ?:[\\/]*)
9017   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9018   ;;
9019 *)
9020   lt_save_MAGIC_CMD="$MAGIC_CMD"
9021   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9022   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9023   for ac_dir in $ac_dummy; do
9024     IFS="$lt_save_ifs"
9025     test -z "$ac_dir" && ac_dir=.
9026     if test -f $ac_dir/${ac_tool_prefix}file; then
9027       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9028       if test -n "$file_magic_test_file"; then
9029         case $deplibs_check_method in
9030         "file_magic "*)
9031           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9032           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9033           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9034             $EGREP "$file_magic_regex" > /dev/null; then
9035             :
9036           else
9037             cat <<_LT_EOF 1>&2
9038
9039 *** Warning: the command libtool uses to detect shared libraries,
9040 *** $file_magic_cmd, produces output that libtool cannot recognize.
9041 *** The result is that libtool may fail to recognize shared libraries
9042 *** as such.  This will affect the creation of libtool libraries that
9043 *** depend on shared libraries, but programs linked with such libtool
9044 *** libraries will work regardless of this problem.  Nevertheless, you
9045 *** may want to report the problem to your system manager and/or to
9046 *** [email protected]
9047
9048 _LT_EOF
9049           fi ;;
9050         esac
9051       fi
9052       break
9053     fi
9054   done
9055   IFS="$lt_save_ifs"
9056   MAGIC_CMD="$lt_save_MAGIC_CMD"
9057   ;;
9058 esac
9059 fi
9060
9061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9062 if test -n "$MAGIC_CMD"; then
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9064 $as_echo "$MAGIC_CMD" >&6; }
9065 else
9066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9068 fi
9069
9070
9071
9072
9073
9074 if test -z "$lt_cv_path_MAGIC_CMD"; then
9075   if test -n "$ac_tool_prefix"; then
9076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9077 $as_echo_n "checking for file... " >&6; }
9078 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9079   $as_echo_n "(cached) " >&6
9080 else
9081   case $MAGIC_CMD in
9082 [\\/*] |  ?:[\\/]*)
9083   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9084   ;;
9085 *)
9086   lt_save_MAGIC_CMD="$MAGIC_CMD"
9087   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9088   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9089   for ac_dir in $ac_dummy; do
9090     IFS="$lt_save_ifs"
9091     test -z "$ac_dir" && ac_dir=.
9092     if test -f $ac_dir/file; then
9093       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9094       if test -n "$file_magic_test_file"; then
9095         case $deplibs_check_method in
9096         "file_magic "*)
9097           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9098           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9099           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9100             $EGREP "$file_magic_regex" > /dev/null; then
9101             :
9102           else
9103             cat <<_LT_EOF 1>&2
9104
9105 *** Warning: the command libtool uses to detect shared libraries,
9106 *** $file_magic_cmd, produces output that libtool cannot recognize.
9107 *** The result is that libtool may fail to recognize shared libraries
9108 *** as such.  This will affect the creation of libtool libraries that
9109 *** depend on shared libraries, but programs linked with such libtool
9110 *** libraries will work regardless of this problem.  Nevertheless, you
9111 *** may want to report the problem to your system manager and/or to
9112 *** [email protected]
9113
9114 _LT_EOF
9115           fi ;;
9116         esac
9117       fi
9118       break
9119     fi
9120   done
9121   IFS="$lt_save_ifs"
9122   MAGIC_CMD="$lt_save_MAGIC_CMD"
9123   ;;
9124 esac
9125 fi
9126
9127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9128 if test -n "$MAGIC_CMD"; then
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9130 $as_echo "$MAGIC_CMD" >&6; }
9131 else
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133 $as_echo "no" >&6; }
9134 fi
9135
9136
9137   else
9138     MAGIC_CMD=:
9139   fi
9140 fi
9141
9142   fi
9143   ;;
9144 esac
9145
9146 # Use C for the default configuration in the libtool script
9147
9148 lt_save_CC="$CC"
9149 ac_ext=c
9150 ac_cpp='$CPP $CPPFLAGS'
9151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9154
9155
9156 # Source file extension for C test sources.
9157 ac_ext=c
9158
9159 # Object file extension for compiled C test sources.
9160 objext=o
9161 objext=$objext
9162
9163 # Code to be used in simple compile tests
9164 lt_simple_compile_test_code="int some_variable = 0;"
9165
9166 # Code to be used in simple link tests
9167 lt_simple_link_test_code='int main(){return(0);}'
9168
9169
9170
9171
9172
9173
9174
9175 # If no C compiler was specified, use CC.
9176 LTCC=${LTCC-"$CC"}
9177
9178 # If no C compiler flags were specified, use CFLAGS.
9179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9180
9181 # Allow CC to be a program name with arguments.
9182 compiler=$CC
9183
9184 # Save the default compiler, since it gets overwritten when the other
9185 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9186 compiler_DEFAULT=$CC
9187
9188 # save warnings/boilerplate of simple test code
9189 ac_outfile=conftest.$ac_objext
9190 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9192 _lt_compiler_boilerplate=`cat conftest.err`
9193 $RM conftest*
9194
9195 ac_outfile=conftest.$ac_objext
9196 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9198 _lt_linker_boilerplate=`cat conftest.err`
9199 $RM -r conftest*
9200
9201
9202 ## CAVEAT EMPTOR:
9203 ## There is no encapsulation within the following macros, do not change
9204 ## the running order or otherwise move them around unless you know exactly
9205 ## what you are doing...
9206 if test -n "$compiler"; then
9207
9208 lt_prog_compiler_no_builtin_flag=
9209
9210 if test "$GCC" = yes; then
9211   case $cc_basename in
9212   nvcc*)
9213     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9214   *)
9215     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9216   esac
9217
9218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9219 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9220 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9221   $as_echo_n "(cached) " >&6
9222 else
9223   lt_cv_prog_compiler_rtti_exceptions=no
9224    ac_outfile=conftest.$ac_objext
9225    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9226    lt_compiler_flag="-fno-rtti -fno-exceptions"
9227    # Insert the option either (1) after the last *FLAGS variable, or
9228    # (2) before a word containing "conftest.", or (3) at the end.
9229    # Note that $ac_compile itself does not contain backslashes and begins
9230    # with a dollar sign (not a hyphen), so the echo should work correctly.
9231    # The option is referenced via a variable to avoid confusing sed.
9232    lt_compile=`echo "$ac_compile" | $SED \
9233    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9234    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9235    -e 's:$: $lt_compiler_flag:'`
9236    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9237    (eval "$lt_compile" 2>conftest.err)
9238    ac_status=$?
9239    cat conftest.err >&5
9240    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241    if (exit $ac_status) && test -s "$ac_outfile"; then
9242      # The compiler can only warn and ignore the option if not recognized
9243      # So say no if there are warnings other than the usual output.
9244      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9245      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9246      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9247        lt_cv_prog_compiler_rtti_exceptions=yes
9248      fi
9249    fi
9250    $RM conftest*
9251
9252 fi
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9254 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9255
9256 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9257     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9258 else
9259     :
9260 fi
9261
9262 fi
9263
9264
9265
9266
9267
9268
9269   lt_prog_compiler_wl=
9270 lt_prog_compiler_pic=
9271 lt_prog_compiler_static=
9272
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9274 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9275
9276   if test "$GCC" = yes; then
9277     lt_prog_compiler_wl='-Wl,'
9278     lt_prog_compiler_static='-static'
9279
9280     case $host_os in
9281       aix*)
9282       # All AIX code is PIC.
9283       if test "$host_cpu" = ia64; then
9284         # AIX 5 now supports IA64 processor
9285         lt_prog_compiler_static='-Bstatic'
9286       fi
9287       lt_prog_compiler_pic='-fPIC'
9288       ;;
9289
9290     amigaos*)
9291       case $host_cpu in
9292       powerpc)
9293             # see comment about AmigaOS4 .so support
9294             lt_prog_compiler_pic='-fPIC'
9295         ;;
9296       m68k)
9297             # FIXME: we need at least 68020 code to build shared libraries, but
9298             # adding the `-m68020' flag to GCC prevents building anything better,
9299             # like `-m68040'.
9300             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9301         ;;
9302       esac
9303       ;;
9304
9305     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9306       # PIC is the default for these OSes.
9307       ;;
9308
9309     mingw* | cygwin* | pw32* | os2* | cegcc*)
9310       # This hack is so that the source file can tell whether it is being
9311       # built for inclusion in a dll (and should export symbols for example).
9312       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9313       # (--disable-auto-import) libraries
9314       lt_prog_compiler_pic='-DDLL_EXPORT'
9315       ;;
9316
9317     darwin* | rhapsody*)
9318       # PIC is the default on this platform
9319       # Common symbols not allowed in MH_DYLIB files
9320       lt_prog_compiler_pic='-fno-common'
9321       ;;
9322
9323     haiku*)
9324       # PIC is the default for Haiku.
9325       # The "-static" flag exists, but is broken.
9326       lt_prog_compiler_static=
9327       ;;
9328
9329     hpux*)
9330       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9331       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9332       # sets the default TLS model and affects inlining.
9333       case $host_cpu in
9334       hppa*64*)
9335         # +Z the default
9336         ;;
9337       *)
9338         lt_prog_compiler_pic='-fPIC'
9339         ;;
9340       esac
9341       ;;
9342
9343     interix[3-9]*)
9344       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9345       # Instead, we relocate shared libraries at runtime.
9346       ;;
9347
9348     msdosdjgpp*)
9349       # Just because we use GCC doesn't mean we suddenly get shared libraries
9350       # on systems that don't support them.
9351       lt_prog_compiler_can_build_shared=no
9352       enable_shared=no
9353       ;;
9354
9355     *nto* | *qnx*)
9356       # QNX uses GNU C++, but need to define -shared option too, otherwise
9357       # it will coredump.
9358       lt_prog_compiler_pic='-fPIC -shared'
9359       ;;
9360
9361     sysv4*MP*)
9362       if test -d /usr/nec; then
9363         lt_prog_compiler_pic=-Kconform_pic
9364       fi
9365       ;;
9366
9367     *)
9368       lt_prog_compiler_pic='-fPIC'
9369       ;;
9370     esac
9371
9372     case $cc_basename in
9373     nvcc*) # Cuda Compiler Driver 2.2
9374       lt_prog_compiler_wl='-Xlinker '
9375       lt_prog_compiler_pic='-Xcompiler -fPIC'
9376       ;;
9377     esac
9378   else
9379     # PORTME Check for flag to pass linker flags through the system compiler.
9380     case $host_os in
9381     aix*)
9382       lt_prog_compiler_wl='-Wl,'
9383       if test "$host_cpu" = ia64; then
9384         # AIX 5 now supports IA64 processor
9385         lt_prog_compiler_static='-Bstatic'
9386       else
9387         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9388       fi
9389       ;;
9390
9391     mingw* | cygwin* | pw32* | os2* | cegcc*)
9392       # This hack is so that the source file can tell whether it is being
9393       # built for inclusion in a dll (and should export symbols for example).
9394       lt_prog_compiler_pic='-DDLL_EXPORT'
9395       ;;
9396
9397     hpux9* | hpux10* | hpux11*)
9398       lt_prog_compiler_wl='-Wl,'
9399       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9400       # not for PA HP-UX.
9401       case $host_cpu in
9402       hppa*64*|ia64*)
9403         # +Z the default
9404         ;;
9405       *)
9406         lt_prog_compiler_pic='+Z'
9407         ;;
9408       esac
9409       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9410       lt_prog_compiler_static='${wl}-a ${wl}archive'
9411       ;;
9412
9413     irix5* | irix6* | nonstopux*)
9414       lt_prog_compiler_wl='-Wl,'
9415       # PIC (with -KPIC) is the default.
9416       lt_prog_compiler_static='-non_shared'
9417       ;;
9418
9419     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9420       case $cc_basename in
9421       # old Intel for x86_64 which still supported -KPIC.
9422       ecc*)
9423         lt_prog_compiler_wl='-Wl,'
9424         lt_prog_compiler_pic='-KPIC'
9425         lt_prog_compiler_static='-static'
9426         ;;
9427       # icc used to be incompatible with GCC.
9428       # ICC 10 doesn't accept -KPIC any more.
9429       icc* | ifort*)
9430         lt_prog_compiler_wl='-Wl,'
9431         lt_prog_compiler_pic='-fPIC'
9432         lt_prog_compiler_static='-static'
9433         ;;
9434       # Lahey Fortran 8.1.
9435       lf95*)
9436         lt_prog_compiler_wl='-Wl,'
9437         lt_prog_compiler_pic='--shared'
9438         lt_prog_compiler_static='--static'
9439         ;;
9440       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9441         # Portland Group compilers (*not* the Pentium gcc compiler,
9442         # which looks to be a dead project)
9443         lt_prog_compiler_wl='-Wl,'
9444         lt_prog_compiler_pic='-fpic'
9445         lt_prog_compiler_static='-Bstatic'
9446         ;;
9447       ccc*)
9448         lt_prog_compiler_wl='-Wl,'
9449         # All Alpha code is PIC.
9450         lt_prog_compiler_static='-non_shared'
9451         ;;
9452       xl* | bgxl* | bgf* | mpixl*)
9453         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9454         lt_prog_compiler_wl='-Wl,'
9455         lt_prog_compiler_pic='-qpic'
9456         lt_prog_compiler_static='-qstaticlink'
9457         ;;
9458       *)
9459         case `$CC -V 2>&1 | sed 5q` in
9460         *Sun\ F* | *Sun*Fortran*)
9461           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9462           lt_prog_compiler_pic='-KPIC'
9463           lt_prog_compiler_static='-Bstatic'
9464           lt_prog_compiler_wl=''
9465           ;;
9466         *Sun\ C*)
9467           # Sun C 5.9
9468           lt_prog_compiler_pic='-KPIC'
9469           lt_prog_compiler_static='-Bstatic'
9470           lt_prog_compiler_wl='-Wl,'
9471           ;;
9472         esac
9473         ;;
9474       esac
9475       ;;
9476
9477     newsos6)
9478       lt_prog_compiler_pic='-KPIC'
9479       lt_prog_compiler_static='-Bstatic'
9480       ;;
9481
9482     *nto* | *qnx*)
9483       # QNX uses GNU C++, but need to define -shared option too, otherwise
9484       # it will coredump.
9485       lt_prog_compiler_pic='-fPIC -shared'
9486       ;;
9487
9488     osf3* | osf4* | osf5*)
9489       lt_prog_compiler_wl='-Wl,'
9490       # All OSF/1 code is PIC.
9491       lt_prog_compiler_static='-non_shared'
9492       ;;
9493
9494     rdos*)
9495       lt_prog_compiler_static='-non_shared'
9496       ;;
9497
9498     solaris*)
9499       lt_prog_compiler_pic='-KPIC'
9500       lt_prog_compiler_static='-Bstatic'
9501       case $cc_basename in
9502       f77* | f90* | f95*)
9503         lt_prog_compiler_wl='-Qoption ld ';;
9504       *)
9505         lt_prog_compiler_wl='-Wl,';;
9506       esac
9507       ;;
9508
9509     sunos4*)
9510       lt_prog_compiler_wl='-Qoption ld '
9511       lt_prog_compiler_pic='-PIC'
9512       lt_prog_compiler_static='-Bstatic'
9513       ;;
9514
9515     sysv4 | sysv4.2uw2* | sysv4.3*)
9516       lt_prog_compiler_wl='-Wl,'
9517       lt_prog_compiler_pic='-KPIC'
9518       lt_prog_compiler_static='-Bstatic'
9519       ;;
9520
9521     sysv4*MP*)
9522       if test -d /usr/nec ;then
9523         lt_prog_compiler_pic='-Kconform_pic'
9524         lt_prog_compiler_static='-Bstatic'
9525       fi
9526       ;;
9527
9528     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9529       lt_prog_compiler_wl='-Wl,'
9530       lt_prog_compiler_pic='-KPIC'
9531       lt_prog_compiler_static='-Bstatic'
9532       ;;
9533
9534     unicos*)
9535       lt_prog_compiler_wl='-Wl,'
9536       lt_prog_compiler_can_build_shared=no
9537       ;;
9538
9539     uts4*)
9540       lt_prog_compiler_pic='-pic'
9541       lt_prog_compiler_static='-Bstatic'
9542       ;;
9543
9544     *)
9545       lt_prog_compiler_can_build_shared=no
9546       ;;
9547     esac
9548   fi
9549
9550 case $host_os in
9551   # For platforms which do not support PIC, -DPIC is meaningless:
9552   *djgpp*)
9553     lt_prog_compiler_pic=
9554     ;;
9555   *)
9556     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9557     ;;
9558 esac
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9560 $as_echo "$lt_prog_compiler_pic" >&6; }
9561
9562
9563
9564
9565
9566
9567 #
9568 # Check to make sure the PIC flag actually works.
9569 #
9570 if test -n "$lt_prog_compiler_pic"; then
9571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9572 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9573 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9574   $as_echo_n "(cached) " >&6
9575 else
9576   lt_cv_prog_compiler_pic_works=no
9577    ac_outfile=conftest.$ac_objext
9578    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9579    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9580    # Insert the option either (1) after the last *FLAGS variable, or
9581    # (2) before a word containing "conftest.", or (3) at the end.
9582    # Note that $ac_compile itself does not contain backslashes and begins
9583    # with a dollar sign (not a hyphen), so the echo should work correctly.
9584    # The option is referenced via a variable to avoid confusing sed.
9585    lt_compile=`echo "$ac_compile" | $SED \
9586    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9587    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9588    -e 's:$: $lt_compiler_flag:'`
9589    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9590    (eval "$lt_compile" 2>conftest.err)
9591    ac_status=$?
9592    cat conftest.err >&5
9593    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594    if (exit $ac_status) && test -s "$ac_outfile"; then
9595      # The compiler can only warn and ignore the option if not recognized
9596      # So say no if there are warnings other than the usual output.
9597      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9598      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9599      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9600        lt_cv_prog_compiler_pic_works=yes
9601      fi
9602    fi
9603    $RM conftest*
9604
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9607 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9608
9609 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9610     case $lt_prog_compiler_pic in
9611      "" | " "*) ;;
9612      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9613      esac
9614 else
9615     lt_prog_compiler_pic=
9616      lt_prog_compiler_can_build_shared=no
9617 fi
9618
9619 fi
9620
9621
9622
9623
9624
9625
9626 #
9627 # Check to make sure the static flag actually works.
9628 #
9629 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9631 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9632 if ${lt_cv_prog_compiler_static_works+:} false; then :
9633   $as_echo_n "(cached) " >&6
9634 else
9635   lt_cv_prog_compiler_static_works=no
9636    save_LDFLAGS="$LDFLAGS"
9637    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9638    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9639    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9640      # The linker can only warn and ignore the option if not recognized
9641      # So say no if there are warnings
9642      if test -s conftest.err; then
9643        # Append any errors to the config.log.
9644        cat conftest.err 1>&5
9645        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9646        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9647        if diff conftest.exp conftest.er2 >/dev/null; then
9648          lt_cv_prog_compiler_static_works=yes
9649        fi
9650      else
9651        lt_cv_prog_compiler_static_works=yes
9652      fi
9653    fi
9654    $RM -r conftest*
9655    LDFLAGS="$save_LDFLAGS"
9656
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9659 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9660
9661 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9662     :
9663 else
9664     lt_prog_compiler_static=
9665 fi
9666
9667
9668
9669
9670
9671
9672
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9674 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9675 if ${lt_cv_prog_compiler_c_o+:} false; then :
9676   $as_echo_n "(cached) " >&6
9677 else
9678   lt_cv_prog_compiler_c_o=no
9679    $RM -r conftest 2>/dev/null
9680    mkdir conftest
9681    cd conftest
9682    mkdir out
9683    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9684
9685    lt_compiler_flag="-o out/conftest2.$ac_objext"
9686    # Insert the option either (1) after the last *FLAGS variable, or
9687    # (2) before a word containing "conftest.", or (3) at the end.
9688    # Note that $ac_compile itself does not contain backslashes and begins
9689    # with a dollar sign (not a hyphen), so the echo should work correctly.
9690    lt_compile=`echo "$ac_compile" | $SED \
9691    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9693    -e 's:$: $lt_compiler_flag:'`
9694    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9695    (eval "$lt_compile" 2>out/conftest.err)
9696    ac_status=$?
9697    cat out/conftest.err >&5
9698    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9700    then
9701      # The compiler can only warn and ignore the option if not recognized
9702      # So say no if there are warnings
9703      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9704      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9705      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9706        lt_cv_prog_compiler_c_o=yes
9707      fi
9708    fi
9709    chmod u+w . 2>&5
9710    $RM conftest*
9711    # SGI C++ compiler will create directory out/ii_files/ for
9712    # template instantiation
9713    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9714    $RM out/* && rmdir out
9715    cd ..
9716    $RM -r conftest
9717    $RM conftest*
9718
9719 fi
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9721 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9722
9723
9724
9725
9726
9727
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9729 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9730 if ${lt_cv_prog_compiler_c_o+:} false; then :
9731   $as_echo_n "(cached) " >&6
9732 else
9733   lt_cv_prog_compiler_c_o=no
9734    $RM -r conftest 2>/dev/null
9735    mkdir conftest
9736    cd conftest
9737    mkdir out
9738    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9739
9740    lt_compiler_flag="-o out/conftest2.$ac_objext"
9741    # Insert the option either (1) after the last *FLAGS variable, or
9742    # (2) before a word containing "conftest.", or (3) at the end.
9743    # Note that $ac_compile itself does not contain backslashes and begins
9744    # with a dollar sign (not a hyphen), so the echo should work correctly.
9745    lt_compile=`echo "$ac_compile" | $SED \
9746    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9747    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9748    -e 's:$: $lt_compiler_flag:'`
9749    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9750    (eval "$lt_compile" 2>out/conftest.err)
9751    ac_status=$?
9752    cat out/conftest.err >&5
9753    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9755    then
9756      # The compiler can only warn and ignore the option if not recognized
9757      # So say no if there are warnings
9758      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9759      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9760      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9761        lt_cv_prog_compiler_c_o=yes
9762      fi
9763    fi
9764    chmod u+w . 2>&5
9765    $RM conftest*
9766    # SGI C++ compiler will create directory out/ii_files/ for
9767    # template instantiation
9768    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9769    $RM out/* && rmdir out
9770    cd ..
9771    $RM -r conftest
9772    $RM conftest*
9773
9774 fi
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9776 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9777
9778
9779
9780
9781 hard_links="nottested"
9782 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9783   # do not overwrite the value of need_locks provided by the user
9784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9785 $as_echo_n "checking if we can lock with hard links... " >&6; }
9786   hard_links=yes
9787   $RM conftest*
9788   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9789   touch conftest.a
9790   ln conftest.a conftest.b 2>&5 || hard_links=no
9791   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9793 $as_echo "$hard_links" >&6; }
9794   if test "$hard_links" = no; then
9795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9796 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9797     need_locks=warn
9798   fi
9799 else
9800   need_locks=no
9801 fi
9802
9803
9804
9805
9806
9807
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9809 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9810
9811   runpath_var=
9812   allow_undefined_flag=
9813   always_export_symbols=no
9814   archive_cmds=
9815   archive_expsym_cmds=
9816   compiler_needs_object=no
9817   enable_shared_with_static_runtimes=no
9818   export_dynamic_flag_spec=
9819   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9820   hardcode_automatic=no
9821   hardcode_direct=no
9822   hardcode_direct_absolute=no
9823   hardcode_libdir_flag_spec=
9824   hardcode_libdir_flag_spec_ld=
9825   hardcode_libdir_separator=
9826   hardcode_minus_L=no
9827   hardcode_shlibpath_var=unsupported
9828   inherit_rpath=no
9829   link_all_deplibs=unknown
9830   module_cmds=
9831   module_expsym_cmds=
9832   old_archive_from_new_cmds=
9833   old_archive_from_expsyms_cmds=
9834   thread_safe_flag_spec=
9835   whole_archive_flag_spec=
9836   # include_expsyms should be a list of space-separated symbols to be *always*
9837   # included in the symbol list
9838   include_expsyms=
9839   # exclude_expsyms can be an extended regexp of symbols to exclude
9840   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9841   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9842   # as well as any symbol that contains `d'.
9843   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9844   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9845   # platforms (ab)use it in PIC code, but their linkers get confused if
9846   # the symbol is explicitly referenced.  Since portable code cannot
9847   # rely on this symbol name, it's probably fine to never include it in
9848   # preloaded symbol tables.
9849   # Exclude shared library initialization/finalization symbols.
9850   extract_expsyms_cmds=
9851
9852   case $host_os in
9853   cygwin* | mingw* | pw32* | cegcc*)
9854     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9855     # When not using gcc, we currently assume that we are using
9856     # Microsoft Visual C++.
9857     if test "$GCC" != yes; then
9858       with_gnu_ld=no
9859     fi
9860     ;;
9861   interix*)
9862     # we just hope/assume this is gcc and not c89 (= MSVC++)
9863     with_gnu_ld=yes
9864     ;;
9865   openbsd*)
9866     with_gnu_ld=no
9867     ;;
9868   esac
9869
9870   ld_shlibs=yes
9871
9872   # On some targets, GNU ld is compatible enough with the native linker
9873   # that we're better off using the native interface for both.
9874   lt_use_gnu_ld_interface=no
9875   if test "$with_gnu_ld" = yes; then
9876     case $host_os in
9877       aix*)
9878         # The AIX port of GNU ld has always aspired to compatibility
9879         # with the native linker.  However, as the warning in the GNU ld
9880         # block says, versions before 2.19.5* couldn't really create working
9881         # shared libraries, regardless of the interface used.
9882         case `$LD -v 2>&1` in
9883           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9884           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9885           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9886           *)
9887             lt_use_gnu_ld_interface=yes
9888             ;;
9889         esac
9890         ;;
9891       *)
9892         lt_use_gnu_ld_interface=yes
9893         ;;
9894     esac
9895   fi
9896
9897   if test "$lt_use_gnu_ld_interface" = yes; then
9898     # If archive_cmds runs LD, not CC, wlarc should be empty
9899     wlarc='${wl}'
9900
9901     # Set some defaults for GNU ld with shared library support. These
9902     # are reset later if shared libraries are not supported. Putting them
9903     # here allows them to be overridden if necessary.
9904     runpath_var=LD_RUN_PATH
9905     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9906     export_dynamic_flag_spec='${wl}--export-dynamic'
9907     # ancient GNU ld didn't support --whole-archive et. al.
9908     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9909       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9910     else
9911       whole_archive_flag_spec=
9912     fi
9913     supports_anon_versioning=no
9914     case `$LD -v 2>&1` in
9915       *GNU\ gold*) supports_anon_versioning=yes ;;
9916       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9917       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9918       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9919       *\ 2.11.*) ;; # other 2.11 versions
9920       *) supports_anon_versioning=yes ;;
9921     esac
9922
9923     # See if GNU ld supports shared libraries.
9924     case $host_os in
9925     aix[3-9]*)
9926       # On AIX/PPC, the GNU linker is very broken
9927       if test "$host_cpu" != ia64; then
9928         ld_shlibs=no
9929         cat <<_LT_EOF 1>&2
9930
9931 *** Warning: the GNU linker, at least up to release 2.19, is reported
9932 *** to be unable to reliably create shared libraries on AIX.
9933 *** Therefore, libtool is disabling shared libraries support.  If you
9934 *** really care for shared libraries, you may want to install binutils
9935 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9936 *** You will then need to restart the configuration process.
9937
9938 _LT_EOF
9939       fi
9940       ;;
9941
9942     amigaos*)
9943       case $host_cpu in
9944       powerpc)
9945             # see comment about AmigaOS4 .so support
9946             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9947             archive_expsym_cmds=''
9948         ;;
9949       m68k)
9950             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)'
9951             hardcode_libdir_flag_spec='-L$libdir'
9952             hardcode_minus_L=yes
9953         ;;
9954       esac
9955       ;;
9956
9957     beos*)
9958       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9959         allow_undefined_flag=unsupported
9960         # Joseph Beckenbach <[email protected]> says some releases of gcc
9961         # support --undefined.  This deserves some investigation.  FIXME
9962         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963       else
9964         ld_shlibs=no
9965       fi
9966       ;;
9967
9968     cygwin* | mingw* | pw32* | cegcc*)
9969       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9970       # as there is no search path for DLLs.
9971       hardcode_libdir_flag_spec='-L$libdir'
9972       export_dynamic_flag_spec='${wl}--export-all-symbols'
9973       allow_undefined_flag=unsupported
9974       always_export_symbols=no
9975       enable_shared_with_static_runtimes=yes
9976       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9977
9978       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9979         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9980         # If the export-symbols file already is a .def file (1st line
9981         # is EXPORTS), use it as is; otherwise, prepend...
9982         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9983           cp $export_symbols $output_objdir/$soname.def;
9984         else
9985           echo EXPORTS > $output_objdir/$soname.def;
9986           cat $export_symbols >> $output_objdir/$soname.def;
9987         fi~
9988         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9989       else
9990         ld_shlibs=no
9991       fi
9992       ;;
9993
9994     haiku*)
9995       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9996       link_all_deplibs=yes
9997       ;;
9998
9999     interix[3-9]*)
10000       hardcode_direct=no
10001       hardcode_shlibpath_var=no
10002       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10003       export_dynamic_flag_spec='${wl}-E'
10004       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10005       # Instead, shared libraries are loaded at an image base (0x10000000 by
10006       # default) and relocated if they conflict, which is a slow very memory
10007       # consuming and fragmenting process.  To avoid this, we pick a random,
10008       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10009       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10010       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10011       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'
10012       ;;
10013
10014     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10015       tmp_diet=no
10016       if test "$host_os" = linux-dietlibc; then
10017         case $cc_basename in
10018           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10019         esac
10020       fi
10021       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10022          && test "$tmp_diet" = no
10023       then
10024         tmp_addflag=' $pic_flag'
10025         tmp_sharedflag='-shared'
10026         case $cc_basename,$host_cpu in
10027         pgcc*)                          # Portland Group C compiler
10028           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'
10029           tmp_addflag=' $pic_flag'
10030           ;;
10031         pgf77* | pgf90* | pgf95* | pgfortran*)
10032                                         # Portland Group f77 and f90 compilers
10033           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'
10034           tmp_addflag=' $pic_flag -Mnomain' ;;
10035         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10036           tmp_addflag=' -i_dynamic' ;;
10037         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10038           tmp_addflag=' -i_dynamic -nofor_main' ;;
10039         ifc* | ifort*)                  # Intel Fortran compiler
10040           tmp_addflag=' -nofor_main' ;;
10041         lf95*)                          # Lahey Fortran 8.1
10042           whole_archive_flag_spec=
10043           tmp_sharedflag='--shared' ;;
10044         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10045           tmp_sharedflag='-qmkshrobj'
10046           tmp_addflag= ;;
10047         nvcc*)  # Cuda Compiler Driver 2.2
10048           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'
10049           compiler_needs_object=yes
10050           ;;
10051         esac
10052         case `$CC -V 2>&1 | sed 5q` in
10053         *Sun\ C*)                       # Sun C 5.9
10054           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'
10055           compiler_needs_object=yes
10056           tmp_sharedflag='-G' ;;
10057         *Sun\ F*)                       # Sun Fortran 8.3
10058           tmp_sharedflag='-G' ;;
10059         esac
10060         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061
10062         if test "x$supports_anon_versioning" = xyes; then
10063           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10064             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10065             echo "local: *; };" >> $output_objdir/$libname.ver~
10066             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10067         fi
10068
10069         case $cc_basename in
10070         xlf* | bgf* | bgxlf* | mpixlf*)
10071           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10072           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10073           hardcode_libdir_flag_spec=
10074           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10075           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10076           if test "x$supports_anon_versioning" = xyes; then
10077             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10078               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10079               echo "local: *; };" >> $output_objdir/$libname.ver~
10080               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10081           fi
10082           ;;
10083         esac
10084       else
10085         ld_shlibs=no
10086       fi
10087       ;;
10088
10089     netbsd*)
10090       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10091         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10092         wlarc=
10093       else
10094         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10096       fi
10097       ;;
10098
10099     solaris*)
10100       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10101         ld_shlibs=no
10102         cat <<_LT_EOF 1>&2
10103
10104 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10105 *** create shared libraries on Solaris systems.  Therefore, libtool
10106 *** is disabling shared libraries support.  We urge you to upgrade GNU
10107 *** binutils to release 2.9.1 or newer.  Another option is to modify
10108 *** your PATH or compiler configuration so that the native linker is
10109 *** used, and then restart.
10110
10111 _LT_EOF
10112       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10114         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10115       else
10116         ld_shlibs=no
10117       fi
10118       ;;
10119
10120     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10121       case `$LD -v 2>&1` in
10122         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10123         ld_shlibs=no
10124         cat <<_LT_EOF 1>&2
10125
10126 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10127 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10128 *** is disabling shared libraries support.  We urge you to upgrade GNU
10129 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10130 *** your PATH or compiler configuration so that the native linker is
10131 *** used, and then restart.
10132
10133 _LT_EOF
10134         ;;
10135         *)
10136           # For security reasons, it is highly recommended that you always
10137           # use absolute paths for naming shared libraries, and exclude the
10138           # DT_RUNPATH tag from executables and libraries.  But doing so
10139           # requires that you compile everything twice, which is a pain.
10140           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10141             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10142             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10143             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10144           else
10145             ld_shlibs=no
10146           fi
10147         ;;
10148       esac
10149       ;;
10150
10151     sunos4*)
10152       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10153       wlarc=
10154       hardcode_direct=yes
10155       hardcode_shlibpath_var=no
10156       ;;
10157
10158     *)
10159       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10160         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10161         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10162       else
10163         ld_shlibs=no
10164       fi
10165       ;;
10166     esac
10167
10168     if test "$ld_shlibs" = no; then
10169       runpath_var=
10170       hardcode_libdir_flag_spec=
10171       export_dynamic_flag_spec=
10172       whole_archive_flag_spec=
10173     fi
10174   else
10175     # PORTME fill in a description of your system's linker (not GNU ld)
10176     case $host_os in
10177     aix3*)
10178       allow_undefined_flag=unsupported
10179       always_export_symbols=yes
10180       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'
10181       # Note: this linker hardcodes the directories in LIBPATH if there
10182       # are no directories specified by -L.
10183       hardcode_minus_L=yes
10184       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10185         # Neither direct hardcoding nor static linking is supported with a
10186         # broken collect2.
10187         hardcode_direct=unsupported
10188       fi
10189       ;;
10190
10191     aix[4-9]*)
10192       if test "$host_cpu" = ia64; then
10193         # On IA64, the linker does run time linking by default, so we don't
10194         # have to do anything special.
10195         aix_use_runtimelinking=no
10196         exp_sym_flag='-Bexport'
10197         no_entry_flag=""
10198       else
10199         # If we're using GNU nm, then we don't want the "-C" option.
10200         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10201         # Also, AIX nm treats weak defined symbols like other global
10202         # defined symbols, whereas GNU nm marks them as "W".
10203         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10204           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'
10205         else
10206           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10207         fi
10208         aix_use_runtimelinking=no
10209
10210         # Test if we are trying to use run time linking or normal
10211         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10212         # need to do runtime linking.
10213         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10214           for ld_flag in $LDFLAGS; do
10215           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10216             aix_use_runtimelinking=yes
10217             break
10218           fi
10219           done
10220           ;;
10221         esac
10222
10223         exp_sym_flag='-bexport'
10224         no_entry_flag='-bnoentry'
10225       fi
10226
10227       # When large executables or shared objects are built, AIX ld can
10228       # have problems creating the table of contents.  If linking a library
10229       # or program results in "error TOC overflow" add -mminimal-toc to
10230       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10231       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10232
10233       archive_cmds=''
10234       hardcode_direct=yes
10235       hardcode_direct_absolute=yes
10236       hardcode_libdir_separator=':'
10237       link_all_deplibs=yes
10238       file_list_spec='${wl}-f,'
10239
10240       if test "$GCC" = yes; then
10241         case $host_os in aix4.[012]|aix4.[012].*)
10242         # We only want to do this on AIX 4.2 and lower, the check
10243         # below for broken collect2 doesn't work under 4.3+
10244           collect2name=`${CC} -print-prog-name=collect2`
10245           if test -f "$collect2name" &&
10246            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10247           then
10248           # We have reworked collect2
10249           :
10250           else
10251           # We have old collect2
10252           hardcode_direct=unsupported
10253           # It fails to find uninstalled libraries when the uninstalled
10254           # path is not listed in the libpath.  Setting hardcode_minus_L
10255           # to unsupported forces relinking
10256           hardcode_minus_L=yes
10257           hardcode_libdir_flag_spec='-L$libdir'
10258           hardcode_libdir_separator=
10259           fi
10260           ;;
10261         esac
10262         shared_flag='-shared'
10263         if test "$aix_use_runtimelinking" = yes; then
10264           shared_flag="$shared_flag "'${wl}-G'
10265         fi
10266       else
10267         # not using gcc
10268         if test "$host_cpu" = ia64; then
10269         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10270         # chokes on -Wl,-G. The following line is correct:
10271           shared_flag='-G'
10272         else
10273           if test "$aix_use_runtimelinking" = yes; then
10274             shared_flag='${wl}-G'
10275           else
10276             shared_flag='${wl}-bM:SRE'
10277           fi
10278         fi
10279       fi
10280
10281       export_dynamic_flag_spec='${wl}-bexpall'
10282       # It seems that -bexpall does not export symbols beginning with
10283       # underscore (_), so it is better to generate a list of symbols to export.
10284       always_export_symbols=yes
10285       if test "$aix_use_runtimelinking" = yes; then
10286         # Warning - without using the other runtime loading flags (-brtl),
10287         # -berok will link without error, but may produce a broken library.
10288         allow_undefined_flag='-berok'
10289         # Determine the default libpath from the value encoded in an
10290         # empty executable.
10291         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h.  */
10293
10294 int
10295 main ()
10296 {
10297
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303
10304 lt_aix_libpath_sed='
10305     /Import File Strings/,/^$/ {
10306         /^0/ {
10307             s/^0  *\(.*\)$/\1/
10308             p
10309         }
10310     }'
10311 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10312 # Check for a 64-bit object if we didn't find anything.
10313 if test -z "$aix_libpath"; then
10314   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10315 fi
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext \
10318     conftest$ac_exeext conftest.$ac_ext
10319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10320
10321         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10322         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"
10323       else
10324         if test "$host_cpu" = ia64; then
10325           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10326           allow_undefined_flag="-z nodefs"
10327           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"
10328         else
10329          # Determine the default libpath from the value encoded in an
10330          # empty executable.
10331          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h.  */
10333
10334 int
10335 main ()
10336 {
10337
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343
10344 lt_aix_libpath_sed='
10345     /Import File Strings/,/^$/ {
10346         /^0/ {
10347             s/^0  *\(.*\)$/\1/
10348             p
10349         }
10350     }'
10351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10352 # Check for a 64-bit object if we didn't find anything.
10353 if test -z "$aix_libpath"; then
10354   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10355 fi
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext \
10358     conftest$ac_exeext conftest.$ac_ext
10359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10360
10361          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10362           # Warning - without using the other run time loading flags,
10363           # -berok will link without error, but may produce a broken library.
10364           no_undefined_flag=' ${wl}-bernotok'
10365           allow_undefined_flag=' ${wl}-berok'
10366           if test "$with_gnu_ld" = yes; then
10367             # We only use this code for GNU lds that support --whole-archive.
10368             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10369           else
10370             # Exported symbols can be pulled into shared objects from archives
10371             whole_archive_flag_spec='$convenience'
10372           fi
10373           archive_cmds_need_lc=yes
10374           # This is similar to how AIX traditionally builds its shared libraries.
10375           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'
10376         fi
10377       fi
10378       ;;
10379
10380     amigaos*)
10381       case $host_cpu in
10382       powerpc)
10383             # see comment about AmigaOS4 .so support
10384             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10385             archive_expsym_cmds=''
10386         ;;
10387       m68k)
10388             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)'
10389             hardcode_libdir_flag_spec='-L$libdir'
10390             hardcode_minus_L=yes
10391         ;;
10392       esac
10393       ;;
10394
10395     bsdi[45]*)
10396       export_dynamic_flag_spec=-rdynamic
10397       ;;
10398
10399     cygwin* | mingw* | pw32* | cegcc*)
10400       # When not using gcc, we currently assume that we are using
10401       # Microsoft Visual C++.
10402       # hardcode_libdir_flag_spec is actually meaningless, as there is
10403       # no search path for DLLs.
10404       hardcode_libdir_flag_spec=' '
10405       allow_undefined_flag=unsupported
10406       # Tell ltmain to make .lib files, not .a files.
10407       libext=lib
10408       # Tell ltmain to make .dll files, not .so files.
10409       shrext_cmds=".dll"
10410       # FIXME: Setting linknames here is a bad hack.
10411       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10412       # The linker will automatically build a .lib file if we build a DLL.
10413       old_archive_from_new_cmds='true'
10414       # FIXME: Should let the user specify the lib program.
10415       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10416       fix_srcfile_path='`cygpath -w "$srcfile"`'
10417       enable_shared_with_static_runtimes=yes
10418       ;;
10419
10420     darwin* | rhapsody*)
10421
10422
10423   archive_cmds_need_lc=no
10424   hardcode_direct=no
10425   hardcode_automatic=yes
10426   hardcode_shlibpath_var=unsupported
10427   if test "$lt_cv_ld_force_load" = "yes"; then
10428     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\"`'
10429   else
10430     whole_archive_flag_spec=''
10431   fi
10432   link_all_deplibs=yes
10433   allow_undefined_flag="$_lt_dar_allow_undefined"
10434   case $cc_basename in
10435      ifort*) _lt_dar_can_shared=yes ;;
10436      *) _lt_dar_can_shared=$GCC ;;
10437   esac
10438   if test "$_lt_dar_can_shared" = "yes"; then
10439     output_verbose_link_cmd=func_echo_all
10440     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10441     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10442     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}"
10443     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}"
10444
10445   else
10446   ld_shlibs=no
10447   fi
10448
10449       ;;
10450
10451     dgux*)
10452       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453       hardcode_libdir_flag_spec='-L$libdir'
10454       hardcode_shlibpath_var=no
10455       ;;
10456
10457     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10458     # support.  Future versions do this automatically, but an explicit c++rt0.o
10459     # does not break anything, and helps significantly (at the cost of a little
10460     # extra space).
10461     freebsd2.2*)
10462       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10463       hardcode_libdir_flag_spec='-R$libdir'
10464       hardcode_direct=yes
10465       hardcode_shlibpath_var=no
10466       ;;
10467
10468     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10469     freebsd2.*)
10470       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10471       hardcode_direct=yes
10472       hardcode_minus_L=yes
10473       hardcode_shlibpath_var=no
10474       ;;
10475
10476     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10477     freebsd* | dragonfly*)
10478       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10479       hardcode_libdir_flag_spec='-R$libdir'
10480       hardcode_direct=yes
10481       hardcode_shlibpath_var=no
10482       ;;
10483
10484     hpux9*)
10485       if test "$GCC" = yes; then
10486         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10487       else
10488         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'
10489       fi
10490       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10491       hardcode_libdir_separator=:
10492       hardcode_direct=yes
10493
10494       # hardcode_minus_L: Not really in the search PATH,
10495       # but as the default location of the library.
10496       hardcode_minus_L=yes
10497       export_dynamic_flag_spec='${wl}-E'
10498       ;;
10499
10500     hpux10*)
10501       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10502         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10503       else
10504         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10505       fi
10506       if test "$with_gnu_ld" = no; then
10507         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10508         hardcode_libdir_flag_spec_ld='+b $libdir'
10509         hardcode_libdir_separator=:
10510         hardcode_direct=yes
10511         hardcode_direct_absolute=yes
10512         export_dynamic_flag_spec='${wl}-E'
10513         # hardcode_minus_L: Not really in the search PATH,
10514         # but as the default location of the library.
10515         hardcode_minus_L=yes
10516       fi
10517       ;;
10518
10519     hpux11*)
10520       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10521         case $host_cpu in
10522         hppa*64*)
10523           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10524           ;;
10525         ia64*)
10526           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10527           ;;
10528         *)
10529           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10530           ;;
10531         esac
10532       else
10533         case $host_cpu in
10534         hppa*64*)
10535           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10536           ;;
10537         ia64*)
10538           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10539           ;;
10540         *)
10541
10542           # Older versions of the 11.00 compiler do not understand -b yet
10543           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10544           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10545 $as_echo_n "checking if $CC understands -b... " >&6; }
10546 if ${lt_cv_prog_compiler__b+:} false; then :
10547   $as_echo_n "(cached) " >&6
10548 else
10549   lt_cv_prog_compiler__b=no
10550    save_LDFLAGS="$LDFLAGS"
10551    LDFLAGS="$LDFLAGS -b"
10552    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10553    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10554      # The linker can only warn and ignore the option if not recognized
10555      # So say no if there are warnings
10556      if test -s conftest.err; then
10557        # Append any errors to the config.log.
10558        cat conftest.err 1>&5
10559        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10560        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10561        if diff conftest.exp conftest.er2 >/dev/null; then
10562          lt_cv_prog_compiler__b=yes
10563        fi
10564      else
10565        lt_cv_prog_compiler__b=yes
10566      fi
10567    fi
10568    $RM -r conftest*
10569    LDFLAGS="$save_LDFLAGS"
10570
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10573 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10574
10575 if test x"$lt_cv_prog_compiler__b" = xyes; then
10576     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10577 else
10578     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10579 fi
10580
10581           ;;
10582         esac
10583       fi
10584       if test "$with_gnu_ld" = no; then
10585         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10586         hardcode_libdir_separator=:
10587
10588         case $host_cpu in
10589         hppa*64*|ia64*)
10590           hardcode_direct=no
10591           hardcode_shlibpath_var=no
10592           ;;
10593         *)
10594           hardcode_direct=yes
10595           hardcode_direct_absolute=yes
10596           export_dynamic_flag_spec='${wl}-E'
10597
10598           # hardcode_minus_L: Not really in the search PATH,
10599           # but as the default location of the library.
10600           hardcode_minus_L=yes
10601           ;;
10602         esac
10603       fi
10604       ;;
10605
10606     irix5* | irix6* | nonstopux*)
10607       if test "$GCC" = yes; then
10608         archive_cmds='$CC -shared $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'
10609         # Try to use the -exported_symbol ld option, if it does not
10610         # work, assume that -exports_file does not work either and
10611         # implicitly export all symbols.
10612         save_LDFLAGS="$LDFLAGS"
10613         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10614         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h.  */
10616 int foo(void) {}
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619   archive_expsym_cmds='$CC -shared $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'
10620
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext \
10623     conftest$ac_exeext conftest.$ac_ext
10624         LDFLAGS="$save_LDFLAGS"
10625       else
10626         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'
10627         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'
10628       fi
10629       archive_cmds_need_lc='no'
10630       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10631       hardcode_libdir_separator=:
10632       inherit_rpath=yes
10633       link_all_deplibs=yes
10634       ;;
10635
10636     netbsd*)
10637       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10638         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10639       else
10640         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10641       fi
10642       hardcode_libdir_flag_spec='-R$libdir'
10643       hardcode_direct=yes
10644       hardcode_shlibpath_var=no
10645       ;;
10646
10647     newsos6)
10648       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10649       hardcode_direct=yes
10650       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10651       hardcode_libdir_separator=:
10652       hardcode_shlibpath_var=no
10653       ;;
10654
10655     *nto* | *qnx*)
10656       ;;
10657
10658     openbsd*)
10659       if test -f /usr/libexec/ld.so; then
10660         hardcode_direct=yes
10661         hardcode_shlibpath_var=no
10662         hardcode_direct_absolute=yes
10663         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10664           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10665           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10666           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10667           export_dynamic_flag_spec='${wl}-E'
10668         else
10669           case $host_os in
10670            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10671              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10672              hardcode_libdir_flag_spec='-R$libdir'
10673              ;;
10674            *)
10675              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10676              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10677              ;;
10678           esac
10679         fi
10680       else
10681         ld_shlibs=no
10682       fi
10683       ;;
10684
10685     os2*)
10686       hardcode_libdir_flag_spec='-L$libdir'
10687       hardcode_minus_L=yes
10688       allow_undefined_flag=unsupported
10689       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'
10690       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10691       ;;
10692
10693     osf3*)
10694       if test "$GCC" = yes; then
10695         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10696         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'
10697       else
10698         allow_undefined_flag=' -expect_unresolved \*'
10699         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'
10700       fi
10701       archive_cmds_need_lc='no'
10702       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10703       hardcode_libdir_separator=:
10704       ;;
10705
10706     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10707       if test "$GCC" = yes; then
10708         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10709         archive_cmds='$CC -shared${allow_undefined_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'
10710         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10711       else
10712         allow_undefined_flag=' -expect_unresolved \*'
10713         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'
10714         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~
10715         $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'
10716
10717         # Both c and cxx compiler support -rpath directly
10718         hardcode_libdir_flag_spec='-rpath $libdir'
10719       fi
10720       archive_cmds_need_lc='no'
10721       hardcode_libdir_separator=:
10722       ;;
10723
10724     solaris*)
10725       no_undefined_flag=' -z defs'
10726       if test "$GCC" = yes; then
10727         wlarc='${wl}'
10728         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10729         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10730           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10731       else
10732         case `$CC -V 2>&1` in
10733         *"Compilers 5.0"*)
10734           wlarc=''
10735           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10736           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10737           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10738           ;;
10739         *)
10740           wlarc='${wl}'
10741           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10742           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10743           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10744           ;;
10745         esac
10746       fi
10747       hardcode_libdir_flag_spec='-R$libdir'
10748       hardcode_shlibpath_var=no
10749       case $host_os in
10750       solaris2.[0-5] | solaris2.[0-5].*) ;;
10751       *)
10752         # The compiler driver will combine and reorder linker options,
10753         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10754         # but is careful enough not to reorder.
10755         # Supported since Solaris 2.6 (maybe 2.5.1?)
10756         if test "$GCC" = yes; then
10757           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10758         else
10759           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10760         fi
10761         ;;
10762       esac
10763       link_all_deplibs=yes
10764       ;;
10765
10766     sunos4*)
10767       if test "x$host_vendor" = xsequent; then
10768         # Use $CC to link under sequent, because it throws in some extra .o
10769         # files that make .init and .fini sections work.
10770         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10771       else
10772         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10773       fi
10774       hardcode_libdir_flag_spec='-L$libdir'
10775       hardcode_direct=yes
10776       hardcode_minus_L=yes
10777       hardcode_shlibpath_var=no
10778       ;;
10779
10780     sysv4)
10781       case $host_vendor in
10782         sni)
10783           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784           hardcode_direct=yes # is this really true???
10785         ;;
10786         siemens)
10787           ## LD is ld it makes a PLAMLIB
10788           ## CC just makes a GrossModule.
10789           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10790           reload_cmds='$CC -r -o $output$reload_objs'
10791           hardcode_direct=no
10792         ;;
10793         motorola)
10794           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10795           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10796         ;;
10797       esac
10798       runpath_var='LD_RUN_PATH'
10799       hardcode_shlibpath_var=no
10800       ;;
10801
10802     sysv4.3*)
10803       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10804       hardcode_shlibpath_var=no
10805       export_dynamic_flag_spec='-Bexport'
10806       ;;
10807
10808     sysv4*MP*)
10809       if test -d /usr/nec; then
10810         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10811         hardcode_shlibpath_var=no
10812         runpath_var=LD_RUN_PATH
10813         hardcode_runpath_var=yes
10814         ld_shlibs=yes
10815       fi
10816       ;;
10817
10818     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10819       no_undefined_flag='${wl}-z,text'
10820       archive_cmds_need_lc=no
10821       hardcode_shlibpath_var=no
10822       runpath_var='LD_RUN_PATH'
10823
10824       if test "$GCC" = yes; then
10825         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10827       else
10828         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10829         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10830       fi
10831       ;;
10832
10833     sysv5* | sco3.2v5* | sco5v6*)
10834       # Note: We can NOT use -z defs as we might desire, because we do not
10835       # link with -lc, and that would cause any symbols used from libc to
10836       # always be unresolved, which means just about no library would
10837       # ever link correctly.  If we're not using GNU ld we use -z text
10838       # though, which does catch some bad symbols but isn't as heavy-handed
10839       # as -z defs.
10840       no_undefined_flag='${wl}-z,text'
10841       allow_undefined_flag='${wl}-z,nodefs'
10842       archive_cmds_need_lc=no
10843       hardcode_shlibpath_var=no
10844       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10845       hardcode_libdir_separator=':'
10846       link_all_deplibs=yes
10847       export_dynamic_flag_spec='${wl}-Bexport'
10848       runpath_var='LD_RUN_PATH'
10849
10850       if test "$GCC" = yes; then
10851         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10852         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10853       else
10854         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10855         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10856       fi
10857       ;;
10858
10859     uts4*)
10860       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10861       hardcode_libdir_flag_spec='-L$libdir'
10862       hardcode_shlibpath_var=no
10863       ;;
10864
10865     *)
10866       ld_shlibs=no
10867       ;;
10868     esac
10869
10870     if test x$host_vendor = xsni; then
10871       case $host in
10872       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10873         export_dynamic_flag_spec='${wl}-Blargedynsym'
10874         ;;
10875       esac
10876     fi
10877   fi
10878
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10880 $as_echo "$ld_shlibs" >&6; }
10881 test "$ld_shlibs" = no && can_build_shared=no
10882
10883 with_gnu_ld=$with_gnu_ld
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899 #
10900 # Do we need to explicitly link libc?
10901 #
10902 case "x$archive_cmds_need_lc" in
10903 x|xyes)
10904   # Assume -lc should be added
10905   archive_cmds_need_lc=yes
10906
10907   if test "$enable_shared" = yes && test "$GCC" = yes; then
10908     case $archive_cmds in
10909     *'~'*)
10910       # FIXME: we may have to deal with multi-command sequences.
10911       ;;
10912     '$CC '*)
10913       # Test whether the compiler implicitly links with -lc since on some
10914       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10915       # to ld, don't add -lc before -lgcc.
10916       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10917 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10918 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10919   $as_echo_n "(cached) " >&6
10920 else
10921   $RM conftest*
10922         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10923
10924         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10925   (eval $ac_compile) 2>&5
10926   ac_status=$?
10927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10928   test $ac_status = 0; } 2>conftest.err; then
10929           soname=conftest
10930           lib=conftest
10931           libobjs=conftest.$ac_objext
10932           deplibs=
10933           wl=$lt_prog_compiler_wl
10934           pic_flag=$lt_prog_compiler_pic
10935           compiler_flags=-v
10936           linker_flags=-v
10937           verstring=
10938           output_objdir=.
10939           libname=conftest
10940           lt_save_allow_undefined_flag=$allow_undefined_flag
10941           allow_undefined_flag=
10942           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10943   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10944   ac_status=$?
10945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10946   test $ac_status = 0; }
10947           then
10948             lt_cv_archive_cmds_need_lc=no
10949           else
10950             lt_cv_archive_cmds_need_lc=yes
10951           fi
10952           allow_undefined_flag=$lt_save_allow_undefined_flag
10953         else
10954           cat conftest.err 1>&5
10955         fi
10956         $RM conftest*
10957
10958 fi
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10960 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10961       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10962       ;;
10963     esac
10964   fi
10965   ;;
10966 esac
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11125 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11126
11127 if test "$GCC" = yes; then
11128   case $host_os in
11129     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11130     *) lt_awk_arg="/^libraries:/" ;;
11131   esac
11132   case $host_os in
11133     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11134     *) lt_sed_strip_eq="s,=/,/,g" ;;
11135   esac
11136   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11137   case $lt_search_path_spec in
11138   *\;*)
11139     # if the path contains ";" then we assume it to be the separator
11140     # otherwise default to the standard path separator (i.e. ":") - it is
11141     # assumed that no part of a normal pathname contains ";" but that should
11142     # okay in the real world where ";" in dirpaths is itself problematic.
11143     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11144     ;;
11145   *)
11146     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11147     ;;
11148   esac
11149   # Ok, now we have the path, separated by spaces, we can step through it
11150   # and add multilib dir if necessary.
11151   lt_tmp_lt_search_path_spec=
11152   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11153   for lt_sys_path in $lt_search_path_spec; do
11154     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11155       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11156     else
11157       test -d "$lt_sys_path" && \
11158         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11159     fi
11160   done
11161   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11162 BEGIN {RS=" "; FS="/|\n";} {
11163   lt_foo="";
11164   lt_count=0;
11165   for (lt_i = NF; lt_i > 0; lt_i--) {
11166     if ($lt_i != "" && $lt_i != ".") {
11167       if ($lt_i == "..") {
11168         lt_count++;
11169       } else {
11170         if (lt_count == 0) {
11171           lt_foo="/" $lt_i lt_foo;
11172         } else {
11173           lt_count--;
11174         }
11175       }
11176     }
11177   }
11178   if (lt_foo != "") { lt_freq[lt_foo]++; }
11179   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11180 }'`
11181   # AWK program above erroneously prepends '/' to C:/dos/paths
11182   # for these hosts.
11183   case $host_os in
11184     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11185       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11186   esac
11187   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11188 else
11189   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11190 fi
11191 library_names_spec=
11192 libname_spec='lib$name'
11193 soname_spec=
11194 shrext_cmds=".so"
11195 postinstall_cmds=
11196 postuninstall_cmds=
11197 finish_cmds=
11198 finish_eval=
11199 shlibpath_var=
11200 shlibpath_overrides_runpath=unknown
11201 version_type=none
11202 dynamic_linker="$host_os ld.so"
11203 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11204 need_lib_prefix=unknown
11205 hardcode_into_libs=no
11206
11207 # when you set need_version to no, make sure it does not cause -set_version
11208 # flags to be left without arguments
11209 need_version=unknown
11210
11211 case $host_os in
11212 aix3*)
11213   version_type=linux
11214   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11215   shlibpath_var=LIBPATH
11216
11217   # AIX 3 has no versioning support, so we append a major version to the name.
11218   soname_spec='${libname}${release}${shared_ext}$major'
11219   ;;
11220
11221 aix[4-9]*)
11222   version_type=linux
11223   need_lib_prefix=no
11224   need_version=no
11225   hardcode_into_libs=yes
11226   if test "$host_cpu" = ia64; then
11227     # AIX 5 supports IA64
11228     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11229     shlibpath_var=LD_LIBRARY_PATH
11230   else
11231     # With GCC up to 2.95.x, collect2 would create an import file
11232     # for dependence libraries.  The import file would start with
11233     # the line `#! .'.  This would cause the generated library to
11234     # depend on `.', always an invalid library.  This was fixed in
11235     # development snapshots of GCC prior to 3.0.
11236     case $host_os in
11237       aix4 | aix4.[01] | aix4.[01].*)
11238       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11239            echo ' yes '
11240            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11241         :
11242       else
11243         can_build_shared=no
11244       fi
11245       ;;
11246     esac
11247     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11248     # soname into executable. Probably we can add versioning support to
11249     # collect2, so additional links can be useful in future.
11250     if test "$aix_use_runtimelinking" = yes; then
11251       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11252       # instead of lib<name>.a to let people know that these are not
11253       # typical AIX shared libraries.
11254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255     else
11256       # We preserve .a as extension for shared libraries through AIX4.2
11257       # and later when we are not doing run time linking.
11258       library_names_spec='${libname}${release}.a $libname.a'
11259       soname_spec='${libname}${release}${shared_ext}$major'
11260     fi
11261     shlibpath_var=LIBPATH
11262   fi
11263   ;;
11264
11265 amigaos*)
11266   case $host_cpu in
11267   powerpc)
11268     # Since July 2007 AmigaOS4 officially supports .so libraries.
11269     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271     ;;
11272   m68k)
11273     library_names_spec='$libname.ixlibrary $libname.a'
11274     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11275     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'
11276     ;;
11277   esac
11278   ;;
11279
11280 beos*)
11281   library_names_spec='${libname}${shared_ext}'
11282   dynamic_linker="$host_os ld.so"
11283   shlibpath_var=LIBRARY_PATH
11284   ;;
11285
11286 bsdi[45]*)
11287   version_type=linux
11288   need_version=no
11289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290   soname_spec='${libname}${release}${shared_ext}$major'
11291   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11292   shlibpath_var=LD_LIBRARY_PATH
11293   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11294   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11295   # the default ld.so.conf also contains /usr/contrib/lib and
11296   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11297   # libtool to hard-code these into programs
11298   ;;
11299
11300 cygwin* | mingw* | pw32* | cegcc*)
11301   version_type=windows
11302   shrext_cmds=".dll"
11303   need_version=no
11304   need_lib_prefix=no
11305
11306   case $GCC,$host_os in
11307   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11308     library_names_spec='$libname.dll.a'
11309     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11310     postinstall_cmds='base_file=`basename \${file}`~
11311       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11312       dldir=$destdir/`dirname \$dlpath`~
11313       test -d \$dldir || mkdir -p \$dldir~
11314       $install_prog $dir/$dlname \$dldir/$dlname~
11315       chmod a+x \$dldir/$dlname~
11316       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11317         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11318       fi'
11319     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11320       dlpath=$dir/\$dldll~
11321        $RM \$dlpath'
11322     shlibpath_overrides_runpath=yes
11323
11324     case $host_os in
11325     cygwin*)
11326       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11327       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11328
11329       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11330       ;;
11331     mingw* | cegcc*)
11332       # MinGW DLLs use traditional 'lib' prefix
11333       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11334       ;;
11335     pw32*)
11336       # pw32 DLLs use 'pw' prefix rather than 'lib'
11337       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11338       ;;
11339     esac
11340     ;;
11341
11342   *)
11343     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11344     ;;
11345   esac
11346   dynamic_linker='Win32 ld.exe'
11347   # FIXME: first we should search . and the directory the executable is in
11348   shlibpath_var=PATH
11349   ;;
11350
11351 darwin* | rhapsody*)
11352   dynamic_linker="$host_os dyld"
11353   version_type=darwin
11354   need_lib_prefix=no
11355   need_version=no
11356   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11357   soname_spec='${libname}${release}${major}$shared_ext'
11358   shlibpath_overrides_runpath=yes
11359   shlibpath_var=DYLD_LIBRARY_PATH
11360   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11361
11362   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11363   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11364   ;;
11365
11366 dgux*)
11367   version_type=linux
11368   need_lib_prefix=no
11369   need_version=no
11370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11371   soname_spec='${libname}${release}${shared_ext}$major'
11372   shlibpath_var=LD_LIBRARY_PATH
11373   ;;
11374
11375 freebsd* | dragonfly*)
11376   # DragonFly does not have aout.  When/if they implement a new
11377   # versioning mechanism, adjust this.
11378   if test -x /usr/bin/objformat; then
11379     objformat=`/usr/bin/objformat`
11380   else
11381     case $host_os in
11382     freebsd[23].*) objformat=aout ;;
11383     *) objformat=elf ;;
11384     esac
11385   fi
11386   version_type=freebsd-$objformat
11387   case $version_type in
11388     freebsd-elf*)
11389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11390       need_version=no
11391       need_lib_prefix=no
11392       ;;
11393     freebsd-*)
11394       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11395       need_version=yes
11396       ;;
11397   esac
11398   shlibpath_var=LD_LIBRARY_PATH
11399   case $host_os in
11400   freebsd2.*)
11401     shlibpath_overrides_runpath=yes
11402     ;;
11403   freebsd3.[01]* | freebsdelf3.[01]*)
11404     shlibpath_overrides_runpath=yes
11405     hardcode_into_libs=yes
11406     ;;
11407   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11408   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11409     shlibpath_overrides_runpath=no
11410     hardcode_into_libs=yes
11411     ;;
11412   *) # from 4.6 on, and DragonFly
11413     shlibpath_overrides_runpath=yes
11414     hardcode_into_libs=yes
11415     ;;
11416   esac
11417   ;;
11418
11419 haiku*)
11420   version_type=linux
11421   need_lib_prefix=no
11422   need_version=no
11423   dynamic_linker="$host_os runtime_loader"
11424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11425   soname_spec='${libname}${release}${shared_ext}$major'
11426   shlibpath_var=LIBRARY_PATH
11427   shlibpath_overrides_runpath=yes
11428   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11429   hardcode_into_libs=yes
11430   ;;
11431
11432 hpux9* | hpux10* | hpux11*)
11433   # Give a soname corresponding to the major version so that dld.sl refuses to
11434   # link against other versions.
11435   version_type=sunos
11436   need_lib_prefix=no
11437   need_version=no
11438   case $host_cpu in
11439   ia64*)
11440     shrext_cmds='.so'
11441     hardcode_into_libs=yes
11442     dynamic_linker="$host_os dld.so"
11443     shlibpath_var=LD_LIBRARY_PATH
11444     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446     soname_spec='${libname}${release}${shared_ext}$major'
11447     if test "X$HPUX_IA64_MODE" = X32; then
11448       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11449     else
11450       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11451     fi
11452     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11453     ;;
11454   hppa*64*)
11455     shrext_cmds='.sl'
11456     hardcode_into_libs=yes
11457     dynamic_linker="$host_os dld.sl"
11458     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11459     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461     soname_spec='${libname}${release}${shared_ext}$major'
11462     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11463     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11464     ;;
11465   *)
11466     shrext_cmds='.sl'
11467     dynamic_linker="$host_os dld.sl"
11468     shlibpath_var=SHLIB_PATH
11469     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471     soname_spec='${libname}${release}${shared_ext}$major'
11472     ;;
11473   esac
11474   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11475   postinstall_cmds='chmod 555 $lib'
11476   # or fails outright, so override atomically:
11477   install_override_mode=555
11478   ;;
11479
11480 interix[3-9]*)
11481   version_type=linux
11482   need_lib_prefix=no
11483   need_version=no
11484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11485   soname_spec='${libname}${release}${shared_ext}$major'
11486   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11487   shlibpath_var=LD_LIBRARY_PATH
11488   shlibpath_overrides_runpath=no
11489   hardcode_into_libs=yes
11490   ;;
11491
11492 irix5* | irix6* | nonstopux*)
11493   case $host_os in
11494     nonstopux*) version_type=nonstopux ;;
11495     *)
11496         if test "$lt_cv_prog_gnu_ld" = yes; then
11497                 version_type=linux
11498         else
11499                 version_type=irix
11500         fi ;;
11501   esac
11502   need_lib_prefix=no
11503   need_version=no
11504   soname_spec='${libname}${release}${shared_ext}$major'
11505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11506   case $host_os in
11507   irix5* | nonstopux*)
11508     libsuff= shlibsuff=
11509     ;;
11510   *)
11511     case $LD in # libtool.m4 will add one of these switches to LD
11512     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11513       libsuff= shlibsuff= libmagic=32-bit;;
11514     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11515       libsuff=32 shlibsuff=N32 libmagic=N32;;
11516     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11517       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11518     *) libsuff= shlibsuff= libmagic=never-match;;
11519     esac
11520     ;;
11521   esac
11522   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11523   shlibpath_overrides_runpath=no
11524   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11525   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11526   hardcode_into_libs=yes
11527   ;;
11528
11529 # No shared lib support for Linux oldld, aout, or coff.
11530 linux*oldld* | linux*aout* | linux*coff*)
11531   dynamic_linker=no
11532   ;;
11533
11534 # This must be Linux ELF.
11535 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11536   version_type=linux
11537   need_lib_prefix=no
11538   need_version=no
11539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540   soname_spec='${libname}${release}${shared_ext}$major'
11541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   shlibpath_overrides_runpath=no
11544
11545   # Some binutils ld are patched to set DT_RUNPATH
11546   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549   lt_cv_shlibpath_overrides_runpath=no
11550     save_LDFLAGS=$LDFLAGS
11551     save_libdir=$libdir
11552     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11553          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11554     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h.  */
11556
11557 int
11558 main ()
11559 {
11560
11561   ;
11562   return 0;
11563 }
11564 _ACEOF
11565 if ac_fn_c_try_link "$LINENO"; then :
11566   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11567   lt_cv_shlibpath_overrides_runpath=yes
11568 fi
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext \
11571     conftest$ac_exeext conftest.$ac_ext
11572     LDFLAGS=$save_LDFLAGS
11573     libdir=$save_libdir
11574
11575 fi
11576
11577   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11578
11579   # This implies no fast_install, which is unacceptable.
11580   # Some rework will be needed to allow for fast_install
11581   # before this can be enabled.
11582   hardcode_into_libs=yes
11583
11584   # Append ld.so.conf contents to the search path
11585   if test -f /etc/ld.so.conf; then
11586     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' ' '`
11587     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11588   fi
11589
11590   # We used to test for /lib/ld.so.1 and disable shared libraries on
11591   # powerpc, because MkLinux only supported shared libraries with the
11592   # GNU dynamic linker.  Since this was broken with cross compilers,
11593   # most powerpc-linux boxes support dynamic linking these days and
11594   # people can always --disable-shared, the test was removed, and we
11595   # assume the GNU/Linux dynamic linker is in use.
11596   dynamic_linker='GNU/Linux ld.so'
11597   ;;
11598
11599 netbsd*)
11600   version_type=sunos
11601   need_lib_prefix=no
11602   need_version=no
11603   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11605     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11606     dynamic_linker='NetBSD (a.out) ld.so'
11607   else
11608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11609     soname_spec='${libname}${release}${shared_ext}$major'
11610     dynamic_linker='NetBSD ld.elf_so'
11611   fi
11612   shlibpath_var=LD_LIBRARY_PATH
11613   shlibpath_overrides_runpath=yes
11614   hardcode_into_libs=yes
11615   ;;
11616
11617 newsos6)
11618   version_type=linux
11619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620   shlibpath_var=LD_LIBRARY_PATH
11621   shlibpath_overrides_runpath=yes
11622   ;;
11623
11624 *nto* | *qnx*)
11625   version_type=qnx
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   shlibpath_var=LD_LIBRARY_PATH
11631   shlibpath_overrides_runpath=no
11632   hardcode_into_libs=yes
11633   dynamic_linker='ldqnx.so'
11634   ;;
11635
11636 openbsd*)
11637   version_type=sunos
11638   sys_lib_dlsearch_path_spec="/usr/lib"
11639   need_lib_prefix=no
11640   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11641   case $host_os in
11642     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11643     *)                          need_version=no  ;;
11644   esac
11645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11646   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11647   shlibpath_var=LD_LIBRARY_PATH
11648   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11649     case $host_os in
11650       openbsd2.[89] | openbsd2.[89].*)
11651         shlibpath_overrides_runpath=no
11652         ;;
11653       *)
11654         shlibpath_overrides_runpath=yes
11655         ;;
11656       esac
11657   else
11658     shlibpath_overrides_runpath=yes
11659   fi
11660   ;;
11661
11662 os2*)
11663   libname_spec='$name'
11664   shrext_cmds=".dll"
11665   need_lib_prefix=no
11666   library_names_spec='$libname${shared_ext} $libname.a'
11667   dynamic_linker='OS/2 ld.exe'
11668   shlibpath_var=LIBPATH
11669   ;;
11670
11671 osf3* | osf4* | osf5*)
11672   version_type=osf
11673   need_lib_prefix=no
11674   need_version=no
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677   shlibpath_var=LD_LIBRARY_PATH
11678   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11679   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11680   ;;
11681
11682 rdos*)
11683   dynamic_linker=no
11684   ;;
11685
11686 solaris*)
11687   version_type=linux
11688   need_lib_prefix=no
11689   need_version=no
11690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691   soname_spec='${libname}${release}${shared_ext}$major'
11692   shlibpath_var=LD_LIBRARY_PATH
11693   shlibpath_overrides_runpath=yes
11694   hardcode_into_libs=yes
11695   # ldd complains unless libraries are executable
11696   postinstall_cmds='chmod +x $lib'
11697   ;;
11698
11699 sunos4*)
11700   version_type=sunos
11701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11702   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11703   shlibpath_var=LD_LIBRARY_PATH
11704   shlibpath_overrides_runpath=yes
11705   if test "$with_gnu_ld" = yes; then
11706     need_lib_prefix=no
11707   fi
11708   need_version=yes
11709   ;;
11710
11711 sysv4 | sysv4.3*)
11712   version_type=linux
11713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714   soname_spec='${libname}${release}${shared_ext}$major'
11715   shlibpath_var=LD_LIBRARY_PATH
11716   case $host_vendor in
11717     sni)
11718       shlibpath_overrides_runpath=no
11719       need_lib_prefix=no
11720       runpath_var=LD_RUN_PATH
11721       ;;
11722     siemens)
11723       need_lib_prefix=no
11724       ;;
11725     motorola)
11726       need_lib_prefix=no
11727       need_version=no
11728       shlibpath_overrides_runpath=no
11729       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11730       ;;
11731   esac
11732   ;;
11733
11734 sysv4*MP*)
11735   if test -d /usr/nec ;then
11736     version_type=linux
11737     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11738     soname_spec='$libname${shared_ext}.$major'
11739     shlibpath_var=LD_LIBRARY_PATH
11740   fi
11741   ;;
11742
11743 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11744   version_type=freebsd-elf
11745   need_lib_prefix=no
11746   need_version=no
11747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11748   soname_spec='${libname}${release}${shared_ext}$major'
11749   shlibpath_var=LD_LIBRARY_PATH
11750   shlibpath_overrides_runpath=yes
11751   hardcode_into_libs=yes
11752   if test "$with_gnu_ld" = yes; then
11753     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11754   else
11755     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11756     case $host_os in
11757       sco3.2v5*)
11758         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11759         ;;
11760     esac
11761   fi
11762   sys_lib_dlsearch_path_spec='/usr/lib'
11763   ;;
11764
11765 tpf*)
11766   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11767   version_type=linux
11768   need_lib_prefix=no
11769   need_version=no
11770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771   shlibpath_var=LD_LIBRARY_PATH
11772   shlibpath_overrides_runpath=no
11773   hardcode_into_libs=yes
11774   ;;
11775
11776 uts4*)
11777   version_type=linux
11778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779   soname_spec='${libname}${release}${shared_ext}$major'
11780   shlibpath_var=LD_LIBRARY_PATH
11781   ;;
11782
11783 *)
11784   dynamic_linker=no
11785   ;;
11786 esac
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11788 $as_echo "$dynamic_linker" >&6; }
11789 test "$dynamic_linker" = no && can_build_shared=no
11790
11791 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11792 if test "$GCC" = yes; then
11793   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11794 fi
11795
11796 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11797   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11798 fi
11799 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11800   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11801 fi
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11895 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11896 hardcode_action=
11897 if test -n "$hardcode_libdir_flag_spec" ||
11898    test -n "$runpath_var" ||
11899    test "X$hardcode_automatic" = "Xyes" ; then
11900
11901   # We can hardcode non-existent directories.
11902   if test "$hardcode_direct" != no &&
11903      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11904      # have to relink, otherwise we might link with an installed library
11905      # when we should be linking with a yet-to-be-installed one
11906      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11907      test "$hardcode_minus_L" != no; then
11908     # Linking always hardcodes the temporary library directory.
11909     hardcode_action=relink
11910   else
11911     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11912     hardcode_action=immediate
11913   fi
11914 else
11915   # We cannot hardcode anything, or else we can only hardcode existing
11916   # directories.
11917   hardcode_action=unsupported
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11920 $as_echo "$hardcode_action" >&6; }
11921
11922 if test "$hardcode_action" = relink ||
11923    test "$inherit_rpath" = yes; then
11924   # Fast installation is not supported
11925   enable_fast_install=no
11926 elif test "$shlibpath_overrides_runpath" = yes ||
11927      test "$enable_shared" = no; then
11928   # Fast installation is not necessary
11929   enable_fast_install=needless
11930 fi
11931
11932
11933
11934
11935
11936
11937   if test "x$enable_dlopen" != xyes; then
11938   enable_dlopen=unknown
11939   enable_dlopen_self=unknown
11940   enable_dlopen_self_static=unknown
11941 else
11942   lt_cv_dlopen=no
11943   lt_cv_dlopen_libs=
11944
11945   case $host_os in
11946   beos*)
11947     lt_cv_dlopen="load_add_on"
11948     lt_cv_dlopen_libs=
11949     lt_cv_dlopen_self=yes
11950     ;;
11951
11952   mingw* | pw32* | cegcc*)
11953     lt_cv_dlopen="LoadLibrary"
11954     lt_cv_dlopen_libs=
11955     ;;
11956
11957   cygwin*)
11958     lt_cv_dlopen="dlopen"
11959     lt_cv_dlopen_libs=
11960     ;;
11961
11962   darwin*)
11963   # if libdl is installed we need to link against it
11964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11965 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11966 if ${ac_cv_lib_dl_dlopen+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969   ac_check_lib_save_LIBS=$LIBS
11970 LIBS="-ldl  $LIBS"
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h.  */
11973
11974 /* Override any GCC internal prototype to avoid an error.
11975    Use char because int might match the return type of a GCC
11976    builtin and then its argument prototype would still apply.  */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 char dlopen ();
11981 int
11982 main ()
11983 {
11984 return dlopen ();
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 if ac_fn_c_try_link "$LINENO"; then :
11990   ac_cv_lib_dl_dlopen=yes
11991 else
11992   ac_cv_lib_dl_dlopen=no
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext \
11995     conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11999 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12000 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12001   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12002 else
12003
12004     lt_cv_dlopen="dyld"
12005     lt_cv_dlopen_libs=
12006     lt_cv_dlopen_self=yes
12007
12008 fi
12009
12010     ;;
12011
12012   *)
12013     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12014 if test "x$ac_cv_func_shl_load" = xyes; then :
12015   lt_cv_dlopen="shl_load"
12016 else
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12018 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12019 if ${ac_cv_lib_dld_shl_load+:} false; then :
12020   $as_echo_n "(cached) " >&6
12021 else
12022   ac_check_lib_save_LIBS=$LIBS
12023 LIBS="-ldld  $LIBS"
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h.  */
12026
12027 /* Override any GCC internal prototype to avoid an error.
12028    Use char because int might match the return type of a GCC
12029    builtin and then its argument prototype would still apply.  */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 char shl_load ();
12034 int
12035 main ()
12036 {
12037 return shl_load ();
12038   ;
12039   return 0;
12040 }
12041 _ACEOF
12042 if ac_fn_c_try_link "$LINENO"; then :
12043   ac_cv_lib_dld_shl_load=yes
12044 else
12045   ac_cv_lib_dld_shl_load=no
12046 fi
12047 rm -f core conftest.err conftest.$ac_objext \
12048     conftest$ac_exeext conftest.$ac_ext
12049 LIBS=$ac_check_lib_save_LIBS
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12052 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12053 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12054   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12055 else
12056   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12057 if test "x$ac_cv_func_dlopen" = xyes; then :
12058   lt_cv_dlopen="dlopen"
12059 else
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12061 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12062 if ${ac_cv_lib_dl_dlopen+:} false; then :
12063   $as_echo_n "(cached) " >&6
12064 else
12065   ac_check_lib_save_LIBS=$LIBS
12066 LIBS="-ldl  $LIBS"
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h.  */
12069
12070 /* Override any GCC internal prototype to avoid an error.
12071    Use char because int might match the return type of a GCC
12072    builtin and then its argument prototype would still apply.  */
12073 #ifdef __cplusplus
12074 extern "C"
12075 #endif
12076 char dlopen ();
12077 int
12078 main ()
12079 {
12080 return dlopen ();
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_c_try_link "$LINENO"; then :
12086   ac_cv_lib_dl_dlopen=yes
12087 else
12088   ac_cv_lib_dl_dlopen=no
12089 fi
12090 rm -f core conftest.err conftest.$ac_objext \
12091     conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12093 fi
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12095 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12096 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12098 else
12099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12100 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12101 if ${ac_cv_lib_svld_dlopen+:} false; then :
12102   $as_echo_n "(cached) " >&6
12103 else
12104   ac_check_lib_save_LIBS=$LIBS
12105 LIBS="-lsvld  $LIBS"
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h.  */
12108
12109 /* Override any GCC internal prototype to avoid an error.
12110    Use char because int might match the return type of a GCC
12111    builtin and then its argument prototype would still apply.  */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 char dlopen ();
12116 int
12117 main ()
12118 {
12119 return dlopen ();
12120   ;
12121   return 0;
12122 }
12123 _ACEOF
12124 if ac_fn_c_try_link "$LINENO"; then :
12125   ac_cv_lib_svld_dlopen=yes
12126 else
12127   ac_cv_lib_svld_dlopen=no
12128 fi
12129 rm -f core conftest.err conftest.$ac_objext \
12130     conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12132 fi
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12134 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12135 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12136   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12137 else
12138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12139 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12140 if ${ac_cv_lib_dld_dld_link+:} false; then :
12141   $as_echo_n "(cached) " >&6
12142 else
12143   ac_check_lib_save_LIBS=$LIBS
12144 LIBS="-ldld  $LIBS"
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h.  */
12147
12148 /* Override any GCC internal prototype to avoid an error.
12149    Use char because int might match the return type of a GCC
12150    builtin and then its argument prototype would still apply.  */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 char dld_link ();
12155 int
12156 main ()
12157 {
12158 return dld_link ();
12159   ;
12160   return 0;
12161 }
12162 _ACEOF
12163 if ac_fn_c_try_link "$LINENO"; then :
12164   ac_cv_lib_dld_dld_link=yes
12165 else
12166   ac_cv_lib_dld_dld_link=no
12167 fi
12168 rm -f core conftest.err conftest.$ac_objext \
12169     conftest$ac_exeext conftest.$ac_ext
12170 LIBS=$ac_check_lib_save_LIBS
12171 fi
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12173 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12174 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12175   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12176 fi
12177
12178
12179 fi
12180
12181
12182 fi
12183
12184
12185 fi
12186
12187
12188 fi
12189
12190
12191 fi
12192
12193     ;;
12194   esac
12195
12196   if test "x$lt_cv_dlopen" != xno; then
12197     enable_dlopen=yes
12198   else
12199     enable_dlopen=no
12200   fi
12201
12202   case $lt_cv_dlopen in
12203   dlopen)
12204     save_CPPFLAGS="$CPPFLAGS"
12205     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12206
12207     save_LDFLAGS="$LDFLAGS"
12208     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12209
12210     save_LIBS="$LIBS"
12211     LIBS="$lt_cv_dlopen_libs $LIBS"
12212
12213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12214 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12215 if ${lt_cv_dlopen_self+:} false; then :
12216   $as_echo_n "(cached) " >&6
12217 else
12218           if test "$cross_compiling" = yes; then :
12219   lt_cv_dlopen_self=cross
12220 else
12221   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12222   lt_status=$lt_dlunknown
12223   cat > conftest.$ac_ext <<_LT_EOF
12224 #line 12224 "configure"
12225 #include "confdefs.h"
12226
12227 #if HAVE_DLFCN_H
12228 #include <dlfcn.h>
12229 #endif
12230
12231 #include <stdio.h>
12232
12233 #ifdef RTLD_GLOBAL
12234 #  define LT_DLGLOBAL           RTLD_GLOBAL
12235 #else
12236 #  ifdef DL_GLOBAL
12237 #    define LT_DLGLOBAL         DL_GLOBAL
12238 #  else
12239 #    define LT_DLGLOBAL         0
12240 #  endif
12241 #endif
12242
12243 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12244    find out it does not work in some platform. */
12245 #ifndef LT_DLLAZY_OR_NOW
12246 #  ifdef RTLD_LAZY
12247 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12248 #  else
12249 #    ifdef DL_LAZY
12250 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12251 #    else
12252 #      ifdef RTLD_NOW
12253 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12254 #      else
12255 #        ifdef DL_NOW
12256 #          define LT_DLLAZY_OR_NOW      DL_NOW
12257 #        else
12258 #          define LT_DLLAZY_OR_NOW      0
12259 #        endif
12260 #      endif
12261 #    endif
12262 #  endif
12263 #endif
12264
12265 /* When -fvisbility=hidden is used, assume the code has been annotated
12266    correspondingly for the symbols needed.  */
12267 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12268 void fnord () __attribute__((visibility("default")));
12269 #endif
12270
12271 void fnord () { int i=42; }
12272 int main ()
12273 {
12274   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12275   int status = $lt_dlunknown;
12276
12277   if (self)
12278     {
12279       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12280       else
12281         {
12282           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12283           else puts (dlerror ());
12284         }
12285       /* dlclose (self); */
12286     }
12287   else
12288     puts (dlerror ());
12289
12290   return status;
12291 }
12292 _LT_EOF
12293   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12294   (eval $ac_link) 2>&5
12295   ac_status=$?
12296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12298     (./conftest; exit; ) >&5 2>/dev/null
12299     lt_status=$?
12300     case x$lt_status in
12301       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12302       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12303       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12304     esac
12305   else :
12306     # compilation failed
12307     lt_cv_dlopen_self=no
12308   fi
12309 fi
12310 rm -fr conftest*
12311
12312
12313 fi
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12315 $as_echo "$lt_cv_dlopen_self" >&6; }
12316
12317     if test "x$lt_cv_dlopen_self" = xyes; then
12318       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12319       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12320 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12321 if ${lt_cv_dlopen_self_static+:} false; then :
12322   $as_echo_n "(cached) " >&6
12323 else
12324           if test "$cross_compiling" = yes; then :
12325   lt_cv_dlopen_self_static=cross
12326 else
12327   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12328   lt_status=$lt_dlunknown
12329   cat > conftest.$ac_ext <<_LT_EOF
12330 #line 12330 "configure"
12331 #include "confdefs.h"
12332
12333 #if HAVE_DLFCN_H
12334 #include <dlfcn.h>
12335 #endif
12336
12337 #include <stdio.h>
12338
12339 #ifdef RTLD_GLOBAL
12340 #  define LT_DLGLOBAL           RTLD_GLOBAL
12341 #else
12342 #  ifdef DL_GLOBAL
12343 #    define LT_DLGLOBAL         DL_GLOBAL
12344 #  else
12345 #    define LT_DLGLOBAL         0
12346 #  endif
12347 #endif
12348
12349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12350    find out it does not work in some platform. */
12351 #ifndef LT_DLLAZY_OR_NOW
12352 #  ifdef RTLD_LAZY
12353 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12354 #  else
12355 #    ifdef DL_LAZY
12356 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12357 #    else
12358 #      ifdef RTLD_NOW
12359 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12360 #      else
12361 #        ifdef DL_NOW
12362 #          define LT_DLLAZY_OR_NOW      DL_NOW
12363 #        else
12364 #          define LT_DLLAZY_OR_NOW      0
12365 #        endif
12366 #      endif
12367 #    endif
12368 #  endif
12369 #endif
12370
12371 /* When -fvisbility=hidden is used, assume the code has been annotated
12372    correspondingly for the symbols needed.  */
12373 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12374 void fnord () __attribute__((visibility("default")));
12375 #endif
12376
12377 void fnord () { int i=42; }
12378 int main ()
12379 {
12380   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12381   int status = $lt_dlunknown;
12382
12383   if (self)
12384     {
12385       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12386       else
12387         {
12388           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12389           else puts (dlerror ());
12390         }
12391       /* dlclose (self); */
12392     }
12393   else
12394     puts (dlerror ());
12395
12396   return status;
12397 }
12398 _LT_EOF
12399   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12400   (eval $ac_link) 2>&5
12401   ac_status=$?
12402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12404     (./conftest; exit; ) >&5 2>/dev/null
12405     lt_status=$?
12406     case x$lt_status in
12407       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12408       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12409       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12410     esac
12411   else :
12412     # compilation failed
12413     lt_cv_dlopen_self_static=no
12414   fi
12415 fi
12416 rm -fr conftest*
12417
12418
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12421 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12422     fi
12423
12424     CPPFLAGS="$save_CPPFLAGS"
12425     LDFLAGS="$save_LDFLAGS"
12426     LIBS="$save_LIBS"
12427     ;;
12428   esac
12429
12430   case $lt_cv_dlopen_self in
12431   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12432   *) enable_dlopen_self=unknown ;;
12433   esac
12434
12435   case $lt_cv_dlopen_self_static in
12436   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12437   *) enable_dlopen_self_static=unknown ;;
12438   esac
12439 fi
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457 striplib=
12458 old_striplib=
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12460 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12461 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12462   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12463   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465 $as_echo "yes" >&6; }
12466 else
12467 # FIXME - insert some real tests, host_os isn't really good enough
12468   case $host_os in
12469   darwin*)
12470     if test -n "$STRIP" ; then
12471       striplib="$STRIP -x"
12472       old_striplib="$STRIP -S"
12473       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12474 $as_echo "yes" >&6; }
12475     else
12476       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12478     fi
12479     ;;
12480   *)
12481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12483     ;;
12484   esac
12485 fi
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498   # Report which library types will actually be built
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12500 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12502 $as_echo "$can_build_shared" >&6; }
12503
12504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12505 $as_echo_n "checking whether to build shared libraries... " >&6; }
12506   test "$can_build_shared" = "no" && enable_shared=no
12507
12508   # On AIX, shared libraries and static libraries use the same namespace, and
12509   # are all built from PIC.
12510   case $host_os in
12511   aix3*)
12512     test "$enable_shared" = yes && enable_static=no
12513     if test -n "$RANLIB"; then
12514       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12515       postinstall_cmds='$RANLIB $lib'
12516     fi
12517     ;;
12518
12519   aix[4-9]*)
12520     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12521       test "$enable_shared" = yes && enable_static=no
12522     fi
12523     ;;
12524   esac
12525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12526 $as_echo "$enable_shared" >&6; }
12527
12528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12529 $as_echo_n "checking whether to build static libraries... " >&6; }
12530   # Make sure either enable_shared or enable_static is yes.
12531   test "$enable_shared" = yes || enable_static=yes
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12533 $as_echo "$enable_static" >&6; }
12534
12535
12536
12537
12538 fi
12539 ac_ext=c
12540 ac_cpp='$CPP $CPPFLAGS'
12541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12544
12545 CC="$lt_save_CC"
12546
12547       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12548     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12549     (test "X$CXX" != "Xg++"))) ; then
12550   ac_ext=cpp
12551 ac_cpp='$CXXCPP $CPPFLAGS'
12552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12556 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12557 if test -z "$CXXCPP"; then
12558   if ${ac_cv_prog_CXXCPP+:} false; then :
12559   $as_echo_n "(cached) " >&6
12560 else
12561       # Double quotes because CXXCPP needs to be expanded
12562     for CXXCPP in "$CXX -E" "/lib/cpp"
12563     do
12564       ac_preproc_ok=false
12565 for ac_cxx_preproc_warn_flag in '' yes
12566 do
12567   # Use a header file that comes with gcc, so configuring glibc
12568   # with a fresh cross-compiler works.
12569   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12570   # <limits.h> exists even on freestanding compilers.
12571   # On the NeXT, cc -E runs the code through the compiler's parser,
12572   # not just through cpp. "Syntax error" is here to catch this case.
12573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h.  */
12575 #ifdef __STDC__
12576 # include <limits.h>
12577 #else
12578 # include <assert.h>
12579 #endif
12580                      Syntax error
12581 _ACEOF
12582 if ac_fn_cxx_try_cpp "$LINENO"; then :
12583
12584 else
12585   # Broken: fails on valid input.
12586 continue
12587 fi
12588 rm -f conftest.err conftest.i conftest.$ac_ext
12589
12590   # OK, works on sane cases.  Now check whether nonexistent headers
12591   # can be detected and how.
12592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h.  */
12594 #include <ac_nonexistent.h>
12595 _ACEOF
12596 if ac_fn_cxx_try_cpp "$LINENO"; then :
12597   # Broken: success on invalid input.
12598 continue
12599 else
12600   # Passes both tests.
12601 ac_preproc_ok=:
12602 break
12603 fi
12604 rm -f conftest.err conftest.i conftest.$ac_ext
12605
12606 done
12607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12608 rm -f conftest.i conftest.err conftest.$ac_ext
12609 if $ac_preproc_ok; then :
12610   break
12611 fi
12612
12613     done
12614     ac_cv_prog_CXXCPP=$CXXCPP
12615
12616 fi
12617   CXXCPP=$ac_cv_prog_CXXCPP
12618 else
12619   ac_cv_prog_CXXCPP=$CXXCPP
12620 fi
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12622 $as_echo "$CXXCPP" >&6; }
12623 ac_preproc_ok=false
12624 for ac_cxx_preproc_warn_flag in '' yes
12625 do
12626   # Use a header file that comes with gcc, so configuring glibc
12627   # with a fresh cross-compiler works.
12628   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12629   # <limits.h> exists even on freestanding compilers.
12630   # On the NeXT, cc -E runs the code through the compiler's parser,
12631   # not just through cpp. "Syntax error" is here to catch this case.
12632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h.  */
12634 #ifdef __STDC__
12635 # include <limits.h>
12636 #else
12637 # include <assert.h>
12638 #endif
12639                      Syntax error
12640 _ACEOF
12641 if ac_fn_cxx_try_cpp "$LINENO"; then :
12642
12643 else
12644   # Broken: fails on valid input.
12645 continue
12646 fi
12647 rm -f conftest.err conftest.i conftest.$ac_ext
12648
12649   # OK, works on sane cases.  Now check whether nonexistent headers
12650   # can be detected and how.
12651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h.  */
12653 #include <ac_nonexistent.h>
12654 _ACEOF
12655 if ac_fn_cxx_try_cpp "$LINENO"; then :
12656   # Broken: success on invalid input.
12657 continue
12658 else
12659   # Passes both tests.
12660 ac_preproc_ok=:
12661 break
12662 fi
12663 rm -f conftest.err conftest.i conftest.$ac_ext
12664
12665 done
12666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12667 rm -f conftest.i conftest.err conftest.$ac_ext
12668 if $ac_preproc_ok; then :
12669
12670 else
12671   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12673 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12674 See \`config.log' for more details" "$LINENO" 5; }
12675 fi
12676
12677 ac_ext=c
12678 ac_cpp='$CPP $CPPFLAGS'
12679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12682
12683 else
12684   _lt_caught_CXX_error=yes
12685 fi
12686
12687 ac_ext=cpp
12688 ac_cpp='$CXXCPP $CPPFLAGS'
12689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12692
12693 archive_cmds_need_lc_CXX=no
12694 allow_undefined_flag_CXX=
12695 always_export_symbols_CXX=no
12696 archive_expsym_cmds_CXX=
12697 compiler_needs_object_CXX=no
12698 export_dynamic_flag_spec_CXX=
12699 hardcode_direct_CXX=no
12700 hardcode_direct_absolute_CXX=no
12701 hardcode_libdir_flag_spec_CXX=
12702 hardcode_libdir_flag_spec_ld_CXX=
12703 hardcode_libdir_separator_CXX=
12704 hardcode_minus_L_CXX=no
12705 hardcode_shlibpath_var_CXX=unsupported
12706 hardcode_automatic_CXX=no
12707 inherit_rpath_CXX=no
12708 module_cmds_CXX=
12709 module_expsym_cmds_CXX=
12710 link_all_deplibs_CXX=unknown
12711 old_archive_cmds_CXX=$old_archive_cmds
12712 reload_flag_CXX=$reload_flag
12713 reload_cmds_CXX=$reload_cmds
12714 no_undefined_flag_CXX=
12715 whole_archive_flag_spec_CXX=
12716 enable_shared_with_static_runtimes_CXX=no
12717
12718 # Source file extension for C++ test sources.
12719 ac_ext=cpp
12720
12721 # Object file extension for compiled C++ test sources.
12722 objext=o
12723 objext_CXX=$objext
12724
12725 # No sense in running all these tests if we already determined that
12726 # the CXX compiler isn't working.  Some variables (like enable_shared)
12727 # are currently assumed to apply to all compilers on this platform,
12728 # and will be corrupted by setting them based on a non-working compiler.
12729 if test "$_lt_caught_CXX_error" != yes; then
12730   # Code to be used in simple compile tests
12731   lt_simple_compile_test_code="int some_variable = 0;"
12732
12733   # Code to be used in simple link tests
12734   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12735
12736   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12737
12738
12739
12740
12741
12742
12743 # If no C compiler was specified, use CC.
12744 LTCC=${LTCC-"$CC"}
12745
12746 # If no C compiler flags were specified, use CFLAGS.
12747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12748
12749 # Allow CC to be a program name with arguments.
12750 compiler=$CC
12751
12752
12753   # save warnings/boilerplate of simple test code
12754   ac_outfile=conftest.$ac_objext
12755 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12757 _lt_compiler_boilerplate=`cat conftest.err`
12758 $RM conftest*
12759
12760   ac_outfile=conftest.$ac_objext
12761 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12763 _lt_linker_boilerplate=`cat conftest.err`
12764 $RM -r conftest*
12765
12766
12767   # Allow CC to be a program name with arguments.
12768   lt_save_CC=$CC
12769   lt_save_LD=$LD
12770   lt_save_GCC=$GCC
12771   GCC=$GXX
12772   lt_save_with_gnu_ld=$with_gnu_ld
12773   lt_save_path_LD=$lt_cv_path_LD
12774   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12775     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12776   else
12777     $as_unset lt_cv_prog_gnu_ld
12778   fi
12779   if test -n "${lt_cv_path_LDCXX+set}"; then
12780     lt_cv_path_LD=$lt_cv_path_LDCXX
12781   else
12782     $as_unset lt_cv_path_LD
12783   fi
12784   test -z "${LDCXX+set}" || LD=$LDCXX
12785   CC=${CXX-"c++"}
12786   compiler=$CC
12787   compiler_CXX=$CC
12788   for cc_temp in $compiler""; do
12789   case $cc_temp in
12790     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12791     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12792     \-*) ;;
12793     *) break;;
12794   esac
12795 done
12796 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12797
12798
12799   if test -n "$compiler"; then
12800     # We don't want -fno-exception when compiling C++ code, so set the
12801     # no_builtin_flag separately
12802     if test "$GXX" = yes; then
12803       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12804     else
12805       lt_prog_compiler_no_builtin_flag_CXX=
12806     fi
12807
12808     if test "$GXX" = yes; then
12809       # Set up default GNU C++ configuration
12810
12811
12812
12813 # Check whether --with-gnu-ld was given.
12814 if test "${with_gnu_ld+set}" = set; then :
12815   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12816 else
12817   with_gnu_ld=no
12818 fi
12819
12820 ac_prog=ld
12821 if test "$GCC" = yes; then
12822   # Check if gcc -print-prog-name=ld gives a path.
12823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12824 $as_echo_n "checking for ld used by $CC... " >&6; }
12825   case $host in
12826   *-*-mingw*)
12827     # gcc leaves a trailing carriage return which upsets mingw
12828     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12829   *)
12830     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12831   esac
12832   case $ac_prog in
12833     # Accept absolute paths.
12834     [\\/]* | ?:[\\/]*)
12835       re_direlt='/[^/][^/]*/\.\./'
12836       # Canonicalize the pathname of ld
12837       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12838       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12839         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12840       done
12841       test -z "$LD" && LD="$ac_prog"
12842       ;;
12843   "")
12844     # If it fails, then pretend we aren't using GCC.
12845     ac_prog=ld
12846     ;;
12847   *)
12848     # If it is relative, then search for the first ld in PATH.
12849     with_gnu_ld=unknown
12850     ;;
12851   esac
12852 elif test "$with_gnu_ld" = yes; then
12853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12854 $as_echo_n "checking for GNU ld... " >&6; }
12855 else
12856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12857 $as_echo_n "checking for non-GNU ld... " >&6; }
12858 fi
12859 if ${lt_cv_path_LD+:} false; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   if test -z "$LD"; then
12863   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12864   for ac_dir in $PATH; do
12865     IFS="$lt_save_ifs"
12866     test -z "$ac_dir" && ac_dir=.
12867     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12868       lt_cv_path_LD="$ac_dir/$ac_prog"
12869       # Check to see if the program is GNU ld.  I'd rather use --version,
12870       # but apparently some variants of GNU ld only accept -v.
12871       # Break only if it was the GNU/non-GNU ld that we prefer.
12872       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12873       *GNU* | *'with BFD'*)
12874         test "$with_gnu_ld" != no && break
12875         ;;
12876       *)
12877         test "$with_gnu_ld" != yes && break
12878         ;;
12879       esac
12880     fi
12881   done
12882   IFS="$lt_save_ifs"
12883 else
12884   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12885 fi
12886 fi
12887
12888 LD="$lt_cv_path_LD"
12889 if test -n "$LD"; then
12890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12891 $as_echo "$LD" >&6; }
12892 else
12893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12895 fi
12896 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12898 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12899 if ${lt_cv_prog_gnu_ld+:} false; then :
12900   $as_echo_n "(cached) " >&6
12901 else
12902   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12903 case `$LD -v 2>&1 </dev/null` in
12904 *GNU* | *'with BFD'*)
12905   lt_cv_prog_gnu_ld=yes
12906   ;;
12907 *)
12908   lt_cv_prog_gnu_ld=no
12909   ;;
12910 esac
12911 fi
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12913 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12914 with_gnu_ld=$lt_cv_prog_gnu_ld
12915
12916
12917
12918
12919
12920
12921
12922       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12923       # archiving commands below assume that GNU ld is being used.
12924       if test "$with_gnu_ld" = yes; then
12925         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12926         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'
12927
12928         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12929         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12930
12931         # If archive_cmds runs LD, not CC, wlarc should be empty
12932         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12933         #     investigate it a little bit more. (MM)
12934         wlarc='${wl}'
12935
12936         # ancient GNU ld didn't support --whole-archive et. al.
12937         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12938           $GREP 'no-whole-archive' > /dev/null; then
12939           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12940         else
12941           whole_archive_flag_spec_CXX=
12942         fi
12943       else
12944         with_gnu_ld=no
12945         wlarc=
12946
12947         # A generic and very simple default shared library creation
12948         # command for GNU C++ for the case where it uses the native
12949         # linker, instead of GNU ld.  If possible, this setting should
12950         # overridden to take advantage of the native linker features on
12951         # the platform it is being used on.
12952         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12953       fi
12954
12955       # Commands to make compiler produce verbose output that lists
12956       # what "hidden" libraries, object files and flags are used when
12957       # linking a shared library.
12958       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12959
12960     else
12961       GXX=no
12962       with_gnu_ld=no
12963       wlarc=
12964     fi
12965
12966     # PORTME: fill in a description of your system's C++ link characteristics
12967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12968 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12969     ld_shlibs_CXX=yes
12970     case $host_os in
12971       aix3*)
12972         # FIXME: insert proper C++ library support
12973         ld_shlibs_CXX=no
12974         ;;
12975       aix[4-9]*)
12976         if test "$host_cpu" = ia64; then
12977           # On IA64, the linker does run time linking by default, so we don't
12978           # have to do anything special.
12979           aix_use_runtimelinking=no
12980           exp_sym_flag='-Bexport'
12981           no_entry_flag=""
12982         else
12983           aix_use_runtimelinking=no
12984
12985           # Test if we are trying to use run time linking or normal
12986           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12987           # need to do runtime linking.
12988           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12989             for ld_flag in $LDFLAGS; do
12990               case $ld_flag in
12991               *-brtl*)
12992                 aix_use_runtimelinking=yes
12993                 break
12994                 ;;
12995               esac
12996             done
12997             ;;
12998           esac
12999
13000           exp_sym_flag='-bexport'
13001           no_entry_flag='-bnoentry'
13002         fi
13003
13004         # When large executables or shared objects are built, AIX ld can
13005         # have problems creating the table of contents.  If linking a library
13006         # or program results in "error TOC overflow" add -mminimal-toc to
13007         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13008         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13009
13010         archive_cmds_CXX=''
13011         hardcode_direct_CXX=yes
13012         hardcode_direct_absolute_CXX=yes
13013         hardcode_libdir_separator_CXX=':'
13014         link_all_deplibs_CXX=yes
13015         file_list_spec_CXX='${wl}-f,'
13016
13017         if test "$GXX" = yes; then
13018           case $host_os in aix4.[012]|aix4.[012].*)
13019           # We only want to do this on AIX 4.2 and lower, the check
13020           # below for broken collect2 doesn't work under 4.3+
13021           collect2name=`${CC} -print-prog-name=collect2`
13022           if test -f "$collect2name" &&
13023              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13024           then
13025             # We have reworked collect2
13026             :
13027           else
13028             # We have old collect2
13029             hardcode_direct_CXX=unsupported
13030             # It fails to find uninstalled libraries when the uninstalled
13031             # path is not listed in the libpath.  Setting hardcode_minus_L
13032             # to unsupported forces relinking
13033             hardcode_minus_L_CXX=yes
13034             hardcode_libdir_flag_spec_CXX='-L$libdir'
13035             hardcode_libdir_separator_CXX=
13036           fi
13037           esac
13038           shared_flag='-shared'
13039           if test "$aix_use_runtimelinking" = yes; then
13040             shared_flag="$shared_flag "'${wl}-G'
13041           fi
13042         else
13043           # not using gcc
13044           if test "$host_cpu" = ia64; then
13045           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13046           # chokes on -Wl,-G. The following line is correct:
13047           shared_flag='-G'
13048           else
13049             if test "$aix_use_runtimelinking" = yes; then
13050               shared_flag='${wl}-G'
13051             else
13052               shared_flag='${wl}-bM:SRE'
13053             fi
13054           fi
13055         fi
13056
13057         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13058         # It seems that -bexpall does not export symbols beginning with
13059         # underscore (_), so it is better to generate a list of symbols to
13060         # export.
13061         always_export_symbols_CXX=yes
13062         if test "$aix_use_runtimelinking" = yes; then
13063           # Warning - without using the other runtime loading flags (-brtl),
13064           # -berok will link without error, but may produce a broken library.
13065           allow_undefined_flag_CXX='-berok'
13066           # Determine the default libpath from the value encoded in an empty
13067           # executable.
13068           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h.  */
13070
13071 int
13072 main ()
13073 {
13074
13075   ;
13076   return 0;
13077 }
13078 _ACEOF
13079 if ac_fn_cxx_try_link "$LINENO"; then :
13080
13081 lt_aix_libpath_sed='
13082     /Import File Strings/,/^$/ {
13083         /^0/ {
13084             s/^0  *\(.*\)$/\1/
13085             p
13086         }
13087     }'
13088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13089 # Check for a 64-bit object if we didn't find anything.
13090 if test -z "$aix_libpath"; then
13091   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13092 fi
13093 fi
13094 rm -f core conftest.err conftest.$ac_objext \
13095     conftest$ac_exeext conftest.$ac_ext
13096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13097
13098           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13099
13100           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"
13101         else
13102           if test "$host_cpu" = ia64; then
13103             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13104             allow_undefined_flag_CXX="-z nodefs"
13105             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"
13106           else
13107             # Determine the default libpath from the value encoded in an
13108             # empty executable.
13109             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h.  */
13111
13112 int
13113 main ()
13114 {
13115
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 if ac_fn_cxx_try_link "$LINENO"; then :
13121
13122 lt_aix_libpath_sed='
13123     /Import File Strings/,/^$/ {
13124         /^0/ {
13125             s/^0  *\(.*\)$/\1/
13126             p
13127         }
13128     }'
13129 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13130 # Check for a 64-bit object if we didn't find anything.
13131 if test -z "$aix_libpath"; then
13132   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13133 fi
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext \
13136     conftest$ac_exeext conftest.$ac_ext
13137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13138
13139             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13140             # Warning - without using the other run time loading flags,
13141             # -berok will link without error, but may produce a broken library.
13142             no_undefined_flag_CXX=' ${wl}-bernotok'
13143             allow_undefined_flag_CXX=' ${wl}-berok'
13144             if test "$with_gnu_ld" = yes; then
13145               # We only use this code for GNU lds that support --whole-archive.
13146               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13147             else
13148               # Exported symbols can be pulled into shared objects from archives
13149               whole_archive_flag_spec_CXX='$convenience'
13150             fi
13151             archive_cmds_need_lc_CXX=yes
13152             # This is similar to how AIX traditionally builds its shared
13153             # libraries.
13154             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'
13155           fi
13156         fi
13157         ;;
13158
13159       beos*)
13160         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13161           allow_undefined_flag_CXX=unsupported
13162           # Joseph Beckenbach <[email protected]> says some releases of gcc
13163           # support --undefined.  This deserves some investigation.  FIXME
13164           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13165         else
13166           ld_shlibs_CXX=no
13167         fi
13168         ;;
13169
13170       chorus*)
13171         case $cc_basename in
13172           *)
13173           # FIXME: insert proper C++ library support
13174           ld_shlibs_CXX=no
13175           ;;
13176         esac
13177         ;;
13178
13179       cygwin* | mingw* | pw32* | cegcc*)
13180         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13181         # as there is no search path for DLLs.
13182         hardcode_libdir_flag_spec_CXX='-L$libdir'
13183         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13184         allow_undefined_flag_CXX=unsupported
13185         always_export_symbols_CXX=no
13186         enable_shared_with_static_runtimes_CXX=yes
13187
13188         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13189           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'
13190           # If the export-symbols file already is a .def file (1st line
13191           # is EXPORTS), use it as is; otherwise, prepend...
13192           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13193             cp $export_symbols $output_objdir/$soname.def;
13194           else
13195             echo EXPORTS > $output_objdir/$soname.def;
13196             cat $export_symbols >> $output_objdir/$soname.def;
13197           fi~
13198           $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'
13199         else
13200           ld_shlibs_CXX=no
13201         fi
13202         ;;
13203       darwin* | rhapsody*)
13204
13205
13206   archive_cmds_need_lc_CXX=no
13207   hardcode_direct_CXX=no
13208   hardcode_automatic_CXX=yes
13209   hardcode_shlibpath_var_CXX=unsupported
13210   if test "$lt_cv_ld_force_load" = "yes"; then
13211     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\"`'
13212   else
13213     whole_archive_flag_spec_CXX=''
13214   fi
13215   link_all_deplibs_CXX=yes
13216   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13217   case $cc_basename in
13218      ifort*) _lt_dar_can_shared=yes ;;
13219      *) _lt_dar_can_shared=$GCC ;;
13220   esac
13221   if test "$_lt_dar_can_shared" = "yes"; then
13222     output_verbose_link_cmd=func_echo_all
13223     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}"
13224     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13225     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}"
13226     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}"
13227        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13228       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}"
13229       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}"
13230     fi
13231
13232   else
13233   ld_shlibs_CXX=no
13234   fi
13235
13236         ;;
13237
13238       dgux*)
13239         case $cc_basename in
13240           ec++*)
13241             # FIXME: insert proper C++ library support
13242             ld_shlibs_CXX=no
13243             ;;
13244           ghcx*)
13245             # Green Hills C++ Compiler
13246             # FIXME: insert proper C++ library support
13247             ld_shlibs_CXX=no
13248             ;;
13249           *)
13250             # FIXME: insert proper C++ library support
13251             ld_shlibs_CXX=no
13252             ;;
13253         esac
13254         ;;
13255
13256       freebsd2.*)
13257         # C++ shared libraries reported to be fairly broken before
13258         # switch to ELF
13259         ld_shlibs_CXX=no
13260         ;;
13261
13262       freebsd-elf*)
13263         archive_cmds_need_lc_CXX=no
13264         ;;
13265
13266       freebsd* | dragonfly*)
13267         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13268         # conventions
13269         ld_shlibs_CXX=yes
13270         ;;
13271
13272       gnu*)
13273         ;;
13274
13275       haiku*)
13276         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13277         link_all_deplibs_CXX=yes
13278         ;;
13279
13280       hpux9*)
13281         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13282         hardcode_libdir_separator_CXX=:
13283         export_dynamic_flag_spec_CXX='${wl}-E'
13284         hardcode_direct_CXX=yes
13285         hardcode_minus_L_CXX=yes # Not in the search PATH,
13286                                              # but as the default
13287                                              # location of the library.
13288
13289         case $cc_basename in
13290           CC*)
13291             # FIXME: insert proper C++ library support
13292             ld_shlibs_CXX=no
13293             ;;
13294           aCC*)
13295             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'
13296             # Commands to make compiler produce verbose output that lists
13297             # what "hidden" libraries, object files and flags are used when
13298             # linking a shared library.
13299             #
13300             # There doesn't appear to be a way to prevent this compiler from
13301             # explicitly linking system object files so we need to strip them
13302             # from the output so that they don't get included in the library
13303             # dependencies.
13304             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"'
13305             ;;
13306           *)
13307             if test "$GXX" = yes; then
13308               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13309             else
13310               # FIXME: insert proper C++ library support
13311               ld_shlibs_CXX=no
13312             fi
13313             ;;
13314         esac
13315         ;;
13316
13317       hpux10*|hpux11*)
13318         if test $with_gnu_ld = no; then
13319           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13320           hardcode_libdir_separator_CXX=:
13321
13322           case $host_cpu in
13323             hppa*64*|ia64*)
13324               ;;
13325             *)
13326               export_dynamic_flag_spec_CXX='${wl}-E'
13327               ;;
13328           esac
13329         fi
13330         case $host_cpu in
13331           hppa*64*|ia64*)
13332             hardcode_direct_CXX=no
13333             hardcode_shlibpath_var_CXX=no
13334             ;;
13335           *)
13336             hardcode_direct_CXX=yes
13337             hardcode_direct_absolute_CXX=yes
13338             hardcode_minus_L_CXX=yes # Not in the search PATH,
13339                                                  # but as the default
13340                                                  # location of the library.
13341             ;;
13342         esac
13343
13344         case $cc_basename in
13345           CC*)
13346             # FIXME: insert proper C++ library support
13347             ld_shlibs_CXX=no
13348             ;;
13349           aCC*)
13350             case $host_cpu in
13351               hppa*64*)
13352                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13353                 ;;
13354               ia64*)
13355                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13356                 ;;
13357               *)
13358                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13359                 ;;
13360             esac
13361             # Commands to make compiler produce verbose output that lists
13362             # what "hidden" libraries, object files and flags are used when
13363             # linking a shared library.
13364             #
13365             # There doesn't appear to be a way to prevent this compiler from
13366             # explicitly linking system object files so we need to strip them
13367             # from the output so that they don't get included in the library
13368             # dependencies.
13369             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"'
13370             ;;
13371           *)
13372             if test "$GXX" = yes; then
13373               if test $with_gnu_ld = no; then
13374                 case $host_cpu in
13375                   hppa*64*)
13376                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13377                     ;;
13378                   ia64*)
13379                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13380                     ;;
13381                   *)
13382                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13383                     ;;
13384                 esac
13385               fi
13386             else
13387               # FIXME: insert proper C++ library support
13388               ld_shlibs_CXX=no
13389             fi
13390             ;;
13391         esac
13392         ;;
13393
13394       interix[3-9]*)
13395         hardcode_direct_CXX=no
13396         hardcode_shlibpath_var_CXX=no
13397         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13398         export_dynamic_flag_spec_CXX='${wl}-E'
13399         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13400         # Instead, shared libraries are loaded at an image base (0x10000000 by
13401         # default) and relocated if they conflict, which is a slow very memory
13402         # consuming and fragmenting process.  To avoid this, we pick a random,
13403         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13404         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13405         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'
13406         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'
13407         ;;
13408       irix5* | irix6*)
13409         case $cc_basename in
13410           CC*)
13411             # SGI C++
13412             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'
13413
13414             # Archives containing C++ object files must be created using
13415             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13416             # necessary to make sure instantiated templates are included
13417             # in the archive.
13418             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13419             ;;
13420           *)
13421             if test "$GXX" = yes; then
13422               if test "$with_gnu_ld" = no; then
13423                 archive_cmds_CXX='$CC -shared -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'
13424               else
13425                 archive_cmds_CXX='$CC -shared -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'
13426               fi
13427             fi
13428             link_all_deplibs_CXX=yes
13429             ;;
13430         esac
13431         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13432         hardcode_libdir_separator_CXX=:
13433         inherit_rpath_CXX=yes
13434         ;;
13435
13436       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13437         case $cc_basename in
13438           KCC*)
13439             # Kuck and Associates, Inc. (KAI) C++ Compiler
13440
13441             # KCC will only create a shared library if the output file
13442             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13443             # to its proper name (with version) after linking.
13444             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'
13445             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'
13446             # Commands to make compiler produce verbose output that lists
13447             # what "hidden" libraries, object files and flags are used when
13448             # linking a shared library.
13449             #
13450             # There doesn't appear to be a way to prevent this compiler from
13451             # explicitly linking system object files so we need to strip them
13452             # from the output so that they don't get included in the library
13453             # dependencies.
13454             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"'
13455
13456             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13457             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13458
13459             # Archives containing C++ object files must be created using
13460             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13461             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13462             ;;
13463           icpc* | ecpc* )
13464             # Intel C++
13465             with_gnu_ld=yes
13466             # version 8.0 and above of icpc choke on multiply defined symbols
13467             # if we add $predep_objects and $postdep_objects, however 7.1 and
13468             # earlier do not add the objects themselves.
13469             case `$CC -V 2>&1` in
13470               *"Version 7."*)
13471                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13472                 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'
13473                 ;;
13474               *)  # Version 8.0 or newer
13475                 tmp_idyn=
13476                 case $host_cpu in
13477                   ia64*) tmp_idyn=' -i_dynamic';;
13478                 esac
13479                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13480                 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'
13481                 ;;
13482             esac
13483             archive_cmds_need_lc_CXX=no
13484             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13485             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13486             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13487             ;;
13488           pgCC* | pgcpp*)
13489             # Portland Group C++ compiler
13490             case `$CC -V` in
13491             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13492               prelink_cmds_CXX='tpldir=Template.dir~
13493                 rm -rf $tpldir~
13494                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13495                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13496               old_archive_cmds_CXX='tpldir=Template.dir~
13497                 rm -rf $tpldir~
13498                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13499                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13500                 $RANLIB $oldlib'
13501               archive_cmds_CXX='tpldir=Template.dir~
13502                 rm -rf $tpldir~
13503                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13504                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13505               archive_expsym_cmds_CXX='tpldir=Template.dir~
13506                 rm -rf $tpldir~
13507                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13508                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13509               ;;
13510             *) # Version 6 and above use weak symbols
13511               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13512               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'
13513               ;;
13514             esac
13515
13516             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13517             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13518             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'
13519             ;;
13520           cxx*)
13521             # Compaq C++
13522             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13523             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'
13524
13525             runpath_var=LD_RUN_PATH
13526             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13527             hardcode_libdir_separator_CXX=:
13528
13529             # Commands to make compiler produce verbose output that lists
13530             # what "hidden" libraries, object files and flags are used when
13531             # linking a shared library.
13532             #
13533             # There doesn't appear to be a way to prevent this compiler from
13534             # explicitly linking system object files so we need to strip them
13535             # from the output so that they don't get included in the library
13536             # dependencies.
13537             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'
13538             ;;
13539           xl* | mpixl* | bgxl*)
13540             # IBM XL 8.0 on PPC, with GNU ld
13541             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13542             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13543             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544             if test "x$supports_anon_versioning" = xyes; then
13545               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13546                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13547                 echo "local: *; };" >> $output_objdir/$libname.ver~
13548                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13549             fi
13550             ;;
13551           *)
13552             case `$CC -V 2>&1 | sed 5q` in
13553             *Sun\ C*)
13554               # Sun C++ 5.9
13555               no_undefined_flag_CXX=' -zdefs'
13556               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13557               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'
13558               hardcode_libdir_flag_spec_CXX='-R$libdir'
13559               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'
13560               compiler_needs_object_CXX=yes
13561
13562               # Not sure whether something based on
13563               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13564               # would be better.
13565               output_verbose_link_cmd='func_echo_all'
13566
13567               # Archives containing C++ object files must be created using
13568               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13569               # necessary to make sure instantiated templates are included
13570               # in the archive.
13571               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13572               ;;
13573             esac
13574             ;;
13575         esac
13576         ;;
13577
13578       lynxos*)
13579         # FIXME: insert proper C++ library support
13580         ld_shlibs_CXX=no
13581         ;;
13582
13583       m88k*)
13584         # FIXME: insert proper C++ library support
13585         ld_shlibs_CXX=no
13586         ;;
13587
13588       mvs*)
13589         case $cc_basename in
13590           cxx*)
13591             # FIXME: insert proper C++ library support
13592             ld_shlibs_CXX=no
13593             ;;
13594           *)
13595             # FIXME: insert proper C++ library support
13596             ld_shlibs_CXX=no
13597             ;;
13598         esac
13599         ;;
13600
13601       netbsd*)
13602         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13603           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13604           wlarc=
13605           hardcode_libdir_flag_spec_CXX='-R$libdir'
13606           hardcode_direct_CXX=yes
13607           hardcode_shlibpath_var_CXX=no
13608         fi
13609         # Workaround some broken pre-1.5 toolchains
13610         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13611         ;;
13612
13613       *nto* | *qnx*)
13614         ld_shlibs_CXX=yes
13615         ;;
13616
13617       openbsd2*)
13618         # C++ shared libraries are fairly broken
13619         ld_shlibs_CXX=no
13620         ;;
13621
13622       openbsd*)
13623         if test -f /usr/libexec/ld.so; then
13624           hardcode_direct_CXX=yes
13625           hardcode_shlibpath_var_CXX=no
13626           hardcode_direct_absolute_CXX=yes
13627           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13628           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13629           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13630             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13631             export_dynamic_flag_spec_CXX='${wl}-E'
13632             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13633           fi
13634           output_verbose_link_cmd=func_echo_all
13635         else
13636           ld_shlibs_CXX=no
13637         fi
13638         ;;
13639
13640       osf3* | osf4* | osf5*)
13641         case $cc_basename in
13642           KCC*)
13643             # Kuck and Associates, Inc. (KAI) C++ Compiler
13644
13645             # KCC will only create a shared library if the output file
13646             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13647             # to its proper name (with version) after linking.
13648             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'
13649
13650             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13651             hardcode_libdir_separator_CXX=:
13652
13653             # Archives containing C++ object files must be created using
13654             # the KAI C++ compiler.
13655             case $host in
13656               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13657               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13658             esac
13659             ;;
13660           RCC*)
13661             # Rational C++ 2.4.1
13662             # FIXME: insert proper C++ library support
13663             ld_shlibs_CXX=no
13664             ;;
13665           cxx*)
13666             case $host in
13667               osf3*)
13668                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13669                 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'
13670                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13671                 ;;
13672               *)
13673                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13674                 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'
13675                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13676                   echo "-hidden">> $lib.exp~
13677                   $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~
13678                   $RM $lib.exp'
13679                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13680                 ;;
13681             esac
13682
13683             hardcode_libdir_separator_CXX=:
13684
13685             # Commands to make compiler produce verbose output that lists
13686             # what "hidden" libraries, object files and flags are used when
13687             # linking a shared library.
13688             #
13689             # There doesn't appear to be a way to prevent this compiler from
13690             # explicitly linking system object files so we need to strip them
13691             # from the output so that they don't get included in the library
13692             # dependencies.
13693             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"'
13694             ;;
13695           *)
13696             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13697               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13698               case $host in
13699                 osf3*)
13700                   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'
13701                   ;;
13702                 *)
13703                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13704                   ;;
13705               esac
13706
13707               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13708               hardcode_libdir_separator_CXX=:
13709
13710               # Commands to make compiler produce verbose output that lists
13711               # what "hidden" libraries, object files and flags are used when
13712               # linking a shared library.
13713               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13714
13715             else
13716               # FIXME: insert proper C++ library support
13717               ld_shlibs_CXX=no
13718             fi
13719             ;;
13720         esac
13721         ;;
13722
13723       psos*)
13724         # FIXME: insert proper C++ library support
13725         ld_shlibs_CXX=no
13726         ;;
13727
13728       sunos4*)
13729         case $cc_basename in
13730           CC*)
13731             # Sun C++ 4.x
13732             # FIXME: insert proper C++ library support
13733             ld_shlibs_CXX=no
13734             ;;
13735           lcc*)
13736             # Lucid
13737             # FIXME: insert proper C++ library support
13738             ld_shlibs_CXX=no
13739             ;;
13740           *)
13741             # FIXME: insert proper C++ library support
13742             ld_shlibs_CXX=no
13743             ;;
13744         esac
13745         ;;
13746
13747       solaris*)
13748         case $cc_basename in
13749           CC*)
13750             # Sun C++ 4.2, 5.x and Centerline C++
13751             archive_cmds_need_lc_CXX=yes
13752             no_undefined_flag_CXX=' -zdefs'
13753             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13754             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13755               $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'
13756
13757             hardcode_libdir_flag_spec_CXX='-R$libdir'
13758             hardcode_shlibpath_var_CXX=no
13759             case $host_os in
13760               solaris2.[0-5] | solaris2.[0-5].*) ;;
13761               *)
13762                 # The compiler driver will combine and reorder linker options,
13763                 # but understands `-z linker_flag'.
13764                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13765                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13766                 ;;
13767             esac
13768             link_all_deplibs_CXX=yes
13769
13770             output_verbose_link_cmd='func_echo_all'
13771
13772             # Archives containing C++ object files must be created using
13773             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13774             # necessary to make sure instantiated templates are included
13775             # in the archive.
13776             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13777             ;;
13778           gcx*)
13779             # Green Hills C++ Compiler
13780             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13781
13782             # The C++ compiler must be used to create the archive.
13783             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13784             ;;
13785           *)
13786             # GNU C++ compiler with Solaris linker
13787             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13788               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13789               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13790                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13791                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13792                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13793
13794                 # Commands to make compiler produce verbose output that lists
13795                 # what "hidden" libraries, object files and flags are used when
13796                 # linking a shared library.
13797                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13798               else
13799                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13800                 # platform.
13801                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13802                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13803                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13804
13805                 # Commands to make compiler produce verbose output that lists
13806                 # what "hidden" libraries, object files and flags are used when
13807                 # linking a shared library.
13808                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13809               fi
13810
13811               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13812               case $host_os in
13813                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13814                 *)
13815                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13816                   ;;
13817               esac
13818             fi
13819             ;;
13820         esac
13821         ;;
13822
13823     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13824       no_undefined_flag_CXX='${wl}-z,text'
13825       archive_cmds_need_lc_CXX=no
13826       hardcode_shlibpath_var_CXX=no
13827       runpath_var='LD_RUN_PATH'
13828
13829       case $cc_basename in
13830         CC*)
13831           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833           ;;
13834         *)
13835           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13837           ;;
13838       esac
13839       ;;
13840
13841       sysv5* | sco3.2v5* | sco5v6*)
13842         # Note: We can NOT use -z defs as we might desire, because we do not
13843         # link with -lc, and that would cause any symbols used from libc to
13844         # always be unresolved, which means just about no library would
13845         # ever link correctly.  If we're not using GNU ld we use -z text
13846         # though, which does catch some bad symbols but isn't as heavy-handed
13847         # as -z defs.
13848         no_undefined_flag_CXX='${wl}-z,text'
13849         allow_undefined_flag_CXX='${wl}-z,nodefs'
13850         archive_cmds_need_lc_CXX=no
13851         hardcode_shlibpath_var_CXX=no
13852         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13853         hardcode_libdir_separator_CXX=':'
13854         link_all_deplibs_CXX=yes
13855         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13856         runpath_var='LD_RUN_PATH'
13857
13858         case $cc_basename in
13859           CC*)
13860             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13862             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13863               '"$old_archive_cmds_CXX"
13864             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13865               '"$reload_cmds_CXX"
13866             ;;
13867           *)
13868             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870             ;;
13871         esac
13872       ;;
13873
13874       tandem*)
13875         case $cc_basename in
13876           NCC*)
13877             # NonStop-UX NCC 3.20
13878             # FIXME: insert proper C++ library support
13879             ld_shlibs_CXX=no
13880             ;;
13881           *)
13882             # FIXME: insert proper C++ library support
13883             ld_shlibs_CXX=no
13884             ;;
13885         esac
13886         ;;
13887
13888       vxworks*)
13889         # FIXME: insert proper C++ library support
13890         ld_shlibs_CXX=no
13891         ;;
13892
13893       *)
13894         # FIXME: insert proper C++ library support
13895         ld_shlibs_CXX=no
13896         ;;
13897     esac
13898
13899     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13900 $as_echo "$ld_shlibs_CXX" >&6; }
13901     test "$ld_shlibs_CXX" = no && can_build_shared=no
13902
13903     GCC_CXX="$GXX"
13904     LD_CXX="$LD"
13905
13906     ## CAVEAT EMPTOR:
13907     ## There is no encapsulation within the following macros, do not change
13908     ## the running order or otherwise move them around unless you know exactly
13909     ## what you are doing...
13910     # Dependencies to place before and after the object being linked:
13911 predep_objects_CXX=
13912 postdep_objects_CXX=
13913 predeps_CXX=
13914 postdeps_CXX=
13915 compiler_lib_search_path_CXX=
13916
13917 cat > conftest.$ac_ext <<_LT_EOF
13918 class Foo
13919 {
13920 public:
13921   Foo (void) { a = 0; }
13922 private:
13923   int a;
13924 };
13925 _LT_EOF
13926
13927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13928   (eval $ac_compile) 2>&5
13929   ac_status=$?
13930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13931   test $ac_status = 0; }; then
13932   # Parse the compiler output and extract the necessary
13933   # objects, libraries and library flags.
13934
13935   # Sentinel used to keep track of whether or not we are before
13936   # the conftest object file.
13937   pre_test_object_deps_done=no
13938
13939   for p in `eval "$output_verbose_link_cmd"`; do
13940     case $p in
13941
13942     -L* | -R* | -l*)
13943        # Some compilers place space between "-{L,R}" and the path.
13944        # Remove the space.
13945        if test $p = "-L" ||
13946           test $p = "-R"; then
13947          prev=$p
13948          continue
13949        else
13950          prev=
13951        fi
13952
13953        if test "$pre_test_object_deps_done" = no; then
13954          case $p in
13955          -L* | -R*)
13956            # Internal compiler library paths should come after those
13957            # provided the user.  The postdeps already come after the
13958            # user supplied libs so there is no need to process them.
13959            if test -z "$compiler_lib_search_path_CXX"; then
13960              compiler_lib_search_path_CXX="${prev}${p}"
13961            else
13962              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13963            fi
13964            ;;
13965          # The "-l" case would never come before the object being
13966          # linked, so don't bother handling this case.
13967          esac
13968        else
13969          if test -z "$postdeps_CXX"; then
13970            postdeps_CXX="${prev}${p}"
13971          else
13972            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13973          fi
13974        fi
13975        ;;
13976
13977     *.$objext)
13978        # This assumes that the test object file only shows up
13979        # once in the compiler output.
13980        if test "$p" = "conftest.$objext"; then
13981          pre_test_object_deps_done=yes
13982          continue
13983        fi
13984
13985        if test "$pre_test_object_deps_done" = no; then
13986          if test -z "$predep_objects_CXX"; then
13987            predep_objects_CXX="$p"
13988          else
13989            predep_objects_CXX="$predep_objects_CXX $p"
13990          fi
13991        else
13992          if test -z "$postdep_objects_CXX"; then
13993            postdep_objects_CXX="$p"
13994          else
13995            postdep_objects_CXX="$postdep_objects_CXX $p"
13996          fi
13997        fi
13998        ;;
13999
14000     *) ;; # Ignore the rest.
14001
14002     esac
14003   done
14004
14005   # Clean up.
14006   rm -f a.out a.exe
14007 else
14008   echo "libtool.m4: error: problem compiling CXX test program"
14009 fi
14010
14011 $RM -f confest.$objext
14012
14013 # PORTME: override above test on systems where it is broken
14014 case $host_os in
14015 interix[3-9]*)
14016   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14017   # hack all around it, let's just trust "g++" to DTRT.
14018   predep_objects_CXX=
14019   postdep_objects_CXX=
14020   postdeps_CXX=
14021   ;;
14022
14023 linux*)
14024   case `$CC -V 2>&1 | sed 5q` in
14025   *Sun\ C*)
14026     # Sun C++ 5.9
14027
14028     # The more standards-conforming stlport4 library is
14029     # incompatible with the Cstd library. Avoid specifying
14030     # it if it's in CXXFLAGS. Ignore libCrun as
14031     # -library=stlport4 depends on it.
14032     case " $CXX $CXXFLAGS " in
14033     *" -library=stlport4 "*)
14034       solaris_use_stlport4=yes
14035       ;;
14036     esac
14037
14038     if test "$solaris_use_stlport4" != yes; then
14039       postdeps_CXX='-library=Cstd -library=Crun'
14040     fi
14041     ;;
14042   esac
14043   ;;
14044
14045 solaris*)
14046   case $cc_basename in
14047   CC*)
14048     # The more standards-conforming stlport4 library is
14049     # incompatible with the Cstd library. Avoid specifying
14050     # it if it's in CXXFLAGS. Ignore libCrun as
14051     # -library=stlport4 depends on it.
14052     case " $CXX $CXXFLAGS " in
14053     *" -library=stlport4 "*)
14054       solaris_use_stlport4=yes
14055       ;;
14056     esac
14057
14058     # Adding this requires a known-good setup of shared libraries for
14059     # Sun compiler versions before 5.6, else PIC objects from an old
14060     # archive will be linked into the output, leading to subtle bugs.
14061     if test "$solaris_use_stlport4" != yes; then
14062       postdeps_CXX='-library=Cstd -library=Crun'
14063     fi
14064     ;;
14065   esac
14066   ;;
14067 esac
14068
14069
14070 case " $postdeps_CXX " in
14071 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14072 esac
14073  compiler_lib_search_dirs_CXX=
14074 if test -n "${compiler_lib_search_path_CXX}"; then
14075  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14076 fi
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108     lt_prog_compiler_wl_CXX=
14109 lt_prog_compiler_pic_CXX=
14110 lt_prog_compiler_static_CXX=
14111
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14113 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14114
14115   # C++ specific cases for pic, static, wl, etc.
14116   if test "$GXX" = yes; then
14117     lt_prog_compiler_wl_CXX='-Wl,'
14118     lt_prog_compiler_static_CXX='-static'
14119
14120     case $host_os in
14121     aix*)
14122       # All AIX code is PIC.
14123       if test "$host_cpu" = ia64; then
14124         # AIX 5 now supports IA64 processor
14125         lt_prog_compiler_static_CXX='-Bstatic'
14126       fi
14127       lt_prog_compiler_pic_CXX='-fPIC'
14128       ;;
14129
14130     amigaos*)
14131       case $host_cpu in
14132       powerpc)
14133             # see comment about AmigaOS4 .so support
14134             lt_prog_compiler_pic_CXX='-fPIC'
14135         ;;
14136       m68k)
14137             # FIXME: we need at least 68020 code to build shared libraries, but
14138             # adding the `-m68020' flag to GCC prevents building anything better,
14139             # like `-m68040'.
14140             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14141         ;;
14142       esac
14143       ;;
14144
14145     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14146       # PIC is the default for these OSes.
14147       ;;
14148     mingw* | cygwin* | os2* | pw32* | cegcc*)
14149       # This hack is so that the source file can tell whether it is being
14150       # built for inclusion in a dll (and should export symbols for example).
14151       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14152       # (--disable-auto-import) libraries
14153       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14154       ;;
14155     darwin* | rhapsody*)
14156       # PIC is the default on this platform
14157       # Common symbols not allowed in MH_DYLIB files
14158       lt_prog_compiler_pic_CXX='-fno-common'
14159       ;;
14160     *djgpp*)
14161       # DJGPP does not support shared libraries at all
14162       lt_prog_compiler_pic_CXX=
14163       ;;
14164     haiku*)
14165       # PIC is the default for Haiku.
14166       # The "-static" flag exists, but is broken.
14167       lt_prog_compiler_static_CXX=
14168       ;;
14169     interix[3-9]*)
14170       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14171       # Instead, we relocate shared libraries at runtime.
14172       ;;
14173     sysv4*MP*)
14174       if test -d /usr/nec; then
14175         lt_prog_compiler_pic_CXX=-Kconform_pic
14176       fi
14177       ;;
14178     hpux*)
14179       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14180       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14181       # sets the default TLS model and affects inlining.
14182       case $host_cpu in
14183       hppa*64*)
14184         ;;
14185       *)
14186         lt_prog_compiler_pic_CXX='-fPIC'
14187         ;;
14188       esac
14189       ;;
14190     *qnx* | *nto*)
14191       # QNX uses GNU C++, but need to define -shared option too, otherwise
14192       # it will coredump.
14193       lt_prog_compiler_pic_CXX='-fPIC -shared'
14194       ;;
14195     *)
14196       lt_prog_compiler_pic_CXX='-fPIC'
14197       ;;
14198     esac
14199   else
14200     case $host_os in
14201       aix[4-9]*)
14202         # All AIX code is PIC.
14203         if test "$host_cpu" = ia64; then
14204           # AIX 5 now supports IA64 processor
14205           lt_prog_compiler_static_CXX='-Bstatic'
14206         else
14207           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14208         fi
14209         ;;
14210       chorus*)
14211         case $cc_basename in
14212         cxch68*)
14213           # Green Hills C++ Compiler
14214           # _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"
14215           ;;
14216         esac
14217         ;;
14218       dgux*)
14219         case $cc_basename in
14220           ec++*)
14221             lt_prog_compiler_pic_CXX='-KPIC'
14222             ;;
14223           ghcx*)
14224             # Green Hills C++ Compiler
14225             lt_prog_compiler_pic_CXX='-pic'
14226             ;;
14227           *)
14228             ;;
14229         esac
14230         ;;
14231       freebsd* | dragonfly*)
14232         # FreeBSD uses GNU C++
14233         ;;
14234       hpux9* | hpux10* | hpux11*)
14235         case $cc_basename in
14236           CC*)
14237             lt_prog_compiler_wl_CXX='-Wl,'
14238             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14239             if test "$host_cpu" != ia64; then
14240               lt_prog_compiler_pic_CXX='+Z'
14241             fi
14242             ;;
14243           aCC*)
14244             lt_prog_compiler_wl_CXX='-Wl,'
14245             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14246             case $host_cpu in
14247             hppa*64*|ia64*)
14248               # +Z the default
14249               ;;
14250             *)
14251               lt_prog_compiler_pic_CXX='+Z'
14252               ;;
14253             esac
14254             ;;
14255           *)
14256             ;;
14257         esac
14258         ;;
14259       interix*)
14260         # This is c89, which is MS Visual C++ (no shared libs)
14261         # Anyone wants to do a port?
14262         ;;
14263       irix5* | irix6* | nonstopux*)
14264         case $cc_basename in
14265           CC*)
14266             lt_prog_compiler_wl_CXX='-Wl,'
14267             lt_prog_compiler_static_CXX='-non_shared'
14268             # CC pic flag -KPIC is the default.
14269             ;;
14270           *)
14271             ;;
14272         esac
14273         ;;
14274       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14275         case $cc_basename in
14276           KCC*)
14277             # KAI C++ Compiler
14278             lt_prog_compiler_wl_CXX='--backend -Wl,'
14279             lt_prog_compiler_pic_CXX='-fPIC'
14280             ;;
14281           ecpc* )
14282             # old Intel C++ for x86_64 which still supported -KPIC.
14283             lt_prog_compiler_wl_CXX='-Wl,'
14284             lt_prog_compiler_pic_CXX='-KPIC'
14285             lt_prog_compiler_static_CXX='-static'
14286             ;;
14287           icpc* )
14288             # Intel C++, used to be incompatible with GCC.
14289             # ICC 10 doesn't accept -KPIC any more.
14290             lt_prog_compiler_wl_CXX='-Wl,'
14291             lt_prog_compiler_pic_CXX='-fPIC'
14292             lt_prog_compiler_static_CXX='-static'
14293             ;;
14294           pgCC* | pgcpp*)
14295             # Portland Group C++ compiler
14296             lt_prog_compiler_wl_CXX='-Wl,'
14297             lt_prog_compiler_pic_CXX='-fpic'
14298             lt_prog_compiler_static_CXX='-Bstatic'
14299             ;;
14300           cxx*)
14301             # Compaq C++
14302             # Make sure the PIC flag is empty.  It appears that all Alpha
14303             # Linux and Compaq Tru64 Unix objects are PIC.
14304             lt_prog_compiler_pic_CXX=
14305             lt_prog_compiler_static_CXX='-non_shared'
14306             ;;
14307           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14308             # IBM XL 8.0, 9.0 on PPC and BlueGene
14309             lt_prog_compiler_wl_CXX='-Wl,'
14310             lt_prog_compiler_pic_CXX='-qpic'
14311             lt_prog_compiler_static_CXX='-qstaticlink'
14312             ;;
14313           *)
14314             case `$CC -V 2>&1 | sed 5q` in
14315             *Sun\ C*)
14316               # Sun C++ 5.9
14317               lt_prog_compiler_pic_CXX='-KPIC'
14318               lt_prog_compiler_static_CXX='-Bstatic'
14319               lt_prog_compiler_wl_CXX='-Qoption ld '
14320               ;;
14321             esac
14322             ;;
14323         esac
14324         ;;
14325       lynxos*)
14326         ;;
14327       m88k*)
14328         ;;
14329       mvs*)
14330         case $cc_basename in
14331           cxx*)
14332             lt_prog_compiler_pic_CXX='-W c,exportall'
14333             ;;
14334           *)
14335             ;;
14336         esac
14337         ;;
14338       netbsd*)
14339         ;;
14340       *qnx* | *nto*)
14341         # QNX uses GNU C++, but need to define -shared option too, otherwise
14342         # it will coredump.
14343         lt_prog_compiler_pic_CXX='-fPIC -shared'
14344         ;;
14345       osf3* | osf4* | osf5*)
14346         case $cc_basename in
14347           KCC*)
14348             lt_prog_compiler_wl_CXX='--backend -Wl,'
14349             ;;
14350           RCC*)
14351             # Rational C++ 2.4.1
14352             lt_prog_compiler_pic_CXX='-pic'
14353             ;;
14354           cxx*)
14355             # Digital/Compaq C++
14356             lt_prog_compiler_wl_CXX='-Wl,'
14357             # Make sure the PIC flag is empty.  It appears that all Alpha
14358             # Linux and Compaq Tru64 Unix objects are PIC.
14359             lt_prog_compiler_pic_CXX=
14360             lt_prog_compiler_static_CXX='-non_shared'
14361             ;;
14362           *)
14363             ;;
14364         esac
14365         ;;
14366       psos*)
14367         ;;
14368       solaris*)
14369         case $cc_basename in
14370           CC*)
14371             # Sun C++ 4.2, 5.x and Centerline C++
14372             lt_prog_compiler_pic_CXX='-KPIC'
14373             lt_prog_compiler_static_CXX='-Bstatic'
14374             lt_prog_compiler_wl_CXX='-Qoption ld '
14375             ;;
14376           gcx*)
14377             # Green Hills C++ Compiler
14378             lt_prog_compiler_pic_CXX='-PIC'
14379             ;;
14380           *)
14381             ;;
14382         esac
14383         ;;
14384       sunos4*)
14385         case $cc_basename in
14386           CC*)
14387             # Sun C++ 4.x
14388             lt_prog_compiler_pic_CXX='-pic'
14389             lt_prog_compiler_static_CXX='-Bstatic'
14390             ;;
14391           lcc*)
14392             # Lucid
14393             lt_prog_compiler_pic_CXX='-pic'
14394             ;;
14395           *)
14396             ;;
14397         esac
14398         ;;
14399       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14400         case $cc_basename in
14401           CC*)
14402             lt_prog_compiler_wl_CXX='-Wl,'
14403             lt_prog_compiler_pic_CXX='-KPIC'
14404             lt_prog_compiler_static_CXX='-Bstatic'
14405             ;;
14406         esac
14407         ;;
14408       tandem*)
14409         case $cc_basename in
14410           NCC*)
14411             # NonStop-UX NCC 3.20
14412             lt_prog_compiler_pic_CXX='-KPIC'
14413             ;;
14414           *)
14415             ;;
14416         esac
14417         ;;
14418       vxworks*)
14419         ;;
14420       *)
14421         lt_prog_compiler_can_build_shared_CXX=no
14422         ;;
14423     esac
14424   fi
14425
14426 case $host_os in
14427   # For platforms which do not support PIC, -DPIC is meaningless:
14428   *djgpp*)
14429     lt_prog_compiler_pic_CXX=
14430     ;;
14431   *)
14432     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14433     ;;
14434 esac
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14436 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14437
14438
14439
14440 #
14441 # Check to make sure the PIC flag actually works.
14442 #
14443 if test -n "$lt_prog_compiler_pic_CXX"; then
14444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14445 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14446 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14447   $as_echo_n "(cached) " >&6
14448 else
14449   lt_cv_prog_compiler_pic_works_CXX=no
14450    ac_outfile=conftest.$ac_objext
14451    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14452    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14453    # Insert the option either (1) after the last *FLAGS variable, or
14454    # (2) before a word containing "conftest.", or (3) at the end.
14455    # Note that $ac_compile itself does not contain backslashes and begins
14456    # with a dollar sign (not a hyphen), so the echo should work correctly.
14457    # The option is referenced via a variable to avoid confusing sed.
14458    lt_compile=`echo "$ac_compile" | $SED \
14459    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14460    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14461    -e 's:$: $lt_compiler_flag:'`
14462    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14463    (eval "$lt_compile" 2>conftest.err)
14464    ac_status=$?
14465    cat conftest.err >&5
14466    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467    if (exit $ac_status) && test -s "$ac_outfile"; then
14468      # The compiler can only warn and ignore the option if not recognized
14469      # So say no if there are warnings other than the usual output.
14470      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14471      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14472      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14473        lt_cv_prog_compiler_pic_works_CXX=yes
14474      fi
14475    fi
14476    $RM conftest*
14477
14478 fi
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14480 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14481
14482 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14483     case $lt_prog_compiler_pic_CXX in
14484      "" | " "*) ;;
14485      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14486      esac
14487 else
14488     lt_prog_compiler_pic_CXX=
14489      lt_prog_compiler_can_build_shared_CXX=no
14490 fi
14491
14492 fi
14493
14494
14495
14496 #
14497 # Check to make sure the static flag actually works.
14498 #
14499 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14502 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14503   $as_echo_n "(cached) " >&6
14504 else
14505   lt_cv_prog_compiler_static_works_CXX=no
14506    save_LDFLAGS="$LDFLAGS"
14507    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14508    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14509    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14510      # The linker can only warn and ignore the option if not recognized
14511      # So say no if there are warnings
14512      if test -s conftest.err; then
14513        # Append any errors to the config.log.
14514        cat conftest.err 1>&5
14515        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14516        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517        if diff conftest.exp conftest.er2 >/dev/null; then
14518          lt_cv_prog_compiler_static_works_CXX=yes
14519        fi
14520      else
14521        lt_cv_prog_compiler_static_works_CXX=yes
14522      fi
14523    fi
14524    $RM -r conftest*
14525    LDFLAGS="$save_LDFLAGS"
14526
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14529 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14530
14531 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14532     :
14533 else
14534     lt_prog_compiler_static_CXX=
14535 fi
14536
14537
14538
14539
14540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14541 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14542 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14543   $as_echo_n "(cached) " >&6
14544 else
14545   lt_cv_prog_compiler_c_o_CXX=no
14546    $RM -r conftest 2>/dev/null
14547    mkdir conftest
14548    cd conftest
14549    mkdir out
14550    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14551
14552    lt_compiler_flag="-o out/conftest2.$ac_objext"
14553    # Insert the option either (1) after the last *FLAGS variable, or
14554    # (2) before a word containing "conftest.", or (3) at the end.
14555    # Note that $ac_compile itself does not contain backslashes and begins
14556    # with a dollar sign (not a hyphen), so the echo should work correctly.
14557    lt_compile=`echo "$ac_compile" | $SED \
14558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14560    -e 's:$: $lt_compiler_flag:'`
14561    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14562    (eval "$lt_compile" 2>out/conftest.err)
14563    ac_status=$?
14564    cat out/conftest.err >&5
14565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14567    then
14568      # The compiler can only warn and ignore the option if not recognized
14569      # So say no if there are warnings
14570      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14571      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14572      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14573        lt_cv_prog_compiler_c_o_CXX=yes
14574      fi
14575    fi
14576    chmod u+w . 2>&5
14577    $RM conftest*
14578    # SGI C++ compiler will create directory out/ii_files/ for
14579    # template instantiation
14580    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14581    $RM out/* && rmdir out
14582    cd ..
14583    $RM -r conftest
14584    $RM conftest*
14585
14586 fi
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14588 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14589
14590
14591
14592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14593 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14594 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14595   $as_echo_n "(cached) " >&6
14596 else
14597   lt_cv_prog_compiler_c_o_CXX=no
14598    $RM -r conftest 2>/dev/null
14599    mkdir conftest
14600    cd conftest
14601    mkdir out
14602    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14603
14604    lt_compiler_flag="-o out/conftest2.$ac_objext"
14605    # Insert the option either (1) after the last *FLAGS variable, or
14606    # (2) before a word containing "conftest.", or (3) at the end.
14607    # Note that $ac_compile itself does not contain backslashes and begins
14608    # with a dollar sign (not a hyphen), so the echo should work correctly.
14609    lt_compile=`echo "$ac_compile" | $SED \
14610    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14611    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14612    -e 's:$: $lt_compiler_flag:'`
14613    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14614    (eval "$lt_compile" 2>out/conftest.err)
14615    ac_status=$?
14616    cat out/conftest.err >&5
14617    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14619    then
14620      # The compiler can only warn and ignore the option if not recognized
14621      # So say no if there are warnings
14622      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14623      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14624      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14625        lt_cv_prog_compiler_c_o_CXX=yes
14626      fi
14627    fi
14628    chmod u+w . 2>&5
14629    $RM conftest*
14630    # SGI C++ compiler will create directory out/ii_files/ for
14631    # template instantiation
14632    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14633    $RM out/* && rmdir out
14634    cd ..
14635    $RM -r conftest
14636    $RM conftest*
14637
14638 fi
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14640 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14641
14642
14643
14644
14645 hard_links="nottested"
14646 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14647   # do not overwrite the value of need_locks provided by the user
14648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14649 $as_echo_n "checking if we can lock with hard links... " >&6; }
14650   hard_links=yes
14651   $RM conftest*
14652   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14653   touch conftest.a
14654   ln conftest.a conftest.b 2>&5 || hard_links=no
14655   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14657 $as_echo "$hard_links" >&6; }
14658   if test "$hard_links" = no; then
14659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14660 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14661     need_locks=warn
14662   fi
14663 else
14664   need_locks=no
14665 fi
14666
14667
14668
14669     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14670 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14671
14672   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14673   case $host_os in
14674   aix[4-9]*)
14675     # If we're using GNU nm, then we don't want the "-C" option.
14676     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14677     # Also, AIX nm treats weak defined symbols like other global defined
14678     # symbols, whereas GNU nm marks them as "W".
14679     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14680       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'
14681     else
14682       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14683     fi
14684     ;;
14685   pw32*)
14686     export_symbols_cmds_CXX="$ltdll_cmds"
14687   ;;
14688   cygwin* | mingw* | cegcc*)
14689     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14690   ;;
14691   *)
14692     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14693   ;;
14694   esac
14695   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14696
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14698 $as_echo "$ld_shlibs_CXX" >&6; }
14699 test "$ld_shlibs_CXX" = no && can_build_shared=no
14700
14701 with_gnu_ld_CXX=$with_gnu_ld
14702
14703
14704
14705
14706
14707
14708 #
14709 # Do we need to explicitly link libc?
14710 #
14711 case "x$archive_cmds_need_lc_CXX" in
14712 x|xyes)
14713   # Assume -lc should be added
14714   archive_cmds_need_lc_CXX=yes
14715
14716   if test "$enable_shared" = yes && test "$GCC" = yes; then
14717     case $archive_cmds_CXX in
14718     *'~'*)
14719       # FIXME: we may have to deal with multi-command sequences.
14720       ;;
14721     '$CC '*)
14722       # Test whether the compiler implicitly links with -lc since on some
14723       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14724       # to ld, don't add -lc before -lgcc.
14725       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14726 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14727 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14728   $as_echo_n "(cached) " >&6
14729 else
14730   $RM conftest*
14731         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14732
14733         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14734   (eval $ac_compile) 2>&5
14735   ac_status=$?
14736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14737   test $ac_status = 0; } 2>conftest.err; then
14738           soname=conftest
14739           lib=conftest
14740           libobjs=conftest.$ac_objext
14741           deplibs=
14742           wl=$lt_prog_compiler_wl_CXX
14743           pic_flag=$lt_prog_compiler_pic_CXX
14744           compiler_flags=-v
14745           linker_flags=-v
14746           verstring=
14747           output_objdir=.
14748           libname=conftest
14749           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14750           allow_undefined_flag_CXX=
14751           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14752   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14753   ac_status=$?
14754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14755   test $ac_status = 0; }
14756           then
14757             lt_cv_archive_cmds_need_lc_CXX=no
14758           else
14759             lt_cv_archive_cmds_need_lc_CXX=yes
14760           fi
14761           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14762         else
14763           cat conftest.err 1>&5
14764         fi
14765         $RM conftest*
14766
14767 fi
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14769 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14770       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14771       ;;
14772     esac
14773   fi
14774   ;;
14775 esac
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14841 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14842
14843 library_names_spec=
14844 libname_spec='lib$name'
14845 soname_spec=
14846 shrext_cmds=".so"
14847 postinstall_cmds=
14848 postuninstall_cmds=
14849 finish_cmds=
14850 finish_eval=
14851 shlibpath_var=
14852 shlibpath_overrides_runpath=unknown
14853 version_type=none
14854 dynamic_linker="$host_os ld.so"
14855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14856 need_lib_prefix=unknown
14857 hardcode_into_libs=no
14858
14859 # when you set need_version to no, make sure it does not cause -set_version
14860 # flags to be left without arguments
14861 need_version=unknown
14862
14863 case $host_os in
14864 aix3*)
14865   version_type=linux
14866   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14867   shlibpath_var=LIBPATH
14868
14869   # AIX 3 has no versioning support, so we append a major version to the name.
14870   soname_spec='${libname}${release}${shared_ext}$major'
14871   ;;
14872
14873 aix[4-9]*)
14874   version_type=linux
14875   need_lib_prefix=no
14876   need_version=no
14877   hardcode_into_libs=yes
14878   if test "$host_cpu" = ia64; then
14879     # AIX 5 supports IA64
14880     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14881     shlibpath_var=LD_LIBRARY_PATH
14882   else
14883     # With GCC up to 2.95.x, collect2 would create an import file
14884     # for dependence libraries.  The import file would start with
14885     # the line `#! .'.  This would cause the generated library to
14886     # depend on `.', always an invalid library.  This was fixed in
14887     # development snapshots of GCC prior to 3.0.
14888     case $host_os in
14889       aix4 | aix4.[01] | aix4.[01].*)
14890       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14891            echo ' yes '
14892            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14893         :
14894       else
14895         can_build_shared=no
14896       fi
14897       ;;
14898     esac
14899     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14900     # soname into executable. Probably we can add versioning support to
14901     # collect2, so additional links can be useful in future.
14902     if test "$aix_use_runtimelinking" = yes; then
14903       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14904       # instead of lib<name>.a to let people know that these are not
14905       # typical AIX shared libraries.
14906       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907     else
14908       # We preserve .a as extension for shared libraries through AIX4.2
14909       # and later when we are not doing run time linking.
14910       library_names_spec='${libname}${release}.a $libname.a'
14911       soname_spec='${libname}${release}${shared_ext}$major'
14912     fi
14913     shlibpath_var=LIBPATH
14914   fi
14915   ;;
14916
14917 amigaos*)
14918   case $host_cpu in
14919   powerpc)
14920     # Since July 2007 AmigaOS4 officially supports .so libraries.
14921     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923     ;;
14924   m68k)
14925     library_names_spec='$libname.ixlibrary $libname.a'
14926     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14927     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'
14928     ;;
14929   esac
14930   ;;
14931
14932 beos*)
14933   library_names_spec='${libname}${shared_ext}'
14934   dynamic_linker="$host_os ld.so"
14935   shlibpath_var=LIBRARY_PATH
14936   ;;
14937
14938 bsdi[45]*)
14939   version_type=linux
14940   need_version=no
14941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14942   soname_spec='${libname}${release}${shared_ext}$major'
14943   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14944   shlibpath_var=LD_LIBRARY_PATH
14945   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14946   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14947   # the default ld.so.conf also contains /usr/contrib/lib and
14948   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14949   # libtool to hard-code these into programs
14950   ;;
14951
14952 cygwin* | mingw* | pw32* | cegcc*)
14953   version_type=windows
14954   shrext_cmds=".dll"
14955   need_version=no
14956   need_lib_prefix=no
14957
14958   case $GCC,$host_os in
14959   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14960     library_names_spec='$libname.dll.a'
14961     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14962     postinstall_cmds='base_file=`basename \${file}`~
14963       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14964       dldir=$destdir/`dirname \$dlpath`~
14965       test -d \$dldir || mkdir -p \$dldir~
14966       $install_prog $dir/$dlname \$dldir/$dlname~
14967       chmod a+x \$dldir/$dlname~
14968       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14969         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14970       fi'
14971     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14972       dlpath=$dir/\$dldll~
14973        $RM \$dlpath'
14974     shlibpath_overrides_runpath=yes
14975
14976     case $host_os in
14977     cygwin*)
14978       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14979       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14980
14981       ;;
14982     mingw* | cegcc*)
14983       # MinGW DLLs use traditional 'lib' prefix
14984       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14985       ;;
14986     pw32*)
14987       # pw32 DLLs use 'pw' prefix rather than 'lib'
14988       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14989       ;;
14990     esac
14991     ;;
14992
14993   *)
14994     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14995     ;;
14996   esac
14997   dynamic_linker='Win32 ld.exe'
14998   # FIXME: first we should search . and the directory the executable is in
14999   shlibpath_var=PATH
15000   ;;
15001
15002 darwin* | rhapsody*)
15003   dynamic_linker="$host_os dyld"
15004   version_type=darwin
15005   need_lib_prefix=no
15006   need_version=no
15007   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15008   soname_spec='${libname}${release}${major}$shared_ext'
15009   shlibpath_overrides_runpath=yes
15010   shlibpath_var=DYLD_LIBRARY_PATH
15011   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15012
15013   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15014   ;;
15015
15016 dgux*)
15017   version_type=linux
15018   need_lib_prefix=no
15019   need_version=no
15020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15021   soname_spec='${libname}${release}${shared_ext}$major'
15022   shlibpath_var=LD_LIBRARY_PATH
15023   ;;
15024
15025 freebsd* | dragonfly*)
15026   # DragonFly does not have aout.  When/if they implement a new
15027   # versioning mechanism, adjust this.
15028   if test -x /usr/bin/objformat; then
15029     objformat=`/usr/bin/objformat`
15030   else
15031     case $host_os in
15032     freebsd[23].*) objformat=aout ;;
15033     *) objformat=elf ;;
15034     esac
15035   fi
15036   version_type=freebsd-$objformat
15037   case $version_type in
15038     freebsd-elf*)
15039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15040       need_version=no
15041       need_lib_prefix=no
15042       ;;
15043     freebsd-*)
15044       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15045       need_version=yes
15046       ;;
15047   esac
15048   shlibpath_var=LD_LIBRARY_PATH
15049   case $host_os in
15050   freebsd2.*)
15051     shlibpath_overrides_runpath=yes
15052     ;;
15053   freebsd3.[01]* | freebsdelf3.[01]*)
15054     shlibpath_overrides_runpath=yes
15055     hardcode_into_libs=yes
15056     ;;
15057   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15058   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15059     shlibpath_overrides_runpath=no
15060     hardcode_into_libs=yes
15061     ;;
15062   *) # from 4.6 on, and DragonFly
15063     shlibpath_overrides_runpath=yes
15064     hardcode_into_libs=yes
15065     ;;
15066   esac
15067   ;;
15068
15069 haiku*)
15070   version_type=linux
15071   need_lib_prefix=no
15072   need_version=no
15073   dynamic_linker="$host_os runtime_loader"
15074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15075   soname_spec='${libname}${release}${shared_ext}$major'
15076   shlibpath_var=LIBRARY_PATH
15077   shlibpath_overrides_runpath=yes
15078   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15079   hardcode_into_libs=yes
15080   ;;
15081
15082 hpux9* | hpux10* | hpux11*)
15083   # Give a soname corresponding to the major version so that dld.sl refuses to
15084   # link against other versions.
15085   version_type=sunos
15086   need_lib_prefix=no
15087   need_version=no
15088   case $host_cpu in
15089   ia64*)
15090     shrext_cmds='.so'
15091     hardcode_into_libs=yes
15092     dynamic_linker="$host_os dld.so"
15093     shlibpath_var=LD_LIBRARY_PATH
15094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096     soname_spec='${libname}${release}${shared_ext}$major'
15097     if test "X$HPUX_IA64_MODE" = X32; then
15098       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15099     else
15100       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15101     fi
15102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15103     ;;
15104   hppa*64*)
15105     shrext_cmds='.sl'
15106     hardcode_into_libs=yes
15107     dynamic_linker="$host_os dld.sl"
15108     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15109     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111     soname_spec='${libname}${release}${shared_ext}$major'
15112     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15113     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15114     ;;
15115   *)
15116     shrext_cmds='.sl'
15117     dynamic_linker="$host_os dld.sl"
15118     shlibpath_var=SHLIB_PATH
15119     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121     soname_spec='${libname}${release}${shared_ext}$major'
15122     ;;
15123   esac
15124   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15125   postinstall_cmds='chmod 555 $lib'
15126   # or fails outright, so override atomically:
15127   install_override_mode=555
15128   ;;
15129
15130 interix[3-9]*)
15131   version_type=linux
15132   need_lib_prefix=no
15133   need_version=no
15134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15135   soname_spec='${libname}${release}${shared_ext}$major'
15136   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15137   shlibpath_var=LD_LIBRARY_PATH
15138   shlibpath_overrides_runpath=no
15139   hardcode_into_libs=yes
15140   ;;
15141
15142 irix5* | irix6* | nonstopux*)
15143   case $host_os in
15144     nonstopux*) version_type=nonstopux ;;
15145     *)
15146         if test "$lt_cv_prog_gnu_ld" = yes; then
15147                 version_type=linux
15148         else
15149                 version_type=irix
15150         fi ;;
15151   esac
15152   need_lib_prefix=no
15153   need_version=no
15154   soname_spec='${libname}${release}${shared_ext}$major'
15155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15156   case $host_os in
15157   irix5* | nonstopux*)
15158     libsuff= shlibsuff=
15159     ;;
15160   *)
15161     case $LD in # libtool.m4 will add one of these switches to LD
15162     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15163       libsuff= shlibsuff= libmagic=32-bit;;
15164     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15165       libsuff=32 shlibsuff=N32 libmagic=N32;;
15166     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15167       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15168     *) libsuff= shlibsuff= libmagic=never-match;;
15169     esac
15170     ;;
15171   esac
15172   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15173   shlibpath_overrides_runpath=no
15174   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15175   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15176   hardcode_into_libs=yes
15177   ;;
15178
15179 # No shared lib support for Linux oldld, aout, or coff.
15180 linux*oldld* | linux*aout* | linux*coff*)
15181   dynamic_linker=no
15182   ;;
15183
15184 # This must be Linux ELF.
15185 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15186   version_type=linux
15187   need_lib_prefix=no
15188   need_version=no
15189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15190   soname_spec='${libname}${release}${shared_ext}$major'
15191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15192   shlibpath_var=LD_LIBRARY_PATH
15193   shlibpath_overrides_runpath=no
15194
15195   # Some binutils ld are patched to set DT_RUNPATH
15196   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15197   $as_echo_n "(cached) " >&6
15198 else
15199   lt_cv_shlibpath_overrides_runpath=no
15200     save_LDFLAGS=$LDFLAGS
15201     save_libdir=$libdir
15202     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15203          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h.  */
15206
15207 int
15208 main ()
15209 {
15210
15211   ;
15212   return 0;
15213 }
15214 _ACEOF
15215 if ac_fn_cxx_try_link "$LINENO"; then :
15216   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15217   lt_cv_shlibpath_overrides_runpath=yes
15218 fi
15219 fi
15220 rm -f core conftest.err conftest.$ac_objext \
15221     conftest$ac_exeext conftest.$ac_ext
15222     LDFLAGS=$save_LDFLAGS
15223     libdir=$save_libdir
15224
15225 fi
15226
15227   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15228
15229   # This implies no fast_install, which is unacceptable.
15230   # Some rework will be needed to allow for fast_install
15231   # before this can be enabled.
15232   hardcode_into_libs=yes
15233
15234   # Append ld.so.conf contents to the search path
15235   if test -f /etc/ld.so.conf; then
15236     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' ' '`
15237     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15238   fi
15239
15240   # We used to test for /lib/ld.so.1 and disable shared libraries on
15241   # powerpc, because MkLinux only supported shared libraries with the
15242   # GNU dynamic linker.  Since this was broken with cross compilers,
15243   # most powerpc-linux boxes support dynamic linking these days and
15244   # people can always --disable-shared, the test was removed, and we
15245   # assume the GNU/Linux dynamic linker is in use.
15246   dynamic_linker='GNU/Linux ld.so'
15247   ;;
15248
15249 netbsd*)
15250   version_type=sunos
15251   need_lib_prefix=no
15252   need_version=no
15253   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15255     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15256     dynamic_linker='NetBSD (a.out) ld.so'
15257   else
15258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15259     soname_spec='${libname}${release}${shared_ext}$major'
15260     dynamic_linker='NetBSD ld.elf_so'
15261   fi
15262   shlibpath_var=LD_LIBRARY_PATH
15263   shlibpath_overrides_runpath=yes
15264   hardcode_into_libs=yes
15265   ;;
15266
15267 newsos6)
15268   version_type=linux
15269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270   shlibpath_var=LD_LIBRARY_PATH
15271   shlibpath_overrides_runpath=yes
15272   ;;
15273
15274 *nto* | *qnx*)
15275   version_type=qnx
15276   need_lib_prefix=no
15277   need_version=no
15278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279   soname_spec='${libname}${release}${shared_ext}$major'
15280   shlibpath_var=LD_LIBRARY_PATH
15281   shlibpath_overrides_runpath=no
15282   hardcode_into_libs=yes
15283   dynamic_linker='ldqnx.so'
15284   ;;
15285
15286 openbsd*)
15287   version_type=sunos
15288   sys_lib_dlsearch_path_spec="/usr/lib"
15289   need_lib_prefix=no
15290   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15291   case $host_os in
15292     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15293     *)                          need_version=no  ;;
15294   esac
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15296   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15297   shlibpath_var=LD_LIBRARY_PATH
15298   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15299     case $host_os in
15300       openbsd2.[89] | openbsd2.[89].*)
15301         shlibpath_overrides_runpath=no
15302         ;;
15303       *)
15304         shlibpath_overrides_runpath=yes
15305         ;;
15306       esac
15307   else
15308     shlibpath_overrides_runpath=yes
15309   fi
15310   ;;
15311
15312 os2*)
15313   libname_spec='$name'
15314   shrext_cmds=".dll"
15315   need_lib_prefix=no
15316   library_names_spec='$libname${shared_ext} $libname.a'
15317   dynamic_linker='OS/2 ld.exe'
15318   shlibpath_var=LIBPATH
15319   ;;
15320
15321 osf3* | osf4* | osf5*)
15322   version_type=osf
15323   need_lib_prefix=no
15324   need_version=no
15325   soname_spec='${libname}${release}${shared_ext}$major'
15326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327   shlibpath_var=LD_LIBRARY_PATH
15328   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15329   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15330   ;;
15331
15332 rdos*)
15333   dynamic_linker=no
15334   ;;
15335
15336 solaris*)
15337   version_type=linux
15338   need_lib_prefix=no
15339   need_version=no
15340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15341   soname_spec='${libname}${release}${shared_ext}$major'
15342   shlibpath_var=LD_LIBRARY_PATH
15343   shlibpath_overrides_runpath=yes
15344   hardcode_into_libs=yes
15345   # ldd complains unless libraries are executable
15346   postinstall_cmds='chmod +x $lib'
15347   ;;
15348
15349 sunos4*)
15350   version_type=sunos
15351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15352   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15353   shlibpath_var=LD_LIBRARY_PATH
15354   shlibpath_overrides_runpath=yes
15355   if test "$with_gnu_ld" = yes; then
15356     need_lib_prefix=no
15357   fi
15358   need_version=yes
15359   ;;
15360
15361 sysv4 | sysv4.3*)
15362   version_type=linux
15363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364   soname_spec='${libname}${release}${shared_ext}$major'
15365   shlibpath_var=LD_LIBRARY_PATH
15366   case $host_vendor in
15367     sni)
15368       shlibpath_overrides_runpath=no
15369       need_lib_prefix=no
15370       runpath_var=LD_RUN_PATH
15371       ;;
15372     siemens)
15373       need_lib_prefix=no
15374       ;;
15375     motorola)
15376       need_lib_prefix=no
15377       need_version=no
15378       shlibpath_overrides_runpath=no
15379       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15380       ;;
15381   esac
15382   ;;
15383
15384 sysv4*MP*)
15385   if test -d /usr/nec ;then
15386     version_type=linux
15387     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15388     soname_spec='$libname${shared_ext}.$major'
15389     shlibpath_var=LD_LIBRARY_PATH
15390   fi
15391   ;;
15392
15393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15394   version_type=freebsd-elf
15395   need_lib_prefix=no
15396   need_version=no
15397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15398   soname_spec='${libname}${release}${shared_ext}$major'
15399   shlibpath_var=LD_LIBRARY_PATH
15400   shlibpath_overrides_runpath=yes
15401   hardcode_into_libs=yes
15402   if test "$with_gnu_ld" = yes; then
15403     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15404   else
15405     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15406     case $host_os in
15407       sco3.2v5*)
15408         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15409         ;;
15410     esac
15411   fi
15412   sys_lib_dlsearch_path_spec='/usr/lib'
15413   ;;
15414
15415 tpf*)
15416   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15417   version_type=linux
15418   need_lib_prefix=no
15419   need_version=no
15420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421   shlibpath_var=LD_LIBRARY_PATH
15422   shlibpath_overrides_runpath=no
15423   hardcode_into_libs=yes
15424   ;;
15425
15426 uts4*)
15427   version_type=linux
15428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429   soname_spec='${libname}${release}${shared_ext}$major'
15430   shlibpath_var=LD_LIBRARY_PATH
15431   ;;
15432
15433 *)
15434   dynamic_linker=no
15435   ;;
15436 esac
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15438 $as_echo "$dynamic_linker" >&6; }
15439 test "$dynamic_linker" = no && can_build_shared=no
15440
15441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15442 if test "$GCC" = yes; then
15443   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15444 fi
15445
15446 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15447   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15448 fi
15449 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15450   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15451 fi
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15491 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15492 hardcode_action_CXX=
15493 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15494    test -n "$runpath_var_CXX" ||
15495    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15496
15497   # We can hardcode non-existent directories.
15498   if test "$hardcode_direct_CXX" != no &&
15499      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15500      # have to relink, otherwise we might link with an installed library
15501      # when we should be linking with a yet-to-be-installed one
15502      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15503      test "$hardcode_minus_L_CXX" != no; then
15504     # Linking always hardcodes the temporary library directory.
15505     hardcode_action_CXX=relink
15506   else
15507     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15508     hardcode_action_CXX=immediate
15509   fi
15510 else
15511   # We cannot hardcode anything, or else we can only hardcode existing
15512   # directories.
15513   hardcode_action_CXX=unsupported
15514 fi
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15516 $as_echo "$hardcode_action_CXX" >&6; }
15517
15518 if test "$hardcode_action_CXX" = relink ||
15519    test "$inherit_rpath_CXX" = yes; then
15520   # Fast installation is not supported
15521   enable_fast_install=no
15522 elif test "$shlibpath_overrides_runpath" = yes ||
15523      test "$enable_shared" = no; then
15524   # Fast installation is not necessary
15525   enable_fast_install=needless
15526 fi
15527
15528
15529
15530
15531
15532
15533
15534   fi # test -n "$compiler"
15535
15536   CC=$lt_save_CC
15537   LDCXX=$LD
15538   LD=$lt_save_LD
15539   GCC=$lt_save_GCC
15540   with_gnu_ld=$lt_save_with_gnu_ld
15541   lt_cv_path_LDCXX=$lt_cv_path_LD
15542   lt_cv_path_LD=$lt_save_path_LD
15543   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15544   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15545 fi # test "$_lt_caught_CXX_error" != yes
15546
15547 ac_ext=c
15548 ac_cpp='$CPP $CPPFLAGS'
15549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565         ac_config_commands="$ac_config_commands libtool"
15566
15567
15568
15569
15570 # Only expand once:
15571
15572
15573
15574 GPROFNG_LIBADD="-L../../libiberty -liberty"
15575 if test "$enable_shared" = "yes"; then
15576   GPROFNG_LIBADD="-L../../libiberty/pic -liberty"
15577 fi
15578
15579
15580 # Figure out what compiler warnings we can enable.
15581 # See config/warnings.m4 for details.
15582
15583 ac_ext=c
15584 ac_cpp='$CPP $CPPFLAGS'
15585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15588
15589 WERROR=
15590 # Check whether --enable-werror-always was given.
15591 if test "${enable_werror_always+set}" = set; then :
15592   enableval=$enable_werror_always;
15593 else
15594   enable_werror_always=no
15595 fi
15596
15597 if test $enable_werror_always = yes; then :
15598   WERROR="$WERROR${WERROR:+ }-Werror"
15599 fi
15600
15601 ac_ext=c
15602 ac_cpp='$CPP $CPPFLAGS'
15603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15606
15607
15608 ac_ext=c
15609 ac_cpp='$CPP $CPPFLAGS'
15610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15613
15614 gprofng_cflags=
15615 save_CFLAGS="$CFLAGS"
15616 for real_option in -Wall; do
15617   # Do the check with the no- prefix removed since gcc silently
15618   # accepts any -Wno-* option on purpose
15619   case $real_option in
15620     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15621     *) option=$real_option ;;
15622   esac
15623   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15624
15625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15626 $as_echo_n "checking whether $CC supports $option... " >&6; }
15627 if eval \${$as_acx_Woption+:} false; then :
15628   $as_echo_n "(cached) " >&6
15629 else
15630   CFLAGS="$option"
15631     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632 /* end confdefs.h.  */
15633
15634 int
15635 main ()
15636 {
15637
15638   ;
15639   return 0;
15640 }
15641 _ACEOF
15642 if ac_fn_c_try_compile "$LINENO"; then :
15643   eval "$as_acx_Woption=yes"
15644 else
15645   eval "$as_acx_Woption=no"
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15648
15649 fi
15650 eval ac_res=\$$as_acx_Woption
15651                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15652 $as_echo "$ac_res" >&6; }
15653   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15654   gprofng_cflags="$gprofng_cflags${gprofng_cflags:+ }$real_option"
15655 fi
15656   done
15657 CFLAGS="$save_CFLAGS"
15658 ac_ext=c
15659 ac_cpp='$CPP $CPPFLAGS'
15660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15663
15664
15665 ac_ext=c
15666 ac_cpp='$CPP $CPPFLAGS'
15667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15670
15671 GPROFNG_NO_SWITCH_CFLAGS=
15672 save_CFLAGS="$CFLAGS"
15673 for real_option in -Wno-switch; do
15674   # Do the check with the no- prefix removed since gcc silently
15675   # accepts any -Wno-* option on purpose
15676   case $real_option in
15677     -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15678     *) option=$real_option ;;
15679   esac
15680   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15681
15682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15683 $as_echo_n "checking whether $CC supports $option... " >&6; }
15684 if eval \${$as_acx_Woption+:} false; then :
15685   $as_echo_n "(cached) " >&6
15686 else
15687   CFLAGS="$option"
15688     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h.  */
15690
15691 int
15692 main ()
15693 {
15694
15695   ;
15696   return 0;
15697 }
15698 _ACEOF
15699 if ac_fn_c_try_compile "$LINENO"; then :
15700   eval "$as_acx_Woption=yes"
15701 else
15702   eval "$as_acx_Woption=no"
15703 fi
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705
15706 fi
15707 eval ac_res=\$$as_acx_Woption
15708                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15709 $as_echo "$ac_res" >&6; }
15710   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15711   GPROFNG_NO_SWITCH_CFLAGS="$GPROFNG_NO_SWITCH_CFLAGS${GPROFNG_NO_SWITCH_CFLAGS:+ }$real_option"
15712 fi
15713   done
15714 CFLAGS="$save_CFLAGS"
15715 ac_ext=c
15716 ac_cpp='$CPP $CPPFLAGS'
15717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15720
15721
15722 gprofng_cppflags="-U_ASM"
15723 build_collector=
15724 build_src=
15725
15726   case "${host}" in
15727     x86_64-*-linux*)
15728       build_src=true
15729       build_collector=true
15730       ;;
15731     i?86-*-linux*)
15732       build_src=true
15733       build_collector=true
15734       ;;
15735     aarch64-*-linux*)
15736       build_src=true
15737       build_collector=true
15738       ;;
15739   esac
15740   # Check whether --enable-gprofng-tools was given.
15741 if test "${enable_gprofng_tools+set}" = set; then :
15742   enableval=$enable_gprofng_tools; build_src=$enableval
15743 fi
15744
15745
15746  if test x$build_collector = xtrue; then
15747   BUILD_COLLECTOR_TRUE=
15748   BUILD_COLLECTOR_FALSE='#'
15749 else
15750   BUILD_COLLECTOR_TRUE='#'
15751   BUILD_COLLECTOR_FALSE=
15752 fi
15753
15754  if test x$build_src = xtrue; then
15755   BUILD_SRC_TRUE=
15756   BUILD_SRC_FALSE='#'
15757 else
15758   BUILD_SRC_TRUE='#'
15759   BUILD_SRC_FALSE=
15760 fi
15761
15762
15763 run_tests=false
15764 if test x$build_collector = xtrue; then
15765
15766
15767 subdirs="$subdirs libcollector"
15768
15769   if test x${host} = x${target}; then
15770     run_tests=true
15771   fi
15772 fi
15773  if test x$run_tests = xtrue; then
15774   RUN_TESTS_TRUE=
15775   RUN_TESTS_FALSE='#'
15776 else
15777   RUN_TESTS_TRUE='#'
15778   RUN_TESTS_FALSE=
15779 fi
15780
15781
15782
15783
15784
15785 ac_ext=c
15786 ac_cpp='$CPP $CPPFLAGS'
15787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15790
15791 ax_pthread_ok=no
15792
15793 # We used to check for pthread.h first, but this fails if pthread.h
15794 # requires special compiler flags (e.g. on Tru64 or Sequent).
15795 # It gets checked for in the link test anyway.
15796
15797 # First of all, check if the user has set any of the PTHREAD_LIBS,
15798 # etcetera environment variables, and if threads linking works using
15799 # them:
15800 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15801         ax_pthread_save_CC="$CC"
15802         ax_pthread_save_CFLAGS="$CFLAGS"
15803         ax_pthread_save_LIBS="$LIBS"
15804         if test "x$PTHREAD_CC" != "x"; then :
15805   CC="$PTHREAD_CC"
15806 fi
15807         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15808         LIBS="$PTHREAD_LIBS $LIBS"
15809         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15810 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15811         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h.  */
15813
15814 /* Override any GCC internal prototype to avoid an error.
15815    Use char because int might match the return type of a GCC
15816    builtin and then its argument prototype would still apply.  */
15817 #ifdef __cplusplus
15818 extern "C"
15819 #endif
15820 char pthread_join ();
15821 int
15822 main ()
15823 {
15824 return pthread_join ();
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 if ac_fn_c_try_link "$LINENO"; then :
15830   ax_pthread_ok=yes
15831 fi
15832 rm -f core conftest.err conftest.$ac_objext \
15833     conftest$ac_exeext conftest.$ac_ext
15834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15835 $as_echo "$ax_pthread_ok" >&6; }
15836         if test "x$ax_pthread_ok" = "xno"; then
15837                 PTHREAD_LIBS=""
15838                 PTHREAD_CFLAGS=""
15839         fi
15840         CC="$ax_pthread_save_CC"
15841         CFLAGS="$ax_pthread_save_CFLAGS"
15842         LIBS="$ax_pthread_save_LIBS"
15843 fi
15844
15845 # We must check for the threads library under a number of different
15846 # names; the ordering is very important because some systems
15847 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15848 # libraries is broken (non-POSIX).
15849
15850 # Create a list of thread flags to try.  Items starting with a "-" are
15851 # C compiler flags, and other items are library names, except for "none"
15852 # which indicates that we try without any flags at all, and "pthread-config"
15853 # which is a program returning the flags for the Pth emulation library.
15854
15855 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15856
15857 # The ordering *is* (sometimes) important.  Some notes on the
15858 # individual items follow:
15859
15860 # pthreads: AIX (must check this before -lpthread)
15861 # none: in case threads are in libc; should be tried before -Kthread and
15862 #       other compiler flags to prevent continual compiler warnings
15863 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15864 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15865 #           (Note: HP C rejects this with "bad form for `-t' option")
15866 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15867 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15868 #      doesn't hurt to check since this sometimes defines pthreads and
15869 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
15870 #      is present but should not be used directly; and before -mthreads,
15871 #      because the compiler interprets this as "-mt" + "-hreads")
15872 # -mthreads: Mingw32/gcc, Lynx/gcc
15873 # pthread: Linux, etcetera
15874 # --thread-safe: KAI C++
15875 # pthread-config: use pthread-config program (for GNU Pth library)
15876
15877 case $host_os in
15878
15879         freebsd*)
15880
15881         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15882         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15883
15884         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15885         ;;
15886
15887         hpux*)
15888
15889         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15890         # multi-threading and also sets -lpthread."
15891
15892         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15893         ;;
15894
15895         openedition*)
15896
15897         # IBM z/OS requires a feature-test macro to be defined in order to
15898         # enable POSIX threads at all, so give the user a hint if this is
15899         # not set. (We don't define these ourselves, as they can affect
15900         # other portions of the system API in unpredictable ways.)
15901
15902         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h.  */
15904
15905 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15906              AX_PTHREAD_ZOS_MISSING
15907 #            endif
15908
15909 _ACEOF
15910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15911   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
15912   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15913 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15914 fi
15915 rm -f conftest*
15916
15917         ;;
15918
15919         solaris*)
15920
15921         # On Solaris (at least, for some versions), libc contains stubbed
15922         # (non-functional) versions of the pthreads routines, so link-based
15923         # tests will erroneously succeed. (N.B.: The stubs are missing
15924         # pthread_cleanup_push, or rather a function called by this macro,
15925         # so we could check for that, but who knows whether they'll stub
15926         # that too in a future libc.)  So we'll check first for the
15927         # standard Solaris way of linking pthreads (-mt -lpthread).
15928
15929         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
15930         ;;
15931 esac
15932
15933 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15934
15935 if test "x$GCC" = "xyes"; then :
15936   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
15937 fi
15938
15939 # The presence of a feature test macro requesting re-entrant function
15940 # definitions is, on some systems, a strong hint that pthreads support is
15941 # correctly enabled
15942
15943 case $host_os in
15944         darwin* | hpux* | linux* | osf* | solaris*)
15945         ax_pthread_check_macro="_REENTRANT"
15946         ;;
15947
15948         aix*)
15949         ax_pthread_check_macro="_THREAD_SAFE"
15950         ;;
15951
15952         *)
15953         ax_pthread_check_macro="--"
15954         ;;
15955 esac
15956 if test "x$ax_pthread_check_macro" = "x--"; then :
15957   ax_pthread_check_cond=0
15958 else
15959   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15960 fi
15961
15962 # Are we compiling with Clang?
15963
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15965 $as_echo_n "checking whether $CC is Clang... " >&6; }
15966 if ${ax_cv_PTHREAD_CLANG+:} false; then :
15967   $as_echo_n "(cached) " >&6
15968 else
15969   ax_cv_PTHREAD_CLANG=no
15970      # Note that Autoconf sets GCC=yes for Clang as well as GCC
15971      if test "x$GCC" = "xyes"; then
15972         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h.  */
15974 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15975 #            if defined(__clang__) && defined(__llvm__)
15976              AX_PTHREAD_CC_IS_CLANG
15977 #            endif
15978
15979 _ACEOF
15980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15981   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
15982   ax_cv_PTHREAD_CLANG=yes
15983 fi
15984 rm -f conftest*
15985
15986      fi
15987
15988 fi
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15990 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15991 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15992
15993 ax_pthread_clang_warning=no
15994
15995 # Clang needs special handling, because older versions handle the -pthread
15996 # option in a rather... idiosyncratic way
15997
15998 if test "x$ax_pthread_clang" = "xyes"; then
15999
16000         # Clang takes -pthread; it has never supported any other flag
16001
16002         # (Note 1: This will need to be revisited if a system that Clang
16003         # supports has POSIX threads in a separate library.  This tends not
16004         # to be the way of modern systems, but it's conceivable.)
16005
16006         # (Note 2: On some systems, notably Darwin, -pthread is not needed
16007         # to get POSIX threads support; the API is always present and
16008         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
16009         # -pthread does define _REENTRANT, and while the Darwin headers
16010         # ignore this macro, third-party headers might not.)
16011
16012         PTHREAD_CFLAGS="-pthread"
16013         PTHREAD_LIBS=
16014
16015         ax_pthread_ok=yes
16016
16017         # However, older versions of Clang make a point of warning the user
16018         # that, in an invocation where only linking and no compilation is
16019         # taking place, the -pthread option has no effect ("argument unused
16020         # during compilation").  They expect -pthread to be passed in only
16021         # when source code is being compiled.
16022         #
16023         # Problem is, this is at odds with the way Automake and most other
16024         # C build frameworks function, which is that the same flags used in
16025         # compilation (CFLAGS) are also used in linking.  Many systems
16026         # supported by AX_PTHREAD require exactly this for POSIX threads
16027         # support, and in fact it is often not straightforward to specify a
16028         # flag that is used only in the compilation phase and not in
16029         # linking.  Such a scenario is extremely rare in practice.
16030         #
16031         # Even though use of the -pthread flag in linking would only print
16032         # a warning, this can be a nuisance for well-run software projects
16033         # that build with -Werror.  So if the active version of Clang has
16034         # this misfeature, we search for an option to squash it.
16035
16036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16037 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16038 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
16039   $as_echo_n "(cached) " >&6
16040 else
16041   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
16042              # Create an alternate version of $ac_link that compiles and
16043              # links in two steps (.c -> .o, .o -> exe) instead of one
16044              # (.c -> exe), because the warning occurs only in the second
16045              # step
16046              ax_pthread_save_ac_link="$ac_link"
16047              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16048              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
16049              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16050              ax_pthread_save_CFLAGS="$CFLAGS"
16051              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
16052                 if test "x$ax_pthread_try" = "xunknown"; then :
16053   break
16054 fi
16055                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16056                 ac_link="$ax_pthread_save_ac_link"
16057                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h.  */
16059 int main(void){return 0;}
16060 _ACEOF
16061 if ac_fn_c_try_link "$LINENO"; then :
16062   ac_link="$ax_pthread_2step_ac_link"
16063                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h.  */
16065 int main(void){return 0;}
16066 _ACEOF
16067 if ac_fn_c_try_link "$LINENO"; then :
16068   break
16069 fi
16070 rm -f core conftest.err conftest.$ac_objext \
16071     conftest$ac_exeext conftest.$ac_ext
16072
16073 fi
16074 rm -f core conftest.err conftest.$ac_objext \
16075     conftest$ac_exeext conftest.$ac_ext
16076              done
16077              ac_link="$ax_pthread_save_ac_link"
16078              CFLAGS="$ax_pthread_save_CFLAGS"
16079              if test "x$ax_pthread_try" = "x"; then :
16080   ax_pthread_try=no
16081 fi
16082              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
16083
16084 fi
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16086 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16087
16088         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16089                 no | unknown) ;;
16090                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16091         esac
16092
16093 fi # $ax_pthread_clang = yes
16094
16095 if test "x$ax_pthread_ok" = "xno"; then
16096 for ax_pthread_try_flag in $ax_pthread_flags; do
16097
16098         case $ax_pthread_try_flag in
16099                 none)
16100                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16101 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16102                 ;;
16103
16104                 -mt,pthread)
16105                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
16106 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
16107                 PTHREAD_CFLAGS="-mt"
16108                 PTHREAD_LIBS="-lpthread"
16109                 ;;
16110
16111                 -*)
16112                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16113 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16114                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
16115                 ;;
16116
16117                 pthread-config)
16118                 # Extract the first word of "pthread-config", so it can be a program name with args.
16119 set dummy pthread-config; ac_word=$2
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16121 $as_echo_n "checking for $ac_word... " >&6; }
16122 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16123   $as_echo_n "(cached) " >&6
16124 else
16125   if test -n "$ax_pthread_config"; then
16126   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16127 else
16128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16129 for as_dir in $PATH
16130 do
16131   IFS=$as_save_IFS
16132   test -z "$as_dir" && as_dir=.
16133     for ac_exec_ext in '' $ac_executable_extensions; do
16134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16135     ac_cv_prog_ax_pthread_config="yes"
16136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16137     break 2
16138   fi
16139 done
16140   done
16141 IFS=$as_save_IFS
16142
16143   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16144 fi
16145 fi
16146 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16147 if test -n "$ax_pthread_config"; then
16148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16149 $as_echo "$ax_pthread_config" >&6; }
16150 else
16151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16153 fi
16154
16155
16156                 if test "x$ax_pthread_config" = "xno"; then :
16157   continue
16158 fi
16159                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16160                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16161                 ;;
16162
16163                 *)
16164                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16165 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16166                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
16167                 ;;
16168         esac
16169
16170         ax_pthread_save_CFLAGS="$CFLAGS"
16171         ax_pthread_save_LIBS="$LIBS"
16172         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16173         LIBS="$PTHREAD_LIBS $LIBS"
16174
16175         # Check for various functions.  We must include pthread.h,
16176         # since some functions may be macros.  (On the Sequent, we
16177         # need a special flag -Kthread to make this header compile.)
16178         # We check for pthread_join because it is in -lpthread on IRIX
16179         # while pthread_create is in libc.  We check for pthread_attr_init
16180         # due to DEC craziness with -lpthreads.  We check for
16181         # pthread_cleanup_push because it is one of the few pthread
16182         # functions on Solaris that doesn't have a non-functional libc stub.
16183         # We try pthread_create on general principles.
16184
16185         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h.  */
16187 #include <pthread.h>
16188 #                       if $ax_pthread_check_cond
16189 #                        error "$ax_pthread_check_macro must be defined"
16190 #                       endif
16191                         static void routine(void *a) { a = 0; }
16192                         static void *start_routine(void *a) { return a; }
16193 int
16194 main ()
16195 {
16196 pthread_t th; pthread_attr_t attr;
16197                         pthread_create(&th, 0, start_routine, 0);
16198                         pthread_join(th, 0);
16199                         pthread_attr_init(&attr);
16200                         pthread_cleanup_push(routine, 0);
16201                         pthread_cleanup_pop(0) /* ; */
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 if ac_fn_c_try_link "$LINENO"; then :
16207   ax_pthread_ok=yes
16208 fi
16209 rm -f core conftest.err conftest.$ac_objext \
16210     conftest$ac_exeext conftest.$ac_ext
16211
16212         CFLAGS="$ax_pthread_save_CFLAGS"
16213         LIBS="$ax_pthread_save_LIBS"
16214
16215         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16216 $as_echo "$ax_pthread_ok" >&6; }
16217         if test "x$ax_pthread_ok" = "xyes"; then :
16218   break
16219 fi
16220
16221         PTHREAD_LIBS=""
16222         PTHREAD_CFLAGS=""
16223 done
16224 fi
16225
16226 # Various other checks:
16227 if test "x$ax_pthread_ok" = "xyes"; then
16228         ax_pthread_save_CFLAGS="$CFLAGS"
16229         ax_pthread_save_LIBS="$LIBS"
16230         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16231         LIBS="$PTHREAD_LIBS $LIBS"
16232
16233         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16235 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16236 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
16237   $as_echo_n "(cached) " >&6
16238 else
16239   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
16240              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16241                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h.  */
16243 #include <pthread.h>
16244 int
16245 main ()
16246 {
16247 int attr = $ax_pthread_attr; return attr /* ; */
16248   ;
16249   return 0;
16250 }
16251 _ACEOF
16252 if ac_fn_c_try_link "$LINENO"; then :
16253   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext \
16256     conftest$ac_exeext conftest.$ac_ext
16257              done
16258
16259 fi
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16261 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16262         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16263                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16264                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16265
16266 cat >>confdefs.h <<_ACEOF
16267 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16268 _ACEOF
16269
16270                ax_pthread_joinable_attr_defined=yes
16271
16272 fi
16273
16274         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16275 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16276 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
16277   $as_echo_n "(cached) " >&6
16278 else
16279   ax_cv_PTHREAD_SPECIAL_FLAGS=no
16280              case $host_os in
16281              solaris*)
16282              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16283              ;;
16284              esac
16285
16286 fi
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16288 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16289         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16290                test "x$ax_pthread_special_flags_added" != "xyes"; then :
16291   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16292                ax_pthread_special_flags_added=yes
16293 fi
16294
16295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16296 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16297 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16298   $as_echo_n "(cached) " >&6
16299 else
16300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h.  */
16302 #include <pthread.h>
16303 int
16304 main ()
16305 {
16306 int i = PTHREAD_PRIO_INHERIT;
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 if ac_fn_c_try_link "$LINENO"; then :
16312   ax_cv_PTHREAD_PRIO_INHERIT=yes
16313 else
16314   ax_cv_PTHREAD_PRIO_INHERIT=no
16315 fi
16316 rm -f core conftest.err conftest.$ac_objext \
16317     conftest$ac_exeext conftest.$ac_ext
16318
16319 fi
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16321 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16322         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16323                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16324
16325 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16326
16327                ax_pthread_prio_inherit_defined=yes
16328
16329 fi
16330
16331         CFLAGS="$ax_pthread_save_CFLAGS"
16332         LIBS="$ax_pthread_save_LIBS"
16333
16334         # More AIX lossage: compile with *_r variant
16335         if test "x$GCC" != "xyes"; then
16336             case $host_os in
16337                 aix*)
16338                 case "x/$CC" in #(
16339   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16340     #handle absolute path differently from PATH based program lookup
16341                      case "x$CC" in #(
16342   x/*) :
16343     if as_fn_executable_p ${CC}_r; then :
16344   PTHREAD_CC="${CC}_r"
16345 fi ;; #(
16346   *) :
16347     for ac_prog in ${CC}_r
16348 do
16349   # Extract the first word of "$ac_prog", so it can be a program name with args.
16350 set dummy $ac_prog; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16352 $as_echo_n "checking for $ac_word... " >&6; }
16353 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16354   $as_echo_n "(cached) " >&6
16355 else
16356   if test -n "$PTHREAD_CC"; then
16357   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16358 else
16359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16360 for as_dir in $PATH
16361 do
16362   IFS=$as_save_IFS
16363   test -z "$as_dir" && as_dir=.
16364     for ac_exec_ext in '' $ac_executable_extensions; do
16365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16366     ac_cv_prog_PTHREAD_CC="$ac_prog"
16367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16368     break 2
16369   fi
16370 done
16371   done
16372 IFS=$as_save_IFS
16373
16374 fi
16375 fi
16376 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16377 if test -n "$PTHREAD_CC"; then
16378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16379 $as_echo "$PTHREAD_CC" >&6; }
16380 else
16381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16382 $as_echo "no" >&6; }
16383 fi
16384
16385
16386   test -n "$PTHREAD_CC" && break
16387 done
16388 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16389  ;;
16390 esac ;; #(
16391   *) :
16392      ;;
16393 esac
16394                 ;;
16395             esac
16396         fi
16397 fi
16398
16399 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16400
16401
16402
16403
16404
16405 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16406 if test "x$ax_pthread_ok" = "xyes"; then
16407
16408 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16409
16410         :
16411 else
16412         ax_pthread_ok=no
16413
16414 fi
16415 ac_ext=c
16416 ac_cpp='$CPP $CPPFLAGS'
16417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16420
16421
16422
16423 # Specify a location for JDK
16424 enable_gprofng_jp=
16425 jdk_inc=
16426
16427 # Check whether --with-jdk was given.
16428 if test "${with_jdk+set}" = set; then :
16429   withval=$with_jdk;
16430 fi
16431
16432
16433 if test "x$with_jdk" != x; then
16434   jdk_inc="-I$with_jdk/include -I$with_jdk/include/linux"
16435   enable_gprofng_jp=yes
16436 else
16437   # Extract the first word of "javac", so it can be a program name with args.
16438 set dummy javac; ac_word=$2
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16440 $as_echo_n "checking for $ac_word... " >&6; }
16441 if ${ac_cv_path_JAVAC+:} false; then :
16442   $as_echo_n "(cached) " >&6
16443 else
16444   case $JAVAC in
16445   [\\/]* | ?:[\\/]*)
16446   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
16447   ;;
16448   *)
16449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16450 for as_dir in $PATH
16451 do
16452   IFS=$as_save_IFS
16453   test -z "$as_dir" && as_dir=.
16454     for ac_exec_ext in '' $ac_executable_extensions; do
16455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16456     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
16457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16458     break 2
16459   fi
16460 done
16461   done
16462 IFS=$as_save_IFS
16463
16464   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="javac"
16465   ;;
16466 esac
16467 fi
16468 JAVAC=$ac_cv_path_JAVAC
16469 if test -n "$JAVAC"; then
16470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16471 $as_echo "$JAVAC" >&6; }
16472 else
16473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16474 $as_echo "no" >&6; }
16475 fi
16476
16477
16478   if test -f $JAVAC; then
16479     x=`readlink -f $JAVAC`
16480     x=`dirname $x`
16481     x=`dirname $x`
16482     if ! test -f $x/include/jni.h; then
16483       x=`dirname $x`
16484     fi
16485     if test -f $x/include/jni.h; then
16486       jdk_inc="-I$x/include -I$x/include/linux"
16487       enable_gprofng_jp=yes
16488     fi
16489   fi
16490 fi
16491 if test "x$enable_gprofng_jp" = x; then
16492   # Extract the first word of "java", so it can be a program name with args.
16493 set dummy java; ac_word=$2
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16495 $as_echo_n "checking for $ac_word... " >&6; }
16496 if ${ac_cv_path_JAVA+:} false; then :
16497   $as_echo_n "(cached) " >&6
16498 else
16499   case $JAVA in
16500   [\\/]* | ?:[\\/]*)
16501   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
16502   ;;
16503   *)
16504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16505 for as_dir in $PATH
16506 do
16507   IFS=$as_save_IFS
16508   test -z "$as_dir" && as_dir=.
16509     for ac_exec_ext in '' $ac_executable_extensions; do
16510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16511     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
16512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16513     break 2
16514   fi
16515 done
16516   done
16517 IFS=$as_save_IFS
16518
16519   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="java"
16520   ;;
16521 esac
16522 fi
16523 JAVA=$ac_cv_path_JAVA
16524 if test -n "$JAVA"; then
16525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16526 $as_echo "$JAVA" >&6; }
16527 else
16528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16529 $as_echo "no" >&6; }
16530 fi
16531
16532
16533   if test -f $JAVA; then
16534     x=`readlink -f $JAVA`
16535     x=`dirname $x`
16536     x=`dirname $x`
16537     if ! test -f $x/include/jni.h; then
16538       x=`dirname $x`
16539     fi
16540     if test -f $x/include/jni.h; then
16541       jdk_inc="-I$x/include -I$x/include/linux"
16542       enable_gprofng_jp=yes
16543     fi
16544   fi
16545 fi
16546 if test "x$enable_gprofng_jp" = x; then
16547   ac_fn_c_check_header_compile "$LINENO" "jni.h" "ac_cv_header_jni_h" "
16548 "
16549 if test "x$ac_cv_header_jni_h" = xyes; then :
16550    enable_gprofng_jp=yes
16551 fi
16552
16553
16554 fi
16555 GPROFNG_BROKEN_JAVAC=no
16556 if test "x$enable_gprofng_jp" = x; then
16557     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:  Cannot find the JDK include directory.
16558       gprofng will be build without support for profiling Java applications.
16559       Use --with-jdk=PATH to specify directory for the installed JDK" >&5
16560 $as_echo "$as_me: WARNING:  Cannot find the JDK include directory.
16561       gprofng will be build without support for profiling Java applications.
16562       Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
16563 else
16564
16565 $as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
16566
16567     if test "x$JAVAC" != x; then
16568       cat > configtest.java << EOF
16569 class Simple{
16570   public static void main(String args){
16571     System.out.println("Hello Java");
16572   }
16573 }
16574 EOF
16575       if { ac_try='$JAVAC configtest.java >&5 2>&5'
16576   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16577   (eval $ac_try) 2>&5
16578   ac_status=$?
16579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16580   test $ac_status = 0; }; }; then
16581         GPROFNG_BROKEN_JAVAC=no
16582       else
16583         GPROFNG_BROKEN_JAVAC=yes
16584       fi
16585       rm -f configtest.*
16586     fi
16587 fi
16588
16589
16590
16591 DEBUG=
16592  # Check whether --enable-gprofng-debug was given.
16593 if test "${enable_gprofng_debug+set}" = set; then :
16594   enableval=$enable_gprofng_debug;
16595       case "$enableval" in
16596        yes|no) ;;
16597        *) as_fn_error $? "Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
16598       esac
16599
16600 else
16601   enable_gprofng_debug=no
16602 fi
16603
16604
16605 if test "${enable_gprofng_debug}" = yes; then
16606
16607 $as_echo "#define DEBUG 1" >>confdefs.h
16608
16609 fi
16610
16611 cat > "dummy.c" << EOF
16612 #include <features.h>
16613 #if defined(__UCLIBC__)
16614 LIBC=uclibc
16615 #elif defined(__dietlibc__)
16616 LIBC=dietlibc
16617 #elif defined(__GLIBC__)
16618 LIBC=gnu
16619 #else
16620 #include <stdarg.h>
16621 /* First heuristic to detect musl libc.  */
16622 #ifdef __DEFINED_va_list
16623 LIBC=musl
16624 #else
16625 LIBC=gnu
16626 #endif
16627 #endif
16628 EOF
16629 cc_set_libc=`$CC -E "dummy.c" 2>/dev/null | grep '^LIBC=' | sed 's, ,,g'`
16630 eval "$cc_set_libc"
16631 if test "$LIBC" = musl; then
16632
16633 $as_echo "#define __MUSL_LIBC 1" >>confdefs.h
16634
16635 fi
16636
16637
16638 # Check if linker supports --as-needed and --no-as-needed options.
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
16640 $as_echo_n "checking linker --as-needed support... " >&6; }
16641 if ${bfd_cv_ld_as_needed+:} false; then :
16642   $as_echo_n "(cached) " >&6
16643 else
16644   bfd_cv_ld_as_needed=no
16645         if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
16646                 bfd_cv_ld_as_needed=yes
16647         fi
16648
16649 fi
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
16651 $as_echo "$bfd_cv_ld_as_needed" >&6; }
16652
16653 no_as_needed=
16654 if test x"$bfd_cv_ld_as_needed" = xyes; then
16655     no_as_needed='-Wl,--no-as-needed'
16656 fi
16657
16658 # Extract the first word of "expect", so it can be a program name with args.
16659 set dummy expect; ac_word=$2
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16661 $as_echo_n "checking for $ac_word... " >&6; }
16662 if ${ac_cv_path_EXPECT+:} false; then :
16663   $as_echo_n "(cached) " >&6
16664 else
16665   case $EXPECT in
16666   [\\/]* | ?:[\\/]*)
16667   ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
16668   ;;
16669   *)
16670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16671 for as_dir in $PATH
16672 do
16673   IFS=$as_save_IFS
16674   test -z "$as_dir" && as_dir=.
16675     for ac_exec_ext in '' $ac_executable_extensions; do
16676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16677     ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
16678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16679     break 2
16680   fi
16681 done
16682   done
16683 IFS=$as_save_IFS
16684
16685   ;;
16686 esac
16687 fi
16688 EXPECT=$ac_cv_path_EXPECT
16689 if test -n "$EXPECT"; then
16690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16691 $as_echo "$EXPECT" >&6; }
16692 else
16693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16695 fi
16696
16697
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16699 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16700 if ${ac_cv_libctf_tcl_try+:} false; then :
16701   $as_echo_n "(cached) " >&6
16702 else
16703   ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16704 if [llength [info commands try]] then { puts yes } else { puts no }
16705 EOF
16706 fi`
16707
16708 fi
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16710 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16711  if test "${ac_cv_libctf_tcl_try}" = yes; then
16712   TCL_TRY_TRUE=
16713   TCL_TRY_FALSE='#'
16714 else
16715   TCL_TRY_TRUE='#'
16716   TCL_TRY_FALSE=
16717 fi
16718
16719
16720
16721   # Use the system's zlib library.
16722   zlibdir="-L\$(top_builddir)/../zlib"
16723   zlibinc="-I\$(top_srcdir)/../zlib"
16724
16725 # Check whether --with-system-zlib was given.
16726 if test "${with_system_zlib+set}" = set; then :
16727   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
16728     zlibdir=
16729     zlibinc=
16730   fi
16731
16732 fi
16733
16734
16735
16736
16737
16738 # Generate manpages, if possible.
16739 build_man=false
16740 if test $cross_compiling = no; then
16741
16742 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
16743
16744   for ac_prog in makeinfo
16745 do
16746   # Extract the first word of "$ac_prog", so it can be a program name with args.
16747 set dummy $ac_prog; ac_word=$2
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16749 $as_echo_n "checking for $ac_word... " >&6; }
16750 if ${ac_cv_prog_MAKEINFO+:} false; then :
16751   $as_echo_n "(cached) " >&6
16752 else
16753   if test -n "$MAKEINFO"; then
16754   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
16755 else
16756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16757 for as_dir in $PATH
16758 do
16759   IFS=$as_save_IFS
16760   test -z "$as_dir" && as_dir=.
16761     for ac_exec_ext in '' $ac_executable_extensions; do
16762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16763     ac_cv_prog_MAKEINFO="$ac_prog"
16764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16765     break 2
16766   fi
16767 done
16768   done
16769 IFS=$as_save_IFS
16770
16771 fi
16772 fi
16773 MAKEINFO=$ac_cv_prog_MAKEINFO
16774 if test -n "$MAKEINFO"; then
16775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
16776 $as_echo "$MAKEINFO" >&6; }
16777 else
16778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16779 $as_echo "no" >&6; }
16780 fi
16781
16782
16783   test -n "$MAKEINFO" && break
16784 done
16785 test -n "$MAKEINFO" || MAKEINFO=""@echo makeinfo missing; true""
16786
16787   case "$MAKEINFO" in
16788     *true)
16789       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gprofng: makeinfo is missing. Info documentation will not be built." >&5
16790 $as_echo "$as_me: WARNING: gprofng: makeinfo is missing. Info documentation will not be built." >&2;}
16791       ;;
16792     *)
16793       case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
16794         x*\ [1-5].*|x*\ 6.[0-4].* )
16795           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gprofng: $MAKEINFO is too old. Info documentation will not be built." >&5
16796 $as_echo "$as_me: WARNING: gprofng: $MAKEINFO is too old. Info documentation will not be built." >&2;}
16797           MAKEINFO="@echo $MAKEINFO is too old, 6.5 or newer required; true"
16798           ;;
16799         x* )
16800           build_man=true
16801           ;;
16802         esac
16803       ;;
16804     esac
16805
16806 fi
16807  if test x$build_man = xtrue; then
16808   BUILD_MAN_TRUE=
16809   BUILD_MAN_FALSE='#'
16810 else
16811   BUILD_MAN_TRUE='#'
16812   BUILD_MAN_FALSE=
16813 fi
16814
16815
16816 LD_NO_AS_NEEDED=${no_as_needed}
16817
16818 GPROFNG_CFLAGS=${gprofng_cflags}
16819
16820
16821
16822 GPROFNG_CPPFLAGS=${gprofng_cppflags}
16823
16824
16825 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
16826 if test "x$ac_cv_have_decl_basename" = xyes; then :
16827   ac_have_decl=1
16828 else
16829   ac_have_decl=0
16830 fi
16831
16832 cat >>confdefs.h <<_ACEOF
16833 #define HAVE_DECL_BASENAME $ac_have_decl
16834 _ACEOF
16835
16836 for ac_func in clock_gettime strsignal
16837 do :
16838   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16839 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16840 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16841   cat >>confdefs.h <<_ACEOF
16842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16843 _ACEOF
16844
16845 fi
16846 done
16847
16848
16849 clock_gettime_link=
16850 # At least for glibc, clock_gettime is in librt.  But don't
16851 # pull that in if it still doesn't give us the function we want.  This
16852 # test is copied from libgomp, and modified to not link in -lrt as
16853 # we're using this for test timing only.
16854 if test "$ac_cv_func_clock_gettime" = no; then
16855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16856 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16857 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16858   $as_echo_n "(cached) " >&6
16859 else
16860   ac_check_lib_save_LIBS=$LIBS
16861 LIBS="-lrt  $LIBS"
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h.  */
16864
16865 /* Override any GCC internal prototype to avoid an error.
16866    Use char because int might match the return type of a GCC
16867    builtin and then its argument prototype would still apply.  */
16868 #ifdef __cplusplus
16869 extern "C"
16870 #endif
16871 char clock_gettime ();
16872 int
16873 main ()
16874 {
16875 return clock_gettime ();
16876   ;
16877   return 0;
16878 }
16879 _ACEOF
16880 if ac_fn_c_try_link "$LINENO"; then :
16881   ac_cv_lib_rt_clock_gettime=yes
16882 else
16883   ac_cv_lib_rt_clock_gettime=no
16884 fi
16885 rm -f core conftest.err conftest.$ac_objext \
16886     conftest$ac_exeext conftest.$ac_ext
16887 LIBS=$ac_check_lib_save_LIBS
16888 fi
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16890 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16891 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16892   CLOCK_GETTIME_LINK=-lrt
16893
16894 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16895
16896 fi
16897
16898 fi
16899
16900
16901
16902
16903 ac_config_files="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
16904
16905 ac_config_headers="$ac_config_headers config.h:common/config.h.in"
16906
16907
16908 cat >confcache <<\_ACEOF
16909 # This file is a shell script that caches the results of configure
16910 # tests run on this system so they can be shared between configure
16911 # scripts and configure runs, see configure's option --config-cache.
16912 # It is not useful on other systems.  If it contains results you don't
16913 # want to keep, you may remove or edit it.
16914 #
16915 # config.status only pays attention to the cache file if you give it
16916 # the --recheck option to rerun configure.
16917 #
16918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16920 # following values.
16921
16922 _ACEOF
16923
16924 # The following way of writing the cache mishandles newlines in values,
16925 # but we know of no workaround that is simple, portable, and efficient.
16926 # So, we kill variables containing newlines.
16927 # Ultrix sh set writes to stderr and can't be redirected directly,
16928 # and sets the high bit in the cache file unless we assign to the vars.
16929 (
16930   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16931     eval ac_val=\$$ac_var
16932     case $ac_val in #(
16933     *${as_nl}*)
16934       case $ac_var in #(
16935       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16937       esac
16938       case $ac_var in #(
16939       _ | IFS | as_nl) ;; #(
16940       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16941       *) { eval $ac_var=; unset $ac_var;} ;;
16942       esac ;;
16943     esac
16944   done
16945
16946   (set) 2>&1 |
16947     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16948     *${as_nl}ac_space=\ *)
16949       # `set' does not quote correctly, so add quotes: double-quote
16950       # substitution turns \\\\ into \\, and sed turns \\ into \.
16951       sed -n \
16952         "s/'/'\\\\''/g;
16953           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16954       ;; #(
16955     *)
16956       # `set' quotes correctly as required by POSIX, so do not add quotes.
16957       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16958       ;;
16959     esac |
16960     sort
16961 ) |
16962   sed '
16963      /^ac_cv_env_/b end
16964      t clear
16965      :clear
16966      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16967      t end
16968      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16969      :end' >>confcache
16970 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16971   if test -w "$cache_file"; then
16972     if test "x$cache_file" != "x/dev/null"; then
16973       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16974 $as_echo "$as_me: updating cache $cache_file" >&6;}
16975       if test ! -f "$cache_file" || test -h "$cache_file"; then
16976         cat confcache >"$cache_file"
16977       else
16978         case $cache_file in #(
16979         */* | ?:*)
16980           mv -f confcache "$cache_file"$$ &&
16981           mv -f "$cache_file"$$ "$cache_file" ;; #(
16982         *)
16983           mv -f confcache "$cache_file" ;;
16984         esac
16985       fi
16986     fi
16987   else
16988     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16989 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16990   fi
16991 fi
16992 rm -f confcache
16993
16994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16995 # Let make expand exec_prefix.
16996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16997
16998 DEFS=-DHAVE_CONFIG_H
16999
17000 ac_libobjs=
17001 ac_ltlibobjs=
17002 U=
17003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17004   # 1. Remove the extension, and $U if already installed.
17005   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17006   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17007   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17008   #    will be set to the directory where LIBOBJS objects are built.
17009   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17010   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17011 done
17012 LIBOBJS=$ac_libobjs
17013
17014 LTLIBOBJS=$ac_ltlibobjs
17015
17016
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17018 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17019    if test -n "$am_sleep_pid"; then
17020      # Hide warnings about reused PIDs.
17021      wait $am_sleep_pid 2>/dev/null
17022    fi
17023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17024 $as_echo "done" >&6; }
17025  if test -n "$EXEEXT"; then
17026   am__EXEEXT_TRUE=
17027   am__EXEEXT_FALSE='#'
17028 else
17029   am__EXEEXT_TRUE='#'
17030   am__EXEEXT_FALSE=
17031 fi
17032
17033 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17034   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17036 fi
17037 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17038   as_fn_error $? "conditional \"AMDEP\" was never defined.
17039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17040 fi
17041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17042   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044 fi
17045 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17046   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17048 fi
17049 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17050   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17052 fi
17053 if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
17054   as_fn_error $? "conditional \"BUILD_COLLECTOR\" was never defined.
17055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17056 fi
17057 if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
17058   as_fn_error $? "conditional \"BUILD_SRC\" was never defined.
17059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17060 fi
17061 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
17062   as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
17063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17064 fi
17065 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
17066   as_fn_error $? "conditional \"TCL_TRY\" was never defined.
17067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17068 fi
17069 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
17070   as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
17071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17072 fi
17073
17074 : "${CONFIG_STATUS=./config.status}"
17075 ac_write_fail=0
17076 ac_clean_files_save=$ac_clean_files
17077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17079 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17080 as_write_fail=0
17081 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17082 #! $SHELL
17083 # Generated by $as_me.
17084 # Run this file to recreate the current configuration.
17085 # Compiler output produced by configure, useful for debugging
17086 # configure, is in config.log if it exists.
17087
17088 debug=false
17089 ac_cs_recheck=false
17090 ac_cs_silent=false
17091
17092 SHELL=\${CONFIG_SHELL-$SHELL}
17093 export SHELL
17094 _ASEOF
17095 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17096 ## -------------------- ##
17097 ## M4sh Initialization. ##
17098 ## -------------------- ##
17099
17100 # Be more Bourne compatible
17101 DUALCASE=1; export DUALCASE # for MKS sh
17102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17103   emulate sh
17104   NULLCMD=:
17105   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17106   # is contrary to our usage.  Disable this feature.
17107   alias -g '${1+"$@"}'='"$@"'
17108   setopt NO_GLOB_SUBST
17109 else
17110   case `(set -o) 2>/dev/null` in #(
17111   *posix*) :
17112     set -o posix ;; #(
17113   *) :
17114      ;;
17115 esac
17116 fi
17117
17118
17119 as_nl='
17120 '
17121 export as_nl
17122 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17123 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17125 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17126 # Prefer a ksh shell builtin over an external printf program on Solaris,
17127 # but without wasting forks for bash or zsh.
17128 if test -z "$BASH_VERSION$ZSH_VERSION" \
17129     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17130   as_echo='print -r --'
17131   as_echo_n='print -rn --'
17132 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17133   as_echo='printf %s\n'
17134   as_echo_n='printf %s'
17135 else
17136   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17137     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17138     as_echo_n='/usr/ucb/echo -n'
17139   else
17140     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17141     as_echo_n_body='eval
17142       arg=$1;
17143       case $arg in #(
17144       *"$as_nl"*)
17145         expr "X$arg" : "X\\(.*\\)$as_nl";
17146         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17147       esac;
17148       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17149     '
17150     export as_echo_n_body
17151     as_echo_n='sh -c $as_echo_n_body as_echo'
17152   fi
17153   export as_echo_body
17154   as_echo='sh -c $as_echo_body as_echo'
17155 fi
17156
17157 # The user is always right.
17158 if test "${PATH_SEPARATOR+set}" != set; then
17159   PATH_SEPARATOR=:
17160   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17161     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17162       PATH_SEPARATOR=';'
17163   }
17164 fi
17165
17166
17167 # IFS
17168 # We need space, tab and new line, in precisely that order.  Quoting is
17169 # there to prevent editors from complaining about space-tab.
17170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17171 # splitting by setting IFS to empty value.)
17172 IFS=" ""        $as_nl"
17173
17174 # Find who we are.  Look in the path if we contain no directory separator.
17175 as_myself=
17176 case $0 in #((
17177   *[\\/]* ) as_myself=$0 ;;
17178   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17179 for as_dir in $PATH
17180 do
17181   IFS=$as_save_IFS
17182   test -z "$as_dir" && as_dir=.
17183     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17184   done
17185 IFS=$as_save_IFS
17186
17187      ;;
17188 esac
17189 # We did not find ourselves, most probably we were run as `sh COMMAND'
17190 # in which case we are not to be found in the path.
17191 if test "x$as_myself" = x; then
17192   as_myself=$0
17193 fi
17194 if test ! -f "$as_myself"; then
17195   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17196   exit 1
17197 fi
17198
17199 # Unset variables that we do not need and which cause bugs (e.g. in
17200 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17201 # suppresses any "Segmentation fault" message there.  '((' could
17202 # trigger a bug in pdksh 5.2.14.
17203 for as_var in BASH_ENV ENV MAIL MAILPATH
17204 do eval test x\${$as_var+set} = xset \
17205   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17206 done
17207 PS1='$ '
17208 PS2='> '
17209 PS4='+ '
17210
17211 # NLS nuisances.
17212 LC_ALL=C
17213 export LC_ALL
17214 LANGUAGE=C
17215 export LANGUAGE
17216
17217 # CDPATH.
17218 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17219
17220
17221 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17222 # ----------------------------------------
17223 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17224 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17225 # script with STATUS, using 1 if that was 0.
17226 as_fn_error ()
17227 {
17228   as_status=$1; test $as_status -eq 0 && as_status=1
17229   if test "$4"; then
17230     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17231     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17232   fi
17233   $as_echo "$as_me: error: $2" >&2
17234   as_fn_exit $as_status
17235 } # as_fn_error
17236
17237
17238 # as_fn_set_status STATUS
17239 # -----------------------
17240 # Set $? to STATUS, without forking.
17241 as_fn_set_status ()
17242 {
17243   return $1
17244 } # as_fn_set_status
17245
17246 # as_fn_exit STATUS
17247 # -----------------
17248 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17249 as_fn_exit ()
17250 {
17251   set +e
17252   as_fn_set_status $1
17253   exit $1
17254 } # as_fn_exit
17255
17256 # as_fn_unset VAR
17257 # ---------------
17258 # Portably unset VAR.
17259 as_fn_unset ()
17260 {
17261   { eval $1=; unset $1;}
17262 }
17263 as_unset=as_fn_unset
17264 # as_fn_append VAR VALUE
17265 # ----------------------
17266 # Append the text in VALUE to the end of the definition contained in VAR. Take
17267 # advantage of any shell optimizations that allow amortized linear growth over
17268 # repeated appends, instead of the typical quadratic growth present in naive
17269 # implementations.
17270 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17271   eval 'as_fn_append ()
17272   {
17273     eval $1+=\$2
17274   }'
17275 else
17276   as_fn_append ()
17277   {
17278     eval $1=\$$1\$2
17279   }
17280 fi # as_fn_append
17281
17282 # as_fn_arith ARG...
17283 # ------------------
17284 # Perform arithmetic evaluation on the ARGs, and store the result in the
17285 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17286 # must be portable across $(()) and expr.
17287 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17288   eval 'as_fn_arith ()
17289   {
17290     as_val=$(( $* ))
17291   }'
17292 else
17293   as_fn_arith ()
17294   {
17295     as_val=`expr "$@" || test $? -eq 1`
17296   }
17297 fi # as_fn_arith
17298
17299
17300 if expr a : '\(a\)' >/dev/null 2>&1 &&
17301    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17302   as_expr=expr
17303 else
17304   as_expr=false
17305 fi
17306
17307 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17308   as_basename=basename
17309 else
17310   as_basename=false
17311 fi
17312
17313 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17314   as_dirname=dirname
17315 else
17316   as_dirname=false
17317 fi
17318
17319 as_me=`$as_basename -- "$0" ||
17320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17321          X"$0" : 'X\(//\)$' \| \
17322          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17323 $as_echo X/"$0" |
17324     sed '/^.*\/\([^/][^/]*\)\/*$/{
17325             s//\1/
17326             q
17327           }
17328           /^X\/\(\/\/\)$/{
17329             s//\1/
17330             q
17331           }
17332           /^X\/\(\/\).*/{
17333             s//\1/
17334             q
17335           }
17336           s/.*/./; q'`
17337
17338 # Avoid depending upon Character Ranges.
17339 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17340 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17341 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17342 as_cr_digits='0123456789'
17343 as_cr_alnum=$as_cr_Letters$as_cr_digits
17344
17345 ECHO_C= ECHO_N= ECHO_T=
17346 case `echo -n x` in #(((((
17347 -n*)
17348   case `echo 'xy\c'` in
17349   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17350   xy)  ECHO_C='\c';;
17351   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17352        ECHO_T=' ';;
17353   esac;;
17354 *)
17355   ECHO_N='-n';;
17356 esac
17357
17358 rm -f conf$$ conf$$.exe conf$$.file
17359 if test -d conf$$.dir; then
17360   rm -f conf$$.dir/conf$$.file
17361 else
17362   rm -f conf$$.dir
17363   mkdir conf$$.dir 2>/dev/null
17364 fi
17365 if (echo >conf$$.file) 2>/dev/null; then
17366   if ln -s conf$$.file conf$$ 2>/dev/null; then
17367     as_ln_s='ln -s'
17368     # ... but there are two gotchas:
17369     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17370     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17371     # In both cases, we have to default to `cp -pR'.
17372     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17373       as_ln_s='cp -pR'
17374   elif ln conf$$.file conf$$ 2>/dev/null; then
17375     as_ln_s=ln
17376   else
17377     as_ln_s='cp -pR'
17378   fi
17379 else
17380   as_ln_s='cp -pR'
17381 fi
17382 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17383 rmdir conf$$.dir 2>/dev/null
17384
17385
17386 # as_fn_mkdir_p
17387 # -------------
17388 # Create "$as_dir" as a directory, including parents if necessary.
17389 as_fn_mkdir_p ()
17390 {
17391
17392   case $as_dir in #(
17393   -*) as_dir=./$as_dir;;
17394   esac
17395   test -d "$as_dir" || eval $as_mkdir_p || {
17396     as_dirs=
17397     while :; do
17398       case $as_dir in #(
17399       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17400       *) as_qdir=$as_dir;;
17401       esac
17402       as_dirs="'$as_qdir' $as_dirs"
17403       as_dir=`$as_dirname -- "$as_dir" ||
17404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17405          X"$as_dir" : 'X\(//\)[^/]' \| \
17406          X"$as_dir" : 'X\(//\)$' \| \
17407          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17408 $as_echo X"$as_dir" |
17409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17410             s//\1/
17411             q
17412           }
17413           /^X\(\/\/\)[^/].*/{
17414             s//\1/
17415             q
17416           }
17417           /^X\(\/\/\)$/{
17418             s//\1/
17419             q
17420           }
17421           /^X\(\/\).*/{
17422             s//\1/
17423             q
17424           }
17425           s/.*/./; q'`
17426       test -d "$as_dir" && break
17427     done
17428     test -z "$as_dirs" || eval "mkdir $as_dirs"
17429   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17430
17431
17432 } # as_fn_mkdir_p
17433 if mkdir -p . 2>/dev/null; then
17434   as_mkdir_p='mkdir -p "$as_dir"'
17435 else
17436   test -d ./-p && rmdir ./-p
17437   as_mkdir_p=false
17438 fi
17439
17440
17441 # as_fn_executable_p FILE
17442 # -----------------------
17443 # Test if FILE is an executable regular file.
17444 as_fn_executable_p ()
17445 {
17446   test -f "$1" && test -x "$1"
17447 } # as_fn_executable_p
17448 as_test_x='test -x'
17449 as_executable_p=as_fn_executable_p
17450
17451 # Sed expression to map a string onto a valid CPP name.
17452 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17453
17454 # Sed expression to map a string onto a valid variable name.
17455 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17456
17457
17458 exec 6>&1
17459 ## ----------------------------------- ##
17460 ## Main body of $CONFIG_STATUS script. ##
17461 ## ----------------------------------- ##
17462 _ASEOF
17463 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17464
17465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17466 # Save the log message, to keep $0 and so on meaningful, and to
17467 # report actual input values of CONFIG_FILES etc. instead of their
17468 # values after options handling.
17469 ac_log="
17470 This file was extended by gprofng $as_me 2.39.50, which was
17471 generated by GNU Autoconf 2.69.  Invocation command line was
17472
17473   CONFIG_FILES    = $CONFIG_FILES
17474   CONFIG_HEADERS  = $CONFIG_HEADERS
17475   CONFIG_LINKS    = $CONFIG_LINKS
17476   CONFIG_COMMANDS = $CONFIG_COMMANDS
17477   $ $0 $@
17478
17479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17480 "
17481
17482 _ACEOF
17483
17484 case $ac_config_files in *"
17485 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17486 esac
17487
17488 case $ac_config_headers in *"
17489 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17490 esac
17491
17492
17493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17494 # Files that config.status was made for.
17495 config_files="$ac_config_files"
17496 config_headers="$ac_config_headers"
17497 config_commands="$ac_config_commands"
17498
17499 _ACEOF
17500
17501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17502 ac_cs_usage="\
17503 \`$as_me' instantiates files and other configuration actions
17504 from templates according to the current configuration.  Unless the files
17505 and actions are specified as TAGs, all are instantiated by default.
17506
17507 Usage: $0 [OPTION]... [TAG]...
17508
17509   -h, --help       print this help, then exit
17510   -V, --version    print version number and configuration settings, then exit
17511       --config     print configuration, then exit
17512   -q, --quiet, --silent
17513                    do not print progress messages
17514   -d, --debug      don't remove temporary files
17515       --recheck    update $as_me by reconfiguring in the same conditions
17516       --file=FILE[:TEMPLATE]
17517                    instantiate the configuration file FILE
17518       --header=FILE[:TEMPLATE]
17519                    instantiate the configuration header FILE
17520
17521 Configuration files:
17522 $config_files
17523
17524 Configuration headers:
17525 $config_headers
17526
17527 Configuration commands:
17528 $config_commands
17529
17530 Report bugs to the package provider."
17531
17532 _ACEOF
17533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17534 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17535 ac_cs_version="\\
17536 gprofng config.status 2.39.50
17537 configured by $0, generated by GNU Autoconf 2.69,
17538   with options \\"\$ac_cs_config\\"
17539
17540 Copyright (C) 2012 Free Software Foundation, Inc.
17541 This config.status script is free software; the Free Software Foundation
17542 gives unlimited permission to copy, distribute and modify it."
17543
17544 ac_pwd='$ac_pwd'
17545 srcdir='$srcdir'
17546 INSTALL='$INSTALL'
17547 MKDIR_P='$MKDIR_P'
17548 AWK='$AWK'
17549 test -n "\$AWK" || AWK=awk
17550 _ACEOF
17551
17552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17553 # The default lists apply if the user does not specify any file.
17554 ac_need_defaults=:
17555 while test $# != 0
17556 do
17557   case $1 in
17558   --*=?*)
17559     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17560     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17561     ac_shift=:
17562     ;;
17563   --*=)
17564     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17565     ac_optarg=
17566     ac_shift=:
17567     ;;
17568   *)
17569     ac_option=$1
17570     ac_optarg=$2
17571     ac_shift=shift
17572     ;;
17573   esac
17574
17575   case $ac_option in
17576   # Handling of the options.
17577   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17578     ac_cs_recheck=: ;;
17579   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17580     $as_echo "$ac_cs_version"; exit ;;
17581   --config | --confi | --conf | --con | --co | --c )
17582     $as_echo "$ac_cs_config"; exit ;;
17583   --debug | --debu | --deb | --de | --d | -d )
17584     debug=: ;;
17585   --file | --fil | --fi | --f )
17586     $ac_shift
17587     case $ac_optarg in
17588     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17589     '') as_fn_error $? "missing file argument" ;;
17590     esac
17591     as_fn_append CONFIG_FILES " '$ac_optarg'"
17592     ac_need_defaults=false;;
17593   --header | --heade | --head | --hea )
17594     $ac_shift
17595     case $ac_optarg in
17596     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17597     esac
17598     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17599     ac_need_defaults=false;;
17600   --he | --h)
17601     # Conflict between --help and --header
17602     as_fn_error $? "ambiguous option: \`$1'
17603 Try \`$0 --help' for more information.";;
17604   --help | --hel | -h )
17605     $as_echo "$ac_cs_usage"; exit ;;
17606   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17607   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17608     ac_cs_silent=: ;;
17609
17610   # This is an error.
17611   -*) as_fn_error $? "unrecognized option: \`$1'
17612 Try \`$0 --help' for more information." ;;
17613
17614   *) as_fn_append ac_config_targets " $1"
17615      ac_need_defaults=false ;;
17616
17617   esac
17618   shift
17619 done
17620
17621 ac_configure_extra_args=
17622
17623 if $ac_cs_silent; then
17624   exec 6>/dev/null
17625   ac_configure_extra_args="$ac_configure_extra_args --silent"
17626 fi
17627
17628 _ACEOF
17629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17630 if \$ac_cs_recheck; then
17631   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17632   shift
17633   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17634   CONFIG_SHELL='$SHELL'
17635   export CONFIG_SHELL
17636   exec "\$@"
17637 fi
17638
17639 _ACEOF
17640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17641 exec 5>>config.log
17642 {
17643   echo
17644   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17645 ## Running $as_me. ##
17646 _ASBOX
17647   $as_echo "$ac_log"
17648 } >&5
17649
17650 _ACEOF
17651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17652 #
17653 # INIT-COMMANDS
17654 #
17655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17656
17657
17658 # The HP-UX ksh and POSIX shell print the target directory to stdout
17659 # if CDPATH is set.
17660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17661
17662 sed_quote_subst='$sed_quote_subst'
17663 double_quote_subst='$double_quote_subst'
17664 delay_variable_subst='$delay_variable_subst'
17665 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17666 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17667 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17668 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17669 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17670 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17671 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17672 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17673 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17674 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17675 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17676 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17677 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17678 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17679 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17680 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17681 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17682 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17683 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17684 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17685 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17686 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17687 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17688 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17689 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17690 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17691 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17692 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17693 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17694 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17695 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17696 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17697 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17698 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17699 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17700 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17701 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17702 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17703 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17704 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17705 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17706 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17707 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17708 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17709 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17710 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17711 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17712 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17713 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"`'
17714 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17715 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17716 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17717 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17718 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17719 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17720 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17721 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17722 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17723 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17724 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17725 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17726 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17727 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17728 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17729 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17730 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17731 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17732 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17733 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17734 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17735 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17736 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17737 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17738 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17739 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17740 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17741 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17742 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17743 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17744 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17745 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17746 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17747 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17748 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17749 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17750 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17751 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17752 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17753 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17754 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17755 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17756 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17757 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17758 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17759 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17760 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17761 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17762 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17763 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17764 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17765 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17766 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17767 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17768 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17769 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17770 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17771 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17772 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17773 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17774 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17775 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17776 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17777 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17778 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17779 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17780 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17781 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17782 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17783 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17784 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17785 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17786 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17787 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17788 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17789 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17790 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17791 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17792 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17793 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17794 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17795 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17796 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17797 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17798 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17799 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17800 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17801 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17802 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17803 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17804 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17805 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17806 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17807 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17808 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17809 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17810 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17811 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17812 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17813 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17814 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17815 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17816 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17817 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17818 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17819 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17820 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17821 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17822 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17823 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17824 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17825 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17826 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17827 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17828 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17829 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17830 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17831 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17832 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17833 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17834 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17835 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17836 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17837 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17838 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17839 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17840
17841 LTCC='$LTCC'
17842 LTCFLAGS='$LTCFLAGS'
17843 compiler='$compiler_DEFAULT'
17844
17845 # A function that is used when there is no print builtin or printf.
17846 func_fallback_echo ()
17847 {
17848   eval 'cat <<_LTECHO_EOF
17849 \$1
17850 _LTECHO_EOF'
17851 }
17852
17853 # Quote evaled strings.
17854 for var in SHELL \
17855 ECHO \
17856 SED \
17857 GREP \
17858 EGREP \
17859 FGREP \
17860 LD \
17861 NM \
17862 LN_S \
17863 lt_SP2NL \
17864 lt_NL2SP \
17865 reload_flag \
17866 OBJDUMP \
17867 deplibs_check_method \
17868 file_magic_cmd \
17869 AR \
17870 AR_FLAGS \
17871 STRIP \
17872 RANLIB \
17873 CC \
17874 CFLAGS \
17875 compiler \
17876 lt_cv_sys_global_symbol_pipe \
17877 lt_cv_sys_global_symbol_to_cdecl \
17878 lt_cv_sys_global_symbol_to_c_name_address \
17879 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17880 lt_prog_compiler_no_builtin_flag \
17881 lt_prog_compiler_wl \
17882 lt_prog_compiler_pic \
17883 lt_prog_compiler_static \
17884 lt_cv_prog_compiler_c_o \
17885 need_locks \
17886 DSYMUTIL \
17887 NMEDIT \
17888 LIPO \
17889 OTOOL \
17890 OTOOL64 \
17891 shrext_cmds \
17892 export_dynamic_flag_spec \
17893 whole_archive_flag_spec \
17894 compiler_needs_object \
17895 with_gnu_ld \
17896 allow_undefined_flag \
17897 no_undefined_flag \
17898 hardcode_libdir_flag_spec \
17899 hardcode_libdir_flag_spec_ld \
17900 hardcode_libdir_separator \
17901 fix_srcfile_path \
17902 exclude_expsyms \
17903 include_expsyms \
17904 file_list_spec \
17905 variables_saved_for_relink \
17906 libname_spec \
17907 library_names_spec \
17908 soname_spec \
17909 install_override_mode \
17910 finish_eval \
17911 old_striplib \
17912 striplib \
17913 compiler_lib_search_dirs \
17914 predep_objects \
17915 postdep_objects \
17916 predeps \
17917 postdeps \
17918 compiler_lib_search_path \
17919 LD_CXX \
17920 reload_flag_CXX \
17921 compiler_CXX \
17922 lt_prog_compiler_no_builtin_flag_CXX \
17923 lt_prog_compiler_wl_CXX \
17924 lt_prog_compiler_pic_CXX \
17925 lt_prog_compiler_static_CXX \
17926 lt_cv_prog_compiler_c_o_CXX \
17927 export_dynamic_flag_spec_CXX \
17928 whole_archive_flag_spec_CXX \
17929 compiler_needs_object_CXX \
17930 with_gnu_ld_CXX \
17931 allow_undefined_flag_CXX \
17932 no_undefined_flag_CXX \
17933 hardcode_libdir_flag_spec_CXX \
17934 hardcode_libdir_flag_spec_ld_CXX \
17935 hardcode_libdir_separator_CXX \
17936 fix_srcfile_path_CXX \
17937 exclude_expsyms_CXX \
17938 include_expsyms_CXX \
17939 file_list_spec_CXX \
17940 compiler_lib_search_dirs_CXX \
17941 predep_objects_CXX \
17942 postdep_objects_CXX \
17943 predeps_CXX \
17944 postdeps_CXX \
17945 compiler_lib_search_path_CXX; do
17946     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17947     *[\\\\\\\`\\"\\\$]*)
17948       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17949       ;;
17950     *)
17951       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17952       ;;
17953     esac
17954 done
17955
17956 # Double-quote double-evaled strings.
17957 for var in reload_cmds \
17958 old_postinstall_cmds \
17959 old_postuninstall_cmds \
17960 old_archive_cmds \
17961 extract_expsyms_cmds \
17962 old_archive_from_new_cmds \
17963 old_archive_from_expsyms_cmds \
17964 archive_cmds \
17965 archive_expsym_cmds \
17966 module_cmds \
17967 module_expsym_cmds \
17968 export_symbols_cmds \
17969 prelink_cmds \
17970 postinstall_cmds \
17971 postuninstall_cmds \
17972 finish_cmds \
17973 sys_lib_search_path_spec \
17974 sys_lib_dlsearch_path_spec \
17975 reload_cmds_CXX \
17976 old_archive_cmds_CXX \
17977 old_archive_from_new_cmds_CXX \
17978 old_archive_from_expsyms_cmds_CXX \
17979 archive_cmds_CXX \
17980 archive_expsym_cmds_CXX \
17981 module_cmds_CXX \
17982 module_expsym_cmds_CXX \
17983 export_symbols_cmds_CXX \
17984 prelink_cmds_CXX; do
17985     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17986     *[\\\\\\\`\\"\\\$]*)
17987       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17988       ;;
17989     *)
17990       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17991       ;;
17992     esac
17993 done
17994
17995 ac_aux_dir='$ac_aux_dir'
17996 xsi_shell='$xsi_shell'
17997 lt_shell_append='$lt_shell_append'
17998
17999 # See if we are running on zsh, and set the options which allow our
18000 # commands through without removal of \ escapes INIT.
18001 if test -n "\${ZSH_VERSION+set}" ; then
18002    setopt NO_GLOB_SUBST
18003 fi
18004
18005
18006     PACKAGE='$PACKAGE'
18007     VERSION='$VERSION'
18008     TIMESTAMP='$TIMESTAMP'
18009     RM='$RM'
18010     ofile='$ofile'
18011
18012
18013
18014
18015
18016
18017 _ACEOF
18018
18019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18020
18021 # Handling of arguments.
18022 for ac_config_target in $ac_config_targets
18023 do
18024   case $ac_config_target in
18025     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18026     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18027     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18028     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18029     "gp-display-html/Makefile") CONFIG_FILES="$CONFIG_FILES gp-display-html/Makefile" ;;
18030     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18031     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:common/config.h.in" ;;
18032
18033   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18034   esac
18035 done
18036
18037
18038 # If the user did not use the arguments to specify the items to instantiate,
18039 # then the envvar interface is used.  Set only those that are not.
18040 # We use the long form for the default assignment because of an extremely
18041 # bizarre bug on SunOS 4.1.3.
18042 if $ac_need_defaults; then
18043   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18044   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18045   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18046 fi
18047
18048 # Have a temporary directory for convenience.  Make it in the build tree
18049 # simply because there is no reason against having it here, and in addition,
18050 # creating and moving files from /tmp can sometimes cause problems.
18051 # Hook for its removal unless debugging.
18052 # Note that there is a small window in which the directory will not be cleaned:
18053 # after its creation but before its name has been assigned to `$tmp'.
18054 $debug ||
18055 {
18056   tmp= ac_tmp=
18057   trap 'exit_status=$?
18058   : "${ac_tmp:=$tmp}"
18059   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18060 ' 0
18061   trap 'as_fn_exit 1' 1 2 13 15
18062 }
18063 # Create a (secure) tmp directory for tmp files.
18064
18065 {
18066   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18067   test -d "$tmp"
18068 }  ||
18069 {
18070   tmp=./conf$$-$RANDOM
18071   (umask 077 && mkdir "$tmp")
18072 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18073 ac_tmp=$tmp
18074
18075 # Set up the scripts for CONFIG_FILES section.
18076 # No need to generate them if there are no CONFIG_FILES.
18077 # This happens for instance with `./config.status config.h'.
18078 if test -n "$CONFIG_FILES"; then
18079
18080
18081 ac_cr=`echo X | tr X '\015'`
18082 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18083 # But we know of no other shell where ac_cr would be empty at this
18084 # point, so we can use a bashism as a fallback.
18085 if test "x$ac_cr" = x; then
18086   eval ac_cr=\$\'\\r\'
18087 fi
18088 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18089 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18090   ac_cs_awk_cr='\\r'
18091 else
18092   ac_cs_awk_cr=$ac_cr
18093 fi
18094
18095 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18096 _ACEOF
18097
18098
18099 {
18100   echo "cat >conf$$subs.awk <<_ACEOF" &&
18101   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18102   echo "_ACEOF"
18103 } >conf$$subs.sh ||
18104   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18105 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18106 ac_delim='%!_!# '
18107 for ac_last_try in false false false false false :; do
18108   . ./conf$$subs.sh ||
18109     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18110
18111   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18112   if test $ac_delim_n = $ac_delim_num; then
18113     break
18114   elif $ac_last_try; then
18115     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18116   else
18117     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18118   fi
18119 done
18120 rm -f conf$$subs.sh
18121
18122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18123 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18124 _ACEOF
18125 sed -n '
18126 h
18127 s/^/S["/; s/!.*/"]=/
18128 p
18129 g
18130 s/^[^!]*!//
18131 :repl
18132 t repl
18133 s/'"$ac_delim"'$//
18134 t delim
18135 :nl
18136 h
18137 s/\(.\{148\}\)..*/\1/
18138 t more1
18139 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18140 p
18141 n
18142 b repl
18143 :more1
18144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18145 p
18146 g
18147 s/.\{148\}//
18148 t nl
18149 :delim
18150 h
18151 s/\(.\{148\}\)..*/\1/
18152 t more2
18153 s/["\\]/\\&/g; s/^/"/; s/$/"/
18154 p
18155 b
18156 :more2
18157 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18158 p
18159 g
18160 s/.\{148\}//
18161 t delim
18162 ' <conf$$subs.awk | sed '
18163 /^[^""]/{
18164   N
18165   s/\n//
18166 }
18167 ' >>$CONFIG_STATUS || ac_write_fail=1
18168 rm -f conf$$subs.awk
18169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18170 _ACAWK
18171 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18172   for (key in S) S_is_set[key] = 1
18173   FS = "\a"
18174
18175 }
18176 {
18177   line = $ 0
18178   nfields = split(line, field, "@")
18179   substed = 0
18180   len = length(field[1])
18181   for (i = 2; i < nfields; i++) {
18182     key = field[i]
18183     keylen = length(key)
18184     if (S_is_set[key]) {
18185       value = S[key]
18186       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18187       len += length(value) + length(field[++i])
18188       substed = 1
18189     } else
18190       len += 1 + keylen
18191   }
18192
18193   print line
18194 }
18195
18196 _ACAWK
18197 _ACEOF
18198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18199 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18200   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18201 else
18202   cat
18203 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18204   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18205 _ACEOF
18206
18207 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18208 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18209 # trailing colons and then remove the whole line if VPATH becomes empty
18210 # (actually we leave an empty line to preserve line numbers).
18211 if test "x$srcdir" = x.; then
18212   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18213 h
18214 s///
18215 s/^/:/
18216 s/[      ]*$/:/
18217 s/:\$(srcdir):/:/g
18218 s/:\${srcdir}:/:/g
18219 s/:@srcdir@:/:/g
18220 s/^:*//
18221 s/:*$//
18222 x
18223 s/\(=[   ]*\).*/\1/
18224 G
18225 s/\n//
18226 s/^[^=]*=[       ]*$//
18227 }'
18228 fi
18229
18230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18231 fi # test -n "$CONFIG_FILES"
18232
18233 # Set up the scripts for CONFIG_HEADERS section.
18234 # No need to generate them if there are no CONFIG_HEADERS.
18235 # This happens for instance with `./config.status Makefile'.
18236 if test -n "$CONFIG_HEADERS"; then
18237 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18238 BEGIN {
18239 _ACEOF
18240
18241 # Transform confdefs.h into an awk script `defines.awk', embedded as
18242 # here-document in config.status, that substitutes the proper values into
18243 # config.h.in to produce config.h.
18244
18245 # Create a delimiter string that does not exist in confdefs.h, to ease
18246 # handling of long lines.
18247 ac_delim='%!_!# '
18248 for ac_last_try in false false :; do
18249   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18250   if test -z "$ac_tt"; then
18251     break
18252   elif $ac_last_try; then
18253     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18254   else
18255     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18256   fi
18257 done
18258
18259 # For the awk script, D is an array of macro values keyed by name,
18260 # likewise P contains macro parameters if any.  Preserve backslash
18261 # newline sequences.
18262
18263 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18264 sed -n '
18265 s/.\{148\}/&'"$ac_delim"'/g
18266 t rset
18267 :rset
18268 s/^[     ]*#[    ]*define[       ][      ]*/ /
18269 t def
18270 d
18271 :def
18272 s/\\$//
18273 t bsnl
18274 s/["\\]/\\&/g
18275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18276 D["\1"]=" \3"/p
18277 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18278 d
18279 :bsnl
18280 s/["\\]/\\&/g
18281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18282 D["\1"]=" \3\\\\\\n"\\/p
18283 t cont
18284 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18285 t cont
18286 d
18287 :cont
18288 n
18289 s/.\{148\}/&'"$ac_delim"'/g
18290 t clear
18291 :clear
18292 s/\\$//
18293 t bsnlc
18294 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18295 d
18296 :bsnlc
18297 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18298 b cont
18299 ' <confdefs.h | sed '
18300 s/'"$ac_delim"'/"\\\
18301 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18302
18303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18304   for (key in D) D_is_set[key] = 1
18305   FS = "\a"
18306 }
18307 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18308   line = \$ 0
18309   split(line, arg, " ")
18310   if (arg[1] == "#") {
18311     defundef = arg[2]
18312     mac1 = arg[3]
18313   } else {
18314     defundef = substr(arg[1], 2)
18315     mac1 = arg[2]
18316   }
18317   split(mac1, mac2, "(") #)
18318   macro = mac2[1]
18319   prefix = substr(line, 1, index(line, defundef) - 1)
18320   if (D_is_set[macro]) {
18321     # Preserve the white space surrounding the "#".
18322     print prefix "define", macro P[macro] D[macro]
18323     next
18324   } else {
18325     # Replace #undef with comments.  This is necessary, for example,
18326     # in the case of _POSIX_SOURCE, which is predefined and required
18327     # on some systems where configure will not decide to define it.
18328     if (defundef == "undef") {
18329       print "/*", prefix defundef, macro, "*/"
18330       next
18331     }
18332   }
18333 }
18334 { print }
18335 _ACAWK
18336 _ACEOF
18337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18338   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18339 fi # test -n "$CONFIG_HEADERS"
18340
18341
18342 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18343 shift
18344 for ac_tag
18345 do
18346   case $ac_tag in
18347   :[FHLC]) ac_mode=$ac_tag; continue;;
18348   esac
18349   case $ac_mode$ac_tag in
18350   :[FHL]*:*);;
18351   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18352   :[FH]-) ac_tag=-:-;;
18353   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18354   esac
18355   ac_save_IFS=$IFS
18356   IFS=:
18357   set x $ac_tag
18358   IFS=$ac_save_IFS
18359   shift
18360   ac_file=$1
18361   shift
18362
18363   case $ac_mode in
18364   :L) ac_source=$1;;
18365   :[FH])
18366     ac_file_inputs=
18367     for ac_f
18368     do
18369       case $ac_f in
18370       -) ac_f="$ac_tmp/stdin";;
18371       *) # Look for the file first in the build tree, then in the source tree
18372          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18373          # because $ac_f cannot contain `:'.
18374          test -f "$ac_f" ||
18375            case $ac_f in
18376            [\\/$]*) false;;
18377            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18378            esac ||
18379            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18380       esac
18381       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18382       as_fn_append ac_file_inputs " '$ac_f'"
18383     done
18384
18385     # Let's still pretend it is `configure' which instantiates (i.e., don't
18386     # use $as_me), people would be surprised to read:
18387     #    /* config.h.  Generated by config.status.  */
18388     configure_input='Generated from '`
18389           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18390         `' by configure.'
18391     if test x"$ac_file" != x-; then
18392       configure_input="$ac_file.  $configure_input"
18393       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18394 $as_echo "$as_me: creating $ac_file" >&6;}
18395     fi
18396     # Neutralize special characters interpreted by sed in replacement strings.
18397     case $configure_input in #(
18398     *\&* | *\|* | *\\* )
18399        ac_sed_conf_input=`$as_echo "$configure_input" |
18400        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18401     *) ac_sed_conf_input=$configure_input;;
18402     esac
18403
18404     case $ac_tag in
18405     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18406       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18407     esac
18408     ;;
18409   esac
18410
18411   ac_dir=`$as_dirname -- "$ac_file" ||
18412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18413          X"$ac_file" : 'X\(//\)[^/]' \| \
18414          X"$ac_file" : 'X\(//\)$' \| \
18415          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18416 $as_echo X"$ac_file" |
18417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18418             s//\1/
18419             q
18420           }
18421           /^X\(\/\/\)[^/].*/{
18422             s//\1/
18423             q
18424           }
18425           /^X\(\/\/\)$/{
18426             s//\1/
18427             q
18428           }
18429           /^X\(\/\).*/{
18430             s//\1/
18431             q
18432           }
18433           s/.*/./; q'`
18434   as_dir="$ac_dir"; as_fn_mkdir_p
18435   ac_builddir=.
18436
18437 case "$ac_dir" in
18438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18439 *)
18440   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18441   # A ".." for each directory in $ac_dir_suffix.
18442   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18443   case $ac_top_builddir_sub in
18444   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18445   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18446   esac ;;
18447 esac
18448 ac_abs_top_builddir=$ac_pwd
18449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18450 # for backward compatibility:
18451 ac_top_builddir=$ac_top_build_prefix
18452
18453 case $srcdir in
18454   .)  # We are building in place.
18455     ac_srcdir=.
18456     ac_top_srcdir=$ac_top_builddir_sub
18457     ac_abs_top_srcdir=$ac_pwd ;;
18458   [\\/]* | ?:[\\/]* )  # Absolute name.
18459     ac_srcdir=$srcdir$ac_dir_suffix;
18460     ac_top_srcdir=$srcdir
18461     ac_abs_top_srcdir=$srcdir ;;
18462   *) # Relative name.
18463     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18464     ac_top_srcdir=$ac_top_build_prefix$srcdir
18465     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18466 esac
18467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18468
18469
18470   case $ac_mode in
18471   :F)
18472   #
18473   # CONFIG_FILE
18474   #
18475
18476   case $INSTALL in
18477   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18478   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18479   esac
18480   ac_MKDIR_P=$MKDIR_P
18481   case $MKDIR_P in
18482   [\\/$]* | ?:[\\/]* ) ;;
18483   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18484   esac
18485 _ACEOF
18486
18487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18488 # If the template does not know about datarootdir, expand it.
18489 # FIXME: This hack should be removed a few years after 2.60.
18490 ac_datarootdir_hack=; ac_datarootdir_seen=
18491 ac_sed_dataroot='
18492 /datarootdir/ {
18493   p
18494   q
18495 }
18496 /@datadir@/p
18497 /@docdir@/p
18498 /@infodir@/p
18499 /@localedir@/p
18500 /@mandir@/p'
18501 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18502 *datarootdir*) ac_datarootdir_seen=yes;;
18503 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18504   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18505 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18506 _ACEOF
18507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18508   ac_datarootdir_hack='
18509   s&@datadir@&$datadir&g
18510   s&@docdir@&$docdir&g
18511   s&@infodir@&$infodir&g
18512   s&@localedir@&$localedir&g
18513   s&@mandir@&$mandir&g
18514   s&\\\${datarootdir}&$datarootdir&g' ;;
18515 esac
18516 _ACEOF
18517
18518 # Neutralize VPATH when `$srcdir' = `.'.
18519 # Shell code in configure.ac might set extrasub.
18520 # FIXME: do we really want to maintain this feature?
18521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18522 ac_sed_extra="$ac_vpsub
18523 $extrasub
18524 _ACEOF
18525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18526 :t
18527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18528 s|@configure_input@|$ac_sed_conf_input|;t t
18529 s&@top_builddir@&$ac_top_builddir_sub&;t t
18530 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18531 s&@srcdir@&$ac_srcdir&;t t
18532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18533 s&@top_srcdir@&$ac_top_srcdir&;t t
18534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18535 s&@builddir@&$ac_builddir&;t t
18536 s&@abs_builddir@&$ac_abs_builddir&;t t
18537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18538 s&@INSTALL@&$ac_INSTALL&;t t
18539 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18540 $ac_datarootdir_hack
18541 "
18542 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18543   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18544
18545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18546   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18547   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18548       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18549   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18550 which seems to be undefined.  Please make sure it is defined" >&5
18551 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18552 which seems to be undefined.  Please make sure it is defined" >&2;}
18553
18554   rm -f "$ac_tmp/stdin"
18555   case $ac_file in
18556   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18557   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18558   esac \
18559   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18560  ;;
18561   :H)
18562   #
18563   # CONFIG_HEADER
18564   #
18565   if test x"$ac_file" != x-; then
18566     {
18567       $as_echo "/* $configure_input  */" \
18568       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18569     } >"$ac_tmp/config.h" \
18570       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18571     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18572       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18573 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18574     else
18575       rm -f "$ac_file"
18576       mv "$ac_tmp/config.h" "$ac_file" \
18577         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18578     fi
18579   else
18580     $as_echo "/* $configure_input  */" \
18581       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18582       || as_fn_error $? "could not create -" "$LINENO" 5
18583   fi
18584 # Compute "$ac_file"'s index in $config_headers.
18585 _am_arg="$ac_file"
18586 _am_stamp_count=1
18587 for _am_header in $config_headers :; do
18588   case $_am_header in
18589     $_am_arg | $_am_arg:* )
18590       break ;;
18591     * )
18592       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18593   esac
18594 done
18595 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18596 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18597          X"$_am_arg" : 'X\(//\)[^/]' \| \
18598          X"$_am_arg" : 'X\(//\)$' \| \
18599          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18600 $as_echo X"$_am_arg" |
18601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18602             s//\1/
18603             q
18604           }
18605           /^X\(\/\/\)[^/].*/{
18606             s//\1/
18607             q
18608           }
18609           /^X\(\/\/\)$/{
18610             s//\1/
18611             q
18612           }
18613           /^X\(\/\).*/{
18614             s//\1/
18615             q
18616           }
18617           s/.*/./; q'`/stamp-h$_am_stamp_count
18618  ;;
18619
18620   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18621 $as_echo "$as_me: executing $ac_file commands" >&6;}
18622  ;;
18623   esac
18624
18625
18626   case $ac_file$ac_mode in
18627     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18628   # Older Autoconf quotes --file arguments for eval, but not when files
18629   # are listed without --file.  Let's play safe and only enable the eval
18630   # if we detect the quoting.
18631   case $CONFIG_FILES in
18632   *\'*) eval set x "$CONFIG_FILES" ;;
18633   *)   set x $CONFIG_FILES ;;
18634   esac
18635   shift
18636   for mf
18637   do
18638     # Strip MF so we end up with the name of the file.
18639     mf=`echo "$mf" | sed -e 's/:.*$//'`
18640     # Check whether this is an Automake generated Makefile or not.
18641     # We used to match only the files named 'Makefile.in', but
18642     # some people rename them; so instead we look at the file content.
18643     # Grep'ing the first line is not enough: some people post-process
18644     # each Makefile.in and add a new line on top of each file to say so.
18645     # Grep'ing the whole file is not good either: AIX grep has a line
18646     # limit of 2048, but all sed's we know have understand at least 4000.
18647     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18648       dirpart=`$as_dirname -- "$mf" ||
18649 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18650          X"$mf" : 'X\(//\)[^/]' \| \
18651          X"$mf" : 'X\(//\)$' \| \
18652          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18653 $as_echo X"$mf" |
18654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18655             s//\1/
18656             q
18657           }
18658           /^X\(\/\/\)[^/].*/{
18659             s//\1/
18660             q
18661           }
18662           /^X\(\/\/\)$/{
18663             s//\1/
18664             q
18665           }
18666           /^X\(\/\).*/{
18667             s//\1/
18668             q
18669           }
18670           s/.*/./; q'`
18671     else
18672       continue
18673     fi
18674     # Extract the definition of DEPDIR, am__include, and am__quote
18675     # from the Makefile without running 'make'.
18676     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18677     test -z "$DEPDIR" && continue
18678     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18679     test -z "$am__include" && continue
18680     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18681     # Find all dependency output files, they are included files with
18682     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18683     # simplest approach to changing $(DEPDIR) to its actual value in the
18684     # expansion.
18685     for file in `sed -n "
18686       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18687          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18688       # Make sure the directory exists.
18689       test -f "$dirpart/$file" && continue
18690       fdir=`$as_dirname -- "$file" ||
18691 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18692          X"$file" : 'X\(//\)[^/]' \| \
18693          X"$file" : 'X\(//\)$' \| \
18694          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18695 $as_echo X"$file" |
18696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18697             s//\1/
18698             q
18699           }
18700           /^X\(\/\/\)[^/].*/{
18701             s//\1/
18702             q
18703           }
18704           /^X\(\/\/\)$/{
18705             s//\1/
18706             q
18707           }
18708           /^X\(\/\).*/{
18709             s//\1/
18710             q
18711           }
18712           s/.*/./; q'`
18713       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18714       # echo "creating $dirpart/$file"
18715       echo '# dummy' > "$dirpart/$file"
18716     done
18717   done
18718 }
18719  ;;
18720     "libtool":C)
18721
18722     # See if we are running on zsh, and set the options which allow our
18723     # commands through without removal of \ escapes.
18724     if test -n "${ZSH_VERSION+set}" ; then
18725       setopt NO_GLOB_SUBST
18726     fi
18727
18728     cfgfile="${ofile}T"
18729     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18730     $RM "$cfgfile"
18731
18732     cat <<_LT_EOF >> "$cfgfile"
18733 #! $SHELL
18734
18735 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18736 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18738 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18739 #
18740 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18741 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18742 #   Written by Gordon Matzigkeit, 1996
18743 #
18744 #   This file is part of GNU Libtool.
18745 #
18746 # GNU Libtool is free software; you can redistribute it and/or
18747 # modify it under the terms of the GNU General Public License as
18748 # published by the Free Software Foundation; either version 2 of
18749 # the License, or (at your option) any later version.
18750 #
18751 # As a special exception to the GNU General Public License,
18752 # if you distribute this file as part of a program or library that
18753 # is built using GNU Libtool, you may include this file under the
18754 # same distribution terms that you use for the rest of that program.
18755 #
18756 # GNU Libtool is distributed in the hope that it will be useful,
18757 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18758 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18759 # GNU General Public License for more details.
18760 #
18761 # You should have received a copy of the GNU General Public License
18762 # along with GNU Libtool; see the file COPYING.  If not, a copy
18763 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18764 # obtained by writing to the Free Software Foundation, Inc.,
18765 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18766
18767
18768 # The names of the tagged configurations supported by this script.
18769 available_tags="CXX "
18770
18771 # ### BEGIN LIBTOOL CONFIG
18772
18773 # Whether or not to build shared libraries.
18774 build_libtool_libs=$enable_shared
18775
18776 # Which release of libtool.m4 was used?
18777 macro_version=$macro_version
18778 macro_revision=$macro_revision
18779
18780 # Whether or not to build static libraries.
18781 build_old_libs=$enable_static
18782
18783 # What type of objects to build.
18784 pic_mode=$pic_mode
18785
18786 # Whether or not to optimize for fast installation.
18787 fast_install=$enable_fast_install
18788
18789 # Shell to use when invoking shell scripts.
18790 SHELL=$lt_SHELL
18791
18792 # An echo program that protects backslashes.
18793 ECHO=$lt_ECHO
18794
18795 # The host system.
18796 host_alias=$host_alias
18797 host=$host
18798 host_os=$host_os
18799
18800 # The build system.
18801 build_alias=$build_alias
18802 build=$build
18803 build_os=$build_os
18804
18805 # A sed program that does not truncate output.
18806 SED=$lt_SED
18807
18808 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18809 Xsed="\$SED -e 1s/^X//"
18810
18811 # A grep program that handles long lines.
18812 GREP=$lt_GREP
18813
18814 # An ERE matcher.
18815 EGREP=$lt_EGREP
18816
18817 # A literal string matcher.
18818 FGREP=$lt_FGREP
18819
18820 # A BSD- or MS-compatible name lister.
18821 NM=$lt_NM
18822
18823 # Whether we need soft or hard links.
18824 LN_S=$lt_LN_S
18825
18826 # What is the maximum length of a command?
18827 max_cmd_len=$max_cmd_len
18828
18829 # Object file suffix (normally "o").
18830 objext=$ac_objext
18831
18832 # Executable file suffix (normally "").
18833 exeext=$exeext
18834
18835 # whether the shell understands "unset".
18836 lt_unset=$lt_unset
18837
18838 # turn spaces into newlines.
18839 SP2NL=$lt_lt_SP2NL
18840
18841 # turn newlines into spaces.
18842 NL2SP=$lt_lt_NL2SP
18843
18844 # An object symbol dumper.
18845 OBJDUMP=$lt_OBJDUMP
18846
18847 # Method to check whether dependent libraries are shared objects.
18848 deplibs_check_method=$lt_deplibs_check_method
18849
18850 # Command to use when deplibs_check_method == "file_magic".
18851 file_magic_cmd=$lt_file_magic_cmd
18852
18853 # The archiver.
18854 AR=$lt_AR
18855 AR_FLAGS=$lt_AR_FLAGS
18856
18857 # A symbol stripping program.
18858 STRIP=$lt_STRIP
18859
18860 # Commands used to install an old-style archive.
18861 RANLIB=$lt_RANLIB
18862 old_postinstall_cmds=$lt_old_postinstall_cmds
18863 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18864
18865 # Whether to use a lock for old archive extraction.
18866 lock_old_archive_extraction=$lock_old_archive_extraction
18867
18868 # A C compiler.
18869 LTCC=$lt_CC
18870
18871 # LTCC compiler flags.
18872 LTCFLAGS=$lt_CFLAGS
18873
18874 # Take the output of nm and produce a listing of raw symbols and C names.
18875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18876
18877 # Transform the output of nm in a proper C declaration.
18878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18879
18880 # Transform the output of nm in a C name address pair.
18881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18882
18883 # Transform the output of nm in a C name address pair when lib prefix is needed.
18884 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18885
18886 # The name of the directory that contains temporary libtool files.
18887 objdir=$objdir
18888
18889 # Used to examine libraries when file_magic_cmd begins with "file".
18890 MAGIC_CMD=$MAGIC_CMD
18891
18892 # Must we lock files when doing compilation?
18893 need_locks=$lt_need_locks
18894
18895 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18896 DSYMUTIL=$lt_DSYMUTIL
18897
18898 # Tool to change global to local symbols on Mac OS X.
18899 NMEDIT=$lt_NMEDIT
18900
18901 # Tool to manipulate fat objects and archives on Mac OS X.
18902 LIPO=$lt_LIPO
18903
18904 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18905 OTOOL=$lt_OTOOL
18906
18907 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18908 OTOOL64=$lt_OTOOL64
18909
18910 # Old archive suffix (normally "a").
18911 libext=$libext
18912
18913 # Shared library suffix (normally ".so").
18914 shrext_cmds=$lt_shrext_cmds
18915
18916 # The commands to extract the exported symbol list from a shared archive.
18917 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18918
18919 # Variables whose values should be saved in libtool wrapper scripts and
18920 # restored at link time.
18921 variables_saved_for_relink=$lt_variables_saved_for_relink
18922
18923 # Do we need the "lib" prefix for modules?
18924 need_lib_prefix=$need_lib_prefix
18925
18926 # Do we need a version for libraries?
18927 need_version=$need_version
18928
18929 # Library versioning type.
18930 version_type=$version_type
18931
18932 # Shared library runtime path variable.
18933 runpath_var=$runpath_var
18934
18935 # Shared library path variable.
18936 shlibpath_var=$shlibpath_var
18937
18938 # Is shlibpath searched before the hard-coded library search path?
18939 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18940
18941 # Format of library name prefix.
18942 libname_spec=$lt_libname_spec
18943
18944 # List of archive names.  First name is the real one, the rest are links.
18945 # The last name is the one that the linker finds with -lNAME
18946 library_names_spec=$lt_library_names_spec
18947
18948 # The coded name of the library, if different from the real name.
18949 soname_spec=$lt_soname_spec
18950
18951 # Permission mode override for installation of shared libraries.
18952 install_override_mode=$lt_install_override_mode
18953
18954 # Command to use after installation of a shared archive.
18955 postinstall_cmds=$lt_postinstall_cmds
18956
18957 # Command to use after uninstallation of a shared archive.
18958 postuninstall_cmds=$lt_postuninstall_cmds
18959
18960 # Commands used to finish a libtool library installation in a directory.
18961 finish_cmds=$lt_finish_cmds
18962
18963 # As "finish_cmds", except a single script fragment to be evaled but
18964 # not shown.
18965 finish_eval=$lt_finish_eval
18966
18967 # Whether we should hardcode library paths into libraries.
18968 hardcode_into_libs=$hardcode_into_libs
18969
18970 # Compile-time system search path for libraries.
18971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18972
18973 # Run-time system search path for libraries.
18974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18975
18976 # Whether dlopen is supported.
18977 dlopen_support=$enable_dlopen
18978
18979 # Whether dlopen of programs is supported.
18980 dlopen_self=$enable_dlopen_self
18981
18982 # Whether dlopen of statically linked programs is supported.
18983 dlopen_self_static=$enable_dlopen_self_static
18984
18985 # Commands to strip libraries.
18986 old_striplib=$lt_old_striplib
18987 striplib=$lt_striplib
18988
18989
18990 # The linker used to build libraries.
18991 LD=$lt_LD
18992
18993 # How to create reloadable object files.
18994 reload_flag=$lt_reload_flag
18995 reload_cmds=$lt_reload_cmds
18996
18997 # Commands used to build an old-style archive.
18998 old_archive_cmds=$lt_old_archive_cmds
18999
19000 # A language specific compiler.
19001 CC=$lt_compiler
19002
19003 # Is the compiler the GNU compiler?
19004 with_gcc=$GCC
19005
19006 # Compiler flag to turn off builtin functions.
19007 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19008
19009 # How to pass a linker flag through the compiler.
19010 wl=$lt_lt_prog_compiler_wl
19011
19012 # Additional compiler flags for building library objects.
19013 pic_flag=$lt_lt_prog_compiler_pic
19014
19015 # Compiler flag to prevent dynamic linking.
19016 link_static_flag=$lt_lt_prog_compiler_static
19017
19018 # Does compiler simultaneously support -c and -o options?
19019 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19020
19021 # Whether or not to add -lc for building shared libraries.
19022 build_libtool_need_lc=$archive_cmds_need_lc
19023
19024 # Whether or not to disallow shared libs when runtime libs are static.
19025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19026
19027 # Compiler flag to allow reflexive dlopens.
19028 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19029
19030 # Compiler flag to generate shared objects directly from archives.
19031 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19032
19033 # Whether the compiler copes with passing no objects directly.
19034 compiler_needs_object=$lt_compiler_needs_object
19035
19036 # Create an old-style archive from a shared archive.
19037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19038
19039 # Create a temporary old-style archive to link instead of a shared archive.
19040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19041
19042 # Commands used to build a shared archive.
19043 archive_cmds=$lt_archive_cmds
19044 archive_expsym_cmds=$lt_archive_expsym_cmds
19045
19046 # Commands used to build a loadable module if different from building
19047 # a shared archive.
19048 module_cmds=$lt_module_cmds
19049 module_expsym_cmds=$lt_module_expsym_cmds
19050
19051 # Whether we are building with GNU ld or not.
19052 with_gnu_ld=$lt_with_gnu_ld
19053
19054 # Flag that allows shared libraries with undefined symbols to be built.
19055 allow_undefined_flag=$lt_allow_undefined_flag
19056
19057 # Flag that enforces no undefined symbols.
19058 no_undefined_flag=$lt_no_undefined_flag
19059
19060 # Flag to hardcode \$libdir into a binary during linking.
19061 # This must work even if \$libdir does not exist
19062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19063
19064 # If ld is used when linking, flag to hardcode \$libdir into a binary
19065 # during linking.  This must work even if \$libdir does not exist.
19066 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19067
19068 # Whether we need a single "-rpath" flag with a separated argument.
19069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19070
19071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19072 # DIR into the resulting binary.
19073 hardcode_direct=$hardcode_direct
19074
19075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19076 # DIR into the resulting binary and the resulting library dependency is
19077 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19078 # library is relocated.
19079 hardcode_direct_absolute=$hardcode_direct_absolute
19080
19081 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19082 # into the resulting binary.
19083 hardcode_minus_L=$hardcode_minus_L
19084
19085 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19086 # into the resulting binary.
19087 hardcode_shlibpath_var=$hardcode_shlibpath_var
19088
19089 # Set to "yes" if building a shared library automatically hardcodes DIR
19090 # into the library and all subsequent libraries and executables linked
19091 # against it.
19092 hardcode_automatic=$hardcode_automatic
19093
19094 # Set to yes if linker adds runtime paths of dependent libraries
19095 # to runtime path list.
19096 inherit_rpath=$inherit_rpath
19097
19098 # Whether libtool must link a program against all its dependency libraries.
19099 link_all_deplibs=$link_all_deplibs
19100
19101 # Fix the shell variable \$srcfile for the compiler.
19102 fix_srcfile_path=$lt_fix_srcfile_path
19103
19104 # Set to "yes" if exported symbols are required.
19105 always_export_symbols=$always_export_symbols
19106
19107 # The commands to list exported symbols.
19108 export_symbols_cmds=$lt_export_symbols_cmds
19109
19110 # Symbols that should not be listed in the preloaded symbols.
19111 exclude_expsyms=$lt_exclude_expsyms
19112
19113 # Symbols that must always be exported.
19114 include_expsyms=$lt_include_expsyms
19115
19116 # Commands necessary for linking programs (against libraries) with templates.
19117 prelink_cmds=$lt_prelink_cmds
19118
19119 # Specify filename containing input files.
19120 file_list_spec=$lt_file_list_spec
19121
19122 # How to hardcode a shared library path into an executable.
19123 hardcode_action=$hardcode_action
19124
19125 # The directories searched by this compiler when creating a shared library.
19126 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19127
19128 # Dependencies to place before and after the objects being linked to
19129 # create a shared library.
19130 predep_objects=$lt_predep_objects
19131 postdep_objects=$lt_postdep_objects
19132 predeps=$lt_predeps
19133 postdeps=$lt_postdeps
19134
19135 # The library search path used internally by the compiler when linking
19136 # a shared library.
19137 compiler_lib_search_path=$lt_compiler_lib_search_path
19138
19139 # ### END LIBTOOL CONFIG
19140
19141 _LT_EOF
19142
19143   case $host_os in
19144   aix3*)
19145     cat <<\_LT_EOF >> "$cfgfile"
19146 # AIX sometimes has problems with the GCC collect2 program.  For some
19147 # reason, if we set the COLLECT_NAMES environment variable, the problems
19148 # vanish in a puff of smoke.
19149 if test "X${COLLECT_NAMES+set}" != Xset; then
19150   COLLECT_NAMES=
19151   export COLLECT_NAMES
19152 fi
19153 _LT_EOF
19154     ;;
19155   esac
19156
19157
19158 ltmain="$ac_aux_dir/ltmain.sh"
19159
19160
19161   # We use sed instead of cat because bash on DJGPP gets confused if
19162   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19163   # text mode, it properly converts lines to CR/LF.  This bash problem
19164   # is reportedly fixed, but why not run on old versions too?
19165   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19166     || (rm -f "$cfgfile"; exit 1)
19167
19168   case $xsi_shell in
19169   yes)
19170     cat << \_LT_EOF >> "$cfgfile"
19171
19172 # func_dirname file append nondir_replacement
19173 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19174 # otherwise set result to NONDIR_REPLACEMENT.
19175 func_dirname ()
19176 {
19177   case ${1} in
19178     */*) func_dirname_result="${1%/*}${2}" ;;
19179     *  ) func_dirname_result="${3}" ;;
19180   esac
19181 }
19182
19183 # func_basename file
19184 func_basename ()
19185 {
19186   func_basename_result="${1##*/}"
19187 }
19188
19189 # func_dirname_and_basename file append nondir_replacement
19190 # perform func_basename and func_dirname in a single function
19191 # call:
19192 #   dirname:  Compute the dirname of FILE.  If nonempty,
19193 #             add APPEND to the result, otherwise set result
19194 #             to NONDIR_REPLACEMENT.
19195 #             value returned in "$func_dirname_result"
19196 #   basename: Compute filename of FILE.
19197 #             value retuned in "$func_basename_result"
19198 # Implementation must be kept synchronized with func_dirname
19199 # and func_basename. For efficiency, we do not delegate to
19200 # those functions but instead duplicate the functionality here.
19201 func_dirname_and_basename ()
19202 {
19203   case ${1} in
19204     */*) func_dirname_result="${1%/*}${2}" ;;
19205     *  ) func_dirname_result="${3}" ;;
19206   esac
19207   func_basename_result="${1##*/}"
19208 }
19209
19210 # func_stripname prefix suffix name
19211 # strip PREFIX and SUFFIX off of NAME.
19212 # PREFIX and SUFFIX must not contain globbing or regex special
19213 # characters, hashes, percent signs, but SUFFIX may contain a leading
19214 # dot (in which case that matches only a dot).
19215 func_stripname ()
19216 {
19217   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19218   # positional parameters, so assign one to ordinary parameter first.
19219   func_stripname_result=${3}
19220   func_stripname_result=${func_stripname_result#"${1}"}
19221   func_stripname_result=${func_stripname_result%"${2}"}
19222 }
19223
19224 # func_opt_split
19225 func_opt_split ()
19226 {
19227   func_opt_split_opt=${1%%=*}
19228   func_opt_split_arg=${1#*=}
19229 }
19230
19231 # func_lo2o object
19232 func_lo2o ()
19233 {
19234   case ${1} in
19235     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19236     *)    func_lo2o_result=${1} ;;
19237   esac
19238 }
19239
19240 # func_xform libobj-or-source
19241 func_xform ()
19242 {
19243   func_xform_result=${1%.*}.lo
19244 }
19245
19246 # func_arith arithmetic-term...
19247 func_arith ()
19248 {
19249   func_arith_result=$(( $* ))
19250 }
19251
19252 # func_len string
19253 # STRING may not start with a hyphen.
19254 func_len ()
19255 {
19256   func_len_result=${#1}
19257 }
19258
19259 _LT_EOF
19260     ;;
19261   *) # Bourne compatible functions.
19262     cat << \_LT_EOF >> "$cfgfile"
19263
19264 # func_dirname file append nondir_replacement
19265 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19266 # otherwise set result to NONDIR_REPLACEMENT.
19267 func_dirname ()
19268 {
19269   # Extract subdirectory from the argument.
19270   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19271   if test "X$func_dirname_result" = "X${1}"; then
19272     func_dirname_result="${3}"
19273   else
19274     func_dirname_result="$func_dirname_result${2}"
19275   fi
19276 }
19277
19278 # func_basename file
19279 func_basename ()
19280 {
19281   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19282 }
19283
19284
19285 # func_stripname prefix suffix name
19286 # strip PREFIX and SUFFIX off of NAME.
19287 # PREFIX and SUFFIX must not contain globbing or regex special
19288 # characters, hashes, percent signs, but SUFFIX may contain a leading
19289 # dot (in which case that matches only a dot).
19290 # func_strip_suffix prefix name
19291 func_stripname ()
19292 {
19293   case ${2} in
19294     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19295     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19296   esac
19297 }
19298
19299 # sed scripts:
19300 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19301 my_sed_long_arg='1s/^-[^=]*=//'
19302
19303 # func_opt_split
19304 func_opt_split ()
19305 {
19306   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19307   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19308 }
19309
19310 # func_lo2o object
19311 func_lo2o ()
19312 {
19313   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19314 }
19315
19316 # func_xform libobj-or-source
19317 func_xform ()
19318 {
19319   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19320 }
19321
19322 # func_arith arithmetic-term...
19323 func_arith ()
19324 {
19325   func_arith_result=`expr "$@"`
19326 }
19327
19328 # func_len string
19329 # STRING may not start with a hyphen.
19330 func_len ()
19331 {
19332   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19333 }
19334
19335 _LT_EOF
19336 esac
19337
19338 case $lt_shell_append in
19339   yes)
19340     cat << \_LT_EOF >> "$cfgfile"
19341
19342 # func_append var value
19343 # Append VALUE to the end of shell variable VAR.
19344 func_append ()
19345 {
19346   eval "$1+=\$2"
19347 }
19348 _LT_EOF
19349     ;;
19350   *)
19351     cat << \_LT_EOF >> "$cfgfile"
19352
19353 # func_append var value
19354 # Append VALUE to the end of shell variable VAR.
19355 func_append ()
19356 {
19357   eval "$1=\$$1\$2"
19358 }
19359
19360 _LT_EOF
19361     ;;
19362   esac
19363
19364
19365   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19366     || (rm -f "$cfgfile"; exit 1)
19367
19368   mv -f "$cfgfile" "$ofile" ||
19369     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19370   chmod +x "$ofile"
19371
19372
19373     cat <<_LT_EOF >> "$ofile"
19374
19375 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19376
19377 # The linker used to build libraries.
19378 LD=$lt_LD_CXX
19379
19380 # How to create reloadable object files.
19381 reload_flag=$lt_reload_flag_CXX
19382 reload_cmds=$lt_reload_cmds_CXX
19383
19384 # Commands used to build an old-style archive.
19385 old_archive_cmds=$lt_old_archive_cmds_CXX
19386
19387 # A language specific compiler.
19388 CC=$lt_compiler_CXX
19389
19390 # Is the compiler the GNU compiler?
19391 with_gcc=$GCC_CXX
19392
19393 # Compiler flag to turn off builtin functions.
19394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19395
19396 # How to pass a linker flag through the compiler.
19397 wl=$lt_lt_prog_compiler_wl_CXX
19398
19399 # Additional compiler flags for building library objects.
19400 pic_flag=$lt_lt_prog_compiler_pic_CXX
19401
19402 # Compiler flag to prevent dynamic linking.
19403 link_static_flag=$lt_lt_prog_compiler_static_CXX
19404
19405 # Does compiler simultaneously support -c and -o options?
19406 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19407
19408 # Whether or not to add -lc for building shared libraries.
19409 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19410
19411 # Whether or not to disallow shared libs when runtime libs are static.
19412 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19413
19414 # Compiler flag to allow reflexive dlopens.
19415 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19416
19417 # Compiler flag to generate shared objects directly from archives.
19418 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19419
19420 # Whether the compiler copes with passing no objects directly.
19421 compiler_needs_object=$lt_compiler_needs_object_CXX
19422
19423 # Create an old-style archive from a shared archive.
19424 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19425
19426 # Create a temporary old-style archive to link instead of a shared archive.
19427 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19428
19429 # Commands used to build a shared archive.
19430 archive_cmds=$lt_archive_cmds_CXX
19431 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19432
19433 # Commands used to build a loadable module if different from building
19434 # a shared archive.
19435 module_cmds=$lt_module_cmds_CXX
19436 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19437
19438 # Whether we are building with GNU ld or not.
19439 with_gnu_ld=$lt_with_gnu_ld_CXX
19440
19441 # Flag that allows shared libraries with undefined symbols to be built.
19442 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19443
19444 # Flag that enforces no undefined symbols.
19445 no_undefined_flag=$lt_no_undefined_flag_CXX
19446
19447 # Flag to hardcode \$libdir into a binary during linking.
19448 # This must work even if \$libdir does not exist
19449 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19450
19451 # If ld is used when linking, flag to hardcode \$libdir into a binary
19452 # during linking.  This must work even if \$libdir does not exist.
19453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19454
19455 # Whether we need a single "-rpath" flag with a separated argument.
19456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19457
19458 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19459 # DIR into the resulting binary.
19460 hardcode_direct=$hardcode_direct_CXX
19461
19462 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19463 # DIR into the resulting binary and the resulting library dependency is
19464 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19465 # library is relocated.
19466 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19467
19468 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19469 # into the resulting binary.
19470 hardcode_minus_L=$hardcode_minus_L_CXX
19471
19472 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19473 # into the resulting binary.
19474 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19475
19476 # Set to "yes" if building a shared library automatically hardcodes DIR
19477 # into the library and all subsequent libraries and executables linked
19478 # against it.
19479 hardcode_automatic=$hardcode_automatic_CXX
19480
19481 # Set to yes if linker adds runtime paths of dependent libraries
19482 # to runtime path list.
19483 inherit_rpath=$inherit_rpath_CXX
19484
19485 # Whether libtool must link a program against all its dependency libraries.
19486 link_all_deplibs=$link_all_deplibs_CXX
19487
19488 # Fix the shell variable \$srcfile for the compiler.
19489 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19490
19491 # Set to "yes" if exported symbols are required.
19492 always_export_symbols=$always_export_symbols_CXX
19493
19494 # The commands to list exported symbols.
19495 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19496
19497 # Symbols that should not be listed in the preloaded symbols.
19498 exclude_expsyms=$lt_exclude_expsyms_CXX
19499
19500 # Symbols that must always be exported.
19501 include_expsyms=$lt_include_expsyms_CXX
19502
19503 # Commands necessary for linking programs (against libraries) with templates.
19504 prelink_cmds=$lt_prelink_cmds_CXX
19505
19506 # Specify filename containing input files.
19507 file_list_spec=$lt_file_list_spec_CXX
19508
19509 # How to hardcode a shared library path into an executable.
19510 hardcode_action=$hardcode_action_CXX
19511
19512 # The directories searched by this compiler when creating a shared library.
19513 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19514
19515 # Dependencies to place before and after the objects being linked to
19516 # create a shared library.
19517 predep_objects=$lt_predep_objects_CXX
19518 postdep_objects=$lt_postdep_objects_CXX
19519 predeps=$lt_predeps_CXX
19520 postdeps=$lt_postdeps_CXX
19521
19522 # The library search path used internally by the compiler when linking
19523 # a shared library.
19524 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19525
19526 # ### END LIBTOOL TAG CONFIG: CXX
19527 _LT_EOF
19528
19529  ;;
19530
19531   esac
19532 done # for ac_tag
19533
19534
19535 as_fn_exit 0
19536 _ACEOF
19537 ac_clean_files=$ac_clean_files_save
19538
19539 test $ac_write_fail = 0 ||
19540   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19541
19542
19543 # configure is writing to config.log, and then calls config.status.
19544 # config.status does its own redirection, appending to config.log.
19545 # Unfortunately, on DOS this fails, as config.log is still kept open
19546 # by configure, so config.status won't be able to write to it; its
19547 # output is simply discarded.  So we exec the FD to /dev/null,
19548 # effectively closing config.log, so it can be properly (re)opened and
19549 # appended to by config.status.  When coming back to configure, we
19550 # need to make the FD available again.
19551 if test "$no_create" != yes; then
19552   ac_cs_success=:
19553   ac_config_status_args=
19554   test "$silent" = yes &&
19555     ac_config_status_args="$ac_config_status_args --quiet"
19556   exec 5>/dev/null
19557   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19558   exec 5>>config.log
19559   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19560   # would make configure fail if this is the last instruction.
19561   $ac_cs_success || as_fn_exit 1
19562 fi
19563
19564 #
19565 # CONFIG_SUBDIRS section.
19566 #
19567 if test "$no_recursion" != yes; then
19568
19569   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19570   # so they do not pile up.
19571   ac_sub_configure_args=
19572   ac_prev=
19573   eval "set x $ac_configure_args"
19574   shift
19575   for ac_arg
19576   do
19577     if test -n "$ac_prev"; then
19578       ac_prev=
19579       continue
19580     fi
19581     case $ac_arg in
19582     -cache-file | --cache-file | --cache-fil | --cache-fi \
19583     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19584       ac_prev=cache_file ;;
19585     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19586     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19587     | --c=*)
19588       ;;
19589     --config-cache | -C)
19590       ;;
19591     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19592       ac_prev=srcdir ;;
19593     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19594       ;;
19595     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19596       ac_prev=prefix ;;
19597     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19598       ;;
19599     --disable-option-checking)
19600       ;;
19601     *)
19602       case $ac_arg in
19603       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19604       esac
19605       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19606     esac
19607   done
19608
19609   # Always prepend --prefix to ensure using the same prefix
19610   # in subdir configurations.
19611   ac_arg="--prefix=$prefix"
19612   case $ac_arg in
19613   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19614   esac
19615   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19616
19617   # Pass --silent
19618   if test "$silent" = yes; then
19619     ac_sub_configure_args="--silent $ac_sub_configure_args"
19620   fi
19621
19622   # Always prepend --disable-option-checking to silence warnings, since
19623   # different subdirs can have different --enable and --with options.
19624   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19625
19626   ac_popdir=`pwd`
19627   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19628
19629     # Do not complain, so a configure script can configure whichever
19630     # parts of a large source tree are present.
19631     test -d "$srcdir/$ac_dir" || continue
19632
19633     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19634     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19635     $as_echo "$ac_msg" >&6
19636     as_dir="$ac_dir"; as_fn_mkdir_p
19637     ac_builddir=.
19638
19639 case "$ac_dir" in
19640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19641 *)
19642   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19643   # A ".." for each directory in $ac_dir_suffix.
19644   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19645   case $ac_top_builddir_sub in
19646   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19647   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19648   esac ;;
19649 esac
19650 ac_abs_top_builddir=$ac_pwd
19651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19652 # for backward compatibility:
19653 ac_top_builddir=$ac_top_build_prefix
19654
19655 case $srcdir in
19656   .)  # We are building in place.
19657     ac_srcdir=.
19658     ac_top_srcdir=$ac_top_builddir_sub
19659     ac_abs_top_srcdir=$ac_pwd ;;
19660   [\\/]* | ?:[\\/]* )  # Absolute name.
19661     ac_srcdir=$srcdir$ac_dir_suffix;
19662     ac_top_srcdir=$srcdir
19663     ac_abs_top_srcdir=$srcdir ;;
19664   *) # Relative name.
19665     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19666     ac_top_srcdir=$ac_top_build_prefix$srcdir
19667     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19668 esac
19669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19670
19671
19672     cd "$ac_dir"
19673
19674     # Check for guested configure; otherwise get Cygnus style configure.
19675     if test -f "$ac_srcdir/configure.gnu"; then
19676       ac_sub_configure=$ac_srcdir/configure.gnu
19677     elif test -f "$ac_srcdir/configure"; then
19678       ac_sub_configure=$ac_srcdir/configure
19679     elif test -f "$ac_srcdir/configure.in"; then
19680       # This should be Cygnus configure.
19681       ac_sub_configure=$ac_aux_dir/configure
19682     else
19683       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19685       ac_sub_configure=
19686     fi
19687
19688     # The recursion is here.
19689     if test -n "$ac_sub_configure"; then
19690       # Make the cache file name correct relative to the subdirectory.
19691       case $cache_file in
19692       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19693       *) # Relative name.
19694         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19695       esac
19696
19697       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19698 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19699       # The eval makes quoting arguments work.
19700       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19701            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19702         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19703     fi
19704
19705     cd "$ac_popdir"
19706   done
19707 fi
19708 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19709   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19710 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19711 fi
19712
19713
This page took 1.059446 seconds and 4 git commands to generate.