chiark / gitweb /
octave4.4
[nlopt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for nlopt 2.4.2.
4 #
5 # Report bugs to <stevenj@alum.mit.edu>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: stevenj@alum.mit.edu about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='nlopt'
592 PACKAGE_TARNAME='nlopt'
593 PACKAGE_VERSION='2.4.2'
594 PACKAGE_STRING='nlopt 2.4.2'
595 PACKAGE_BUGREPORT='stevenj@alum.mit.edu'
596 PACKAGE_URL=''
597
598 ac_unique_file="api/nlopt.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 MEXSUFF
640 WITH_MATLAB_FALSE
641 WITH_MATLAB_TRUE
642 MATLAB
643 MEX
644 MEX_INSTALL_DIR
645 WITH_OCTAVE_FALSE
646 WITH_OCTAVE_TRUE
647 OCTAVE_CONFIG
648 OCTAVE
649 MKOCTFILE
650 M_INSTALL_DIR
651 OCT_INSTALL_DIR
652 WITH_PYTHON_FALSE
653 WITH_PYTHON_TRUE
654 WITH_GUILE_FALSE
655 WITH_GUILE_TRUE
656 PYTHON_INCLUDES
657 GUILE_LIBS
658 GUILE_CPPFLAGS
659 PYTHON_CONFIG
660 pkgpyexecdir
661 pyexecdir
662 pkgpythondir
663 pythondir
664 PYTHON_PLATFORM
665 PYTHON_EXEC_PREFIX
666 PYTHON_PREFIX
667 PYTHON_VERSION
668 PYTHON
669 GUILE
670 GUILE_CONFIG
671 GUILE_INSTALL_DIR
672 NLOPT_SUFFIX
673 CXXCPP
674 am__fastdepCXX_FALSE
675 am__fastdepCXX_TRUE
676 CXXDEPMODE
677 ac_ct_CXX
678 CXXFLAGS
679 CXX
680 WITH_CXX_FALSE
681 WITH_CXX_TRUE
682 CPP
683 OTOOL64
684 OTOOL
685 LIPO
686 NMEDIT
687 DSYMUTIL
688 MANIFEST_TOOL
689 RANLIB
690 ac_ct_AR
691 AR
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 EGREP
698 GREP
699 SED
700 LIBTOOL
701 OBJDUMP
702 DLLTOOL
703 AS
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 LN_S
713 am__fastdepCC_FALSE
714 am__fastdepCC_TRUE
715 CCDEPMODE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 am__quote
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 SHARED_VERSION_INFO
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_maintainer_mode
804 enable_shared
805 enable_dependency_tracking
806 enable_static
807 with_pic
808 enable_fast_install
809 with_gnu_ld
810 with_sysroot
811 enable_libtool_lock
812 with_cxx
813 with_mthreads
814 with_threadlocal
815 with_guile
816 with_python
817 with_octave
818 with_matlab
819 enable_debug
820 '
821       ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CPP
830 CXX
831 CXXFLAGS
832 CCC
833 CXXCPP
834 GUILE_INSTALL_DIR
835 PYTHON
836 PYTHON_CONFIG
837 OCT_INSTALL_DIR
838 M_INSTALL_DIR
839 MKOCTFILE
840 MEX_INSTALL_DIR
841 MEX'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
891
892 ac_prev=
893 ac_dashdash=
894 for ac_option
895 do
896   # If the previous option needs an argument, assign it.
897   if test -n "$ac_prev"; then
898     eval $ac_prev=\$ac_option
899     ac_prev=
900     continue
901   fi
902
903   case $ac_option in
904   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905   *=)   ac_optarg= ;;
906   *)    ac_optarg=yes ;;
907   esac
908
909   # Accept the important Cygnus configure options, so we can diagnose typos.
910
911   case $ac_dashdash$ac_option in
912   --)
913     ac_dashdash=yes ;;
914
915   -bindir | --bindir | --bindi | --bind | --bin | --bi)
916     ac_prev=bindir ;;
917   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918     bindir=$ac_optarg ;;
919
920   -build | --build | --buil | --bui | --bu)
921     ac_prev=build_alias ;;
922   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923     build_alias=$ac_optarg ;;
924
925   -cache-file | --cache-file | --cache-fil | --cache-fi \
926   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927     ac_prev=cache_file ;;
928   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930     cache_file=$ac_optarg ;;
931
932   --config-cache | -C)
933     cache_file=config.cache ;;
934
935   -datadir | --datadir | --datadi | --datad)
936     ac_prev=datadir ;;
937   -datadir=* | --datadir=* | --datadi=* | --datad=*)
938     datadir=$ac_optarg ;;
939
940   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941   | --dataroo | --dataro | --datar)
942     ac_prev=datarootdir ;;
943   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945     datarootdir=$ac_optarg ;;
946
947   -disable-* | --disable-*)
948     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949     # Reject names that are not valid shell variable names.
950     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951       as_fn_error $? "invalid feature name: $ac_useropt"
952     ac_useropt_orig=$ac_useropt
953     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954     case $ac_user_opts in
955       *"
956 "enable_$ac_useropt"
957 "*) ;;
958       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959          ac_unrecognized_sep=', ';;
960     esac
961     eval enable_$ac_useropt=no ;;
962
963   -docdir | --docdir | --docdi | --doc | --do)
964     ac_prev=docdir ;;
965   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966     docdir=$ac_optarg ;;
967
968   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969     ac_prev=dvidir ;;
970   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971     dvidir=$ac_optarg ;;
972
973   -enable-* | --enable-*)
974     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977       as_fn_error $? "invalid feature name: $ac_useropt"
978     ac_useropt_orig=$ac_useropt
979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980     case $ac_user_opts in
981       *"
982 "enable_$ac_useropt"
983 "*) ;;
984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985          ac_unrecognized_sep=', ';;
986     esac
987     eval enable_$ac_useropt=\$ac_optarg ;;
988
989   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991   | --exec | --exe | --ex)
992     ac_prev=exec_prefix ;;
993   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995   | --exec=* | --exe=* | --ex=*)
996     exec_prefix=$ac_optarg ;;
997
998   -gas | --gas | --ga | --g)
999     # Obsolete; use --with-gas.
1000     with_gas=yes ;;
1001
1002   -help | --help | --hel | --he | -h)
1003     ac_init_help=long ;;
1004   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005     ac_init_help=recursive ;;
1006   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007     ac_init_help=short ;;
1008
1009   -host | --host | --hos | --ho)
1010     ac_prev=host_alias ;;
1011   -host=* | --host=* | --hos=* | --ho=*)
1012     host_alias=$ac_optarg ;;
1013
1014   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015     ac_prev=htmldir ;;
1016   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017   | --ht=*)
1018     htmldir=$ac_optarg ;;
1019
1020   -includedir | --includedir | --includedi | --included | --include \
1021   | --includ | --inclu | --incl | --inc)
1022     ac_prev=includedir ;;
1023   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024   | --includ=* | --inclu=* | --incl=* | --inc=*)
1025     includedir=$ac_optarg ;;
1026
1027   -infodir | --infodir | --infodi | --infod | --info | --inf)
1028     ac_prev=infodir ;;
1029   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030     infodir=$ac_optarg ;;
1031
1032   -libdir | --libdir | --libdi | --libd)
1033     ac_prev=libdir ;;
1034   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035     libdir=$ac_optarg ;;
1036
1037   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038   | --libexe | --libex | --libe)
1039     ac_prev=libexecdir ;;
1040   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041   | --libexe=* | --libex=* | --libe=*)
1042     libexecdir=$ac_optarg ;;
1043
1044   -localedir | --localedir | --localedi | --localed | --locale)
1045     ac_prev=localedir ;;
1046   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047     localedir=$ac_optarg ;;
1048
1049   -localstatedir | --localstatedir | --localstatedi | --localstated \
1050   | --localstate | --localstat | --localsta | --localst | --locals)
1051     ac_prev=localstatedir ;;
1052   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054     localstatedir=$ac_optarg ;;
1055
1056   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057     ac_prev=mandir ;;
1058   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059     mandir=$ac_optarg ;;
1060
1061   -nfp | --nfp | --nf)
1062     # Obsolete; use --without-fp.
1063     with_fp=no ;;
1064
1065   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066   | --no-cr | --no-c | -n)
1067     no_create=yes ;;
1068
1069   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071     no_recursion=yes ;;
1072
1073   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075   | --oldin | --oldi | --old | --ol | --o)
1076     ac_prev=oldincludedir ;;
1077   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080     oldincludedir=$ac_optarg ;;
1081
1082   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083     ac_prev=prefix ;;
1084   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085     prefix=$ac_optarg ;;
1086
1087   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088   | --program-pre | --program-pr | --program-p)
1089     ac_prev=program_prefix ;;
1090   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092     program_prefix=$ac_optarg ;;
1093
1094   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095   | --program-suf | --program-su | --program-s)
1096     ac_prev=program_suffix ;;
1097   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099     program_suffix=$ac_optarg ;;
1100
1101   -program-transform-name | --program-transform-name \
1102   | --program-transform-nam | --program-transform-na \
1103   | --program-transform-n | --program-transform- \
1104   | --program-transform | --program-transfor \
1105   | --program-transfo | --program-transf \
1106   | --program-trans | --program-tran \
1107   | --progr-tra | --program-tr | --program-t)
1108     ac_prev=program_transform_name ;;
1109   -program-transform-name=* | --program-transform-name=* \
1110   | --program-transform-nam=* | --program-transform-na=* \
1111   | --program-transform-n=* | --program-transform-=* \
1112   | --program-transform=* | --program-transfor=* \
1113   | --program-transfo=* | --program-transf=* \
1114   | --program-trans=* | --program-tran=* \
1115   | --progr-tra=* | --program-tr=* | --program-t=*)
1116     program_transform_name=$ac_optarg ;;
1117
1118   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119     ac_prev=pdfdir ;;
1120   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121     pdfdir=$ac_optarg ;;
1122
1123   -psdir | --psdir | --psdi | --psd | --ps)
1124     ac_prev=psdir ;;
1125   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126     psdir=$ac_optarg ;;
1127
1128   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129   | -silent | --silent | --silen | --sile | --sil)
1130     silent=yes ;;
1131
1132   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133     ac_prev=sbindir ;;
1134   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135   | --sbi=* | --sb=*)
1136     sbindir=$ac_optarg ;;
1137
1138   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140   | --sharedst | --shareds | --shared | --share | --shar \
1141   | --sha | --sh)
1142     ac_prev=sharedstatedir ;;
1143   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146   | --sha=* | --sh=*)
1147     sharedstatedir=$ac_optarg ;;
1148
1149   -site | --site | --sit)
1150     ac_prev=site ;;
1151   -site=* | --site=* | --sit=*)
1152     site=$ac_optarg ;;
1153
1154   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155     ac_prev=srcdir ;;
1156   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157     srcdir=$ac_optarg ;;
1158
1159   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160   | --syscon | --sysco | --sysc | --sys | --sy)
1161     ac_prev=sysconfdir ;;
1162   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164     sysconfdir=$ac_optarg ;;
1165
1166   -target | --target | --targe | --targ | --tar | --ta | --t)
1167     ac_prev=target_alias ;;
1168   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169     target_alias=$ac_optarg ;;
1170
1171   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172     verbose=yes ;;
1173
1174   -version | --version | --versio | --versi | --vers | -V)
1175     ac_init_version=: ;;
1176
1177   -with-* | --with-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error $? "invalid package name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=\$ac_optarg ;;
1192
1193   -without-* | --without-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error $? "invalid package name: $ac_useropt"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=no ;;
1208
1209   --x)
1210     # Obsolete; use --with-x.
1211     with_x=yes ;;
1212
1213   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214   | --x-incl | --x-inc | --x-in | --x-i)
1215     ac_prev=x_includes ;;
1216   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218     x_includes=$ac_optarg ;;
1219
1220   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222     ac_prev=x_libraries ;;
1223   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225     x_libraries=$ac_optarg ;;
1226
1227   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1229     ;;
1230
1231   *=*)
1232     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233     # Reject names that are not valid shell variable names.
1234     case $ac_envvar in #(
1235       '' | [0-9]* | *[!_$as_cr_alnum]* )
1236       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237     esac
1238     eval $ac_envvar=\$ac_optarg
1239     export $ac_envvar ;;
1240
1241   *)
1242     # FIXME: should be removed in autoconf 3.0.
1243     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247     ;;
1248
1249   esac
1250 done
1251
1252 if test -n "$ac_prev"; then
1253   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254   as_fn_error $? "missing argument to $ac_option"
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258   case $enable_option_checking in
1259     no) ;;
1260     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262   esac
1263 fi
1264
1265 # Check all directory arguments for consistency.
1266 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267                 datadir sysconfdir sharedstatedir localstatedir includedir \
1268                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269                 libdir localedir mandir
1270 do
1271   eval ac_val=\$$ac_var
1272   # Remove trailing slashes.
1273   case $ac_val in
1274     */ )
1275       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276       eval $ac_var=\$ac_val;;
1277   esac
1278   # Be sure to have absolute directory names.
1279   case $ac_val in
1280     [\\/$]* | ?:[\\/]* )  continue;;
1281     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282   esac
1283   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1285
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295   if test "x$build_alias" = x; then
1296     cross_compiling=maybe
1297   elif test "x$build_alias" != "x$host_alias"; then
1298     cross_compiling=yes
1299   fi
1300 fi
1301
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305 test "$silent" = yes && exec 6>/dev/null
1306
1307
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311   as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313   as_fn_error $? "pwd does not report name of working directory"
1314
1315
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318   ac_srcdir_defaulted=yes
1319   # Try the directory containing this script, then the parent directory.
1320   ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322          X"$as_myself" : 'X\(//\)[^/]' \| \
1323          X"$as_myself" : 'X\(//\)$' \| \
1324          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)[^/].*/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)$/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\).*/{
1339             s//\1/
1340             q
1341           }
1342           s/.*/./; q'`
1343   srcdir=$ac_confdir
1344   if test ! -r "$srcdir/$ac_unique_file"; then
1345     srcdir=..
1346   fi
1347 else
1348   ac_srcdir_defaulted=no
1349 fi
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357         pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360   srcdir=.
1361 fi
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_env_${ac_var}_value=\$${ac_var}
1371   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1374
1375 #
1376 # Report the --help message.
1377 #
1378 if test "$ac_init_help" = "long"; then
1379   # Omit some internal or obsolete options to make the list less imposing.
1380   # This message is too long to be a string in the A/UX 3.1 sh.
1381   cat <<_ACEOF
1382 \`configure' configures nlopt 2.4.2 to adapt to many kinds of systems.
1383
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE.  See below for descriptions of some of the useful variables.
1388
1389 Defaults for the options are specified in brackets.
1390
1391 Configuration:
1392   -h, --help              display this help and exit
1393       --help=short        display options specific to this package
1394       --help=recursive    display the short help of all the included packages
1395   -V, --version           display version information and exit
1396   -q, --quiet, --silent   do not print \`checking ...' messages
1397       --cache-file=FILE   cache test results in FILE [disabled]
1398   -C, --config-cache      alias for \`--cache-file=config.cache'
1399   -n, --no-create         do not create output files
1400       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1401
1402 Installation directories:
1403   --prefix=PREFIX         install architecture-independent files in PREFIX
1404                           [$ac_default_prefix]
1405   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1406                           [PREFIX]
1407
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1412
1413 For better control, use the options below.
1414
1415 Fine tuning of the installation directories:
1416   --bindir=DIR            user executables [EPREFIX/bin]
1417   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1418   --libexecdir=DIR        program executables [EPREFIX/libexec]
1419   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1420   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1421   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1422   --libdir=DIR            object code libraries [EPREFIX/lib]
1423   --includedir=DIR        C header files [PREFIX/include]
1424   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1425   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1426   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1427   --infodir=DIR           info documentation [DATAROOTDIR/info]
1428   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1429   --mandir=DIR            man documentation [DATAROOTDIR/man]
1430   --docdir=DIR            documentation root [DATAROOTDIR/doc/nlopt]
1431   --htmldir=DIR           html documentation [DOCDIR]
1432   --dvidir=DIR            dvi documentation [DOCDIR]
1433   --pdfdir=DIR            pdf documentation [DOCDIR]
1434   --psdir=DIR             ps documentation [DOCDIR]
1435 _ACEOF
1436
1437   cat <<\_ACEOF
1438
1439 Program names:
1440   --program-prefix=PREFIX            prepend PREFIX to installed program names
1441   --program-suffix=SUFFIX            append SUFFIX to installed program names
1442   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1443
1444 System types:
1445   --build=BUILD     configure for building on BUILD [guessed]
1446   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451   case $ac_init_help in
1452      short | recursive ) echo "Configuration of nlopt 2.4.2:";;
1453    esac
1454   cat <<\_ACEOF
1455
1456 Optional Features:
1457   --disable-option-checking  ignore unrecognized --enable/--with options
1458   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1459   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1460   --enable-silent-rules   less verbose build output (undo: "make V=1")
1461   --disable-silent-rules  verbose build output (undo: "make V=0")
1462   --enable-maintainer-mode
1463                           enable make rules and dependencies not useful (and
1464                           sometimes confusing) to the casual installer
1465   --enable-shared[=PKGS]  build shared libraries [default=no]
1466   --enable-dependency-tracking
1467                           do not reject slow dependency extractors
1468   --disable-dependency-tracking
1469                           speeds up one-time build
1470   --enable-static[=PKGS]  build static libraries [default=yes]
1471   --enable-fast-install[=PKGS]
1472                           optimize for fast installation [default=yes]
1473   --disable-libtool-lock  avoid locking (might break parallel builds)
1474   --enable-debug          compile with extra runtime checks for debugging
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1480                           both]
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482   --with-sysroot=DIR Search for dependent libraries within DIR
1483                         (or the compiler's sysroot if not specified).
1484   --with-cxx              include C++-based routines
1485   --with-mthreads         use -mthreads compiler flag
1486   --without-threadlocal   no thread-local storage keyword
1487   --without-guile         don't compile Guile plugin
1488   --without-python        don't compile Python plugin
1489   --without-octave        don't compile Octave plugin
1490   --without-matlab        don't compile Matlab plugin
1491
1492 Some influential environment variables:
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496               nonstandard directory <lib dir>
1497   LIBS        libraries to pass to the linker, e.g. -l<library>
1498   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499               you have headers in a nonstandard directory <include dir>
1500   CPP         C preprocessor
1501   CXX         C++ compiler command
1502   CXXFLAGS    C++ compiler flags
1503   CXXCPP      C++ preprocessor
1504   GUILE_INSTALL_DIR
1505               where to install Guile plug-ins
1506   PYTHON      the Python interpreter
1507   PYTHON_CONFIG
1508               python-config program
1509   OCT_INSTALL_DIR
1510               where to install GNU Octave .oct plug-ins
1511   M_INSTALL_DIR
1512               where to install GNU Octave .m plug-ins
1513   MKOCTFILE   name of mkoctfile program to compile Octave plug-ins
1514   MEX_INSTALL_DIR
1515               where to install Matlab .mex plug-ins
1516   MEX         name of mex program to compile Matlab plug-ins
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 Report bugs to <stevenj@alum.mit.edu>.
1522 _ACEOF
1523 ac_status=$?
1524 fi
1525
1526 if test "$ac_init_help" = "recursive"; then
1527   # If there are subdirs, report their specific --help.
1528   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1529     test -d "$ac_dir" ||
1530       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1531       continue
1532     ac_builddir=.
1533
1534 case "$ac_dir" in
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *)
1537   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1538   # A ".." for each directory in $ac_dir_suffix.
1539   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1540   case $ac_top_builddir_sub in
1541   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543   esac ;;
1544 esac
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1549
1550 case $srcdir in
1551   .)  # We are building in place.
1552     ac_srcdir=.
1553     ac_top_srcdir=$ac_top_builddir_sub
1554     ac_abs_top_srcdir=$ac_pwd ;;
1555   [\\/]* | ?:[\\/]* )  # Absolute name.
1556     ac_srcdir=$srcdir$ac_dir_suffix;
1557     ac_top_srcdir=$srcdir
1558     ac_abs_top_srcdir=$srcdir ;;
1559   *) # Relative name.
1560     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561     ac_top_srcdir=$ac_top_build_prefix$srcdir
1562     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 esac
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566     cd "$ac_dir" || { ac_status=$?; continue; }
1567     # Check for guested configure.
1568     if test -f "$ac_srcdir/configure.gnu"; then
1569       echo &&
1570       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571     elif test -f "$ac_srcdir/configure"; then
1572       echo &&
1573       $SHELL "$ac_srcdir/configure" --help=recursive
1574     else
1575       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576     fi || ac_status=$?
1577     cd "$ac_pwd" || { ac_status=$?; break; }
1578   done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583   cat <<\_ACEOF
1584 nlopt configure 2.4.2
1585 generated by GNU Autoconf 2.69
1586
1587 Copyright (C) 2012 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591   exit
1592 fi
1593
1594 ## ------------------------ ##
1595 ## Autoconf initialization. ##
1596 ## ------------------------ ##
1597
1598 # ac_fn_c_try_compile LINENO
1599 # --------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_compile ()
1602 {
1603   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604   rm -f conftest.$ac_objext
1605   if { { ac_try="$ac_compile"
1606 case "(($ac_try" in
1607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608   *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612   (eval "$ac_compile") 2>conftest.err
1613   ac_status=$?
1614   if test -s conftest.err; then
1615     grep -v '^ *+' conftest.err >conftest.er1
1616     cat conftest.er1 >&5
1617     mv -f conftest.er1 conftest.err
1618   fi
1619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620   test $ac_status = 0; } && {
1621          test -z "$ac_c_werror_flag" ||
1622          test ! -s conftest.err
1623        } && test -s conftest.$ac_objext; then :
1624   ac_retval=0
1625 else
1626   $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629         ac_retval=1
1630 fi
1631   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632   as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_link ()
1640 {
1641   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642   rm -f conftest.$ac_objext conftest$ac_exeext
1643   if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646   *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650   (eval "$ac_link") 2>conftest.err
1651   ac_status=$?
1652   if test -s conftest.err; then
1653     grep -v '^ *+' conftest.err >conftest.er1
1654     cat conftest.er1 >&5
1655     mv -f conftest.er1 conftest.err
1656   fi
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; } && {
1659          test -z "$ac_c_werror_flag" ||
1660          test ! -s conftest.err
1661        } && test -s conftest$ac_exeext && {
1662          test "$cross_compiling" = yes ||
1663          test -x conftest$ac_exeext
1664        }; then :
1665   ac_retval=0
1666 else
1667   $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670         ac_retval=1
1671 fi
1672   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674   # interfere with the next link command; also delete a directory that is
1675   # left behind by Apple's compiler.  We do this before executing the actions.
1676   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678   as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_link
1681
1682 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists and can be compiled using the include files in
1685 # INCLUDES, setting the cache variable VAR accordingly.
1686 ac_fn_c_check_header_compile ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692   $as_echo_n "(cached) " >&6
1693 else
1694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h.  */
1696 $4
1697 #include <$2>
1698 _ACEOF
1699 if ac_fn_c_try_compile "$LINENO"; then :
1700   eval "$3=yes"
1701 else
1702   eval "$3=no"
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1705 fi
1706 eval ac_res=\$$3
1707                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711 } # ac_fn_c_check_header_compile
1712
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_cpp ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   if { { ac_try="$ac_cpp conftest.$ac_ext"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727   ac_status=$?
1728   if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732   fi
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } > conftest.i && {
1735          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736          test ! -s conftest.err
1737        }; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743     ac_retval=1
1744 fi
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_cpp
1749
1750 # ac_fn_c_try_run LINENO
1751 # ----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753 # that executables *can* be run.
1754 ac_fn_c_try_run ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_link") 2>&5
1765   ac_status=$?
1766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768   { { case "(($ac_try" in
1769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770   *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774   (eval "$ac_try") 2>&5
1775   ac_status=$?
1776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777   test $ac_status = 0; }; }; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: program exited with status $ac_status" >&5
1781        $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784        ac_retval=$ac_status
1785 fi
1786   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788   as_fn_set_status $ac_retval
1789
1790 } # ac_fn_c_try_run
1791
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1796 {
1797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801   $as_echo_n "(cached) " >&6
1802 else
1803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h.  */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1807 #define $2 innocuous_$2
1808
1809 /* System header to define __stub macros and hopefully few prototypes,
1810     which can conflict with char $2 (); below.
1811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812     <limits.h> exists even on freestanding compilers.  */
1813
1814 #ifdef __STDC__
1815 # include <limits.h>
1816 #else
1817 # include <assert.h>
1818 #endif
1819
1820 #undef $2
1821
1822 /* Override any GCC internal prototype to avoid an error.
1823    Use char because int might match the return type of a GCC
1824    builtin and then its argument prototype would still apply.  */
1825 #ifdef __cplusplus
1826 extern "C"
1827 #endif
1828 char $2 ();
1829 /* The GNU C library defines this for functions which it implements
1830     to always fail with ENOSYS.  Some functions are actually named
1831     something starting with __ and the normal name is an alias.  */
1832 #if defined __stub_$2 || defined __stub___$2
1833 choke me
1834 #endif
1835
1836 int
1837 main ()
1838 {
1839 return $2 ();
1840   ;
1841   return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_link "$LINENO"; then :
1845   eval "$3=yes"
1846 else
1847   eval "$3=no"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext \
1850     conftest$ac_exeext conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857 } # ac_fn_c_check_func
1858
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   rm -f conftest.$ac_objext
1866   if { { ac_try="$ac_compile"
1867 case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873   (eval "$ac_compile") 2>conftest.err
1874   ac_status=$?
1875   if test -s conftest.err; then
1876     grep -v '^ *+' conftest.err >conftest.er1
1877     cat conftest.er1 >&5
1878     mv -f conftest.er1 conftest.err
1879   fi
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && {
1882          test -z "$ac_cxx_werror_flag" ||
1883          test ! -s conftest.err
1884        } && test -s conftest.$ac_objext; then :
1885   ac_retval=0
1886 else
1887   $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890         ac_retval=1
1891 fi
1892   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893   as_fn_set_status $ac_retval
1894
1895 } # ac_fn_cxx_try_compile
1896
1897 # ac_fn_cxx_try_cpp LINENO
1898 # ------------------------
1899 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_cpp ()
1901 {
1902   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903   if { { ac_try="$ac_cpp conftest.$ac_ext"
1904 case "(($ac_try" in
1905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906   *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1911   ac_status=$?
1912   if test -s conftest.err; then
1913     grep -v '^ *+' conftest.err >conftest.er1
1914     cat conftest.er1 >&5
1915     mv -f conftest.er1 conftest.err
1916   fi
1917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918   test $ac_status = 0; } > conftest.i && {
1919          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1920          test ! -s conftest.err
1921        }; then :
1922   ac_retval=0
1923 else
1924   $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927     ac_retval=1
1928 fi
1929   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930   as_fn_set_status $ac_retval
1931
1932 } # ac_fn_cxx_try_cpp
1933
1934 # ac_fn_cxx_try_link LINENO
1935 # -------------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_cxx_try_link ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   rm -f conftest.$ac_objext conftest$ac_exeext
1941   if { { ac_try="$ac_link"
1942 case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_link") 2>conftest.err
1949   ac_status=$?
1950   if test -s conftest.err; then
1951     grep -v '^ *+' conftest.err >conftest.er1
1952     cat conftest.er1 >&5
1953     mv -f conftest.er1 conftest.err
1954   fi
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; } && {
1957          test -z "$ac_cxx_werror_flag" ||
1958          test ! -s conftest.err
1959        } && test -s conftest$ac_exeext && {
1960          test "$cross_compiling" = yes ||
1961          test -x conftest$ac_exeext
1962        }; then :
1963   ac_retval=0
1964 else
1965   $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968         ac_retval=1
1969 fi
1970   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972   # interfere with the next link command; also delete a directory that is
1973   # left behind by Apple's compiler.  We do this before executing the actions.
1974   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976   as_fn_set_status $ac_retval
1977
1978 } # ac_fn_cxx_try_link
1979
1980 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1983 # the include files in INCLUDES and setting the cache variable VAR
1984 # accordingly.
1985 ac_fn_c_check_header_mongrel ()
1986 {
1987   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988   if eval \${$3+:} false; then :
1989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992   $as_echo_n "(cached) " >&6
1993 fi
1994 eval ac_res=\$$3
1995                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 else
1998   # Is the header compilable?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2000 $as_echo_n "checking $2 usability... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $4
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007   ac_header_compiler=yes
2008 else
2009   ac_header_compiler=no
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2013 $as_echo "$ac_header_compiler" >&6; }
2014
2015 # Is the header present?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2017 $as_echo_n "checking $2 presence... " >&6; }
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 #include <$2>
2021 _ACEOF
2022 if ac_fn_c_try_cpp "$LINENO"; then :
2023   ac_header_preproc=yes
2024 else
2025   ac_header_preproc=no
2026 fi
2027 rm -f conftest.err conftest.i conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2029 $as_echo "$ac_header_preproc" >&6; }
2030
2031 # So?  What about this header?
2032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2033   yes:no: )
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2035 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038     ;;
2039   no:yes:* )
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2041 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2042     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2043 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2044     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2045 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2046     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2047 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2048     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 ( $as_echo "## ----------------------------------- ##
2051 ## Report this to stevenj@alum.mit.edu ##
2052 ## ----------------------------------- ##"
2053      ) | sed "s/^/$as_me: WARNING:     /" >&2
2054     ;;
2055 esac
2056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059   $as_echo_n "(cached) " >&6
2060 else
2061   eval "$3=\$ac_header_compiler"
2062 fi
2063 eval ac_res=\$$3
2064                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 fi
2067   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068
2069 } # ac_fn_c_check_header_mongrel
2070
2071 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072 # --------------------------------------------
2073 # Tries to find the compile-time value of EXPR in a program that includes
2074 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2075 # computed
2076 ac_fn_c_compute_int ()
2077 {
2078   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079   if test "$cross_compiling" = yes; then
2080     # Depending upon the size, compute the lo and hi bounds.
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h.  */
2083 $4
2084 int
2085 main ()
2086 {
2087 static int test_array [1 - 2 * !(($2) >= 0)];
2088 test_array [0] = 0;
2089 return test_array [0];
2090
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096   ac_lo=0 ac_mid=0
2097   while :; do
2098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 test_array [0] = 0;
2106 return test_array [0];
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113   ac_hi=$ac_mid; break
2114 else
2115   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2116                         if test $ac_lo -le $ac_mid; then
2117                           ac_lo= ac_hi=
2118                           break
2119                         fi
2120                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123   done
2124 else
2125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h.  */
2127 $4
2128 int
2129 main ()
2130 {
2131 static int test_array [1 - 2 * !(($2) < 0)];
2132 test_array [0] = 0;
2133 return test_array [0];
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140   ac_hi=-1 ac_mid=-1
2141   while :; do
2142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h.  */
2144 $4
2145 int
2146 main ()
2147 {
2148 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2149 test_array [0] = 0;
2150 return test_array [0];
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157   ac_lo=$ac_mid; break
2158 else
2159   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160                         if test $ac_mid -le $ac_hi; then
2161                           ac_lo= ac_hi=
2162                           break
2163                         fi
2164                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167   done
2168 else
2169   ac_lo= ac_hi=
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h.  */
2179 $4
2180 int
2181 main ()
2182 {
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2184 test_array [0] = 0;
2185 return test_array [0];
2186
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192   ac_hi=$ac_mid
2193 else
2194   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 done
2198 case $ac_lo in #((
2199 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2200 '') ac_retval=1 ;;
2201 esac
2202   else
2203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h.  */
2205 $4
2206 static long int longval () { return $2; }
2207 static unsigned long int ulongval () { return $2; }
2208 #include <stdio.h>
2209 #include <stdlib.h>
2210 int
2211 main ()
2212 {
2213
2214   FILE *f = fopen ("conftest.val", "w");
2215   if (! f)
2216     return 1;
2217   if (($2) < 0)
2218     {
2219       long int i = longval ();
2220       if (i != ($2))
2221         return 1;
2222       fprintf (f, "%ld", i);
2223     }
2224   else
2225     {
2226       unsigned long int i = ulongval ();
2227       if (i != ($2))
2228         return 1;
2229       fprintf (f, "%lu", i);
2230     }
2231   /* Do not output a trailing newline, as this causes \r\n confusion
2232      on some platforms.  */
2233   return ferror (f) || fclose (f) != 0;
2234
2235   ;
2236   return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_run "$LINENO"; then :
2240   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2241 else
2242   ac_retval=1
2243 fi
2244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2245   conftest.$ac_objext conftest.beam conftest.$ac_ext
2246 rm -f conftest.val
2247
2248   fi
2249   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250   as_fn_set_status $ac_retval
2251
2252 } # ac_fn_c_compute_int
2253
2254 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2255 # -------------------------------------------
2256 # Tests whether TYPE exists after having included INCLUDES, setting cache
2257 # variable VAR accordingly.
2258 ac_fn_c_check_type ()
2259 {
2260   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262 $as_echo_n "checking for $2... " >&6; }
2263 if eval \${$3+:} false; then :
2264   $as_echo_n "(cached) " >&6
2265 else
2266   eval "$3=no"
2267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h.  */
2269 $4
2270 int
2271 main ()
2272 {
2273 if (sizeof ($2))
2274          return 0;
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h.  */
2282 $4
2283 int
2284 main ()
2285 {
2286 if (sizeof (($2)))
2287             return 0;
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293
2294 else
2295   eval "$3=yes"
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 fi
2301 eval ac_res=\$$3
2302                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305
2306 } # ac_fn_c_check_type
2307 cat >config.log <<_ACEOF
2308 This file contains any messages produced by compilers while
2309 running configure, to aid debugging if configure makes a mistake.
2310
2311 It was created by nlopt $as_me 2.4.2, which was
2312 generated by GNU Autoconf 2.69.  Invocation command line was
2313
2314   $ $0 $@
2315
2316 _ACEOF
2317 exec 5>>config.log
2318 {
2319 cat <<_ASUNAME
2320 ## --------- ##
2321 ## Platform. ##
2322 ## --------- ##
2323
2324 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2329
2330 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2332
2333 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2334 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2335 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2337 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2338 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2339 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2340
2341 _ASUNAME
2342
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348     $as_echo "PATH: $as_dir"
2349   done
2350 IFS=$as_save_IFS
2351
2352 } >&5
2353
2354 cat >&5 <<_ACEOF
2355
2356
2357 ## ----------- ##
2358 ## Core tests. ##
2359 ## ----------- ##
2360
2361 _ACEOF
2362
2363
2364 # Keep a trace of the command line.
2365 # Strip out --no-create and --no-recursion so they do not pile up.
2366 # Strip out --silent because we don't want to record it for future runs.
2367 # Also quote any args containing shell meta-characters.
2368 # Make two passes to allow for proper duplicate-argument suppression.
2369 ac_configure_args=
2370 ac_configure_args0=
2371 ac_configure_args1=
2372 ac_must_keep_next=false
2373 for ac_pass in 1 2
2374 do
2375   for ac_arg
2376   do
2377     case $ac_arg in
2378     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380     | -silent | --silent | --silen | --sile | --sil)
2381       continue ;;
2382     *\'*)
2383       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384     esac
2385     case $ac_pass in
2386     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387     2)
2388       as_fn_append ac_configure_args1 " '$ac_arg'"
2389       if test $ac_must_keep_next = true; then
2390         ac_must_keep_next=false # Got value, back to normal.
2391       else
2392         case $ac_arg in
2393           *=* | --config-cache | -C | -disable-* | --disable-* \
2394           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396           | -with-* | --with-* | -without-* | --without-* | --x)
2397             case "$ac_configure_args0 " in
2398               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399             esac
2400             ;;
2401           -* ) ac_must_keep_next=true ;;
2402         esac
2403       fi
2404       as_fn_append ac_configure_args " '$ac_arg'"
2405       ;;
2406     esac
2407   done
2408 done
2409 { ac_configure_args0=; unset ac_configure_args0;}
2410 { ac_configure_args1=; unset ac_configure_args1;}
2411
2412 # When interrupted or exit'd, cleanup temporary files, and complete
2413 # config.log.  We remove comments because anyway the quotes in there
2414 # would cause problems or look ugly.
2415 # WARNING: Use '\'' to represent an apostrophe within the trap.
2416 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417 trap 'exit_status=$?
2418   # Save into config.log some information that might help in debugging.
2419   {
2420     echo
2421
2422     $as_echo "## ---------------- ##
2423 ## Cache variables. ##
2424 ## ---------------- ##"
2425     echo
2426     # The following way of writing the cache mishandles newlines in values,
2427 (
2428   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429     eval ac_val=\$$ac_var
2430     case $ac_val in #(
2431     *${as_nl}*)
2432       case $ac_var in #(
2433       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435       esac
2436       case $ac_var in #(
2437       _ | IFS | as_nl) ;; #(
2438       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439       *) { eval $ac_var=; unset $ac_var;} ;;
2440       esac ;;
2441     esac
2442   done
2443   (set) 2>&1 |
2444     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445     *${as_nl}ac_space=\ *)
2446       sed -n \
2447         "s/'\''/'\''\\\\'\'''\''/g;
2448           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449       ;; #(
2450     *)
2451       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2452       ;;
2453     esac |
2454     sort
2455 )
2456     echo
2457
2458     $as_echo "## ----------------- ##
2459 ## Output variables. ##
2460 ## ----------------- ##"
2461     echo
2462     for ac_var in $ac_subst_vars
2463     do
2464       eval ac_val=\$$ac_var
2465       case $ac_val in
2466       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467       esac
2468       $as_echo "$ac_var='\''$ac_val'\''"
2469     done | sort
2470     echo
2471
2472     if test -n "$ac_subst_files"; then
2473       $as_echo "## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##"
2476       echo
2477       for ac_var in $ac_subst_files
2478       do
2479         eval ac_val=\$$ac_var
2480         case $ac_val in
2481         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482         esac
2483         $as_echo "$ac_var='\''$ac_val'\''"
2484       done | sort
2485       echo
2486     fi
2487
2488     if test -s confdefs.h; then
2489       $as_echo "## ----------- ##
2490 ## confdefs.h. ##
2491 ## ----------- ##"
2492       echo
2493       cat confdefs.h
2494       echo
2495     fi
2496     test "$ac_signal" != 0 &&
2497       $as_echo "$as_me: caught signal $ac_signal"
2498     $as_echo "$as_me: exit $exit_status"
2499   } >&5
2500   rm -f core *.core core.conftest.* &&
2501     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2502     exit $exit_status
2503 ' 0
2504 for ac_signal in 1 2 13 15; do
2505   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2506 done
2507 ac_signal=0
2508
2509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2510 rm -f -r conftest* confdefs.h
2511
2512 $as_echo "/* confdefs.h */" > confdefs.h
2513
2514 # Predefined preprocessor variables.
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_NAME "$PACKAGE_NAME"
2518 _ACEOF
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2522 _ACEOF
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2526 _ACEOF
2527
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_STRING "$PACKAGE_STRING"
2530 _ACEOF
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534 _ACEOF
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_URL "$PACKAGE_URL"
2538 _ACEOF
2539
2540
2541 # Let the site file select an alternate cache file if it wants to.
2542 # Prefer an explicitly selected file to automatically selected ones.
2543 ac_site_file1=NONE
2544 ac_site_file2=NONE
2545 if test -n "$CONFIG_SITE"; then
2546   # We do not want a PATH search for config.site.
2547   case $CONFIG_SITE in #((
2548     -*)  ac_site_file1=./$CONFIG_SITE;;
2549     */*) ac_site_file1=$CONFIG_SITE;;
2550     *)   ac_site_file1=./$CONFIG_SITE;;
2551   esac
2552 elif test "x$prefix" != xNONE; then
2553   ac_site_file1=$prefix/share/config.site
2554   ac_site_file2=$prefix/etc/config.site
2555 else
2556   ac_site_file1=$ac_default_prefix/share/config.site
2557   ac_site_file2=$ac_default_prefix/etc/config.site
2558 fi
2559 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2560 do
2561   test "x$ac_site_file" = xNONE && continue
2562   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565     sed 's/^/| /' "$ac_site_file" >&5
2566     . "$ac_site_file" \
2567       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 as_fn_error $? "failed to load site script $ac_site_file
2570 See \`config.log' for more details" "$LINENO" 5; }
2571   fi
2572 done
2573
2574 if test -r "$cache_file"; then
2575   # Some versions of bash will fail to source /dev/null (special files
2576   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2577   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2580     case $cache_file in
2581       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582       *)                      . "./$cache_file";;
2583     esac
2584   fi
2585 else
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2588   >$cache_file
2589 fi
2590
2591 # Check that the precious variables saved in the cache have kept the same
2592 # value.
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596   eval ac_new_set=\$ac_env_${ac_var}_set
2597   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598   eval ac_new_val=\$ac_env_${ac_var}_value
2599   case $ac_old_set,$ac_new_set in
2600     set,)
2601       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603       ac_cache_corrupted=: ;;
2604     ,set)
2605       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607       ac_cache_corrupted=: ;;
2608     ,);;
2609     *)
2610       if test "x$ac_old_val" != "x$ac_new_val"; then
2611         # differences in whitespace do not lead to failure.
2612         ac_old_val_w=`echo x $ac_old_val`
2613         ac_new_val_w=`echo x $ac_new_val`
2614         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617           ac_cache_corrupted=:
2618         else
2619           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621           eval $ac_var=\$ac_old_val
2622         fi
2623         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2624 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2625         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2627       fi;;
2628   esac
2629   # Pass precious variables to config.status.
2630   if test "$ac_new_set" = set; then
2631     case $ac_new_val in
2632     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633     *) ac_arg=$ac_var=$ac_new_val ;;
2634     esac
2635     case " $ac_configure_args " in
2636       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2637       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638     esac
2639   fi
2640 done
2641 if $ac_cache_corrupted; then
2642   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647 fi
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2651
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657
2658
2659
2660 SHARED_VERSION_INFO="8:2:8" # CURRENT:REVISION:AGE
2661
2662 am__api_version='1.14'
2663
2664 ac_aux_dir=
2665 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2666   if test -f "$ac_dir/install-sh"; then
2667     ac_aux_dir=$ac_dir
2668     ac_install_sh="$ac_aux_dir/install-sh -c"
2669     break
2670   elif test -f "$ac_dir/install.sh"; then
2671     ac_aux_dir=$ac_dir
2672     ac_install_sh="$ac_aux_dir/install.sh -c"
2673     break
2674   elif test -f "$ac_dir/shtool"; then
2675     ac_aux_dir=$ac_dir
2676     ac_install_sh="$ac_aux_dir/shtool install -c"
2677     break
2678   fi
2679 done
2680 if test -z "$ac_aux_dir"; then
2681   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2682 fi
2683
2684 # These three variables are undocumented and unsupported,
2685 # and are intended to be withdrawn in a future Autoconf release.
2686 # They can cause serious problems if a builder's source tree is in a directory
2687 # whose full name contains unusual characters.
2688 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2689 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2690 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2691
2692
2693 # Find a good install program.  We prefer a C program (faster),
2694 # so one script is as good as another.  But avoid the broken or
2695 # incompatible versions:
2696 # SysV /etc/install, /usr/sbin/install
2697 # SunOS /usr/etc/install
2698 # IRIX /sbin/install
2699 # AIX /bin/install
2700 # AmigaOS /C/install, which installs bootblocks on floppy discs
2701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2704 # OS/2's system install, which has a completely different semantic
2705 # ./install, which can be erroneously created by make from ./install.sh.
2706 # Reject install programs that cannot install multiple files.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2708 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2709 if test -z "$INSTALL"; then
2710 if ${ac_cv_path_install+:} false; then :
2711   $as_echo_n "(cached) " >&6
2712 else
2713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716   IFS=$as_save_IFS
2717   test -z "$as_dir" && as_dir=.
2718     # Account for people who put trailing slashes in PATH elements.
2719 case $as_dir/ in #((
2720   ./ | .// | /[cC]/* | \
2721   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2722   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2723   /usr/ucb/* ) ;;
2724   *)
2725     # OSF1 and SCO ODT 3.0 have their own names for install.
2726     # Don't use installbsd from OSF since it installs stuff as root
2727     # by default.
2728     for ac_prog in ginstall scoinst install; do
2729       for ac_exec_ext in '' $ac_executable_extensions; do
2730         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2731           if test $ac_prog = install &&
2732             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2733             # AIX install.  It has an incompatible calling convention.
2734             :
2735           elif test $ac_prog = install &&
2736             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2737             # program-specific install script used by HP pwplus--don't use.
2738             :
2739           else
2740             rm -rf conftest.one conftest.two conftest.dir
2741             echo one > conftest.one
2742             echo two > conftest.two
2743             mkdir conftest.dir
2744             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2745               test -s conftest.one && test -s conftest.two &&
2746               test -s conftest.dir/conftest.one &&
2747               test -s conftest.dir/conftest.two
2748             then
2749               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2750               break 3
2751             fi
2752           fi
2753         fi
2754       done
2755     done
2756     ;;
2757 esac
2758
2759   done
2760 IFS=$as_save_IFS
2761
2762 rm -rf conftest.one conftest.two conftest.dir
2763
2764 fi
2765   if test "${ac_cv_path_install+set}" = set; then
2766     INSTALL=$ac_cv_path_install
2767   else
2768     # As a last resort, use the slow shell script.  Don't cache a
2769     # value for INSTALL within a source directory, because that will
2770     # break other packages using the cache if that directory is
2771     # removed, or if the value is a relative name.
2772     INSTALL=$ac_install_sh
2773   fi
2774 fi
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2776 $as_echo "$INSTALL" >&6; }
2777
2778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2779 # It thinks the first close brace ends the variable substitution.
2780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2781
2782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2783
2784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2787 $as_echo_n "checking whether build environment is sane... " >&6; }
2788 # Reject unsafe characters in $srcdir or the absolute working directory
2789 # name.  Accept space and tab only in the latter.
2790 am_lf='
2791 '
2792 case `pwd` in
2793   *[\\\"\#\$\&\'\`$am_lf]*)
2794     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2795 esac
2796 case $srcdir in
2797   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2798     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2799 esac
2800
2801 # Do 'set' in a subshell so we don't clobber the current shell's
2802 # arguments.  Must try -L first in case configure is actually a
2803 # symlink; some systems play weird games with the mod time of symlinks
2804 # (eg FreeBSD returns the mod time of the symlink's containing
2805 # directory).
2806 if (
2807    am_has_slept=no
2808    for am_try in 1 2; do
2809      echo "timestamp, slept: $am_has_slept" > conftest.file
2810      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2811      if test "$*" = "X"; then
2812         # -L didn't work.
2813         set X `ls -t "$srcdir/configure" conftest.file`
2814      fi
2815      if test "$*" != "X $srcdir/configure conftest.file" \
2816         && test "$*" != "X conftest.file $srcdir/configure"; then
2817
2818         # If neither matched, then we have a broken ls.  This can happen
2819         # if, for instance, CONFIG_SHELL is bash and it inherits a
2820         # broken ls alias from the environment.  This has actually
2821         # happened.  Such a system could not be considered "sane".
2822         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2823   alias in your environment" "$LINENO" 5
2824      fi
2825      if test "$2" = conftest.file || test $am_try -eq 2; then
2826        break
2827      fi
2828      # Just in case.
2829      sleep 1
2830      am_has_slept=yes
2831    done
2832    test "$2" = conftest.file
2833    )
2834 then
2835    # Ok.
2836    :
2837 else
2838    as_fn_error $? "newly created file is older than distributed files!
2839 Check your system clock" "$LINENO" 5
2840 fi
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2842 $as_echo "yes" >&6; }
2843 # If we didn't sleep, we still need to ensure time stamps of config.status and
2844 # generated files are strictly newer.
2845 am_sleep_pid=
2846 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2847   ( sleep 1 ) &
2848   am_sleep_pid=$!
2849 fi
2850
2851 rm -f conftest.file
2852
2853 test "$program_prefix" != NONE &&
2854   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2855 # Use a double $ so make ignores it.
2856 test "$program_suffix" != NONE &&
2857   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2858 # Double any \ or $.
2859 # By default was `s,x,x', remove it if useless.
2860 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2861 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2862
2863 # expand $ac_aux_dir to an absolute path
2864 am_aux_dir=`cd $ac_aux_dir && pwd`
2865
2866 if test x"${MISSING+set}" != xset; then
2867   case $am_aux_dir in
2868   *\ * | *\     *)
2869     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2870   *)
2871     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2872   esac
2873 fi
2874 # Use eval to expand $SHELL
2875 if eval "$MISSING --is-lightweight"; then
2876   am_missing_run="$MISSING "
2877 else
2878   am_missing_run=
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2880 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2881 fi
2882
2883 if test x"${install_sh}" != xset; then
2884   case $am_aux_dir in
2885   *\ * | *\     *)
2886     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887   *)
2888     install_sh="\${SHELL} $am_aux_dir/install-sh"
2889   esac
2890 fi
2891
2892 # Installed binaries are usually stripped using 'strip' when the user
2893 # run "make install-strip".  However 'strip' might not be the right
2894 # tool to use in cross-compilation environments, therefore Automake
2895 # will honor the 'STRIP' environment variable to overrule this program.
2896 if test "$cross_compiling" != no; then
2897   if test -n "$ac_tool_prefix"; then
2898   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899 set dummy ${ac_tool_prefix}strip; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_STRIP+:} false; then :
2903   $as_echo_n "(cached) " >&6
2904 else
2905   if test -n "$STRIP"; then
2906   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911   IFS=$as_save_IFS
2912   test -z "$as_dir" && as_dir=.
2913     for ac_exec_ext in '' $ac_executable_extensions; do
2914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917     break 2
2918   fi
2919 done
2920   done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 STRIP=$ac_cv_prog_STRIP
2926 if test -n "$STRIP"; then
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2928 $as_echo "$STRIP" >&6; }
2929 else
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 fi
2933
2934
2935 fi
2936 if test -z "$ac_cv_prog_STRIP"; then
2937   ac_ct_STRIP=$STRIP
2938   # Extract the first word of "strip", so it can be a program name with args.
2939 set dummy strip; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2943   $as_echo_n "(cached) " >&6
2944 else
2945   if test -n "$ac_ct_STRIP"; then
2946   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953     for ac_exec_ext in '' $ac_executable_extensions; do
2954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955     ac_cv_prog_ac_ct_STRIP="strip"
2956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960   done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2966 if test -n "$ac_ct_STRIP"; then
2967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2968 $as_echo "$ac_ct_STRIP" >&6; }
2969 else
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974   if test "x$ac_ct_STRIP" = x; then
2975     STRIP=":"
2976   else
2977     case $cross_compiling:$ac_tool_warned in
2978 yes:)
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2981 ac_tool_warned=yes ;;
2982 esac
2983     STRIP=$ac_ct_STRIP
2984   fi
2985 else
2986   STRIP="$ac_cv_prog_STRIP"
2987 fi
2988
2989 fi
2990 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2991
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2993 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2994 if test -z "$MKDIR_P"; then
2995   if ${ac_cv_path_mkdir+:} false; then :
2996   $as_echo_n "(cached) " >&6
2997 else
2998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3000 do
3001   IFS=$as_save_IFS
3002   test -z "$as_dir" && as_dir=.
3003     for ac_prog in mkdir gmkdir; do
3004          for ac_exec_ext in '' $ac_executable_extensions; do
3005            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3006            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3007              'mkdir (GNU coreutils) '* | \
3008              'mkdir (coreutils) '* | \
3009              'mkdir (fileutils) '4.1*)
3010                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3011                break 3;;
3012            esac
3013          done
3014        done
3015   done
3016 IFS=$as_save_IFS
3017
3018 fi
3019
3020   test -d ./--version && rmdir ./--version
3021   if test "${ac_cv_path_mkdir+set}" = set; then
3022     MKDIR_P="$ac_cv_path_mkdir -p"
3023   else
3024     # As a last resort, use the slow shell script.  Don't cache a
3025     # value for MKDIR_P within a source directory, because that will
3026     # break other packages using the cache if that directory is
3027     # removed, or if the value is a relative name.
3028     MKDIR_P="$ac_install_sh -d"
3029   fi
3030 fi
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3032 $as_echo "$MKDIR_P" >&6; }
3033
3034 for ac_prog in gawk mawk nawk awk
3035 do
3036   # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_AWK+:} false; then :
3041   $as_echo_n "(cached) " >&6
3042 else
3043   if test -n "$AWK"; then
3044   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049   IFS=$as_save_IFS
3050   test -z "$as_dir" && as_dir=.
3051     for ac_exec_ext in '' $ac_executable_extensions; do
3052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053     ac_cv_prog_AWK="$ac_prog"
3054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055     break 2
3056   fi
3057 done
3058   done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 AWK=$ac_cv_prog_AWK
3064 if test -n "$AWK"; then
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3066 $as_echo "$AWK" >&6; }
3067 else
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073   test -n "$AWK" && break
3074 done
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3077 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3078 set x ${MAKE-make}
3079 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3080 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3081   $as_echo_n "(cached) " >&6
3082 else
3083   cat >conftest.make <<\_ACEOF
3084 SHELL = /bin/sh
3085 all:
3086         @echo '@@@%%%=$(MAKE)=@@@%%%'
3087 _ACEOF
3088 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3089 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3090   *@@@%%%=?*=@@@%%%*)
3091     eval ac_cv_prog_make_${ac_make}_set=yes;;
3092   *)
3093     eval ac_cv_prog_make_${ac_make}_set=no;;
3094 esac
3095 rm -f conftest.make
3096 fi
3097 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099 $as_echo "yes" >&6; }
3100   SET_MAKE=
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104   SET_MAKE="MAKE=${MAKE-make}"
3105 fi
3106
3107 rm -rf .tst 2>/dev/null
3108 mkdir .tst 2>/dev/null
3109 if test -d .tst; then
3110   am__leading_dot=.
3111 else
3112   am__leading_dot=_
3113 fi
3114 rmdir .tst 2>/dev/null
3115
3116 # Check whether --enable-silent-rules was given.
3117 if test "${enable_silent_rules+set}" = set; then :
3118   enableval=$enable_silent_rules;
3119 fi
3120
3121 case $enable_silent_rules in # (((
3122   yes) AM_DEFAULT_VERBOSITY=0;;
3123    no) AM_DEFAULT_VERBOSITY=1;;
3124     *) AM_DEFAULT_VERBOSITY=1;;
3125 esac
3126 am_make=${MAKE-make}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3128 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3129 if ${am_cv_make_support_nested_variables+:} false; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   if $as_echo 'TRUE=$(BAR$(V))
3133 BAR0=false
3134 BAR1=true
3135 V=1
3136 am__doit:
3137         @$(TRUE)
3138 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3139   am_cv_make_support_nested_variables=yes
3140 else
3141   am_cv_make_support_nested_variables=no
3142 fi
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3145 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3146 if test $am_cv_make_support_nested_variables = yes; then
3147     AM_V='$(V)'
3148   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3149 else
3150   AM_V=$AM_DEFAULT_VERBOSITY
3151   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3152 fi
3153 AM_BACKSLASH='\'
3154
3155 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3156   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3157   # is not polluted with repeated "-I."
3158   am__isrc=' -I$(srcdir)'
3159   # test to see if srcdir already configured
3160   if test -f $srcdir/config.status; then
3161     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3162   fi
3163 fi
3164
3165 # test whether we have cygpath
3166 if test -z "$CYGPATH_W"; then
3167   if (cygpath --version) >/dev/null 2>/dev/null; then
3168     CYGPATH_W='cygpath -w'
3169   else
3170     CYGPATH_W=echo
3171   fi
3172 fi
3173
3174
3175 # Define the identity of the package.
3176  PACKAGE='nlopt'
3177  VERSION='2.4.2'
3178
3179
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE "$PACKAGE"
3182 _ACEOF
3183
3184
3185 cat >>confdefs.h <<_ACEOF
3186 #define VERSION "$VERSION"
3187 _ACEOF
3188
3189 # Some tools Automake needs.
3190
3191 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3192
3193
3194 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3195
3196
3197 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3198
3199
3200 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3201
3202
3203 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3204
3205 # For better backward compatibility.  To be removed once Automake 1.9.x
3206 # dies out for good.  For more background, see:
3207 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3208 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3209 mkdir_p='$(MKDIR_P)'
3210
3211 # We need awk for the "check" target.  The system "awk" is bad on
3212 # some platforms.
3213 # Always define AMTAR for backward compatibility.  Yes, it's still used
3214 # in the wild :-(  We should find a proper way to deprecate it ...
3215 AMTAR='$${TAR-tar}'
3216
3217
3218 # We'll loop over all known methods to create a tar archive until one works.
3219 _am_tools='gnutar  pax cpio none'
3220
3221 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3222
3223
3224
3225
3226
3227
3228 # POSIX will say in a future version that running "rm -f" with no argument
3229 # is OK; and we want to be able to make that assumption in our Makefile
3230 # recipes.  So use an aggressive probe to check that the usage we want is
3231 # actually supported "in the wild" to an acceptable degree.
3232 # See automake bug#10828.
3233 # To make any issue more visible, cause the running configure to be aborted
3234 # by default if the 'rm' program in use doesn't match our expectations; the
3235 # user can still override this though.
3236 if rm -f && rm -fr && rm -rf; then : OK; else
3237   cat >&2 <<'END'
3238 Oops!
3239
3240 Your 'rm' program seems unable to run without file operands specified
3241 on the command line, even when the '-f' option is present.  This is contrary
3242 to the behaviour of most rm programs out there, and not conforming with
3243 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3244
3245 Please tell bug-automake@gnu.org about your system, including the value
3246 of your $PATH and any error possibly output before this message.  This
3247 can help us improve future automake versions.
3248
3249 END
3250   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3251     echo 'Configuration will proceed anyway, since you have set the' >&2
3252     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3253     echo >&2
3254   else
3255     cat >&2 <<'END'
3256 Aborting the configuration process, to ensure you take notice of the issue.
3257
3258 You can download and install GNU coreutils to get an 'rm' implementation
3259 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3260
3261 If you want to complete the configuration process using your problematic
3262 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3263 to "yes", and re-run configure.
3264
3265 END
3266     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3267   fi
3268 fi
3269 ac_config_headers="$ac_config_headers config.h"
3270
3271
3272
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3274 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3275     # Check whether --enable-maintainer-mode was given.
3276 if test "${enable_maintainer_mode+set}" = set; then :
3277   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3278 else
3279   USE_MAINTAINER_MODE=no
3280 fi
3281
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3283 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3284    if test $USE_MAINTAINER_MODE = yes; then
3285   MAINTAINER_MODE_TRUE=
3286   MAINTAINER_MODE_FALSE='#'
3287 else
3288   MAINTAINER_MODE_TRUE='#'
3289   MAINTAINER_MODE_FALSE=
3290 fi
3291
3292   MAINT=$MAINTAINER_MODE_TRUE
3293
3294
3295
3296 # Check whether --enable-shared was given.
3297 if test "${enable_shared+set}" = set; then :
3298   enableval=$enable_shared; p=${PACKAGE-default}
3299     case $enableval in
3300     yes) enable_shared=yes ;;
3301     no) enable_shared=no ;;
3302     *)
3303       enable_shared=no
3304       # Look at the argument we got.  We use all the common list separators.
3305       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3306       for pkg in $enableval; do
3307         IFS="$lt_save_ifs"
3308         if test "X$pkg" = "X$p"; then
3309           enable_shared=yes
3310         fi
3311       done
3312       IFS="$lt_save_ifs"
3313       ;;
3314     esac
3315 else
3316   enable_shared=no
3317 fi
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332 if test -n "$ac_tool_prefix"; then
3333   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3334 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_CC+:} false; then :
3338   $as_echo_n "(cached) " >&6
3339 else
3340   if test -n "$CC"; then
3341   ac_cv_prog_CC="$CC" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346   IFS=$as_save_IFS
3347   test -z "$as_dir" && as_dir=.
3348     for ac_exec_ext in '' $ac_executable_extensions; do
3349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352     break 2
3353   fi
3354 done
3355   done
3356 IFS=$as_save_IFS
3357
3358 fi
3359 fi
3360 CC=$ac_cv_prog_CC
3361 if test -n "$CC"; then
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3364 else
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369
3370 fi
3371 if test -z "$ac_cv_prog_CC"; then
3372   ac_ct_CC=$CC
3373   # Extract the first word of "gcc", so it can be a program name with args.
3374 set dummy gcc; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   if test -n "$ac_ct_CC"; then
3381   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388     for ac_exec_ext in '' $ac_executable_extensions; do
3389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     ac_cv_prog_ac_ct_CC="gcc"
3391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395   done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 $as_echo "$ac_ct_CC" >&6; }
3404 else
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409   if test "x$ac_ct_CC" = x; then
3410     CC=""
3411   else
3412     case $cross_compiling:$ac_tool_warned in
3413 yes:)
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3416 ac_tool_warned=yes ;;
3417 esac
3418     CC=$ac_ct_CC
3419   fi
3420 else
3421   CC="$ac_cv_prog_CC"
3422 fi
3423
3424 if test -z "$CC"; then
3425           if test -n "$ac_tool_prefix"; then
3426     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3427 set dummy ${ac_tool_prefix}cc; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431   $as_echo_n "(cached) " >&6
3432 else
3433   if test -n "$CC"; then
3434   ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441     for ac_exec_ext in '' $ac_executable_extensions; do
3442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443     ac_cv_prog_CC="${ac_tool_prefix}cc"
3444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448   done
3449 IFS=$as_save_IFS
3450
3451 fi
3452 fi
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3457 else
3458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 fi
3461
3462
3463   fi
3464 fi
3465 if test -z "$CC"; then
3466   # Extract the first word of "cc", so it can be a program name with args.
3467 set dummy cc; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if ${ac_cv_prog_CC+:} false; then :
3471   $as_echo_n "(cached) " >&6
3472 else
3473   if test -n "$CC"; then
3474   ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476   ac_prog_rejected=no
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482     for ac_exec_ext in '' $ac_executable_extensions; do
3483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3485        ac_prog_rejected=yes
3486        continue
3487      fi
3488     ac_cv_prog_CC="cc"
3489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493   done
3494 IFS=$as_save_IFS
3495
3496 if test $ac_prog_rejected = yes; then
3497   # We found a bogon in the path, so make sure we never use it.
3498   set dummy $ac_cv_prog_CC
3499   shift
3500   if test $# != 0; then
3501     # We chose a different compiler from the bogus one.
3502     # However, it has the same basename, so the bogon will be chosen
3503     # first if we set CC to just the basename; use the full file name.
3504     shift
3505     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3506   fi
3507 fi
3508 fi
3509 fi
3510 CC=$ac_cv_prog_CC
3511 if test -n "$CC"; then
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3514 else
3515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519
3520 fi
3521 if test -z "$CC"; then
3522   if test -n "$ac_tool_prefix"; then
3523   for ac_prog in cl.exe
3524   do
3525     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 $as_echo_n "checking for $ac_word... " >&6; }
3529 if ${ac_cv_prog_CC+:} false; then :
3530   $as_echo_n "(cached) " >&6
3531 else
3532   if test -n "$CC"; then
3533   ac_cv_prog_CC="$CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538   IFS=$as_save_IFS
3539   test -z "$as_dir" && as_dir=.
3540     for ac_exec_ext in '' $ac_executable_extensions; do
3541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544     break 2
3545   fi
3546 done
3547   done
3548 IFS=$as_save_IFS
3549
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 fi
3560
3561
3562     test -n "$CC" && break
3563   done
3564 fi
3565 if test -z "$CC"; then
3566   ac_ct_CC=$CC
3567   for ac_prog in cl.exe
3568 do
3569   # Extract the first word of "$ac_prog", so it can be a program name with args.
3570 set dummy $ac_prog; ac_word=$2
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 $as_echo_n "checking for $ac_word... " >&6; }
3573 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   if test -n "$ac_ct_CC"; then
3577   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582   IFS=$as_save_IFS
3583   test -z "$as_dir" && as_dir=.
3584     for ac_exec_ext in '' $ac_executable_extensions; do
3585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586     ac_cv_prog_ac_ct_CC="$ac_prog"
3587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588     break 2
3589   fi
3590 done
3591   done
3592 IFS=$as_save_IFS
3593
3594 fi
3595 fi
3596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3597 if test -n "$ac_ct_CC"; then
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3599 $as_echo "$ac_ct_CC" >&6; }
3600 else
3601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3603 fi
3604
3605
3606   test -n "$ac_ct_CC" && break
3607 done
3608
3609   if test "x$ac_ct_CC" = x; then
3610     CC=""
3611   else
3612     case $cross_compiling:$ac_tool_warned in
3613 yes:)
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616 ac_tool_warned=yes ;;
3617 esac
3618     CC=$ac_ct_CC
3619   fi
3620 fi
3621
3622 fi
3623
3624
3625 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error $? "no acceptable C compiler found in \$PATH
3628 See \`config.log' for more details" "$LINENO" 5; }
3629
3630 # Provide some information about the compiler.
3631 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3632 set X $ac_compile
3633 ac_compiler=$2
3634 for ac_option in --version -v -V -qversion; do
3635   { { ac_try="$ac_compiler $ac_option >&5"
3636 case "(($ac_try" in
3637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638   *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3643   ac_status=$?
3644   if test -s conftest.err; then
3645     sed '10a\
3646 ... rest of stderr output deleted ...
3647          10q' conftest.err >conftest.er1
3648     cat conftest.er1 >&5
3649   fi
3650   rm -f conftest.er1 conftest.err
3651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652   test $ac_status = 0; }
3653 done
3654
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h.  */
3657
3658 int
3659 main ()
3660 {
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 ac_clean_files_save=$ac_clean_files
3667 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3668 # Try to create an executable without -o first, disregard a.out.
3669 # It will help us diagnose broken compilers, and finding out an intuition
3670 # of exeext.
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3672 $as_echo_n "checking whether the C compiler works... " >&6; }
3673 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3674
3675 # The possible output files:
3676 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3677
3678 ac_rmfiles=
3679 for ac_file in $ac_files
3680 do
3681   case $ac_file in
3682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3683     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3684   esac
3685 done
3686 rm -f $ac_rmfiles
3687
3688 if { { ac_try="$ac_link_default"
3689 case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695   (eval "$ac_link_default") 2>&5
3696   ac_status=$?
3697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698   test $ac_status = 0; }; then :
3699   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3700 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3701 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3702 # so that the user can short-circuit this test for compilers unknown to
3703 # Autoconf.
3704 for ac_file in $ac_files ''
3705 do
3706   test -f "$ac_file" || continue
3707   case $ac_file in
3708     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3709         ;;
3710     [ab].out )
3711         # We found the default executable, but exeext='' is most
3712         # certainly right.
3713         break;;
3714     *.* )
3715         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3716         then :; else
3717            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3718         fi
3719         # We set ac_cv_exeext here because the later test for it is not
3720         # safe: cross compilers may not add the suffix if given an `-o'
3721         # argument, so we may need to know it at that point already.
3722         # Even if this section looks crufty: it has the advantage of
3723         # actually working.
3724         break;;
3725     * )
3726         break;;
3727   esac
3728 done
3729 test "$ac_cv_exeext" = no && ac_cv_exeext=
3730
3731 else
3732   ac_file=''
3733 fi
3734 if test -z "$ac_file"; then :
3735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3737 $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742 as_fn_error 77 "C compiler cannot create executables
3743 See \`config.log' for more details" "$LINENO" 5; }
3744 else
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3746 $as_echo "yes" >&6; }
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3749 $as_echo_n "checking for C compiler default output file name... " >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3751 $as_echo "$ac_file" >&6; }
3752 ac_exeext=$ac_cv_exeext
3753
3754 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3755 ac_clean_files=$ac_clean_files_save
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3757 $as_echo_n "checking for suffix of executables... " >&6; }
3758 if { { ac_try="$ac_link"
3759 case "(($ac_try" in
3760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761   *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765   (eval "$ac_link") 2>&5
3766   ac_status=$?
3767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768   test $ac_status = 0; }; then :
3769   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3770 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3771 # work properly (i.e., refer to `conftest.exe'), while it won't with
3772 # `rm'.
3773 for ac_file in conftest.exe conftest conftest.*; do
3774   test -f "$ac_file" || continue
3775   case $ac_file in
3776     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3777     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778           break;;
3779     * ) break;;
3780   esac
3781 done
3782 else
3783   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3786 See \`config.log' for more details" "$LINENO" 5; }
3787 fi
3788 rm -f conftest conftest$ac_cv_exeext
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3790 $as_echo "$ac_cv_exeext" >&6; }
3791
3792 rm -f conftest.$ac_ext
3793 EXEEXT=$ac_cv_exeext
3794 ac_exeext=$EXEEXT
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797 #include <stdio.h>
3798 int
3799 main ()
3800 {
3801 FILE *f = fopen ("conftest.out", "w");
3802  return ferror (f) || fclose (f) != 0;
3803
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 ac_clean_files="$ac_clean_files conftest.out"
3809 # Check that the compiler produces executables we can run.  If not, either
3810 # the compiler is broken, or we cross compile.
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3812 $as_echo_n "checking whether we are cross compiling... " >&6; }
3813 if test "$cross_compiling" != yes; then
3814   { { ac_try="$ac_link"
3815 case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821   (eval "$ac_link") 2>&5
3822   ac_status=$?
3823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824   test $ac_status = 0; }
3825   if { ac_try='./conftest$ac_cv_exeext'
3826   { { case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832   (eval "$ac_try") 2>&5
3833   ac_status=$?
3834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835   test $ac_status = 0; }; }; then
3836     cross_compiling=no
3837   else
3838     if test "$cross_compiling" = maybe; then
3839         cross_compiling=yes
3840     else
3841         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $? "cannot run C compiled programs.
3844 If you meant to cross compile, use \`--host'.
3845 See \`config.log' for more details" "$LINENO" 5; }
3846     fi
3847   fi
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3850 $as_echo "$cross_compiling" >&6; }
3851
3852 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3853 ac_clean_files=$ac_clean_files_save
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3855 $as_echo_n "checking for suffix of object files... " >&6; }
3856 if ${ac_cv_objext+:} false; then :
3857   $as_echo_n "(cached) " >&6
3858 else
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 rm -f conftest.o conftest.obj
3871 if { { ac_try="$ac_compile"
3872 case "(($ac_try" in
3873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874   *) ac_try_echo=$ac_try;;
3875 esac
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878   (eval "$ac_compile") 2>&5
3879   ac_status=$?
3880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881   test $ac_status = 0; }; then :
3882   for ac_file in conftest.o conftest.obj conftest.*; do
3883   test -f "$ac_file" || continue;
3884   case $ac_file in
3885     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3886     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3887        break;;
3888   esac
3889 done
3890 else
3891   $as_echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $? "cannot compute suffix of object files: cannot compile
3897 See \`config.log' for more details" "$LINENO" 5; }
3898 fi
3899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3902 $as_echo "$ac_cv_objext" >&6; }
3903 OBJEXT=$ac_cv_objext
3904 ac_objext=$OBJEXT
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3906 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3907 if ${ac_cv_c_compiler_gnu+:} false; then :
3908   $as_echo_n "(cached) " >&6
3909 else
3910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h.  */
3912
3913 int
3914 main ()
3915 {
3916 #ifndef __GNUC__
3917        choke me
3918 #endif
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925   ac_compiler_gnu=yes
3926 else
3927   ac_compiler_gnu=no
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3931
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3934 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3935 if test $ac_compiler_gnu = yes; then
3936   GCC=yes
3937 else
3938   GCC=
3939 fi
3940 ac_test_CFLAGS=${CFLAGS+set}
3941 ac_save_CFLAGS=$CFLAGS
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3943 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3944 if ${ac_cv_prog_cc_g+:} false; then :
3945   $as_echo_n "(cached) " >&6
3946 else
3947   ac_save_c_werror_flag=$ac_c_werror_flag
3948    ac_c_werror_flag=yes
3949    ac_cv_prog_cc_g=no
3950    CFLAGS="-g"
3951    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953
3954 int
3955 main ()
3956 {
3957
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963   ac_cv_prog_cc_g=yes
3964 else
3965   CFLAGS=""
3966       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h.  */
3968
3969 int
3970 main ()
3971 {
3972
3973   ;
3974   return 0;
3975 }
3976 _ACEOF
3977 if ac_fn_c_try_compile "$LINENO"; then :
3978
3979 else
3980   ac_c_werror_flag=$ac_save_c_werror_flag
3981          CFLAGS="-g"
3982          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h.  */
3984
3985 int
3986 main ()
3987 {
3988
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994   ac_cv_prog_cc_g=yes
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 fi
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 fi
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001    ac_c_werror_flag=$ac_save_c_werror_flag
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4004 $as_echo "$ac_cv_prog_cc_g" >&6; }
4005 if test "$ac_test_CFLAGS" = set; then
4006   CFLAGS=$ac_save_CFLAGS
4007 elif test $ac_cv_prog_cc_g = yes; then
4008   if test "$GCC" = yes; then
4009     CFLAGS="-g -O2"
4010   else
4011     CFLAGS="-g"
4012   fi
4013 else
4014   if test "$GCC" = yes; then
4015     CFLAGS="-O2"
4016   else
4017     CFLAGS=
4018   fi
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4021 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4022 if ${ac_cv_prog_cc_c89+:} false; then :
4023   $as_echo_n "(cached) " >&6
4024 else
4025   ac_cv_prog_cc_c89=no
4026 ac_save_CC=$CC
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029 #include <stdarg.h>
4030 #include <stdio.h>
4031 struct stat;
4032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4033 struct buf { int x; };
4034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4035 static char *e (p, i)
4036      char **p;
4037      int i;
4038 {
4039   return p[i];
4040 }
4041 static char *f (char * (*g) (char **, int), char **p, ...)
4042 {
4043   char *s;
4044   va_list v;
4045   va_start (v,p);
4046   s = g (p, va_arg (v,int));
4047   va_end (v);
4048   return s;
4049 }
4050
4051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4052    function prototypes and stuff, but not '\xHH' hex character constants.
4053    These don't provoke an error unfortunately, instead are silently treated
4054    as 'x'.  The following induces an error, until -std is added to get
4055    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4056    array size at least.  It's necessary to write '\x00'==0 to get something
4057    that's true only with -std.  */
4058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4059
4060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4061    inside strings and character constants.  */
4062 #define FOO(x) 'x'
4063 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4064
4065 int test (int i, double x);
4066 struct s1 {int (*f) (int a);};
4067 struct s2 {int (*f) (double a);};
4068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4069 int argc;
4070 char **argv;
4071 int
4072 main ()
4073 {
4074 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4080         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4081 do
4082   CC="$ac_save_CC $ac_arg"
4083   if ac_fn_c_try_compile "$LINENO"; then :
4084   ac_cv_prog_cc_c89=$ac_arg
4085 fi
4086 rm -f core conftest.err conftest.$ac_objext
4087   test "x$ac_cv_prog_cc_c89" != "xno" && break
4088 done
4089 rm -f conftest.$ac_ext
4090 CC=$ac_save_CC
4091
4092 fi
4093 # AC_CACHE_VAL
4094 case "x$ac_cv_prog_cc_c89" in
4095   x)
4096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4097 $as_echo "none needed" >&6; } ;;
4098   xno)
4099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4100 $as_echo "unsupported" >&6; } ;;
4101   *)
4102     CC="$CC $ac_cv_prog_cc_c89"
4103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4104 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4105 esac
4106 if test "x$ac_cv_prog_cc_c89" != xno; then :
4107
4108 fi
4109
4110 ac_ext=c
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
4116 ac_ext=c
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4122 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4123 if ${am_cv_prog_cc_c_o+:} false; then :
4124   $as_echo_n "(cached) " >&6
4125 else
4126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h.  */
4128
4129 int
4130 main ()
4131 {
4132
4133   ;
4134   return 0;
4135 }
4136 _ACEOF
4137   # Make sure it works both with $CC and with simple cc.
4138   # Following AC_PROG_CC_C_O, we do the test twice because some
4139   # compilers refuse to overwrite an existing .o file with -o,
4140   # though they will create one.
4141   am_cv_prog_cc_c_o=yes
4142   for am_i in 1 2; do
4143     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4144    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4145    ac_status=$?
4146    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147    (exit $ac_status); } \
4148          && test -f conftest2.$ac_objext; then
4149       : OK
4150     else
4151       am_cv_prog_cc_c_o=no
4152       break
4153     fi
4154   done
4155   rm -f core conftest*
4156   unset am_i
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4159 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4160 if test "$am_cv_prog_cc_c_o" != yes; then
4161    # Losing compiler, so override with the script.
4162    # FIXME: It is wrong to rewrite CC.
4163    # But if we don't then we get into trouble of one sort or another.
4164    # A longer-term fix would be to have automake use am__CC in this case,
4165    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4166    CC="$am_aux_dir/compile $CC"
4167 fi
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
4174 DEPDIR="${am__leading_dot}deps"
4175
4176 ac_config_commands="$ac_config_commands depfiles"
4177
4178
4179 am_make=${MAKE-make}
4180 cat > confinc << 'END'
4181 am__doit:
4182         @echo this is the am__doit target
4183 .PHONY: am__doit
4184 END
4185 # If we don't find an include directive, just comment out the code.
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4187 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4188 am__include="#"
4189 am__quote=
4190 _am_result=none
4191 # First try GNU make style include.
4192 echo "include confinc" > confmf
4193 # Ignore all kinds of additional output from 'make'.
4194 case `$am_make -s -f confmf 2> /dev/null` in #(
4195 *the\ am__doit\ target*)
4196   am__include=include
4197   am__quote=
4198   _am_result=GNU
4199   ;;
4200 esac
4201 # Now try BSD make style include.
4202 if test "$am__include" = "#"; then
4203    echo '.include "confinc"' > confmf
4204    case `$am_make -s -f confmf 2> /dev/null` in #(
4205    *the\ am__doit\ target*)
4206      am__include=.include
4207      am__quote="\""
4208      _am_result=BSD
4209      ;;
4210    esac
4211 fi
4212
4213
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4215 $as_echo "$_am_result" >&6; }
4216 rm -f confinc confmf
4217
4218 # Check whether --enable-dependency-tracking was given.
4219 if test "${enable_dependency_tracking+set}" = set; then :
4220   enableval=$enable_dependency_tracking;
4221 fi
4222
4223 if test "x$enable_dependency_tracking" != xno; then
4224   am_depcomp="$ac_aux_dir/depcomp"
4225   AMDEPBACKSLASH='\'
4226   am__nodep='_no'
4227 fi
4228  if test "x$enable_dependency_tracking" != xno; then
4229   AMDEP_TRUE=
4230   AMDEP_FALSE='#'
4231 else
4232   AMDEP_TRUE='#'
4233   AMDEP_FALSE=
4234 fi
4235
4236
4237
4238 depcc="$CC"   am_compiler_list=
4239
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4241 $as_echo_n "checking dependency style of $depcc... " >&6; }
4242 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4243   $as_echo_n "(cached) " >&6
4244 else
4245   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4246   # We make a subdir and do the tests there.  Otherwise we can end up
4247   # making bogus files that we don't know about and never remove.  For
4248   # instance it was reported that on HP-UX the gcc test will end up
4249   # making a dummy file named 'D' -- because '-MD' means "put the output
4250   # in D".
4251   rm -rf conftest.dir
4252   mkdir conftest.dir
4253   # Copy depcomp to subdir because otherwise we won't find it if we're
4254   # using a relative directory.
4255   cp "$am_depcomp" conftest.dir
4256   cd conftest.dir
4257   # We will build objects and dependencies in a subdirectory because
4258   # it helps to detect inapplicable dependency modes.  For instance
4259   # both Tru64's cc and ICC support -MD to output dependencies as a
4260   # side effect of compilation, but ICC will put the dependencies in
4261   # the current directory while Tru64 will put them in the object
4262   # directory.
4263   mkdir sub
4264
4265   am_cv_CC_dependencies_compiler_type=none
4266   if test "$am_compiler_list" = ""; then
4267      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4268   fi
4269   am__universal=false
4270   case " $depcc " in #(
4271      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4272      esac
4273
4274   for depmode in $am_compiler_list; do
4275     # Setup a source with many dependencies, because some compilers
4276     # like to wrap large dependency lists on column 80 (with \), and
4277     # we should not choose a depcomp mode which is confused by this.
4278     #
4279     # We need to recreate these files for each test, as the compiler may
4280     # overwrite some of them when testing with obscure command lines.
4281     # This happens at least with the AIX C compiler.
4282     : > sub/conftest.c
4283     for i in 1 2 3 4 5 6; do
4284       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4285       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4286       # Solaris 10 /bin/sh.
4287       echo '/* dummy */' > sub/conftst$i.h
4288     done
4289     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4290
4291     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4292     # mode.  It turns out that the SunPro C++ compiler does not properly
4293     # handle '-M -o', and we need to detect this.  Also, some Intel
4294     # versions had trouble with output in subdirs.
4295     am__obj=sub/conftest.${OBJEXT-o}
4296     am__minus_obj="-o $am__obj"
4297     case $depmode in
4298     gcc)
4299       # This depmode causes a compiler race in universal mode.
4300       test "$am__universal" = false || continue
4301       ;;
4302     nosideeffect)
4303       # After this tag, mechanisms are not by side-effect, so they'll
4304       # only be used when explicitly requested.
4305       if test "x$enable_dependency_tracking" = xyes; then
4306         continue
4307       else
4308         break
4309       fi
4310       ;;
4311     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4312       # This compiler won't grok '-c -o', but also, the minuso test has
4313       # not run yet.  These depmodes are late enough in the game, and
4314       # so weak that their functioning should not be impacted.
4315       am__obj=conftest.${OBJEXT-o}
4316       am__minus_obj=
4317       ;;
4318     none) break ;;
4319     esac
4320     if depmode=$depmode \
4321        source=sub/conftest.c object=$am__obj \
4322        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4323        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4324          >/dev/null 2>conftest.err &&
4325        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4326        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4327        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4328        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4329       # icc doesn't choke on unknown options, it will just issue warnings
4330       # or remarks (even with -Werror).  So we grep stderr for any message
4331       # that says an option was ignored or not supported.
4332       # When given -MP, icc 7.0 and 7.1 complain thusly:
4333       #   icc: Command line warning: ignoring option '-M'; no argument required
4334       # The diagnosis changed in icc 8.0:
4335       #   icc: Command line remark: option '-MP' not supported
4336       if (grep 'ignoring option' conftest.err ||
4337           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4338         am_cv_CC_dependencies_compiler_type=$depmode
4339         break
4340       fi
4341     fi
4342   done
4343
4344   cd ..
4345   rm -rf conftest.dir
4346 else
4347   am_cv_CC_dependencies_compiler_type=none
4348 fi
4349
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4352 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4353 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4354
4355  if
4356   test "x$enable_dependency_tracking" != xno \
4357   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4358   am__fastdepCC_TRUE=
4359   am__fastdepCC_FALSE='#'
4360 else
4361   am__fastdepCC_TRUE='#'
4362   am__fastdepCC_FALSE=
4363 fi
4364
4365
4366    case $ac_cv_prog_cc_stdc in #(
4367   no) :
4368     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4369   *) :
4370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4371 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4372 if ${ac_cv_prog_cc_c99+:} false; then :
4373   $as_echo_n "(cached) " >&6
4374 else
4375   ac_cv_prog_cc_c99=no
4376 ac_save_CC=$CC
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h.  */
4379 #include <stdarg.h>
4380 #include <stdbool.h>
4381 #include <stdlib.h>
4382 #include <wchar.h>
4383 #include <stdio.h>
4384
4385 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
4386 #define debug(...) fprintf (stderr, __VA_ARGS__)
4387 #define showlist(...) puts (#__VA_ARGS__)
4388 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4389 static void
4390 test_varargs_macros (void)
4391 {
4392   int x = 1234;
4393   int y = 5678;
4394   debug ("Flag");
4395   debug ("X = %d\n", x);
4396   showlist (The first, second, and third items.);
4397   report (x>y, "x is %d but y is %d", x, y);
4398 }
4399
4400 // Check long long types.
4401 #define BIG64 18446744073709551615ull
4402 #define BIG32 4294967295ul
4403 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4404 #if !BIG_OK
4405   your preprocessor is broken;
4406 #endif
4407 #if BIG_OK
4408 #else
4409   your preprocessor is broken;
4410 #endif
4411 static long long int bignum = -9223372036854775807LL;
4412 static unsigned long long int ubignum = BIG64;
4413
4414 struct incomplete_array
4415 {
4416   int datasize;
4417   double data[];
4418 };
4419
4420 struct named_init {
4421   int number;
4422   const wchar_t *name;
4423   double average;
4424 };
4425
4426 typedef const char *ccp;
4427
4428 static inline int
4429 test_restrict (ccp restrict text)
4430 {
4431   // See if C++-style comments work.
4432   // Iterate through items via the restricted pointer.
4433   // Also check for declarations in for loops.
4434   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4435     continue;
4436   return 0;
4437 }
4438
4439 // Check varargs and va_copy.
4440 static void
4441 test_varargs (const char *format, ...)
4442 {
4443   va_list args;
4444   va_start (args, format);
4445   va_list args_copy;
4446   va_copy (args_copy, args);
4447
4448   const char *str;
4449   int number;
4450   float fnumber;
4451
4452   while (*format)
4453     {
4454       switch (*format++)
4455         {
4456         case 's': // string
4457           str = va_arg (args_copy, const char *);
4458           break;
4459         case 'd': // int
4460           number = va_arg (args_copy, int);
4461           break;
4462         case 'f': // float
4463           fnumber = va_arg (args_copy, double);
4464           break;
4465         default:
4466           break;
4467         }
4468     }
4469   va_end (args_copy);
4470   va_end (args);
4471 }
4472
4473 int
4474 main ()
4475 {
4476
4477   // Check bool.
4478   _Bool success = false;
4479
4480   // Check restrict.
4481   if (test_restrict ("String literal") == 0)
4482     success = true;
4483   char *restrict newvar = "Another string";
4484
4485   // Check varargs.
4486   test_varargs ("s, d' f .", "string", 65, 34.234);
4487   test_varargs_macros ();
4488
4489   // Check flexible array members.
4490   struct incomplete_array *ia =
4491     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4492   ia->datasize = 10;
4493   for (int i = 0; i < ia->datasize; ++i)
4494     ia->data[i] = i * 1.234;
4495
4496   // Check named initializers.
4497   struct named_init ni = {
4498     .number = 34,
4499     .name = L"Test wide string",
4500     .average = 543.34343,
4501   };
4502
4503   ni.number = 58;
4504
4505   int dynamic_array[ni.number];
4506   dynamic_array[ni.number - 1] = 543;
4507
4508   // work around unused variable warnings
4509   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4510           || dynamic_array[ni.number - 1] != 543);
4511
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4517 do
4518   CC="$ac_save_CC $ac_arg"
4519   if ac_fn_c_try_compile "$LINENO"; then :
4520   ac_cv_prog_cc_c99=$ac_arg
4521 fi
4522 rm -f core conftest.err conftest.$ac_objext
4523   test "x$ac_cv_prog_cc_c99" != "xno" && break
4524 done
4525 rm -f conftest.$ac_ext
4526 CC=$ac_save_CC
4527
4528 fi
4529 # AC_CACHE_VAL
4530 case "x$ac_cv_prog_cc_c99" in
4531   x)
4532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4533 $as_echo "none needed" >&6; } ;;
4534   xno)
4535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4536 $as_echo "unsupported" >&6; } ;;
4537   *)
4538     CC="$CC $ac_cv_prog_cc_c99"
4539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4540 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4541 esac
4542 if test "x$ac_cv_prog_cc_c99" != xno; then :
4543   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4544 else
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4546 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4547 if ${ac_cv_prog_cc_c89+:} false; then :
4548   $as_echo_n "(cached) " >&6
4549 else
4550   ac_cv_prog_cc_c89=no
4551 ac_save_CC=$CC
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h.  */
4554 #include <stdarg.h>
4555 #include <stdio.h>
4556 struct stat;
4557 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4558 struct buf { int x; };
4559 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4560 static char *e (p, i)
4561      char **p;
4562      int i;
4563 {
4564   return p[i];
4565 }
4566 static char *f (char * (*g) (char **, int), char **p, ...)
4567 {
4568   char *s;
4569   va_list v;
4570   va_start (v,p);
4571   s = g (p, va_arg (v,int));
4572   va_end (v);
4573   return s;
4574 }
4575
4576 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4577    function prototypes and stuff, but not '\xHH' hex character constants.
4578    These don't provoke an error unfortunately, instead are silently treated
4579    as 'x'.  The following induces an error, until -std is added to get
4580    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4581    array size at least.  It's necessary to write '\x00'==0 to get something
4582    that's true only with -std.  */
4583 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4584
4585 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4586    inside strings and character constants.  */
4587 #define FOO(x) 'x'
4588 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4589
4590 int test (int i, double x);
4591 struct s1 {int (*f) (int a);};
4592 struct s2 {int (*f) (double a);};
4593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4594 int argc;
4595 char **argv;
4596 int
4597 main ()
4598 {
4599 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4600   ;
4601   return 0;
4602 }
4603 _ACEOF
4604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4605         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4606 do
4607   CC="$ac_save_CC $ac_arg"
4608   if ac_fn_c_try_compile "$LINENO"; then :
4609   ac_cv_prog_cc_c89=$ac_arg
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext
4612   test "x$ac_cv_prog_cc_c89" != "xno" && break
4613 done
4614 rm -f conftest.$ac_ext
4615 CC=$ac_save_CC
4616
4617 fi
4618 # AC_CACHE_VAL
4619 case "x$ac_cv_prog_cc_c89" in
4620   x)
4621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4622 $as_echo "none needed" >&6; } ;;
4623   xno)
4624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4625 $as_echo "unsupported" >&6; } ;;
4626   *)
4627     CC="$CC $ac_cv_prog_cc_c89"
4628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4629 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4630 esac
4631 if test "x$ac_cv_prog_cc_c89" != xno; then :
4632   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4633 else
4634   ac_cv_prog_cc_stdc=no
4635 fi
4636
4637 fi
4638  ;;
4639 esac
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4641 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4642   if ${ac_cv_prog_cc_stdc+:} false; then :
4643   $as_echo_n "(cached) " >&6
4644 fi
4645
4646   case $ac_cv_prog_cc_stdc in #(
4647   no) :
4648     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4649 $as_echo "unsupported" >&6; } ;; #(
4650   '') :
4651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4652 $as_echo "none needed" >&6; } ;; #(
4653   *) :
4654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4655 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4656 esac
4657
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4660 $as_echo_n "checking whether ln -s works... " >&6; }
4661 LN_S=$as_ln_s
4662 if test "$LN_S" = "ln -s"; then
4663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4664 $as_echo "yes" >&6; }
4665 else
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4667 $as_echo "no, using $LN_S" >&6; }
4668 fi
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4671 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4672 set x ${MAKE-make}
4673 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4674 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4675   $as_echo_n "(cached) " >&6
4676 else
4677   cat >conftest.make <<\_ACEOF
4678 SHELL = /bin/sh
4679 all:
4680         @echo '@@@%%%=$(MAKE)=@@@%%%'
4681 _ACEOF
4682 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4683 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4684   *@@@%%%=?*=@@@%%%*)
4685     eval ac_cv_prog_make_${ac_make}_set=yes;;
4686   *)
4687     eval ac_cv_prog_make_${ac_make}_set=no;;
4688 esac
4689 rm -f conftest.make
4690 fi
4691 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4693 $as_echo "yes" >&6; }
4694   SET_MAKE=
4695 else
4696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698   SET_MAKE="MAKE=${MAKE-make}"
4699 fi
4700
4701 # Make sure we can run config.sub.
4702 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4703   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4706 $as_echo_n "checking build system type... " >&6; }
4707 if ${ac_cv_build+:} false; then :
4708   $as_echo_n "(cached) " >&6
4709 else
4710   ac_build_alias=$build_alias
4711 test "x$ac_build_alias" = x &&
4712   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4713 test "x$ac_build_alias" = x &&
4714   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4715 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4716   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4717
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4720 $as_echo "$ac_cv_build" >&6; }
4721 case $ac_cv_build in
4722 *-*-*) ;;
4723 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4724 esac
4725 build=$ac_cv_build
4726 ac_save_IFS=$IFS; IFS='-'
4727 set x $ac_cv_build
4728 shift
4729 build_cpu=$1
4730 build_vendor=$2
4731 shift; shift
4732 # Remember, the first character of IFS is used to create $*,
4733 # except with old shells:
4734 build_os=$*
4735 IFS=$ac_save_IFS
4736 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4737
4738
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4740 $as_echo_n "checking host system type... " >&6; }
4741 if ${ac_cv_host+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   if test "x$host_alias" = x; then
4745   ac_cv_host=$ac_cv_build
4746 else
4747   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4748     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4749 fi
4750
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4753 $as_echo "$ac_cv_host" >&6; }
4754 case $ac_cv_host in
4755 *-*-*) ;;
4756 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4757 esac
4758 host=$ac_cv_host
4759 ac_save_IFS=$IFS; IFS='-'
4760 set x $ac_cv_host
4761 shift
4762 host_cpu=$1
4763 host_vendor=$2
4764 shift; shift
4765 # Remember, the first character of IFS is used to create $*,
4766 # except with old shells:
4767 host_os=$*
4768 IFS=$ac_save_IFS
4769 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4770
4771
4772 enable_win32_dll=yes
4773
4774 case $host in
4775 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4776   if test -n "$ac_tool_prefix"; then
4777   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}as; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_prog_AS+:} false; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   if test -n "$AS"; then
4785   ac_cv_prog_AS="$AS" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792     for ac_exec_ext in '' $ac_executable_extensions; do
4793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_prog_AS="${ac_tool_prefix}as"
4795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799   done
4800 IFS=$as_save_IFS
4801
4802 fi
4803 fi
4804 AS=$ac_cv_prog_AS
4805 if test -n "$AS"; then
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4807 $as_echo "$AS" >&6; }
4808 else
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4812
4813
4814 fi
4815 if test -z "$ac_cv_prog_AS"; then
4816   ac_ct_AS=$AS
4817   # Extract the first word of "as", so it can be a program name with args.
4818 set dummy as; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4822   $as_echo_n "(cached) " >&6
4823 else
4824   if test -n "$ac_ct_AS"; then
4825   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832     for ac_exec_ext in '' $ac_executable_extensions; do
4833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834     ac_cv_prog_ac_ct_AS="as"
4835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839   done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4845 if test -n "$ac_ct_AS"; then
4846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4847 $as_echo "$ac_ct_AS" >&6; }
4848 else
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 fi
4852
4853   if test "x$ac_ct_AS" = x; then
4854     AS="false"
4855   else
4856     case $cross_compiling:$ac_tool_warned in
4857 yes:)
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860 ac_tool_warned=yes ;;
4861 esac
4862     AS=$ac_ct_AS
4863   fi
4864 else
4865   AS="$ac_cv_prog_AS"
4866 fi
4867
4868   if test -n "$ac_tool_prefix"; then
4869   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4870 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if ${ac_cv_prog_DLLTOOL+:} false; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876   if test -n "$DLLTOOL"; then
4877   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4881 do
4882   IFS=$as_save_IFS
4883   test -z "$as_dir" && as_dir=.
4884     for ac_exec_ext in '' $ac_executable_extensions; do
4885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888     break 2
4889   fi
4890 done
4891   done
4892 IFS=$as_save_IFS
4893
4894 fi
4895 fi
4896 DLLTOOL=$ac_cv_prog_DLLTOOL
4897 if test -n "$DLLTOOL"; then
4898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4899 $as_echo "$DLLTOOL" >&6; }
4900 else
4901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4903 fi
4904
4905
4906 fi
4907 if test -z "$ac_cv_prog_DLLTOOL"; then
4908   ac_ct_DLLTOOL=$DLLTOOL
4909   # Extract the first word of "dlltool", so it can be a program name with args.
4910 set dummy dlltool; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916   if test -n "$ac_ct_DLLTOOL"; then
4917   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924     for ac_exec_ext in '' $ac_executable_extensions; do
4925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928     break 2
4929   fi
4930 done
4931   done
4932 IFS=$as_save_IFS
4933
4934 fi
4935 fi
4936 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4937 if test -n "$ac_ct_DLLTOOL"; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4939 $as_echo "$ac_ct_DLLTOOL" >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944
4945   if test "x$ac_ct_DLLTOOL" = x; then
4946     DLLTOOL="false"
4947   else
4948     case $cross_compiling:$ac_tool_warned in
4949 yes:)
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952 ac_tool_warned=yes ;;
4953 esac
4954     DLLTOOL=$ac_ct_DLLTOOL
4955   fi
4956 else
4957   DLLTOOL="$ac_cv_prog_DLLTOOL"
4958 fi
4959
4960   if test -n "$ac_tool_prefix"; then
4961   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_OBJDUMP+:} false; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   if test -n "$OBJDUMP"; then
4969   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974   IFS=$as_save_IFS
4975   test -z "$as_dir" && as_dir=.
4976     for ac_exec_ext in '' $ac_executable_extensions; do
4977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980     break 2
4981   fi
4982 done
4983   done
4984 IFS=$as_save_IFS
4985
4986 fi
4987 fi
4988 OBJDUMP=$ac_cv_prog_OBJDUMP
4989 if test -n "$OBJDUMP"; then
4990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4991 $as_echo "$OBJDUMP" >&6; }
4992 else
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4995 fi
4996
4997
4998 fi
4999 if test -z "$ac_cv_prog_OBJDUMP"; then
5000   ac_ct_OBJDUMP=$OBJDUMP
5001   # Extract the first word of "objdump", so it can be a program name with args.
5002 set dummy objdump; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   if test -n "$ac_ct_OBJDUMP"; then
5009   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5029 if test -n "$ac_ct_OBJDUMP"; then
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5031 $as_echo "$ac_ct_OBJDUMP" >&6; }
5032 else
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037   if test "x$ac_ct_OBJDUMP" = x; then
5038     OBJDUMP="false"
5039   else
5040     case $cross_compiling:$ac_tool_warned in
5041 yes:)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044 ac_tool_warned=yes ;;
5045 esac
5046     OBJDUMP=$ac_ct_OBJDUMP
5047   fi
5048 else
5049   OBJDUMP="$ac_cv_prog_OBJDUMP"
5050 fi
5051
5052   ;;
5053 esac
5054
5055 test -z "$AS" && AS=as
5056
5057
5058
5059
5060
5061 test -z "$DLLTOOL" && DLLTOOL=dlltool
5062
5063
5064
5065
5066
5067 test -z "$OBJDUMP" && OBJDUMP=objdump
5068
5069
5070
5071
5072
5073
5074
5075 case `pwd` in
5076   *\ * | *\     *)
5077     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5078 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5079 esac
5080
5081
5082
5083 macro_version='2.4.2'
5084 macro_revision='1.3337'
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098 ltmain="$ac_aux_dir/ltmain.sh"
5099
5100 # Backslashify metacharacters that are still active within
5101 # double-quoted strings.
5102 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5103
5104 # Same as above, but do not quote variable references.
5105 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5106
5107 # Sed substitution to delay expansion of an escaped shell variable in a
5108 # double_quote_subst'ed string.
5109 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5110
5111 # Sed substitution to delay expansion of an escaped single quote.
5112 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5113
5114 # Sed substitution to avoid accidental globbing in evaled expressions
5115 no_glob_subst='s/\*/\\\*/g'
5116
5117 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5120
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5122 $as_echo_n "checking how to print strings... " >&6; }
5123 # Test print first, because it will be a builtin if present.
5124 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5125    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5126   ECHO='print -r --'
5127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5128   ECHO='printf %s\n'
5129 else
5130   # Use this function as a fallback that always works.
5131   func_fallback_echo ()
5132   {
5133     eval 'cat <<_LTECHO_EOF
5134 $1
5135 _LTECHO_EOF'
5136   }
5137   ECHO='func_fallback_echo'
5138 fi
5139
5140 # func_echo_all arg...
5141 # Invoke $ECHO with all args, space-separated.
5142 func_echo_all ()
5143 {
5144     $ECHO ""
5145 }
5146
5147 case "$ECHO" in
5148   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5149 $as_echo "printf" >&6; } ;;
5150   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5151 $as_echo "print -r" >&6; } ;;
5152   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5153 $as_echo "cat" >&6; } ;;
5154 esac
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5171 if ${ac_cv_path_SED+:} false; then :
5172   $as_echo_n "(cached) " >&6
5173 else
5174             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5175      for ac_i in 1 2 3 4 5 6 7; do
5176        ac_script="$ac_script$as_nl$ac_script"
5177      done
5178      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5179      { ac_script=; unset ac_script;}
5180      if test -z "$SED"; then
5181   ac_path_SED_found=false
5182   # Loop through the user's path and test for each of PROGNAME-LIST
5183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188     for ac_prog in sed gsed; do
5189     for ac_exec_ext in '' $ac_executable_extensions; do
5190       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5191       as_fn_executable_p "$ac_path_SED" || continue
5192 # Check for GNU ac_path_SED and select it if it is found.
5193   # Check for GNU $ac_path_SED
5194 case `"$ac_path_SED" --version 2>&1` in
5195 *GNU*)
5196   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5197 *)
5198   ac_count=0
5199   $as_echo_n 0123456789 >"conftest.in"
5200   while :
5201   do
5202     cat "conftest.in" "conftest.in" >"conftest.tmp"
5203     mv "conftest.tmp" "conftest.in"
5204     cp "conftest.in" "conftest.nl"
5205     $as_echo '' >> "conftest.nl"
5206     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5207     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5208     as_fn_arith $ac_count + 1 && ac_count=$as_val
5209     if test $ac_count -gt ${ac_path_SED_max-0}; then
5210       # Best one so far, save it but keep looking for a better one
5211       ac_cv_path_SED="$ac_path_SED"
5212       ac_path_SED_max=$ac_count
5213     fi
5214     # 10*(2^10) chars as input seems more than enough
5215     test $ac_count -gt 10 && break
5216   done
5217   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5218 esac
5219
5220       $ac_path_SED_found && break 3
5221     done
5222   done
5223   done
5224 IFS=$as_save_IFS
5225   if test -z "$ac_cv_path_SED"; then
5226     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5227   fi
5228 else
5229   ac_cv_path_SED=$SED
5230 fi
5231
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5234 $as_echo "$ac_cv_path_SED" >&6; }
5235  SED="$ac_cv_path_SED"
5236   rm -f conftest.sed
5237
5238 test -z "$SED" && SED=sed
5239 Xsed="$SED -e 1s/^X//"
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5252 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5253 if ${ac_cv_path_GREP+:} false; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   if test -z "$GREP"; then
5257   ac_path_GREP_found=false
5258   # Loop through the user's path and test for each of PROGNAME-LIST
5259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_prog in grep ggrep; do
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5267       as_fn_executable_p "$ac_path_GREP" || continue
5268 # Check for GNU ac_path_GREP and select it if it is found.
5269   # Check for GNU $ac_path_GREP
5270 case `"$ac_path_GREP" --version 2>&1` in
5271 *GNU*)
5272   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5273 *)
5274   ac_count=0
5275   $as_echo_n 0123456789 >"conftest.in"
5276   while :
5277   do
5278     cat "conftest.in" "conftest.in" >"conftest.tmp"
5279     mv "conftest.tmp" "conftest.in"
5280     cp "conftest.in" "conftest.nl"
5281     $as_echo 'GREP' >> "conftest.nl"
5282     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284     as_fn_arith $ac_count + 1 && ac_count=$as_val
5285     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5286       # Best one so far, save it but keep looking for a better one
5287       ac_cv_path_GREP="$ac_path_GREP"
5288       ac_path_GREP_max=$ac_count
5289     fi
5290     # 10*(2^10) chars as input seems more than enough
5291     test $ac_count -gt 10 && break
5292   done
5293   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294 esac
5295
5296       $ac_path_GREP_found && break 3
5297     done
5298   done
5299   done
5300 IFS=$as_save_IFS
5301   if test -z "$ac_cv_path_GREP"; then
5302     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5303   fi
5304 else
5305   ac_cv_path_GREP=$GREP
5306 fi
5307
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5310 $as_echo "$ac_cv_path_GREP" >&6; }
5311  GREP="$ac_cv_path_GREP"
5312
5313
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5315 $as_echo_n "checking for egrep... " >&6; }
5316 if ${ac_cv_path_EGREP+:} false; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5320    then ac_cv_path_EGREP="$GREP -E"
5321    else
5322      if test -z "$EGREP"; then
5323   ac_path_EGREP_found=false
5324   # Loop through the user's path and test for each of PROGNAME-LIST
5325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5327 do
5328   IFS=$as_save_IFS
5329   test -z "$as_dir" && as_dir=.
5330     for ac_prog in egrep; do
5331     for ac_exec_ext in '' $ac_executable_extensions; do
5332       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5333       as_fn_executable_p "$ac_path_EGREP" || continue
5334 # Check for GNU ac_path_EGREP and select it if it is found.
5335   # Check for GNU $ac_path_EGREP
5336 case `"$ac_path_EGREP" --version 2>&1` in
5337 *GNU*)
5338   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5339 *)
5340   ac_count=0
5341   $as_echo_n 0123456789 >"conftest.in"
5342   while :
5343   do
5344     cat "conftest.in" "conftest.in" >"conftest.tmp"
5345     mv "conftest.tmp" "conftest.in"
5346     cp "conftest.in" "conftest.nl"
5347     $as_echo 'EGREP' >> "conftest.nl"
5348     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350     as_fn_arith $ac_count + 1 && ac_count=$as_val
5351     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5352       # Best one so far, save it but keep looking for a better one
5353       ac_cv_path_EGREP="$ac_path_EGREP"
5354       ac_path_EGREP_max=$ac_count
5355     fi
5356     # 10*(2^10) chars as input seems more than enough
5357     test $ac_count -gt 10 && break
5358   done
5359   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360 esac
5361
5362       $ac_path_EGREP_found && break 3
5363     done
5364   done
5365   done
5366 IFS=$as_save_IFS
5367   if test -z "$ac_cv_path_EGREP"; then
5368     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5369   fi
5370 else
5371   ac_cv_path_EGREP=$EGREP
5372 fi
5373
5374    fi
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5377 $as_echo "$ac_cv_path_EGREP" >&6; }
5378  EGREP="$ac_cv_path_EGREP"
5379
5380
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5382 $as_echo_n "checking for fgrep... " >&6; }
5383 if ${ac_cv_path_FGREP+:} false; then :
5384   $as_echo_n "(cached) " >&6
5385 else
5386   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5387    then ac_cv_path_FGREP="$GREP -F"
5388    else
5389      if test -z "$FGREP"; then
5390   ac_path_FGREP_found=false
5391   # Loop through the user's path and test for each of PROGNAME-LIST
5392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5394 do
5395   IFS=$as_save_IFS
5396   test -z "$as_dir" && as_dir=.
5397     for ac_prog in fgrep; do
5398     for ac_exec_ext in '' $ac_executable_extensions; do
5399       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5400       as_fn_executable_p "$ac_path_FGREP" || continue
5401 # Check for GNU ac_path_FGREP and select it if it is found.
5402   # Check for GNU $ac_path_FGREP
5403 case `"$ac_path_FGREP" --version 2>&1` in
5404 *GNU*)
5405   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5406 *)
5407   ac_count=0
5408   $as_echo_n 0123456789 >"conftest.in"
5409   while :
5410   do
5411     cat "conftest.in" "conftest.in" >"conftest.tmp"
5412     mv "conftest.tmp" "conftest.in"
5413     cp "conftest.in" "conftest.nl"
5414     $as_echo 'FGREP' >> "conftest.nl"
5415     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5416     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5417     as_fn_arith $ac_count + 1 && ac_count=$as_val
5418     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5419       # Best one so far, save it but keep looking for a better one
5420       ac_cv_path_FGREP="$ac_path_FGREP"
5421       ac_path_FGREP_max=$ac_count
5422     fi
5423     # 10*(2^10) chars as input seems more than enough
5424     test $ac_count -gt 10 && break
5425   done
5426   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5427 esac
5428
5429       $ac_path_FGREP_found && break 3
5430     done
5431   done
5432   done
5433 IFS=$as_save_IFS
5434   if test -z "$ac_cv_path_FGREP"; then
5435     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5436   fi
5437 else
5438   ac_cv_path_FGREP=$FGREP
5439 fi
5440
5441    fi
5442 fi
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5444 $as_echo "$ac_cv_path_FGREP" >&6; }
5445  FGREP="$ac_cv_path_FGREP"
5446
5447
5448 test -z "$GREP" && GREP=grep
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468 # Check whether --with-gnu-ld was given.
5469 if test "${with_gnu_ld+set}" = set; then :
5470   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5471 else
5472   with_gnu_ld=no
5473 fi
5474
5475 ac_prog=ld
5476 if test "$GCC" = yes; then
5477   # Check if gcc -print-prog-name=ld gives a path.
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5479 $as_echo_n "checking for ld used by $CC... " >&6; }
5480   case $host in
5481   *-*-mingw*)
5482     # gcc leaves a trailing carriage return which upsets mingw
5483     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5484   *)
5485     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5486   esac
5487   case $ac_prog in
5488     # Accept absolute paths.
5489     [\\/]* | ?:[\\/]*)
5490       re_direlt='/[^/][^/]*/\.\./'
5491       # Canonicalize the pathname of ld
5492       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5493       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5494         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5495       done
5496       test -z "$LD" && LD="$ac_prog"
5497       ;;
5498   "")
5499     # If it fails, then pretend we aren't using GCC.
5500     ac_prog=ld
5501     ;;
5502   *)
5503     # If it is relative, then search for the first ld in PATH.
5504     with_gnu_ld=unknown
5505     ;;
5506   esac
5507 elif test "$with_gnu_ld" = yes; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5509 $as_echo_n "checking for GNU ld... " >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5512 $as_echo_n "checking for non-GNU ld... " >&6; }
5513 fi
5514 if ${lt_cv_path_LD+:} false; then :
5515   $as_echo_n "(cached) " >&6
5516 else
5517   if test -z "$LD"; then
5518   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5519   for ac_dir in $PATH; do
5520     IFS="$lt_save_ifs"
5521     test -z "$ac_dir" && ac_dir=.
5522     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5523       lt_cv_path_LD="$ac_dir/$ac_prog"
5524       # Check to see if the program is GNU ld.  I'd rather use --version,
5525       # but apparently some variants of GNU ld only accept -v.
5526       # Break only if it was the GNU/non-GNU ld that we prefer.
5527       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5528       *GNU* | *'with BFD'*)
5529         test "$with_gnu_ld" != no && break
5530         ;;
5531       *)
5532         test "$with_gnu_ld" != yes && break
5533         ;;
5534       esac
5535     fi
5536   done
5537   IFS="$lt_save_ifs"
5538 else
5539   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5540 fi
5541 fi
5542
5543 LD="$lt_cv_path_LD"
5544 if test -n "$LD"; then
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5546 $as_echo "$LD" >&6; }
5547 else
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5553 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5554 if ${lt_cv_prog_gnu_ld+:} false; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5558 case `$LD -v 2>&1 </dev/null` in
5559 *GNU* | *'with BFD'*)
5560   lt_cv_prog_gnu_ld=yes
5561   ;;
5562 *)
5563   lt_cv_prog_gnu_ld=no
5564   ;;
5565 esac
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5568 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5569 with_gnu_ld=$lt_cv_prog_gnu_ld
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5580 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5581 if ${lt_cv_path_NM+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   if test -n "$NM"; then
5585   # Let the user override the test.
5586   lt_cv_path_NM="$NM"
5587 else
5588   lt_nm_to_check="${ac_tool_prefix}nm"
5589   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5590     lt_nm_to_check="$lt_nm_to_check nm"
5591   fi
5592   for lt_tmp_nm in $lt_nm_to_check; do
5593     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5594     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5595       IFS="$lt_save_ifs"
5596       test -z "$ac_dir" && ac_dir=.
5597       tmp_nm="$ac_dir/$lt_tmp_nm"
5598       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5599         # Check to see if the nm accepts a BSD-compat flag.
5600         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5601         #   nm: unknown option "B" ignored
5602         # Tru64's nm complains that /dev/null is an invalid object file
5603         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5604         */dev/null* | *'Invalid file or object type'*)
5605           lt_cv_path_NM="$tmp_nm -B"
5606           break
5607           ;;
5608         *)
5609           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5610           */dev/null*)
5611             lt_cv_path_NM="$tmp_nm -p"
5612             break
5613             ;;
5614           *)
5615             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5616             continue # so that we can try to find one that supports BSD flags
5617             ;;
5618           esac
5619           ;;
5620         esac
5621       fi
5622     done
5623     IFS="$lt_save_ifs"
5624   done
5625   : ${lt_cv_path_NM=no}
5626 fi
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5629 $as_echo "$lt_cv_path_NM" >&6; }
5630 if test "$lt_cv_path_NM" != "no"; then
5631   NM="$lt_cv_path_NM"
5632 else
5633   # Didn't find any BSD compatible name lister, look for dumpbin.
5634   if test -n "$DUMPBIN"; then :
5635     # Let the user override the test.
5636   else
5637     if test -n "$ac_tool_prefix"; then
5638   for ac_prog in dumpbin "link -dump"
5639   do
5640     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_DUMPBIN+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   if test -n "$DUMPBIN"; then
5648   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653   IFS=$as_save_IFS
5654   test -z "$as_dir" && as_dir=.
5655     for ac_exec_ext in '' $ac_executable_extensions; do
5656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659     break 2
5660   fi
5661 done
5662   done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 DUMPBIN=$ac_cv_prog_DUMPBIN
5668 if test -n "$DUMPBIN"; then
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5670 $as_echo "$DUMPBIN" >&6; }
5671 else
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676
5677     test -n "$DUMPBIN" && break
5678   done
5679 fi
5680 if test -z "$DUMPBIN"; then
5681   ac_ct_DUMPBIN=$DUMPBIN
5682   for ac_prog in dumpbin "link -dump"
5683 do
5684   # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5689   $as_echo_n "(cached) " >&6
5690 else
5691   if test -n "$ac_ct_DUMPBIN"; then
5692   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697   IFS=$as_save_IFS
5698   test -z "$as_dir" && as_dir=.
5699     for ac_exec_ext in '' $ac_executable_extensions; do
5700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703     break 2
5704   fi
5705 done
5706   done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5712 if test -n "$ac_ct_DUMPBIN"; then
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5714 $as_echo "$ac_ct_DUMPBIN" >&6; }
5715 else
5716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718 fi
5719
5720
5721   test -n "$ac_ct_DUMPBIN" && break
5722 done
5723
5724   if test "x$ac_ct_DUMPBIN" = x; then
5725     DUMPBIN=":"
5726   else
5727     case $cross_compiling:$ac_tool_warned in
5728 yes:)
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5731 ac_tool_warned=yes ;;
5732 esac
5733     DUMPBIN=$ac_ct_DUMPBIN
5734   fi
5735 fi
5736
5737     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5738     *COFF*)
5739       DUMPBIN="$DUMPBIN -symbols"
5740       ;;
5741     *)
5742       DUMPBIN=:
5743       ;;
5744     esac
5745   fi
5746
5747   if test "$DUMPBIN" != ":"; then
5748     NM="$DUMPBIN"
5749   fi
5750 fi
5751 test -z "$NM" && NM=nm
5752
5753
5754
5755
5756
5757
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5759 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5760 if ${lt_cv_nm_interface+:} false; then :
5761   $as_echo_n "(cached) " >&6
5762 else
5763   lt_cv_nm_interface="BSD nm"
5764   echo "int some_variable = 0;" > conftest.$ac_ext
5765   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5766   (eval "$ac_compile" 2>conftest.err)
5767   cat conftest.err >&5
5768   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5769   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5770   cat conftest.err >&5
5771   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5772   cat conftest.out >&5
5773   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5774     lt_cv_nm_interface="MS dumpbin"
5775   fi
5776   rm -f conftest*
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5779 $as_echo "$lt_cv_nm_interface" >&6; }
5780
5781 # find the maximum length of command line arguments
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5783 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5784 if ${lt_cv_sys_max_cmd_len+:} false; then :
5785   $as_echo_n "(cached) " >&6
5786 else
5787     i=0
5788   teststring="ABCD"
5789
5790   case $build_os in
5791   msdosdjgpp*)
5792     # On DJGPP, this test can blow up pretty badly due to problems in libc
5793     # (any single argument exceeding 2000 bytes causes a buffer overrun
5794     # during glob expansion).  Even if it were fixed, the result of this
5795     # check would be larger than it should be.
5796     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5797     ;;
5798
5799   gnu*)
5800     # Under GNU Hurd, this test is not required because there is
5801     # no limit to the length of command line arguments.
5802     # Libtool will interpret -1 as no limit whatsoever
5803     lt_cv_sys_max_cmd_len=-1;
5804     ;;
5805
5806   cygwin* | mingw* | cegcc*)
5807     # On Win9x/ME, this test blows up -- it succeeds, but takes
5808     # about 5 minutes as the teststring grows exponentially.
5809     # Worse, since 9x/ME are not pre-emptively multitasking,
5810     # you end up with a "frozen" computer, even though with patience
5811     # the test eventually succeeds (with a max line length of 256k).
5812     # Instead, let's just punt: use the minimum linelength reported by
5813     # all of the supported platforms: 8192 (on NT/2K/XP).
5814     lt_cv_sys_max_cmd_len=8192;
5815     ;;
5816
5817   mint*)
5818     # On MiNT this can take a long time and run out of memory.
5819     lt_cv_sys_max_cmd_len=8192;
5820     ;;
5821
5822   amigaos*)
5823     # On AmigaOS with pdksh, this test takes hours, literally.
5824     # So we just punt and use a minimum line length of 8192.
5825     lt_cv_sys_max_cmd_len=8192;
5826     ;;
5827
5828   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5829     # This has been around since 386BSD, at least.  Likely further.
5830     if test -x /sbin/sysctl; then
5831       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5832     elif test -x /usr/sbin/sysctl; then
5833       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5834     else
5835       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5836     fi
5837     # And add a safety zone
5838     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5839     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5840     ;;
5841
5842   interix*)
5843     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5844     lt_cv_sys_max_cmd_len=196608
5845     ;;
5846
5847   os2*)
5848     # The test takes a long time on OS/2.
5849     lt_cv_sys_max_cmd_len=8192
5850     ;;
5851
5852   osf*)
5853     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5854     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5855     # nice to cause kernel panics so lets avoid the loop below.
5856     # First set a reasonable default.
5857     lt_cv_sys_max_cmd_len=16384
5858     #
5859     if test -x /sbin/sysconfig; then
5860       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5861         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5862       esac
5863     fi
5864     ;;
5865   sco3.2v5*)
5866     lt_cv_sys_max_cmd_len=102400
5867     ;;
5868   sysv5* | sco5v6* | sysv4.2uw2*)
5869     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5870     if test -n "$kargmax"; then
5871       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5872     else
5873       lt_cv_sys_max_cmd_len=32768
5874     fi
5875     ;;
5876   *)
5877     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5878     if test -n "$lt_cv_sys_max_cmd_len"; then
5879       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5880       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5881     else
5882       # Make teststring a little bigger before we do anything with it.
5883       # a 1K string should be a reasonable start.
5884       for i in 1 2 3 4 5 6 7 8 ; do
5885         teststring=$teststring$teststring
5886       done
5887       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5888       # If test is not a shell built-in, we'll probably end up computing a
5889       # maximum length that is only half of the actual maximum length, but
5890       # we can't tell.
5891       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5892                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5893               test $i != 17 # 1/2 MB should be enough
5894       do
5895         i=`expr $i + 1`
5896         teststring=$teststring$teststring
5897       done
5898       # Only check the string length outside the loop.
5899       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5900       teststring=
5901       # Add a significant safety factor because C++ compilers can tack on
5902       # massive amounts of additional arguments before passing them to the
5903       # linker.  It appears as though 1/2 is a usable value.
5904       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5905     fi
5906     ;;
5907   esac
5908
5909 fi
5910
5911 if test -n $lt_cv_sys_max_cmd_len ; then
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5913 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5914 else
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5916 $as_echo "none" >&6; }
5917 fi
5918 max_cmd_len=$lt_cv_sys_max_cmd_len
5919
5920
5921
5922
5923
5924
5925 : ${CP="cp -f"}
5926 : ${MV="mv -f"}
5927 : ${RM="rm -f"}
5928
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5930 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5931 # Try some XSI features
5932 xsi_shell=no
5933 ( _lt_dummy="a/b/c"
5934   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5935       = c,a/b,b/c, \
5936     && eval 'test $(( 1 + 1 )) -eq 2 \
5937     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5938   && xsi_shell=yes
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5940 $as_echo "$xsi_shell" >&6; }
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5944 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5945 lt_shell_append=no
5946 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5947     >/dev/null 2>&1 \
5948   && lt_shell_append=yes
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5950 $as_echo "$lt_shell_append" >&6; }
5951
5952
5953 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5954   lt_unset=unset
5955 else
5956   lt_unset=false
5957 fi
5958
5959
5960
5961
5962
5963 # test EBCDIC or ASCII
5964 case `echo X|tr X '\101'` in
5965  A) # ASCII based system
5966     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5967   lt_SP2NL='tr \040 \012'
5968   lt_NL2SP='tr \015\012 \040\040'
5969   ;;
5970  *) # EBCDIC based system
5971   lt_SP2NL='tr \100 \n'
5972   lt_NL2SP='tr \r\n \100\100'
5973   ;;
5974 esac
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5985 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5986 if ${lt_cv_to_host_file_cmd+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   case $host in
5990   *-*-mingw* )
5991     case $build in
5992       *-*-mingw* ) # actually msys
5993         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5994         ;;
5995       *-*-cygwin* )
5996         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5997         ;;
5998       * ) # otherwise, assume *nix
5999         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6000         ;;
6001     esac
6002     ;;
6003   *-*-cygwin* )
6004     case $build in
6005       *-*-mingw* ) # actually msys
6006         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6007         ;;
6008       *-*-cygwin* )
6009         lt_cv_to_host_file_cmd=func_convert_file_noop
6010         ;;
6011       * ) # otherwise, assume *nix
6012         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6013         ;;
6014     esac
6015     ;;
6016   * ) # unhandled hosts (and "normal" native builds)
6017     lt_cv_to_host_file_cmd=func_convert_file_noop
6018     ;;
6019 esac
6020
6021 fi
6022
6023 to_host_file_cmd=$lt_cv_to_host_file_cmd
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6025 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6026
6027
6028
6029
6030
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6032 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6033 if ${lt_cv_to_tool_file_cmd+:} false; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   #assume ordinary cross tools, or native build.
6037 lt_cv_to_tool_file_cmd=func_convert_file_noop
6038 case $host in
6039   *-*-mingw* )
6040     case $build in
6041       *-*-mingw* ) # actually msys
6042         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6043         ;;
6044     esac
6045     ;;
6046 esac
6047
6048 fi
6049
6050 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6052 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6053
6054
6055
6056
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6059 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6060 if ${lt_cv_ld_reload_flag+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   lt_cv_ld_reload_flag='-r'
6064 fi
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6066 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6067 reload_flag=$lt_cv_ld_reload_flag
6068 case $reload_flag in
6069 "" | " "*) ;;
6070 *) reload_flag=" $reload_flag" ;;
6071 esac
6072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6073 case $host_os in
6074   cygwin* | mingw* | pw32* | cegcc*)
6075     if test "$GCC" != yes; then
6076       reload_cmds=false
6077     fi
6078     ;;
6079   darwin*)
6080     if test "$GCC" = yes; then
6081       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6082     else
6083       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6084     fi
6085     ;;
6086 esac
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096 if test -n "$ac_tool_prefix"; then
6097   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_OBJDUMP+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   if test -n "$OBJDUMP"; then
6105   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112     for ac_exec_ext in '' $ac_executable_extensions; do
6113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119   done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 OBJDUMP=$ac_cv_prog_OBJDUMP
6125 if test -n "$OBJDUMP"; then
6126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6127 $as_echo "$OBJDUMP" >&6; }
6128 else
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134 fi
6135 if test -z "$ac_cv_prog_OBJDUMP"; then
6136   ac_ct_OBJDUMP=$OBJDUMP
6137   # Extract the first word of "objdump", so it can be a program name with args.
6138 set dummy objdump; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   if test -n "$ac_ct_OBJDUMP"; then
6145   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152     for ac_exec_ext in '' $ac_executable_extensions; do
6153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159   done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6165 if test -n "$ac_ct_OBJDUMP"; then
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6167 $as_echo "$ac_ct_OBJDUMP" >&6; }
6168 else
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173   if test "x$ac_ct_OBJDUMP" = x; then
6174     OBJDUMP="false"
6175   else
6176     case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182     OBJDUMP=$ac_ct_OBJDUMP
6183   fi
6184 else
6185   OBJDUMP="$ac_cv_prog_OBJDUMP"
6186 fi
6187
6188 test -z "$OBJDUMP" && OBJDUMP=objdump
6189
6190
6191
6192
6193
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6196 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6197 if ${lt_cv_deplibs_check_method+:} false; then :
6198   $as_echo_n "(cached) " >&6
6199 else
6200   lt_cv_file_magic_cmd='$MAGIC_CMD'
6201 lt_cv_file_magic_test_file=
6202 lt_cv_deplibs_check_method='unknown'
6203 # Need to set the preceding variable on all platforms that support
6204 # interlibrary dependencies.
6205 # 'none' -- dependencies not supported.
6206 # `unknown' -- same as none, but documents that we really don't know.
6207 # 'pass_all' -- all dependencies passed with no checks.
6208 # 'test_compile' -- check by making test program.
6209 # 'file_magic [[regex]]' -- check by looking for files in library path
6210 # which responds to the $file_magic_cmd with a given extended regex.
6211 # If you have `file' or equivalent on your system and you're not sure
6212 # whether `pass_all' will *always* work, you probably want this one.
6213
6214 case $host_os in
6215 aix[4-9]*)
6216   lt_cv_deplibs_check_method=pass_all
6217   ;;
6218
6219 beos*)
6220   lt_cv_deplibs_check_method=pass_all
6221   ;;
6222
6223 bsdi[45]*)
6224   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6225   lt_cv_file_magic_cmd='/usr/bin/file -L'
6226   lt_cv_file_magic_test_file=/shlib/libc.so
6227   ;;
6228
6229 cygwin*)
6230   # func_win32_libid is a shell function defined in ltmain.sh
6231   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6232   lt_cv_file_magic_cmd='func_win32_libid'
6233   ;;
6234
6235 mingw* | pw32*)
6236   # Base MSYS/MinGW do not provide the 'file' command needed by
6237   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6238   # unless we find 'file', for example because we are cross-compiling.
6239   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6240   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6241     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6242     lt_cv_file_magic_cmd='func_win32_libid'
6243   else
6244     # Keep this pattern in sync with the one in func_win32_libid.
6245     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6246     lt_cv_file_magic_cmd='$OBJDUMP -f'
6247   fi
6248   ;;
6249
6250 cegcc*)
6251   # use the weaker test based on 'objdump'. See mingw*.
6252   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6253   lt_cv_file_magic_cmd='$OBJDUMP -f'
6254   ;;
6255
6256 darwin* | rhapsody*)
6257   lt_cv_deplibs_check_method=pass_all
6258   ;;
6259
6260 freebsd* | dragonfly*)
6261   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6262     case $host_cpu in
6263     i*86 )
6264       # Not sure whether the presence of OpenBSD here was a mistake.
6265       # Let's accept both of them until this is cleared up.
6266       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6267       lt_cv_file_magic_cmd=/usr/bin/file
6268       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6269       ;;
6270     esac
6271   else
6272     lt_cv_deplibs_check_method=pass_all
6273   fi
6274   ;;
6275
6276 gnu*)
6277   lt_cv_deplibs_check_method=pass_all
6278   ;;
6279
6280 haiku*)
6281   lt_cv_deplibs_check_method=pass_all
6282   ;;
6283
6284 hpux10.20* | hpux11*)
6285   lt_cv_file_magic_cmd=/usr/bin/file
6286   case $host_cpu in
6287   ia64*)
6288     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6289     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6290     ;;
6291   hppa*64*)
6292     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]'
6293     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6294     ;;
6295   *)
6296     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6297     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6298     ;;
6299   esac
6300   ;;
6301
6302 interix[3-9]*)
6303   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6304   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6305   ;;
6306
6307 irix5* | irix6* | nonstopux*)
6308   case $LD in
6309   *-32|*"-32 ") libmagic=32-bit;;
6310   *-n32|*"-n32 ") libmagic=N32;;
6311   *-64|*"-64 ") libmagic=64-bit;;
6312   *) libmagic=never-match;;
6313   esac
6314   lt_cv_deplibs_check_method=pass_all
6315   ;;
6316
6317 # This must be glibc/ELF.
6318 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6319   lt_cv_deplibs_check_method=pass_all
6320   ;;
6321
6322 netbsd*)
6323   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6324     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6325   else
6326     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6327   fi
6328   ;;
6329
6330 newos6*)
6331   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6332   lt_cv_file_magic_cmd=/usr/bin/file
6333   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6334   ;;
6335
6336 *nto* | *qnx*)
6337   lt_cv_deplibs_check_method=pass_all
6338   ;;
6339
6340 openbsd*)
6341   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6342     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6343   else
6344     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6345   fi
6346   ;;
6347
6348 osf3* | osf4* | osf5*)
6349   lt_cv_deplibs_check_method=pass_all
6350   ;;
6351
6352 rdos*)
6353   lt_cv_deplibs_check_method=pass_all
6354   ;;
6355
6356 solaris*)
6357   lt_cv_deplibs_check_method=pass_all
6358   ;;
6359
6360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6361   lt_cv_deplibs_check_method=pass_all
6362   ;;
6363
6364 sysv4 | sysv4.3*)
6365   case $host_vendor in
6366   motorola)
6367     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]'
6368     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6369     ;;
6370   ncr)
6371     lt_cv_deplibs_check_method=pass_all
6372     ;;
6373   sequent)
6374     lt_cv_file_magic_cmd='/bin/file'
6375     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6376     ;;
6377   sni)
6378     lt_cv_file_magic_cmd='/bin/file'
6379     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6380     lt_cv_file_magic_test_file=/lib/libc.so
6381     ;;
6382   siemens)
6383     lt_cv_deplibs_check_method=pass_all
6384     ;;
6385   pc)
6386     lt_cv_deplibs_check_method=pass_all
6387     ;;
6388   esac
6389   ;;
6390
6391 tpf*)
6392   lt_cv_deplibs_check_method=pass_all
6393   ;;
6394 esac
6395
6396 fi
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6398 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6399
6400 file_magic_glob=
6401 want_nocaseglob=no
6402 if test "$build" = "$host"; then
6403   case $host_os in
6404   mingw* | pw32*)
6405     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6406       want_nocaseglob=yes
6407     else
6408       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6409     fi
6410     ;;
6411   esac
6412 fi
6413
6414 file_magic_cmd=$lt_cv_file_magic_cmd
6415 deplibs_check_method=$lt_cv_deplibs_check_method
6416 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 if test -n "$ac_tool_prefix"; then
6440   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_DLLTOOL+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$DLLTOOL"; then
6448   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 DLLTOOL=$ac_cv_prog_DLLTOOL
6468 if test -n "$DLLTOOL"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6470 $as_echo "$DLLTOOL" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476
6477 fi
6478 if test -z "$ac_cv_prog_DLLTOOL"; then
6479   ac_ct_DLLTOOL=$DLLTOOL
6480   # Extract the first word of "dlltool", so it can be a program name with args.
6481 set dummy dlltool; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6485   $as_echo_n "(cached) " >&6
6486 else
6487   if test -n "$ac_ct_DLLTOOL"; then
6488   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495     for ac_exec_ext in '' $ac_executable_extensions; do
6496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502   done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6508 if test -n "$ac_ct_DLLTOOL"; then
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6510 $as_echo "$ac_ct_DLLTOOL" >&6; }
6511 else
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516   if test "x$ac_ct_DLLTOOL" = x; then
6517     DLLTOOL="false"
6518   else
6519     case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525     DLLTOOL=$ac_ct_DLLTOOL
6526   fi
6527 else
6528   DLLTOOL="$ac_cv_prog_DLLTOOL"
6529 fi
6530
6531 test -z "$DLLTOOL" && DLLTOOL=dlltool
6532
6533
6534
6535
6536
6537
6538
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6540 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6541 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544   lt_cv_sharedlib_from_linklib_cmd='unknown'
6545
6546 case $host_os in
6547 cygwin* | mingw* | pw32* | cegcc*)
6548   # two different shell functions defined in ltmain.sh
6549   # decide which to use based on capabilities of $DLLTOOL
6550   case `$DLLTOOL --help 2>&1` in
6551   *--identify-strict*)
6552     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6553     ;;
6554   *)
6555     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6556     ;;
6557   esac
6558   ;;
6559 *)
6560   # fallback: assume linklib IS sharedlib
6561   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6562   ;;
6563 esac
6564
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6567 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6568 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6569 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6570
6571
6572
6573
6574
6575
6576
6577
6578 if test -n "$ac_tool_prefix"; then
6579   for ac_prog in ar
6580   do
6581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_AR+:} false; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   if test -n "$AR"; then
6589   ac_cv_prog_AR="$AR" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603   done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 AR=$ac_cv_prog_AR
6609 if test -n "$AR"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6611 $as_echo "$AR" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617
6618     test -n "$AR" && break
6619   done
6620 fi
6621 if test -z "$AR"; then
6622   ac_ct_AR=$AR
6623   for ac_prog in ar
6624 do
6625   # Extract the first word of "$ac_prog", so it can be a program name with args.
6626 set dummy $ac_prog; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6630   $as_echo_n "(cached) " >&6
6631 else
6632   if test -n "$ac_ct_AR"; then
6633   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640     for ac_exec_ext in '' $ac_executable_extensions; do
6641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642     ac_cv_prog_ac_ct_AR="$ac_prog"
6643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647   done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6653 if test -n "$ac_ct_AR"; then
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6655 $as_echo "$ac_ct_AR" >&6; }
6656 else
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661
6662   test -n "$ac_ct_AR" && break
6663 done
6664
6665   if test "x$ac_ct_AR" = x; then
6666     AR="false"
6667   else
6668     case $cross_compiling:$ac_tool_warned in
6669 yes:)
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned=yes ;;
6673 esac
6674     AR=$ac_ct_AR
6675   fi
6676 fi
6677
6678 : ${AR=ar}
6679 : ${AR_FLAGS=cru}
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6692 $as_echo_n "checking for archiver @FILE support... " >&6; }
6693 if ${lt_cv_ar_at_file+:} false; then :
6694   $as_echo_n "(cached) " >&6
6695 else
6696   lt_cv_ar_at_file=no
6697    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h.  */
6699
6700 int
6701 main ()
6702 {
6703
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709   echo conftest.$ac_objext > conftest.lst
6710       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6711       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6712   (eval $lt_ar_try) 2>&5
6713   ac_status=$?
6714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715   test $ac_status = 0; }
6716       if test "$ac_status" -eq 0; then
6717         # Ensure the archiver fails upon bogus file names.
6718         rm -f conftest.$ac_objext libconftest.a
6719         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6720   (eval $lt_ar_try) 2>&5
6721   ac_status=$?
6722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723   test $ac_status = 0; }
6724         if test "$ac_status" -ne 0; then
6725           lt_cv_ar_at_file=@
6726         fi
6727       fi
6728       rm -f conftest.* libconftest.a
6729
6730 fi
6731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732
6733 fi
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6735 $as_echo "$lt_cv_ar_at_file" >&6; }
6736
6737 if test "x$lt_cv_ar_at_file" = xno; then
6738   archiver_list_spec=
6739 else
6740   archiver_list_spec=$lt_cv_ar_at_file
6741 fi
6742
6743
6744
6745
6746
6747
6748
6749 if test -n "$ac_tool_prefix"; then
6750   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}strip; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_STRIP+:} false; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   if test -n "$STRIP"; then
6758   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765     for ac_exec_ext in '' $ac_executable_extensions; do
6766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772   done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 STRIP=$ac_cv_prog_STRIP
6778 if test -n "$STRIP"; then
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6780 $as_echo "$STRIP" >&6; }
6781 else
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6784 fi
6785
6786
6787 fi
6788 if test -z "$ac_cv_prog_STRIP"; then
6789   ac_ct_STRIP=$STRIP
6790   # Extract the first word of "strip", so it can be a program name with args.
6791 set dummy strip; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   if test -n "$ac_ct_STRIP"; then
6798   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805     for ac_exec_ext in '' $ac_executable_extensions; do
6806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807     ac_cv_prog_ac_ct_STRIP="strip"
6808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812   done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6818 if test -n "$ac_ct_STRIP"; then
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6820 $as_echo "$ac_ct_STRIP" >&6; }
6821 else
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826   if test "x$ac_ct_STRIP" = x; then
6827     STRIP=":"
6828   else
6829     case $cross_compiling:$ac_tool_warned in
6830 yes:)
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835     STRIP=$ac_ct_STRIP
6836   fi
6837 else
6838   STRIP="$ac_cv_prog_STRIP"
6839 fi
6840
6841 test -z "$STRIP" && STRIP=:
6842
6843
6844
6845
6846
6847
6848 if test -n "$ac_tool_prefix"; then
6849   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_RANLIB+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   if test -n "$RANLIB"; then
6857   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864     for ac_exec_ext in '' $ac_executable_extensions; do
6865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871   done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 RANLIB=$ac_cv_prog_RANLIB
6877 if test -n "$RANLIB"; then
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6879 $as_echo "$RANLIB" >&6; }
6880 else
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885
6886 fi
6887 if test -z "$ac_cv_prog_RANLIB"; then
6888   ac_ct_RANLIB=$RANLIB
6889   # Extract the first word of "ranlib", so it can be a program name with args.
6890 set dummy ranlib; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6894   $as_echo_n "(cached) " >&6
6895 else
6896   if test -n "$ac_ct_RANLIB"; then
6897   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904     for ac_exec_ext in '' $ac_executable_extensions; do
6905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906     ac_cv_prog_ac_ct_RANLIB="ranlib"
6907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911   done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6917 if test -n "$ac_ct_RANLIB"; then
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6919 $as_echo "$ac_ct_RANLIB" >&6; }
6920 else
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925   if test "x$ac_ct_RANLIB" = x; then
6926     RANLIB=":"
6927   else
6928     case $cross_compiling:$ac_tool_warned in
6929 yes:)
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned=yes ;;
6933 esac
6934     RANLIB=$ac_ct_RANLIB
6935   fi
6936 else
6937   RANLIB="$ac_cv_prog_RANLIB"
6938 fi
6939
6940 test -z "$RANLIB" && RANLIB=:
6941
6942
6943
6944
6945
6946
6947 # Determine commands to create old-style static archives.
6948 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6949 old_postinstall_cmds='chmod 644 $oldlib'
6950 old_postuninstall_cmds=
6951
6952 if test -n "$RANLIB"; then
6953   case $host_os in
6954   openbsd*)
6955     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6956     ;;
6957   *)
6958     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6959     ;;
6960   esac
6961   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6962 fi
6963
6964 case $host_os in
6965   darwin*)
6966     lock_old_archive_extraction=yes ;;
6967   *)
6968     lock_old_archive_extraction=no ;;
6969 esac
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009 # If no C compiler was specified, use CC.
7010 LTCC=${LTCC-"$CC"}
7011
7012 # If no C compiler flags were specified, use CFLAGS.
7013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7014
7015 # Allow CC to be a program name with arguments.
7016 compiler=$CC
7017
7018
7019 # Check for command to grab the raw symbol name followed by C symbol from nm.
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7021 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7022 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025
7026 # These are sane defaults that work on at least a few old systems.
7027 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7028
7029 # Character class describing NM global symbol codes.
7030 symcode='[BCDEGRST]'
7031
7032 # Regexp to match symbols that can be accessed directly from C.
7033 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7034
7035 # Define system-specific variables.
7036 case $host_os in
7037 aix*)
7038   symcode='[BCDT]'
7039   ;;
7040 cygwin* | mingw* | pw32* | cegcc*)
7041   symcode='[ABCDGISTW]'
7042   ;;
7043 hpux*)
7044   if test "$host_cpu" = ia64; then
7045     symcode='[ABCDEGRST]'
7046   fi
7047   ;;
7048 irix* | nonstopux*)
7049   symcode='[BCDEGRST]'
7050   ;;
7051 osf*)
7052   symcode='[BCDEGQRST]'
7053   ;;
7054 solaris*)
7055   symcode='[BDRT]'
7056   ;;
7057 sco3.2v5*)
7058   symcode='[DT]'
7059   ;;
7060 sysv4.2uw2*)
7061   symcode='[DT]'
7062   ;;
7063 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7064   symcode='[ABDT]'
7065   ;;
7066 sysv4)
7067   symcode='[DFNSTU]'
7068   ;;
7069 esac
7070
7071 # If we're using GNU nm, then use its standard symbol codes.
7072 case `$NM -V 2>&1` in
7073 *GNU* | *'with BFD'*)
7074   symcode='[ABCDGIRSTW]' ;;
7075 esac
7076
7077 # Transform an extracted symbol line into a proper C declaration.
7078 # Some systems (esp. on ia64) link data and code symbols differently,
7079 # so use this general approach.
7080 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7081
7082 # Transform an extracted symbol line into symbol name and symbol address
7083 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7084 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'"
7085
7086 # Handle CRLF in mingw tool chain
7087 opt_cr=
7088 case $build_os in
7089 mingw*)
7090   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7091   ;;
7092 esac
7093
7094 # Try without a prefix underscore, then with it.
7095 for ac_symprfx in "" "_"; do
7096
7097   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7098   symxfrm="\\1 $ac_symprfx\\2 \\2"
7099
7100   # Write the raw and C identifiers.
7101   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7102     # Fake it for dumpbin and say T for any non-static function
7103     # and D for any global variable.
7104     # Also find C++ and __fastcall symbols from MSVC++,
7105     # which start with @ or ?.
7106     lt_cv_sys_global_symbol_pipe="$AWK '"\
7107 "     {last_section=section; section=\$ 3};"\
7108 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7109 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7110 "     \$ 0!~/External *\|/{next};"\
7111 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7112 "     {if(hide[section]) next};"\
7113 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7114 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7115 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7116 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7117 "     ' prfx=^$ac_symprfx"
7118   else
7119     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7120   fi
7121   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7122
7123   # Check to see that the pipe works correctly.
7124   pipe_works=no
7125
7126   rm -f conftest*
7127   cat > conftest.$ac_ext <<_LT_EOF
7128 #ifdef __cplusplus
7129 extern "C" {
7130 #endif
7131 char nm_test_var;
7132 void nm_test_func(void);
7133 void nm_test_func(void){}
7134 #ifdef __cplusplus
7135 }
7136 #endif
7137 int main(){nm_test_var='a';nm_test_func();return(0);}
7138 _LT_EOF
7139
7140   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141   (eval $ac_compile) 2>&5
7142   ac_status=$?
7143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144   test $ac_status = 0; }; then
7145     # Now try to grab the symbols.
7146     nlist=conftest.nm
7147     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7148   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7149   ac_status=$?
7150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151   test $ac_status = 0; } && test -s "$nlist"; then
7152       # Try sorting and uniquifying the output.
7153       if sort "$nlist" | uniq > "$nlist"T; then
7154         mv -f "$nlist"T "$nlist"
7155       else
7156         rm -f "$nlist"T
7157       fi
7158
7159       # Make sure that we snagged all the symbols we need.
7160       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7161         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7162           cat <<_LT_EOF > conftest.$ac_ext
7163 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7164 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7165 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7166    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7167 # define LT_DLSYM_CONST
7168 #elif defined(__osf__)
7169 /* This system does not cope well with relocations in const data.  */
7170 # define LT_DLSYM_CONST
7171 #else
7172 # define LT_DLSYM_CONST const
7173 #endif
7174
7175 #ifdef __cplusplus
7176 extern "C" {
7177 #endif
7178
7179 _LT_EOF
7180           # Now generate the symbol file.
7181           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7182
7183           cat <<_LT_EOF >> conftest.$ac_ext
7184
7185 /* The mapping between symbol names and symbols.  */
7186 LT_DLSYM_CONST struct {
7187   const char *name;
7188   void       *address;
7189 }
7190 lt__PROGRAM__LTX_preloaded_symbols[] =
7191 {
7192   { "@PROGRAM@", (void *) 0 },
7193 _LT_EOF
7194           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7195           cat <<\_LT_EOF >> conftest.$ac_ext
7196   {0, (void *) 0}
7197 };
7198
7199 /* This works around a problem in FreeBSD linker */
7200 #ifdef FREEBSD_WORKAROUND
7201 static const void *lt_preloaded_setup() {
7202   return lt__PROGRAM__LTX_preloaded_symbols;
7203 }
7204 #endif
7205
7206 #ifdef __cplusplus
7207 }
7208 #endif
7209 _LT_EOF
7210           # Now try linking the two files.
7211           mv conftest.$ac_objext conftstm.$ac_objext
7212           lt_globsym_save_LIBS=$LIBS
7213           lt_globsym_save_CFLAGS=$CFLAGS
7214           LIBS="conftstm.$ac_objext"
7215           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7216           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7217   (eval $ac_link) 2>&5
7218   ac_status=$?
7219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7220   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7221             pipe_works=yes
7222           fi
7223           LIBS=$lt_globsym_save_LIBS
7224           CFLAGS=$lt_globsym_save_CFLAGS
7225         else
7226           echo "cannot find nm_test_func in $nlist" >&5
7227         fi
7228       else
7229         echo "cannot find nm_test_var in $nlist" >&5
7230       fi
7231     else
7232       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7233     fi
7234   else
7235     echo "$progname: failed program was:" >&5
7236     cat conftest.$ac_ext >&5
7237   fi
7238   rm -rf conftest* conftst*
7239
7240   # Do not use the global_symbol_pipe unless it works.
7241   if test "$pipe_works" = yes; then
7242     break
7243   else
7244     lt_cv_sys_global_symbol_pipe=
7245   fi
7246 done
7247
7248 fi
7249
7250 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7251   lt_cv_sys_global_symbol_to_cdecl=
7252 fi
7253 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7255 $as_echo "failed" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7258 $as_echo "ok" >&6; }
7259 fi
7260
7261 # Response file support.
7262 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7263   nm_file_list_spec='@'
7264 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7265   nm_file_list_spec='@'
7266 fi
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7295 $as_echo_n "checking for sysroot... " >&6; }
7296
7297 # Check whether --with-sysroot was given.
7298 if test "${with_sysroot+set}" = set; then :
7299   withval=$with_sysroot;
7300 else
7301   with_sysroot=no
7302 fi
7303
7304
7305 lt_sysroot=
7306 case ${with_sysroot} in #(
7307  yes)
7308    if test "$GCC" = yes; then
7309      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7310    fi
7311    ;; #(
7312  /*)
7313    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7314    ;; #(
7315  no|'')
7316    ;; #(
7317  *)
7318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7319 $as_echo "${with_sysroot}" >&6; }
7320    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7321    ;;
7322 esac
7323
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7325 $as_echo "${lt_sysroot:-no}" >&6; }
7326
7327
7328
7329
7330
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then :
7333   enableval=$enable_libtool_lock;
7334 fi
7335
7336 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7337
7338 # Some flags need to be propagated to the compiler or linker for good
7339 # libtool support.
7340 case $host in
7341 ia64-*-hpux*)
7342   # Find out which ABI we are using.
7343   echo 'int i;' > conftest.$ac_ext
7344   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345   (eval $ac_compile) 2>&5
7346   ac_status=$?
7347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348   test $ac_status = 0; }; then
7349     case `/usr/bin/file conftest.$ac_objext` in
7350       *ELF-32*)
7351         HPUX_IA64_MODE="32"
7352         ;;
7353       *ELF-64*)
7354         HPUX_IA64_MODE="64"
7355         ;;
7356     esac
7357   fi
7358   rm -rf conftest*
7359   ;;
7360 *-*-irix6*)
7361   # Find out which ABI we are using.
7362   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7363   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364   (eval $ac_compile) 2>&5
7365   ac_status=$?
7366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367   test $ac_status = 0; }; then
7368     if test "$lt_cv_prog_gnu_ld" = yes; then
7369       case `/usr/bin/file conftest.$ac_objext` in
7370         *32-bit*)
7371           LD="${LD-ld} -melf32bsmip"
7372           ;;
7373         *N32*)
7374           LD="${LD-ld} -melf32bmipn32"
7375           ;;
7376         *64-bit*)
7377           LD="${LD-ld} -melf64bmip"
7378         ;;
7379       esac
7380     else
7381       case `/usr/bin/file conftest.$ac_objext` in
7382         *32-bit*)
7383           LD="${LD-ld} -32"
7384           ;;
7385         *N32*)
7386           LD="${LD-ld} -n32"
7387           ;;
7388         *64-bit*)
7389           LD="${LD-ld} -64"
7390           ;;
7391       esac
7392     fi
7393   fi
7394   rm -rf conftest*
7395   ;;
7396
7397 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7398 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7399   # Find out which ABI we are using.
7400   echo 'int i;' > conftest.$ac_ext
7401   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402   (eval $ac_compile) 2>&5
7403   ac_status=$?
7404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405   test $ac_status = 0; }; then
7406     case `/usr/bin/file conftest.o` in
7407       *32-bit*)
7408         case $host in
7409           x86_64-*kfreebsd*-gnu)
7410             LD="${LD-ld} -m elf_i386_fbsd"
7411             ;;
7412           x86_64-*linux*)
7413             LD="${LD-ld} -m elf_i386"
7414             ;;
7415           ppc64-*linux*|powerpc64-*linux*)
7416             LD="${LD-ld} -m elf32ppclinux"
7417             ;;
7418           s390x-*linux*)
7419             LD="${LD-ld} -m elf_s390"
7420             ;;
7421           sparc64-*linux*)
7422             LD="${LD-ld} -m elf32_sparc"
7423             ;;
7424         esac
7425         ;;
7426       *64-bit*)
7427         case $host in
7428           x86_64-*kfreebsd*-gnu)
7429             LD="${LD-ld} -m elf_x86_64_fbsd"
7430             ;;
7431           x86_64-*linux*)
7432             LD="${LD-ld} -m elf_x86_64"
7433             ;;
7434           ppc*-*linux*|powerpc*-*linux*)
7435             LD="${LD-ld} -m elf64ppc"
7436             ;;
7437           s390*-*linux*|s390*-*tpf*)
7438             LD="${LD-ld} -m elf64_s390"
7439             ;;
7440           sparc*-*linux*)
7441             LD="${LD-ld} -m elf64_sparc"
7442             ;;
7443         esac
7444         ;;
7445     esac
7446   fi
7447   rm -rf conftest*
7448   ;;
7449
7450 *-*-sco3.2v5*)
7451   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7452   SAVE_CFLAGS="$CFLAGS"
7453   CFLAGS="$CFLAGS -belf"
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7455 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7456 if ${lt_cv_cc_needs_belf+:} false; then :
7457   $as_echo_n "(cached) " >&6
7458 else
7459   ac_ext=c
7460 ac_cpp='$CPP $CPPFLAGS'
7461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464
7465      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h.  */
7467
7468 int
7469 main ()
7470 {
7471
7472   ;
7473   return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_link "$LINENO"; then :
7477   lt_cv_cc_needs_belf=yes
7478 else
7479   lt_cv_cc_needs_belf=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext \
7482     conftest$ac_exeext conftest.$ac_ext
7483      ac_ext=c
7484 ac_cpp='$CPP $CPPFLAGS'
7485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488
7489 fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7491 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7492   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7493     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7494     CFLAGS="$SAVE_CFLAGS"
7495   fi
7496   ;;
7497 *-*solaris*)
7498   # Find out which ABI we are using.
7499   echo 'int i;' > conftest.$ac_ext
7500   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7501   (eval $ac_compile) 2>&5
7502   ac_status=$?
7503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504   test $ac_status = 0; }; then
7505     case `/usr/bin/file conftest.o` in
7506     *64-bit*)
7507       case $lt_cv_prog_gnu_ld in
7508       yes*)
7509         case $host in
7510         i?86-*-solaris*)
7511           LD="${LD-ld} -m elf_x86_64"
7512           ;;
7513         sparc*-*-solaris*)
7514           LD="${LD-ld} -m elf64_sparc"
7515           ;;
7516         esac
7517         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7518         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7519           LD="${LD-ld}_sol2"
7520         fi
7521         ;;
7522       *)
7523         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7524           LD="${LD-ld} -64"
7525         fi
7526         ;;
7527       esac
7528       ;;
7529     esac
7530   fi
7531   rm -rf conftest*
7532   ;;
7533 esac
7534
7535 need_locks="$enable_libtool_lock"
7536
7537 if test -n "$ac_tool_prefix"; then
7538   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7539 set dummy ${ac_tool_prefix}mt; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   if test -n "$MANIFEST_TOOL"; then
7546   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553     for ac_exec_ext in '' $ac_executable_extensions; do
7554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560   done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7566 if test -n "$MANIFEST_TOOL"; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7568 $as_echo "$MANIFEST_TOOL" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 fi
7576 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7577   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7578   # Extract the first word of "mt", so it can be a program name with args.
7579 set dummy mt; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   if test -n "$ac_ct_MANIFEST_TOOL"; then
7586   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7606 if test -n "$ac_ct_MANIFEST_TOOL"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7608 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7615     MANIFEST_TOOL=":"
7616   else
7617     case $cross_compiling:$ac_tool_warned in
7618 yes:)
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7621 ac_tool_warned=yes ;;
7622 esac
7623     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7624   fi
7625 else
7626   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7627 fi
7628
7629 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7631 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7632 if ${lt_cv_path_mainfest_tool+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   lt_cv_path_mainfest_tool=no
7636   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7637   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7638   cat conftest.err >&5
7639   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7640     lt_cv_path_mainfest_tool=yes
7641   fi
7642   rm -f conftest*
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7645 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7646 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7647   MANIFEST_TOOL=:
7648 fi
7649
7650
7651
7652
7653
7654
7655   case $host_os in
7656     rhapsody* | darwin*)
7657     if test -n "$ac_tool_prefix"; then
7658   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   if test -n "$DSYMUTIL"; then
7666   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673     for ac_exec_ext in '' $ac_executable_extensions; do
7674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680   done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7686 if test -n "$DSYMUTIL"; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7688 $as_echo "$DSYMUTIL" >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695 fi
7696 if test -z "$ac_cv_prog_DSYMUTIL"; then
7697   ac_ct_DSYMUTIL=$DSYMUTIL
7698   # Extract the first word of "dsymutil", so it can be a program name with args.
7699 set dummy dsymutil; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7703   $as_echo_n "(cached) " >&6
7704 else
7705   if test -n "$ac_ct_DSYMUTIL"; then
7706   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713     for ac_exec_ext in '' $ac_executable_extensions; do
7714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720   done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7726 if test -n "$ac_ct_DSYMUTIL"; then
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7728 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7729 else
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734   if test "x$ac_ct_DSYMUTIL" = x; then
7735     DSYMUTIL=":"
7736   else
7737     case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743     DSYMUTIL=$ac_ct_DSYMUTIL
7744   fi
7745 else
7746   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7747 fi
7748
7749     if test -n "$ac_tool_prefix"; then
7750   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_prog_NMEDIT+:} false; then :
7755   $as_echo_n "(cached) " >&6
7756 else
7757   if test -n "$NMEDIT"; then
7758   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763   IFS=$as_save_IFS
7764   test -z "$as_dir" && as_dir=.
7765     for ac_exec_ext in '' $ac_executable_extensions; do
7766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7767     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769     break 2
7770   fi
7771 done
7772   done
7773 IFS=$as_save_IFS
7774
7775 fi
7776 fi
7777 NMEDIT=$ac_cv_prog_NMEDIT
7778 if test -n "$NMEDIT"; then
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7780 $as_echo "$NMEDIT" >&6; }
7781 else
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786
7787 fi
7788 if test -z "$ac_cv_prog_NMEDIT"; then
7789   ac_ct_NMEDIT=$NMEDIT
7790   # Extract the first word of "nmedit", so it can be a program name with args.
7791 set dummy nmedit; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   if test -n "$ac_ct_NMEDIT"; then
7798   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803   IFS=$as_save_IFS
7804   test -z "$as_dir" && as_dir=.
7805     for ac_exec_ext in '' $ac_executable_extensions; do
7806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809     break 2
7810   fi
7811 done
7812   done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7818 if test -n "$ac_ct_NMEDIT"; then
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7820 $as_echo "$ac_ct_NMEDIT" >&6; }
7821 else
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826   if test "x$ac_ct_NMEDIT" = x; then
7827     NMEDIT=":"
7828   else
7829     case $cross_compiling:$ac_tool_warned in
7830 yes:)
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7834 esac
7835     NMEDIT=$ac_ct_NMEDIT
7836   fi
7837 else
7838   NMEDIT="$ac_cv_prog_NMEDIT"
7839 fi
7840
7841     if test -n "$ac_tool_prefix"; then
7842   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7843 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if ${ac_cv_prog_LIPO+:} false; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   if test -n "$LIPO"; then
7850   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855   IFS=$as_save_IFS
7856   test -z "$as_dir" && as_dir=.
7857     for ac_exec_ext in '' $ac_executable_extensions; do
7858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7859     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861     break 2
7862   fi
7863 done
7864   done
7865 IFS=$as_save_IFS
7866
7867 fi
7868 fi
7869 LIPO=$ac_cv_prog_LIPO
7870 if test -n "$LIPO"; then
7871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7872 $as_echo "$LIPO" >&6; }
7873 else
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7877
7878
7879 fi
7880 if test -z "$ac_cv_prog_LIPO"; then
7881   ac_ct_LIPO=$LIPO
7882   # Extract the first word of "lipo", so it can be a program name with args.
7883 set dummy lipo; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   if test -n "$ac_ct_LIPO"; then
7890   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897     for ac_exec_ext in '' $ac_executable_extensions; do
7898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899     ac_cv_prog_ac_ct_LIPO="lipo"
7900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904   done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7910 if test -n "$ac_ct_LIPO"; then
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7912 $as_echo "$ac_ct_LIPO" >&6; }
7913 else
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918   if test "x$ac_ct_LIPO" = x; then
7919     LIPO=":"
7920   else
7921     case $cross_compiling:$ac_tool_warned in
7922 yes:)
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7925 ac_tool_warned=yes ;;
7926 esac
7927     LIPO=$ac_ct_LIPO
7928   fi
7929 else
7930   LIPO="$ac_cv_prog_LIPO"
7931 fi
7932
7933     if test -n "$ac_tool_prefix"; then
7934   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7935 set dummy ${ac_tool_prefix}otool; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if ${ac_cv_prog_OTOOL+:} false; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941   if test -n "$OTOOL"; then
7942   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947   IFS=$as_save_IFS
7948   test -z "$as_dir" && as_dir=.
7949     for ac_exec_ext in '' $ac_executable_extensions; do
7950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7951     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953     break 2
7954   fi
7955 done
7956   done
7957 IFS=$as_save_IFS
7958
7959 fi
7960 fi
7961 OTOOL=$ac_cv_prog_OTOOL
7962 if test -n "$OTOOL"; then
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7964 $as_echo "$OTOOL" >&6; }
7965 else
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7968 fi
7969
7970
7971 fi
7972 if test -z "$ac_cv_prog_OTOOL"; then
7973   ac_ct_OTOOL=$OTOOL
7974   # Extract the first word of "otool", so it can be a program name with args.
7975 set dummy otool; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7979   $as_echo_n "(cached) " >&6
7980 else
7981   if test -n "$ac_ct_OTOOL"; then
7982   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989     for ac_exec_ext in '' $ac_executable_extensions; do
7990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991     ac_cv_prog_ac_ct_OTOOL="otool"
7992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996   done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8002 if test -n "$ac_ct_OTOOL"; then
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8004 $as_echo "$ac_ct_OTOOL" >&6; }
8005 else
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010   if test "x$ac_ct_OTOOL" = x; then
8011     OTOOL=":"
8012   else
8013     case $cross_compiling:$ac_tool_warned in
8014 yes:)
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8017 ac_tool_warned=yes ;;
8018 esac
8019     OTOOL=$ac_ct_OTOOL
8020   fi
8021 else
8022   OTOOL="$ac_cv_prog_OTOOL"
8023 fi
8024
8025     if test -n "$ac_tool_prefix"; then
8026   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8027 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if ${ac_cv_prog_OTOOL64+:} false; then :
8031   $as_echo_n "(cached) " >&6
8032 else
8033   if test -n "$OTOOL64"; then
8034   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8038 do
8039   IFS=$as_save_IFS
8040   test -z "$as_dir" && as_dir=.
8041     for ac_exec_ext in '' $ac_executable_extensions; do
8042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8043     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045     break 2
8046   fi
8047 done
8048   done
8049 IFS=$as_save_IFS
8050
8051 fi
8052 fi
8053 OTOOL64=$ac_cv_prog_OTOOL64
8054 if test -n "$OTOOL64"; then
8055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8056 $as_echo "$OTOOL64" >&6; }
8057 else
8058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8060 fi
8061
8062
8063 fi
8064 if test -z "$ac_cv_prog_OTOOL64"; then
8065   ac_ct_OTOOL64=$OTOOL64
8066   # Extract the first word of "otool64", so it can be a program name with args.
8067 set dummy otool64; ac_word=$2
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 $as_echo_n "checking for $ac_word... " >&6; }
8070 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8071   $as_echo_n "(cached) " >&6
8072 else
8073   if test -n "$ac_ct_OTOOL64"; then
8074   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079   IFS=$as_save_IFS
8080   test -z "$as_dir" && as_dir=.
8081     for ac_exec_ext in '' $ac_executable_extensions; do
8082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083     ac_cv_prog_ac_ct_OTOOL64="otool64"
8084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085     break 2
8086   fi
8087 done
8088   done
8089 IFS=$as_save_IFS
8090
8091 fi
8092 fi
8093 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8094 if test -n "$ac_ct_OTOOL64"; then
8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8096 $as_echo "$ac_ct_OTOOL64" >&6; }
8097 else
8098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 fi
8101
8102   if test "x$ac_ct_OTOOL64" = x; then
8103     OTOOL64=":"
8104   else
8105     case $cross_compiling:$ac_tool_warned in
8106 yes:)
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8109 ac_tool_warned=yes ;;
8110 esac
8111     OTOOL64=$ac_ct_OTOOL64
8112   fi
8113 else
8114   OTOOL64="$ac_cv_prog_OTOOL64"
8115 fi
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8144 $as_echo_n "checking for -single_module linker flag... " >&6; }
8145 if ${lt_cv_apple_cc_single_mod+:} false; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   lt_cv_apple_cc_single_mod=no
8149       if test -z "${LT_MULTI_MODULE}"; then
8150         # By default we will add the -single_module flag. You can override
8151         # by either setting the environment variable LT_MULTI_MODULE
8152         # non-empty at configure time, or by adding -multi_module to the
8153         # link flags.
8154         rm -rf libconftest.dylib*
8155         echo "int foo(void){return 1;}" > conftest.c
8156         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8157 -dynamiclib -Wl,-single_module conftest.c" >&5
8158         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8159           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8160         _lt_result=$?
8161         # If there is a non-empty error log, and "single_module"
8162         # appears in it, assume the flag caused a linker warning
8163         if test -s conftest.err && $GREP single_module conftest.err; then
8164           cat conftest.err >&5
8165         # Otherwise, if the output was created with a 0 exit code from
8166         # the compiler, it worked.
8167         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8168           lt_cv_apple_cc_single_mod=yes
8169         else
8170           cat conftest.err >&5
8171         fi
8172         rm -rf libconftest.dylib*
8173         rm -f conftest.*
8174       fi
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8177 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8178
8179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8180 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8181 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   lt_cv_ld_exported_symbols_list=no
8185       save_LDFLAGS=$LDFLAGS
8186       echo "_main" > conftest.sym
8187       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8188       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h.  */
8190
8191 int
8192 main ()
8193 {
8194
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_link "$LINENO"; then :
8200   lt_cv_ld_exported_symbols_list=yes
8201 else
8202   lt_cv_ld_exported_symbols_list=no
8203 fi
8204 rm -f core conftest.err conftest.$ac_objext \
8205     conftest$ac_exeext conftest.$ac_ext
8206         LDFLAGS="$save_LDFLAGS"
8207
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8210 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8211
8212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8213 $as_echo_n "checking for -force_load linker flag... " >&6; }
8214 if ${lt_cv_ld_force_load+:} false; then :
8215   $as_echo_n "(cached) " >&6
8216 else
8217   lt_cv_ld_force_load=no
8218       cat > conftest.c << _LT_EOF
8219 int forced_loaded() { return 2;}
8220 _LT_EOF
8221       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8222       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8223       echo "$AR cru libconftest.a conftest.o" >&5
8224       $AR cru libconftest.a conftest.o 2>&5
8225       echo "$RANLIB libconftest.a" >&5
8226       $RANLIB libconftest.a 2>&5
8227       cat > conftest.c << _LT_EOF
8228 int main() { return 0;}
8229 _LT_EOF
8230       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8231       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8232       _lt_result=$?
8233       if test -s conftest.err && $GREP force_load conftest.err; then
8234         cat conftest.err >&5
8235       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8236         lt_cv_ld_force_load=yes
8237       else
8238         cat conftest.err >&5
8239       fi
8240         rm -f conftest.err libconftest.a conftest conftest.c
8241         rm -rf conftest.dSYM
8242
8243 fi
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8245 $as_echo "$lt_cv_ld_force_load" >&6; }
8246     case $host_os in
8247     rhapsody* | darwin1.[012])
8248       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8249     darwin1.*)
8250       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8251     darwin*) # darwin 5.x on
8252       # if running on 10.5 or later, the deployment target defaults
8253       # to the OS version, if on x86, and 10.4, the deployment
8254       # target defaults to 10.4. Don't you love it?
8255       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8256         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8257           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8258         10.[012]*)
8259           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8260         10.*)
8261           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8262       esac
8263     ;;
8264   esac
8265     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8266       _lt_dar_single_mod='$single_module'
8267     fi
8268     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8269       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8270     else
8271       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8272     fi
8273     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8274       _lt_dsymutil='~$DSYMUTIL $lib || :'
8275     else
8276       _lt_dsymutil=
8277     fi
8278     ;;
8279   esac
8280
8281 ac_ext=c
8282 ac_cpp='$CPP $CPPFLAGS'
8283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8287 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8288 # On Suns, sometimes $CPP names a directory.
8289 if test -n "$CPP" && test -d "$CPP"; then
8290   CPP=
8291 fi
8292 if test -z "$CPP"; then
8293   if ${ac_cv_prog_CPP+:} false; then :
8294   $as_echo_n "(cached) " >&6
8295 else
8296       # Double quotes because CPP needs to be expanded
8297     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8298     do
8299       ac_preproc_ok=false
8300 for ac_c_preproc_warn_flag in '' yes
8301 do
8302   # Use a header file that comes with gcc, so configuring glibc
8303   # with a fresh cross-compiler works.
8304   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305   # <limits.h> exists even on freestanding compilers.
8306   # On the NeXT, cc -E runs the code through the compiler's parser,
8307   # not just through cpp. "Syntax error" is here to catch this case.
8308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h.  */
8310 #ifdef __STDC__
8311 # include <limits.h>
8312 #else
8313 # include <assert.h>
8314 #endif
8315                      Syntax error
8316 _ACEOF
8317 if ac_fn_c_try_cpp "$LINENO"; then :
8318
8319 else
8320   # Broken: fails on valid input.
8321 continue
8322 fi
8323 rm -f conftest.err conftest.i conftest.$ac_ext
8324
8325   # OK, works on sane cases.  Now check whether nonexistent headers
8326   # can be detected and how.
8327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h.  */
8329 #include <ac_nonexistent.h>
8330 _ACEOF
8331 if ac_fn_c_try_cpp "$LINENO"; then :
8332   # Broken: success on invalid input.
8333 continue
8334 else
8335   # Passes both tests.
8336 ac_preproc_ok=:
8337 break
8338 fi
8339 rm -f conftest.err conftest.i conftest.$ac_ext
8340
8341 done
8342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8343 rm -f conftest.i conftest.err conftest.$ac_ext
8344 if $ac_preproc_ok; then :
8345   break
8346 fi
8347
8348     done
8349     ac_cv_prog_CPP=$CPP
8350
8351 fi
8352   CPP=$ac_cv_prog_CPP
8353 else
8354   ac_cv_prog_CPP=$CPP
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8357 $as_echo "$CPP" >&6; }
8358 ac_preproc_ok=false
8359 for ac_c_preproc_warn_flag in '' yes
8360 do
8361   # Use a header file that comes with gcc, so configuring glibc
8362   # with a fresh cross-compiler works.
8363   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8364   # <limits.h> exists even on freestanding compilers.
8365   # On the NeXT, cc -E runs the code through the compiler's parser,
8366   # not just through cpp. "Syntax error" is here to catch this case.
8367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h.  */
8369 #ifdef __STDC__
8370 # include <limits.h>
8371 #else
8372 # include <assert.h>
8373 #endif
8374                      Syntax error
8375 _ACEOF
8376 if ac_fn_c_try_cpp "$LINENO"; then :
8377
8378 else
8379   # Broken: fails on valid input.
8380 continue
8381 fi
8382 rm -f conftest.err conftest.i conftest.$ac_ext
8383
8384   # OK, works on sane cases.  Now check whether nonexistent headers
8385   # can be detected and how.
8386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h.  */
8388 #include <ac_nonexistent.h>
8389 _ACEOF
8390 if ac_fn_c_try_cpp "$LINENO"; then :
8391   # Broken: success on invalid input.
8392 continue
8393 else
8394   # Passes both tests.
8395 ac_preproc_ok=:
8396 break
8397 fi
8398 rm -f conftest.err conftest.i conftest.$ac_ext
8399
8400 done
8401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8402 rm -f conftest.i conftest.err conftest.$ac_ext
8403 if $ac_preproc_ok; then :
8404
8405 else
8406   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8408 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8409 See \`config.log' for more details" "$LINENO" 5; }
8410 fi
8411
8412 ac_ext=c
8413 ac_cpp='$CPP $CPPFLAGS'
8414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8420 $as_echo_n "checking for ANSI C header files... " >&6; }
8421 if ${ac_cv_header_stdc+:} false; then :
8422   $as_echo_n "(cached) " >&6
8423 else
8424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h.  */
8426 #include <stdlib.h>
8427 #include <stdarg.h>
8428 #include <string.h>
8429 #include <float.h>
8430
8431 int
8432 main ()
8433 {
8434
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 if ac_fn_c_try_compile "$LINENO"; then :
8440   ac_cv_header_stdc=yes
8441 else
8442   ac_cv_header_stdc=no
8443 fi
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445
8446 if test $ac_cv_header_stdc = yes; then
8447   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h.  */
8450 #include <string.h>
8451
8452 _ACEOF
8453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8454   $EGREP "memchr" >/dev/null 2>&1; then :
8455
8456 else
8457   ac_cv_header_stdc=no
8458 fi
8459 rm -f conftest*
8460
8461 fi
8462
8463 if test $ac_cv_header_stdc = yes; then
8464   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h.  */
8467 #include <stdlib.h>
8468
8469 _ACEOF
8470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8471   $EGREP "free" >/dev/null 2>&1; then :
8472
8473 else
8474   ac_cv_header_stdc=no
8475 fi
8476 rm -f conftest*
8477
8478 fi
8479
8480 if test $ac_cv_header_stdc = yes; then
8481   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8482   if test "$cross_compiling" = yes; then :
8483   :
8484 else
8485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h.  */
8487 #include <ctype.h>
8488 #include <stdlib.h>
8489 #if ((' ' & 0x0FF) == 0x020)
8490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8492 #else
8493 # define ISLOWER(c) \
8494                    (('a' <= (c) && (c) <= 'i') \
8495                      || ('j' <= (c) && (c) <= 'r') \
8496                      || ('s' <= (c) && (c) <= 'z'))
8497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8498 #endif
8499
8500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8501 int
8502 main ()
8503 {
8504   int i;
8505   for (i = 0; i < 256; i++)
8506     if (XOR (islower (i), ISLOWER (i))
8507         || toupper (i) != TOUPPER (i))
8508       return 2;
8509   return 0;
8510 }
8511 _ACEOF
8512 if ac_fn_c_try_run "$LINENO"; then :
8513
8514 else
8515   ac_cv_header_stdc=no
8516 fi
8517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8518   conftest.$ac_objext conftest.beam conftest.$ac_ext
8519 fi
8520
8521 fi
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8524 $as_echo "$ac_cv_header_stdc" >&6; }
8525 if test $ac_cv_header_stdc = yes; then
8526
8527 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8528
8529 fi
8530
8531 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8532 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8533                   inttypes.h stdint.h unistd.h
8534 do :
8535   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8536 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8537 "
8538 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8539   cat >>confdefs.h <<_ACEOF
8540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8541 _ACEOF
8542
8543 fi
8544
8545 done
8546
8547
8548 for ac_header in dlfcn.h
8549 do :
8550   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8551 "
8552 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8553   cat >>confdefs.h <<_ACEOF
8554 #define HAVE_DLFCN_H 1
8555 _ACEOF
8556
8557 fi
8558
8559 done
8560
8561
8562
8563
8564
8565 # Set options
8566
8567
8568
8569         enable_dlopen=no
8570
8571
8572
8573
8574   # Check whether --enable-static was given.
8575 if test "${enable_static+set}" = set; then :
8576   enableval=$enable_static; p=${PACKAGE-default}
8577     case $enableval in
8578     yes) enable_static=yes ;;
8579     no) enable_static=no ;;
8580     *)
8581      enable_static=no
8582       # Look at the argument we got.  We use all the common list separators.
8583       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8584       for pkg in $enableval; do
8585         IFS="$lt_save_ifs"
8586         if test "X$pkg" = "X$p"; then
8587           enable_static=yes
8588         fi
8589       done
8590       IFS="$lt_save_ifs"
8591       ;;
8592     esac
8593 else
8594   enable_static=yes
8595 fi
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606 # Check whether --with-pic was given.
8607 if test "${with_pic+set}" = set; then :
8608   withval=$with_pic; lt_p=${PACKAGE-default}
8609     case $withval in
8610     yes|no) pic_mode=$withval ;;
8611     *)
8612       pic_mode=default
8613       # Look at the argument we got.  We use all the common list separators.
8614       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8615       for lt_pkg in $withval; do
8616         IFS="$lt_save_ifs"
8617         if test "X$lt_pkg" = "X$lt_p"; then
8618           pic_mode=yes
8619         fi
8620       done
8621       IFS="$lt_save_ifs"
8622       ;;
8623     esac
8624 else
8625   pic_mode=default
8626 fi
8627
8628
8629 test -z "$pic_mode" && pic_mode=default
8630
8631
8632
8633
8634
8635
8636
8637   # Check whether --enable-fast-install was given.
8638 if test "${enable_fast_install+set}" = set; then :
8639   enableval=$enable_fast_install; p=${PACKAGE-default}
8640     case $enableval in
8641     yes) enable_fast_install=yes ;;
8642     no) enable_fast_install=no ;;
8643     *)
8644       enable_fast_install=no
8645       # Look at the argument we got.  We use all the common list separators.
8646       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8647       for pkg in $enableval; do
8648         IFS="$lt_save_ifs"
8649         if test "X$pkg" = "X$p"; then
8650           enable_fast_install=yes
8651         fi
8652       done
8653       IFS="$lt_save_ifs"
8654       ;;
8655     esac
8656 else
8657   enable_fast_install=yes
8658 fi
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670 # This can be used to rebuild libtool when needed
8671 LIBTOOL_DEPS="$ltmain"
8672
8673 # Always use our own libtool.
8674 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705 test -z "$LN_S" && LN_S="ln -s"
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720 if test -n "${ZSH_VERSION+set}" ; then
8721    setopt NO_GLOB_SUBST
8722 fi
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8725 $as_echo_n "checking for objdir... " >&6; }
8726 if ${lt_cv_objdir+:} false; then :
8727   $as_echo_n "(cached) " >&6
8728 else
8729   rm -f .libs 2>/dev/null
8730 mkdir .libs 2>/dev/null
8731 if test -d .libs; then
8732   lt_cv_objdir=.libs
8733 else
8734   # MS-DOS does not allow filenames that begin with a dot.
8735   lt_cv_objdir=_libs
8736 fi
8737 rmdir .libs 2>/dev/null
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8740 $as_echo "$lt_cv_objdir" >&6; }
8741 objdir=$lt_cv_objdir
8742
8743
8744
8745
8746
8747 cat >>confdefs.h <<_ACEOF
8748 #define LT_OBJDIR "$lt_cv_objdir/"
8749 _ACEOF
8750
8751
8752
8753
8754 case $host_os in
8755 aix3*)
8756   # AIX sometimes has problems with the GCC collect2 program.  For some
8757   # reason, if we set the COLLECT_NAMES environment variable, the problems
8758   # vanish in a puff of smoke.
8759   if test "X${COLLECT_NAMES+set}" != Xset; then
8760     COLLECT_NAMES=
8761     export COLLECT_NAMES
8762   fi
8763   ;;
8764 esac
8765
8766 # Global variables:
8767 ofile=libtool
8768 can_build_shared=yes
8769
8770 # All known linkers require a `.a' archive for static linking (except MSVC,
8771 # which needs '.lib').
8772 libext=a
8773
8774 with_gnu_ld="$lt_cv_prog_gnu_ld"
8775
8776 old_CC="$CC"
8777 old_CFLAGS="$CFLAGS"
8778
8779 # Set sane defaults for various variables
8780 test -z "$CC" && CC=cc
8781 test -z "$LTCC" && LTCC=$CC
8782 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8783 test -z "$LD" && LD=ld
8784 test -z "$ac_objext" && ac_objext=o
8785
8786 for cc_temp in $compiler""; do
8787   case $cc_temp in
8788     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8789     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8790     \-*) ;;
8791     *) break;;
8792   esac
8793 done
8794 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8795
8796
8797 # Only perform the check for file, if the check method requires it
8798 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8799 case $deplibs_check_method in
8800 file_magic*)
8801   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8803 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8804 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   case $MAGIC_CMD in
8808 [\\/*] |  ?:[\\/]*)
8809   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8810   ;;
8811 *)
8812   lt_save_MAGIC_CMD="$MAGIC_CMD"
8813   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8814   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8815   for ac_dir in $ac_dummy; do
8816     IFS="$lt_save_ifs"
8817     test -z "$ac_dir" && ac_dir=.
8818     if test -f $ac_dir/${ac_tool_prefix}file; then
8819       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8820       if test -n "$file_magic_test_file"; then
8821         case $deplibs_check_method in
8822         "file_magic "*)
8823           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8824           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8825           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8826             $EGREP "$file_magic_regex" > /dev/null; then
8827             :
8828           else
8829             cat <<_LT_EOF 1>&2
8830
8831 *** Warning: the command libtool uses to detect shared libraries,
8832 *** $file_magic_cmd, produces output that libtool cannot recognize.
8833 *** The result is that libtool may fail to recognize shared libraries
8834 *** as such.  This will affect the creation of libtool libraries that
8835 *** depend on shared libraries, but programs linked with such libtool
8836 *** libraries will work regardless of this problem.  Nevertheless, you
8837 *** may want to report the problem to your system manager and/or to
8838 *** bug-libtool@gnu.org
8839
8840 _LT_EOF
8841           fi ;;
8842         esac
8843       fi
8844       break
8845     fi
8846   done
8847   IFS="$lt_save_ifs"
8848   MAGIC_CMD="$lt_save_MAGIC_CMD"
8849   ;;
8850 esac
8851 fi
8852
8853 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8854 if test -n "$MAGIC_CMD"; then
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8856 $as_echo "$MAGIC_CMD" >&6; }
8857 else
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860 fi
8861
8862
8863
8864
8865
8866 if test -z "$lt_cv_path_MAGIC_CMD"; then
8867   if test -n "$ac_tool_prefix"; then
8868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8869 $as_echo_n "checking for file... " >&6; }
8870 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8871   $as_echo_n "(cached) " >&6
8872 else
8873   case $MAGIC_CMD in
8874 [\\/*] |  ?:[\\/]*)
8875   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8876   ;;
8877 *)
8878   lt_save_MAGIC_CMD="$MAGIC_CMD"
8879   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8880   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8881   for ac_dir in $ac_dummy; do
8882     IFS="$lt_save_ifs"
8883     test -z "$ac_dir" && ac_dir=.
8884     if test -f $ac_dir/file; then
8885       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8886       if test -n "$file_magic_test_file"; then
8887         case $deplibs_check_method in
8888         "file_magic "*)
8889           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8890           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8891           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8892             $EGREP "$file_magic_regex" > /dev/null; then
8893             :
8894           else
8895             cat <<_LT_EOF 1>&2
8896
8897 *** Warning: the command libtool uses to detect shared libraries,
8898 *** $file_magic_cmd, produces output that libtool cannot recognize.
8899 *** The result is that libtool may fail to recognize shared libraries
8900 *** as such.  This will affect the creation of libtool libraries that
8901 *** depend on shared libraries, but programs linked with such libtool
8902 *** libraries will work regardless of this problem.  Nevertheless, you
8903 *** may want to report the problem to your system manager and/or to
8904 *** bug-libtool@gnu.org
8905
8906 _LT_EOF
8907           fi ;;
8908         esac
8909       fi
8910       break
8911     fi
8912   done
8913   IFS="$lt_save_ifs"
8914   MAGIC_CMD="$lt_save_MAGIC_CMD"
8915   ;;
8916 esac
8917 fi
8918
8919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8920 if test -n "$MAGIC_CMD"; then
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8922 $as_echo "$MAGIC_CMD" >&6; }
8923 else
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8926 fi
8927
8928
8929   else
8930     MAGIC_CMD=:
8931   fi
8932 fi
8933
8934   fi
8935   ;;
8936 esac
8937
8938 # Use C for the default configuration in the libtool script
8939
8940 lt_save_CC="$CC"
8941 ac_ext=c
8942 ac_cpp='$CPP $CPPFLAGS'
8943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8946
8947
8948 # Source file extension for C test sources.
8949 ac_ext=c
8950
8951 # Object file extension for compiled C test sources.
8952 objext=o
8953 objext=$objext
8954
8955 # Code to be used in simple compile tests
8956 lt_simple_compile_test_code="int some_variable = 0;"
8957
8958 # Code to be used in simple link tests
8959 lt_simple_link_test_code='int main(){return(0);}'
8960
8961
8962
8963
8964
8965
8966
8967 # If no C compiler was specified, use CC.
8968 LTCC=${LTCC-"$CC"}
8969
8970 # If no C compiler flags were specified, use CFLAGS.
8971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8972
8973 # Allow CC to be a program name with arguments.
8974 compiler=$CC
8975
8976 # Save the default compiler, since it gets overwritten when the other
8977 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8978 compiler_DEFAULT=$CC
8979
8980 # save warnings/boilerplate of simple test code
8981 ac_outfile=conftest.$ac_objext
8982 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8983 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8984 _lt_compiler_boilerplate=`cat conftest.err`
8985 $RM conftest*
8986
8987 ac_outfile=conftest.$ac_objext
8988 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8989 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8990 _lt_linker_boilerplate=`cat conftest.err`
8991 $RM -r conftest*
8992
8993
8994 ## CAVEAT EMPTOR:
8995 ## There is no encapsulation within the following macros, do not change
8996 ## the running order or otherwise move them around unless you know exactly
8997 ## what you are doing...
8998 if test -n "$compiler"; then
8999
9000 lt_prog_compiler_no_builtin_flag=
9001
9002 if test "$GCC" = yes; then
9003   case $cc_basename in
9004   nvcc*)
9005     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9006   *)
9007     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9008   esac
9009
9010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9011 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9012 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9013   $as_echo_n "(cached) " >&6
9014 else
9015   lt_cv_prog_compiler_rtti_exceptions=no
9016    ac_outfile=conftest.$ac_objext
9017    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9018    lt_compiler_flag="-fno-rtti -fno-exceptions"
9019    # Insert the option either (1) after the last *FLAGS variable, or
9020    # (2) before a word containing "conftest.", or (3) at the end.
9021    # Note that $ac_compile itself does not contain backslashes and begins
9022    # with a dollar sign (not a hyphen), so the echo should work correctly.
9023    # The option is referenced via a variable to avoid confusing sed.
9024    lt_compile=`echo "$ac_compile" | $SED \
9025    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9026    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9027    -e 's:$: $lt_compiler_flag:'`
9028    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9029    (eval "$lt_compile" 2>conftest.err)
9030    ac_status=$?
9031    cat conftest.err >&5
9032    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033    if (exit $ac_status) && test -s "$ac_outfile"; then
9034      # The compiler can only warn and ignore the option if not recognized
9035      # So say no if there are warnings other than the usual output.
9036      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9037      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9038      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9039        lt_cv_prog_compiler_rtti_exceptions=yes
9040      fi
9041    fi
9042    $RM conftest*
9043
9044 fi
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9046 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9047
9048 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9049     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9050 else
9051     :
9052 fi
9053
9054 fi
9055
9056
9057
9058
9059
9060
9061   lt_prog_compiler_wl=
9062 lt_prog_compiler_pic=
9063 lt_prog_compiler_static=
9064
9065
9066   if test "$GCC" = yes; then
9067     lt_prog_compiler_wl='-Wl,'
9068     lt_prog_compiler_static='-static'
9069
9070     case $host_os in
9071       aix*)
9072       # All AIX code is PIC.
9073       if test "$host_cpu" = ia64; then
9074         # AIX 5 now supports IA64 processor
9075         lt_prog_compiler_static='-Bstatic'
9076       fi
9077       ;;
9078
9079     amigaos*)
9080       case $host_cpu in
9081       powerpc)
9082             # see comment about AmigaOS4 .so support
9083             lt_prog_compiler_pic='-fPIC'
9084         ;;
9085       m68k)
9086             # FIXME: we need at least 68020 code to build shared libraries, but
9087             # adding the `-m68020' flag to GCC prevents building anything better,
9088             # like `-m68040'.
9089             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9090         ;;
9091       esac
9092       ;;
9093
9094     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9095       # PIC is the default for these OSes.
9096       ;;
9097
9098     mingw* | cygwin* | pw32* | os2* | cegcc*)
9099       # This hack is so that the source file can tell whether it is being
9100       # built for inclusion in a dll (and should export symbols for example).
9101       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9102       # (--disable-auto-import) libraries
9103       lt_prog_compiler_pic='-DDLL_EXPORT'
9104       ;;
9105
9106     darwin* | rhapsody*)
9107       # PIC is the default on this platform
9108       # Common symbols not allowed in MH_DYLIB files
9109       lt_prog_compiler_pic='-fno-common'
9110       ;;
9111
9112     haiku*)
9113       # PIC is the default for Haiku.
9114       # The "-static" flag exists, but is broken.
9115       lt_prog_compiler_static=
9116       ;;
9117
9118     hpux*)
9119       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9120       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9121       # sets the default TLS model and affects inlining.
9122       case $host_cpu in
9123       hppa*64*)
9124         # +Z the default
9125         ;;
9126       *)
9127         lt_prog_compiler_pic='-fPIC'
9128         ;;
9129       esac
9130       ;;
9131
9132     interix[3-9]*)
9133       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9134       # Instead, we relocate shared libraries at runtime.
9135       ;;
9136
9137     msdosdjgpp*)
9138       # Just because we use GCC doesn't mean we suddenly get shared libraries
9139       # on systems that don't support them.
9140       lt_prog_compiler_can_build_shared=no
9141       enable_shared=no
9142       ;;
9143
9144     *nto* | *qnx*)
9145       # QNX uses GNU C++, but need to define -shared option too, otherwise
9146       # it will coredump.
9147       lt_prog_compiler_pic='-fPIC -shared'
9148       ;;
9149
9150     sysv4*MP*)
9151       if test -d /usr/nec; then
9152         lt_prog_compiler_pic=-Kconform_pic
9153       fi
9154       ;;
9155
9156     *)
9157       lt_prog_compiler_pic='-fPIC'
9158       ;;
9159     esac
9160
9161     case $cc_basename in
9162     nvcc*) # Cuda Compiler Driver 2.2
9163       lt_prog_compiler_wl='-Xlinker '
9164       if test -n "$lt_prog_compiler_pic"; then
9165         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9166       fi
9167       ;;
9168     esac
9169   else
9170     # PORTME Check for flag to pass linker flags through the system compiler.
9171     case $host_os in
9172     aix*)
9173       lt_prog_compiler_wl='-Wl,'
9174       if test "$host_cpu" = ia64; then
9175         # AIX 5 now supports IA64 processor
9176         lt_prog_compiler_static='-Bstatic'
9177       else
9178         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9179       fi
9180       ;;
9181
9182     mingw* | cygwin* | pw32* | os2* | cegcc*)
9183       # This hack is so that the source file can tell whether it is being
9184       # built for inclusion in a dll (and should export symbols for example).
9185       lt_prog_compiler_pic='-DDLL_EXPORT'
9186       ;;
9187
9188     hpux9* | hpux10* | hpux11*)
9189       lt_prog_compiler_wl='-Wl,'
9190       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9191       # not for PA HP-UX.
9192       case $host_cpu in
9193       hppa*64*|ia64*)
9194         # +Z the default
9195         ;;
9196       *)
9197         lt_prog_compiler_pic='+Z'
9198         ;;
9199       esac
9200       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9201       lt_prog_compiler_static='${wl}-a ${wl}archive'
9202       ;;
9203
9204     irix5* | irix6* | nonstopux*)
9205       lt_prog_compiler_wl='-Wl,'
9206       # PIC (with -KPIC) is the default.
9207       lt_prog_compiler_static='-non_shared'
9208       ;;
9209
9210     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9211       case $cc_basename in
9212       # old Intel for x86_64 which still supported -KPIC.
9213       ecc*)
9214         lt_prog_compiler_wl='-Wl,'
9215         lt_prog_compiler_pic='-KPIC'
9216         lt_prog_compiler_static='-static'
9217         ;;
9218       # icc used to be incompatible with GCC.
9219       # ICC 10 doesn't accept -KPIC any more.
9220       icc* | ifort*)
9221         lt_prog_compiler_wl='-Wl,'
9222         lt_prog_compiler_pic='-fPIC'
9223         lt_prog_compiler_static='-static'
9224         ;;
9225       # Lahey Fortran 8.1.
9226       lf95*)
9227         lt_prog_compiler_wl='-Wl,'
9228         lt_prog_compiler_pic='--shared'
9229         lt_prog_compiler_static='--static'
9230         ;;
9231       nagfor*)
9232         # NAG Fortran compiler
9233         lt_prog_compiler_wl='-Wl,-Wl,,'
9234         lt_prog_compiler_pic='-PIC'
9235         lt_prog_compiler_static='-Bstatic'
9236         ;;
9237       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9238         # Portland Group compilers (*not* the Pentium gcc compiler,
9239         # which looks to be a dead project)
9240         lt_prog_compiler_wl='-Wl,'
9241         lt_prog_compiler_pic='-fpic'
9242         lt_prog_compiler_static='-Bstatic'
9243         ;;
9244       ccc*)
9245         lt_prog_compiler_wl='-Wl,'
9246         # All Alpha code is PIC.
9247         lt_prog_compiler_static='-non_shared'
9248         ;;
9249       xl* | bgxl* | bgf* | mpixl*)
9250         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9251         lt_prog_compiler_wl='-Wl,'
9252         lt_prog_compiler_pic='-qpic'
9253         lt_prog_compiler_static='-qstaticlink'
9254         ;;
9255       *)
9256         case `$CC -V 2>&1 | sed 5q` in
9257         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9258           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9259           lt_prog_compiler_pic='-KPIC'
9260           lt_prog_compiler_static='-Bstatic'
9261           lt_prog_compiler_wl=''
9262           ;;
9263         *Sun\ F* | *Sun*Fortran*)
9264           lt_prog_compiler_pic='-KPIC'
9265           lt_prog_compiler_static='-Bstatic'
9266           lt_prog_compiler_wl='-Qoption ld '
9267           ;;
9268         *Sun\ C*)
9269           # Sun C 5.9
9270           lt_prog_compiler_pic='-KPIC'
9271           lt_prog_compiler_static='-Bstatic'
9272           lt_prog_compiler_wl='-Wl,'
9273           ;;
9274         *Intel*\ [CF]*Compiler*)
9275           lt_prog_compiler_wl='-Wl,'
9276           lt_prog_compiler_pic='-fPIC'
9277           lt_prog_compiler_static='-static'
9278           ;;
9279         *Portland\ Group*)
9280           lt_prog_compiler_wl='-Wl,'
9281           lt_prog_compiler_pic='-fpic'
9282           lt_prog_compiler_static='-Bstatic'
9283           ;;
9284         esac
9285         ;;
9286       esac
9287       ;;
9288
9289     newsos6)
9290       lt_prog_compiler_pic='-KPIC'
9291       lt_prog_compiler_static='-Bstatic'
9292       ;;
9293
9294     *nto* | *qnx*)
9295       # QNX uses GNU C++, but need to define -shared option too, otherwise
9296       # it will coredump.
9297       lt_prog_compiler_pic='-fPIC -shared'
9298       ;;
9299
9300     osf3* | osf4* | osf5*)
9301       lt_prog_compiler_wl='-Wl,'
9302       # All OSF/1 code is PIC.
9303       lt_prog_compiler_static='-non_shared'
9304       ;;
9305
9306     rdos*)
9307       lt_prog_compiler_static='-non_shared'
9308       ;;
9309
9310     solaris*)
9311       lt_prog_compiler_pic='-KPIC'
9312       lt_prog_compiler_static='-Bstatic'
9313       case $cc_basename in
9314       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9315         lt_prog_compiler_wl='-Qoption ld ';;
9316       *)
9317         lt_prog_compiler_wl='-Wl,';;
9318       esac
9319       ;;
9320
9321     sunos4*)
9322       lt_prog_compiler_wl='-Qoption ld '
9323       lt_prog_compiler_pic='-PIC'
9324       lt_prog_compiler_static='-Bstatic'
9325       ;;
9326
9327     sysv4 | sysv4.2uw2* | sysv4.3*)
9328       lt_prog_compiler_wl='-Wl,'
9329       lt_prog_compiler_pic='-KPIC'
9330       lt_prog_compiler_static='-Bstatic'
9331       ;;
9332
9333     sysv4*MP*)
9334       if test -d /usr/nec ;then
9335         lt_prog_compiler_pic='-Kconform_pic'
9336         lt_prog_compiler_static='-Bstatic'
9337       fi
9338       ;;
9339
9340     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9341       lt_prog_compiler_wl='-Wl,'
9342       lt_prog_compiler_pic='-KPIC'
9343       lt_prog_compiler_static='-Bstatic'
9344       ;;
9345
9346     unicos*)
9347       lt_prog_compiler_wl='-Wl,'
9348       lt_prog_compiler_can_build_shared=no
9349       ;;
9350
9351     uts4*)
9352       lt_prog_compiler_pic='-pic'
9353       lt_prog_compiler_static='-Bstatic'
9354       ;;
9355
9356     *)
9357       lt_prog_compiler_can_build_shared=no
9358       ;;
9359     esac
9360   fi
9361
9362 case $host_os in
9363   # For platforms which do not support PIC, -DPIC is meaningless:
9364   *djgpp*)
9365     lt_prog_compiler_pic=
9366     ;;
9367   *)
9368     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9369     ;;
9370 esac
9371
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9373 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9374 if ${lt_cv_prog_compiler_pic+:} false; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9380 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9381 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9382
9383 #
9384 # Check to make sure the PIC flag actually works.
9385 #
9386 if test -n "$lt_prog_compiler_pic"; then
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9388 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9389 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9390   $as_echo_n "(cached) " >&6
9391 else
9392   lt_cv_prog_compiler_pic_works=no
9393    ac_outfile=conftest.$ac_objext
9394    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9395    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9396    # Insert the option either (1) after the last *FLAGS variable, or
9397    # (2) before a word containing "conftest.", or (3) at the end.
9398    # Note that $ac_compile itself does not contain backslashes and begins
9399    # with a dollar sign (not a hyphen), so the echo should work correctly.
9400    # The option is referenced via a variable to avoid confusing sed.
9401    lt_compile=`echo "$ac_compile" | $SED \
9402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9404    -e 's:$: $lt_compiler_flag:'`
9405    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9406    (eval "$lt_compile" 2>conftest.err)
9407    ac_status=$?
9408    cat conftest.err >&5
9409    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410    if (exit $ac_status) && test -s "$ac_outfile"; then
9411      # The compiler can only warn and ignore the option if not recognized
9412      # So say no if there are warnings other than the usual output.
9413      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9414      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9415      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9416        lt_cv_prog_compiler_pic_works=yes
9417      fi
9418    fi
9419    $RM conftest*
9420
9421 fi
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9423 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9424
9425 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9426     case $lt_prog_compiler_pic in
9427      "" | " "*) ;;
9428      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9429      esac
9430 else
9431     lt_prog_compiler_pic=
9432      lt_prog_compiler_can_build_shared=no
9433 fi
9434
9435 fi
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447 #
9448 # Check to make sure the static flag actually works.
9449 #
9450 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9452 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9453 if ${lt_cv_prog_compiler_static_works+:} false; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   lt_cv_prog_compiler_static_works=no
9457    save_LDFLAGS="$LDFLAGS"
9458    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9459    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9460    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9461      # The linker can only warn and ignore the option if not recognized
9462      # So say no if there are warnings
9463      if test -s conftest.err; then
9464        # Append any errors to the config.log.
9465        cat conftest.err 1>&5
9466        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9467        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9468        if diff conftest.exp conftest.er2 >/dev/null; then
9469          lt_cv_prog_compiler_static_works=yes
9470        fi
9471      else
9472        lt_cv_prog_compiler_static_works=yes
9473      fi
9474    fi
9475    $RM -r conftest*
9476    LDFLAGS="$save_LDFLAGS"
9477
9478 fi
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9480 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9481
9482 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9483     :
9484 else
9485     lt_prog_compiler_static=
9486 fi
9487
9488
9489
9490
9491
9492
9493
9494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9495 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9496 if ${lt_cv_prog_compiler_c_o+:} false; then :
9497   $as_echo_n "(cached) " >&6
9498 else
9499   lt_cv_prog_compiler_c_o=no
9500    $RM -r conftest 2>/dev/null
9501    mkdir conftest
9502    cd conftest
9503    mkdir out
9504    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9505
9506    lt_compiler_flag="-o out/conftest2.$ac_objext"
9507    # Insert the option either (1) after the last *FLAGS variable, or
9508    # (2) before a word containing "conftest.", or (3) at the end.
9509    # Note that $ac_compile itself does not contain backslashes and begins
9510    # with a dollar sign (not a hyphen), so the echo should work correctly.
9511    lt_compile=`echo "$ac_compile" | $SED \
9512    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9513    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9514    -e 's:$: $lt_compiler_flag:'`
9515    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9516    (eval "$lt_compile" 2>out/conftest.err)
9517    ac_status=$?
9518    cat out/conftest.err >&5
9519    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9521    then
9522      # The compiler can only warn and ignore the option if not recognized
9523      # So say no if there are warnings
9524      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9525      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9526      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9527        lt_cv_prog_compiler_c_o=yes
9528      fi
9529    fi
9530    chmod u+w . 2>&5
9531    $RM conftest*
9532    # SGI C++ compiler will create directory out/ii_files/ for
9533    # template instantiation
9534    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9535    $RM out/* && rmdir out
9536    cd ..
9537    $RM -r conftest
9538    $RM conftest*
9539
9540 fi
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9542 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9543
9544
9545
9546
9547
9548
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9550 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9551 if ${lt_cv_prog_compiler_c_o+:} false; then :
9552   $as_echo_n "(cached) " >&6
9553 else
9554   lt_cv_prog_compiler_c_o=no
9555    $RM -r conftest 2>/dev/null
9556    mkdir conftest
9557    cd conftest
9558    mkdir out
9559    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9560
9561    lt_compiler_flag="-o out/conftest2.$ac_objext"
9562    # Insert the option either (1) after the last *FLAGS variable, or
9563    # (2) before a word containing "conftest.", or (3) at the end.
9564    # Note that $ac_compile itself does not contain backslashes and begins
9565    # with a dollar sign (not a hyphen), so the echo should work correctly.
9566    lt_compile=`echo "$ac_compile" | $SED \
9567    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9568    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9569    -e 's:$: $lt_compiler_flag:'`
9570    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9571    (eval "$lt_compile" 2>out/conftest.err)
9572    ac_status=$?
9573    cat out/conftest.err >&5
9574    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9576    then
9577      # The compiler can only warn and ignore the option if not recognized
9578      # So say no if there are warnings
9579      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9580      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9581      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9582        lt_cv_prog_compiler_c_o=yes
9583      fi
9584    fi
9585    chmod u+w . 2>&5
9586    $RM conftest*
9587    # SGI C++ compiler will create directory out/ii_files/ for
9588    # template instantiation
9589    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9590    $RM out/* && rmdir out
9591    cd ..
9592    $RM -r conftest
9593    $RM conftest*
9594
9595 fi
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9597 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9598
9599
9600
9601
9602 hard_links="nottested"
9603 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9604   # do not overwrite the value of need_locks provided by the user
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9606 $as_echo_n "checking if we can lock with hard links... " >&6; }
9607   hard_links=yes
9608   $RM conftest*
9609   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9610   touch conftest.a
9611   ln conftest.a conftest.b 2>&5 || hard_links=no
9612   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9614 $as_echo "$hard_links" >&6; }
9615   if test "$hard_links" = no; then
9616     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9617 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9618     need_locks=warn
9619   fi
9620 else
9621   need_locks=no
9622 fi
9623
9624
9625
9626
9627
9628
9629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9631
9632   runpath_var=
9633   allow_undefined_flag=
9634   always_export_symbols=no
9635   archive_cmds=
9636   archive_expsym_cmds=
9637   compiler_needs_object=no
9638   enable_shared_with_static_runtimes=no
9639   export_dynamic_flag_spec=
9640   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9641   hardcode_automatic=no
9642   hardcode_direct=no
9643   hardcode_direct_absolute=no
9644   hardcode_libdir_flag_spec=
9645   hardcode_libdir_separator=
9646   hardcode_minus_L=no
9647   hardcode_shlibpath_var=unsupported
9648   inherit_rpath=no
9649   link_all_deplibs=unknown
9650   module_cmds=
9651   module_expsym_cmds=
9652   old_archive_from_new_cmds=
9653   old_archive_from_expsyms_cmds=
9654   thread_safe_flag_spec=
9655   whole_archive_flag_spec=
9656   # include_expsyms should be a list of space-separated symbols to be *always*
9657   # included in the symbol list
9658   include_expsyms=
9659   # exclude_expsyms can be an extended regexp of symbols to exclude
9660   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9661   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9662   # as well as any symbol that contains `d'.
9663   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9664   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9665   # platforms (ab)use it in PIC code, but their linkers get confused if
9666   # the symbol is explicitly referenced.  Since portable code cannot
9667   # rely on this symbol name, it's probably fine to never include it in
9668   # preloaded symbol tables.
9669   # Exclude shared library initialization/finalization symbols.
9670   extract_expsyms_cmds=
9671
9672   case $host_os in
9673   cygwin* | mingw* | pw32* | cegcc*)
9674     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9675     # When not using gcc, we currently assume that we are using
9676     # Microsoft Visual C++.
9677     if test "$GCC" != yes; then
9678       with_gnu_ld=no
9679     fi
9680     ;;
9681   interix*)
9682     # we just hope/assume this is gcc and not c89 (= MSVC++)
9683     with_gnu_ld=yes
9684     ;;
9685   openbsd*)
9686     with_gnu_ld=no
9687     ;;
9688   esac
9689
9690   ld_shlibs=yes
9691
9692   # On some targets, GNU ld is compatible enough with the native linker
9693   # that we're better off using the native interface for both.
9694   lt_use_gnu_ld_interface=no
9695   if test "$with_gnu_ld" = yes; then
9696     case $host_os in
9697       aix*)
9698         # The AIX port of GNU ld has always aspired to compatibility
9699         # with the native linker.  However, as the warning in the GNU ld
9700         # block says, versions before 2.19.5* couldn't really create working
9701         # shared libraries, regardless of the interface used.
9702         case `$LD -v 2>&1` in
9703           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9704           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9705           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9706           *)
9707             lt_use_gnu_ld_interface=yes
9708             ;;
9709         esac
9710         ;;
9711       *)
9712         lt_use_gnu_ld_interface=yes
9713         ;;
9714     esac
9715   fi
9716
9717   if test "$lt_use_gnu_ld_interface" = yes; then
9718     # If archive_cmds runs LD, not CC, wlarc should be empty
9719     wlarc='${wl}'
9720
9721     # Set some defaults for GNU ld with shared library support. These
9722     # are reset later if shared libraries are not supported. Putting them
9723     # here allows them to be overridden if necessary.
9724     runpath_var=LD_RUN_PATH
9725     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9726     export_dynamic_flag_spec='${wl}--export-dynamic'
9727     # ancient GNU ld didn't support --whole-archive et. al.
9728     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9729       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9730     else
9731       whole_archive_flag_spec=
9732     fi
9733     supports_anon_versioning=no
9734     case `$LD -v 2>&1` in
9735       *GNU\ gold*) supports_anon_versioning=yes ;;
9736       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9737       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9738       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9739       *\ 2.11.*) ;; # other 2.11 versions
9740       *) supports_anon_versioning=yes ;;
9741     esac
9742
9743     # See if GNU ld supports shared libraries.
9744     case $host_os in
9745     aix[3-9]*)
9746       # On AIX/PPC, the GNU linker is very broken
9747       if test "$host_cpu" != ia64; then
9748         ld_shlibs=no
9749         cat <<_LT_EOF 1>&2
9750
9751 *** Warning: the GNU linker, at least up to release 2.19, is reported
9752 *** to be unable to reliably create shared libraries on AIX.
9753 *** Therefore, libtool is disabling shared libraries support.  If you
9754 *** really care for shared libraries, you may want to install binutils
9755 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9756 *** You will then need to restart the configuration process.
9757
9758 _LT_EOF
9759       fi
9760       ;;
9761
9762     amigaos*)
9763       case $host_cpu in
9764       powerpc)
9765             # see comment about AmigaOS4 .so support
9766             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767             archive_expsym_cmds=''
9768         ;;
9769       m68k)
9770             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)'
9771             hardcode_libdir_flag_spec='-L$libdir'
9772             hardcode_minus_L=yes
9773         ;;
9774       esac
9775       ;;
9776
9777     beos*)
9778       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9779         allow_undefined_flag=unsupported
9780         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9781         # support --undefined.  This deserves some investigation.  FIXME
9782         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783       else
9784         ld_shlibs=no
9785       fi
9786       ;;
9787
9788     cygwin* | mingw* | pw32* | cegcc*)
9789       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9790       # as there is no search path for DLLs.
9791       hardcode_libdir_flag_spec='-L$libdir'
9792       export_dynamic_flag_spec='${wl}--export-all-symbols'
9793       allow_undefined_flag=unsupported
9794       always_export_symbols=no
9795       enable_shared_with_static_runtimes=yes
9796       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9797       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9798
9799       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9800         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9801         # If the export-symbols file already is a .def file (1st line
9802         # is EXPORTS), use it as is; otherwise, prepend...
9803         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9804           cp $export_symbols $output_objdir/$soname.def;
9805         else
9806           echo EXPORTS > $output_objdir/$soname.def;
9807           cat $export_symbols >> $output_objdir/$soname.def;
9808         fi~
9809         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9810       else
9811         ld_shlibs=no
9812       fi
9813       ;;
9814
9815     haiku*)
9816       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9817       link_all_deplibs=yes
9818       ;;
9819
9820     interix[3-9]*)
9821       hardcode_direct=no
9822       hardcode_shlibpath_var=no
9823       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9824       export_dynamic_flag_spec='${wl}-E'
9825       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9826       # Instead, shared libraries are loaded at an image base (0x10000000 by
9827       # default) and relocated if they conflict, which is a slow very memory
9828       # consuming and fragmenting process.  To avoid this, we pick a random,
9829       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9830       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9831       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9832       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'
9833       ;;
9834
9835     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9836       tmp_diet=no
9837       if test "$host_os" = linux-dietlibc; then
9838         case $cc_basename in
9839           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9840         esac
9841       fi
9842       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9843          && test "$tmp_diet" = no
9844       then
9845         tmp_addflag=' $pic_flag'
9846         tmp_sharedflag='-shared'
9847         case $cc_basename,$host_cpu in
9848         pgcc*)                          # Portland Group C compiler
9849           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'
9850           tmp_addflag=' $pic_flag'
9851           ;;
9852         pgf77* | pgf90* | pgf95* | pgfortran*)
9853                                         # Portland Group f77 and f90 compilers
9854           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'
9855           tmp_addflag=' $pic_flag -Mnomain' ;;
9856         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9857           tmp_addflag=' -i_dynamic' ;;
9858         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9859           tmp_addflag=' -i_dynamic -nofor_main' ;;
9860         ifc* | ifort*)                  # Intel Fortran compiler
9861           tmp_addflag=' -nofor_main' ;;
9862         lf95*)                          # Lahey Fortran 8.1
9863           whole_archive_flag_spec=
9864           tmp_sharedflag='--shared' ;;
9865         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9866           tmp_sharedflag='-qmkshrobj'
9867           tmp_addflag= ;;
9868         nvcc*)  # Cuda Compiler Driver 2.2
9869           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'
9870           compiler_needs_object=yes
9871           ;;
9872         esac
9873         case `$CC -V 2>&1 | sed 5q` in
9874         *Sun\ C*)                       # Sun C 5.9
9875           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'
9876           compiler_needs_object=yes
9877           tmp_sharedflag='-G' ;;
9878         *Sun\ F*)                       # Sun Fortran 8.3
9879           tmp_sharedflag='-G' ;;
9880         esac
9881         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9882
9883         if test "x$supports_anon_versioning" = xyes; then
9884           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9885             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9886             echo "local: *; };" >> $output_objdir/$libname.ver~
9887             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9888         fi
9889
9890         case $cc_basename in
9891         xlf* | bgf* | bgxlf* | mpixlf*)
9892           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9893           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9894           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9895           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9896           if test "x$supports_anon_versioning" = xyes; then
9897             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9898               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9899               echo "local: *; };" >> $output_objdir/$libname.ver~
9900               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9901           fi
9902           ;;
9903         esac
9904       else
9905         ld_shlibs=no
9906       fi
9907       ;;
9908
9909     netbsd*)
9910       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9911         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9912         wlarc=
9913       else
9914         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9915         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9916       fi
9917       ;;
9918
9919     solaris*)
9920       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9921         ld_shlibs=no
9922         cat <<_LT_EOF 1>&2
9923
9924 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9925 *** create shared libraries on Solaris systems.  Therefore, libtool
9926 *** is disabling shared libraries support.  We urge you to upgrade GNU
9927 *** binutils to release 2.9.1 or newer.  Another option is to modify
9928 *** your PATH or compiler configuration so that the native linker is
9929 *** used, and then restart.
9930
9931 _LT_EOF
9932       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9933         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9934         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9935       else
9936         ld_shlibs=no
9937       fi
9938       ;;
9939
9940     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9941       case `$LD -v 2>&1` in
9942         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9943         ld_shlibs=no
9944         cat <<_LT_EOF 1>&2
9945
9946 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9947 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9948 *** is disabling shared libraries support.  We urge you to upgrade GNU
9949 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9950 *** your PATH or compiler configuration so that the native linker is
9951 *** used, and then restart.
9952
9953 _LT_EOF
9954         ;;
9955         *)
9956           # For security reasons, it is highly recommended that you always
9957           # use absolute paths for naming shared libraries, and exclude the
9958           # DT_RUNPATH tag from executables and libraries.  But doing so
9959           # requires that you compile everything twice, which is a pain.
9960           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9963             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9964           else
9965             ld_shlibs=no
9966           fi
9967         ;;
9968       esac
9969       ;;
9970
9971     sunos4*)
9972       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9973       wlarc=
9974       hardcode_direct=yes
9975       hardcode_shlibpath_var=no
9976       ;;
9977
9978     *)
9979       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9981         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9982       else
9983         ld_shlibs=no
9984       fi
9985       ;;
9986     esac
9987
9988     if test "$ld_shlibs" = no; then
9989       runpath_var=
9990       hardcode_libdir_flag_spec=
9991       export_dynamic_flag_spec=
9992       whole_archive_flag_spec=
9993     fi
9994   else
9995     # PORTME fill in a description of your system's linker (not GNU ld)
9996     case $host_os in
9997     aix3*)
9998       allow_undefined_flag=unsupported
9999       always_export_symbols=yes
10000       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'
10001       # Note: this linker hardcodes the directories in LIBPATH if there
10002       # are no directories specified by -L.
10003       hardcode_minus_L=yes
10004       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10005         # Neither direct hardcoding nor static linking is supported with a
10006         # broken collect2.
10007         hardcode_direct=unsupported
10008       fi
10009       ;;
10010
10011     aix[4-9]*)
10012       if test "$host_cpu" = ia64; then
10013         # On IA64, the linker does run time linking by default, so we don't
10014         # have to do anything special.
10015         aix_use_runtimelinking=no
10016         exp_sym_flag='-Bexport'
10017         no_entry_flag=""
10018       else
10019         # If we're using GNU nm, then we don't want the "-C" option.
10020         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10021         # Also, AIX nm treats weak defined symbols like other global
10022         # defined symbols, whereas GNU nm marks them as "W".
10023         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10024           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'
10025         else
10026           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10027         fi
10028         aix_use_runtimelinking=no
10029
10030         # Test if we are trying to use run time linking or normal
10031         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10032         # need to do runtime linking.
10033         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10034           for ld_flag in $LDFLAGS; do
10035           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10036             aix_use_runtimelinking=yes
10037             break
10038           fi
10039           done
10040           ;;
10041         esac
10042
10043         exp_sym_flag='-bexport'
10044         no_entry_flag='-bnoentry'
10045       fi
10046
10047       # When large executables or shared objects are built, AIX ld can
10048       # have problems creating the table of contents.  If linking a library
10049       # or program results in "error TOC overflow" add -mminimal-toc to
10050       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10051       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10052
10053       archive_cmds=''
10054       hardcode_direct=yes
10055       hardcode_direct_absolute=yes
10056       hardcode_libdir_separator=':'
10057       link_all_deplibs=yes
10058       file_list_spec='${wl}-f,'
10059
10060       if test "$GCC" = yes; then
10061         case $host_os in aix4.[012]|aix4.[012].*)
10062         # We only want to do this on AIX 4.2 and lower, the check
10063         # below for broken collect2 doesn't work under 4.3+
10064           collect2name=`${CC} -print-prog-name=collect2`
10065           if test -f "$collect2name" &&
10066            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10067           then
10068           # We have reworked collect2
10069           :
10070           else
10071           # We have old collect2
10072           hardcode_direct=unsupported
10073           # It fails to find uninstalled libraries when the uninstalled
10074           # path is not listed in the libpath.  Setting hardcode_minus_L
10075           # to unsupported forces relinking
10076           hardcode_minus_L=yes
10077           hardcode_libdir_flag_spec='-L$libdir'
10078           hardcode_libdir_separator=
10079           fi
10080           ;;
10081         esac
10082         shared_flag='-shared'
10083         if test "$aix_use_runtimelinking" = yes; then
10084           shared_flag="$shared_flag "'${wl}-G'
10085         fi
10086       else
10087         # not using gcc
10088         if test "$host_cpu" = ia64; then
10089         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10090         # chokes on -Wl,-G. The following line is correct:
10091           shared_flag='-G'
10092         else
10093           if test "$aix_use_runtimelinking" = yes; then
10094             shared_flag='${wl}-G'
10095           else
10096             shared_flag='${wl}-bM:SRE'
10097           fi
10098         fi
10099       fi
10100
10101       export_dynamic_flag_spec='${wl}-bexpall'
10102       # It seems that -bexpall does not export symbols beginning with
10103       # underscore (_), so it is better to generate a list of symbols to export.
10104       always_export_symbols=yes
10105       if test "$aix_use_runtimelinking" = yes; then
10106         # Warning - without using the other runtime loading flags (-brtl),
10107         # -berok will link without error, but may produce a broken library.
10108         allow_undefined_flag='-berok'
10109         # Determine the default libpath from the value encoded in an
10110         # empty executable.
10111         if test "${lt_cv_aix_libpath+set}" = set; then
10112   aix_libpath=$lt_cv_aix_libpath
10113 else
10114   if ${lt_cv_aix_libpath_+:} false; then :
10115   $as_echo_n "(cached) " >&6
10116 else
10117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h.  */
10119
10120 int
10121 main ()
10122 {
10123
10124   ;
10125   return 0;
10126 }
10127 _ACEOF
10128 if ac_fn_c_try_link "$LINENO"; then :
10129
10130   lt_aix_libpath_sed='
10131       /Import File Strings/,/^$/ {
10132           /^0/ {
10133               s/^0  *\([^ ]*\) *$/\1/
10134               p
10135           }
10136       }'
10137   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10138   # Check for a 64-bit object if we didn't find anything.
10139   if test -z "$lt_cv_aix_libpath_"; then
10140     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10141   fi
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext \
10144     conftest$ac_exeext conftest.$ac_ext
10145   if test -z "$lt_cv_aix_libpath_"; then
10146     lt_cv_aix_libpath_="/usr/lib:/lib"
10147   fi
10148
10149 fi
10150
10151   aix_libpath=$lt_cv_aix_libpath_
10152 fi
10153
10154         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10155         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"
10156       else
10157         if test "$host_cpu" = ia64; then
10158           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10159           allow_undefined_flag="-z nodefs"
10160           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"
10161         else
10162          # Determine the default libpath from the value encoded in an
10163          # empty executable.
10164          if test "${lt_cv_aix_libpath+set}" = set; then
10165   aix_libpath=$lt_cv_aix_libpath
10166 else
10167   if ${lt_cv_aix_libpath_+:} false; then :
10168   $as_echo_n "(cached) " >&6
10169 else
10170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h.  */
10172
10173 int
10174 main ()
10175 {
10176
10177   ;
10178   return 0;
10179 }
10180 _ACEOF
10181 if ac_fn_c_try_link "$LINENO"; then :
10182
10183   lt_aix_libpath_sed='
10184       /Import File Strings/,/^$/ {
10185           /^0/ {
10186               s/^0  *\([^ ]*\) *$/\1/
10187               p
10188           }
10189       }'
10190   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191   # Check for a 64-bit object if we didn't find anything.
10192   if test -z "$lt_cv_aix_libpath_"; then
10193     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10194   fi
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197     conftest$ac_exeext conftest.$ac_ext
10198   if test -z "$lt_cv_aix_libpath_"; then
10199     lt_cv_aix_libpath_="/usr/lib:/lib"
10200   fi
10201
10202 fi
10203
10204   aix_libpath=$lt_cv_aix_libpath_
10205 fi
10206
10207          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10208           # Warning - without using the other run time loading flags,
10209           # -berok will link without error, but may produce a broken library.
10210           no_undefined_flag=' ${wl}-bernotok'
10211           allow_undefined_flag=' ${wl}-berok'
10212           if test "$with_gnu_ld" = yes; then
10213             # We only use this code for GNU lds that support --whole-archive.
10214             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10215           else
10216             # Exported symbols can be pulled into shared objects from archives
10217             whole_archive_flag_spec='$convenience'
10218           fi
10219           archive_cmds_need_lc=yes
10220           # This is similar to how AIX traditionally builds its shared libraries.
10221           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'
10222         fi
10223       fi
10224       ;;
10225
10226     amigaos*)
10227       case $host_cpu in
10228       powerpc)
10229             # see comment about AmigaOS4 .so support
10230             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231             archive_expsym_cmds=''
10232         ;;
10233       m68k)
10234             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)'
10235             hardcode_libdir_flag_spec='-L$libdir'
10236             hardcode_minus_L=yes
10237         ;;
10238       esac
10239       ;;
10240
10241     bsdi[45]*)
10242       export_dynamic_flag_spec=-rdynamic
10243       ;;
10244
10245     cygwin* | mingw* | pw32* | cegcc*)
10246       # When not using gcc, we currently assume that we are using
10247       # Microsoft Visual C++.
10248       # hardcode_libdir_flag_spec is actually meaningless, as there is
10249       # no search path for DLLs.
10250       case $cc_basename in
10251       cl*)
10252         # Native MSVC
10253         hardcode_libdir_flag_spec=' '
10254         allow_undefined_flag=unsupported
10255         always_export_symbols=yes
10256         file_list_spec='@'
10257         # Tell ltmain to make .lib files, not .a files.
10258         libext=lib
10259         # Tell ltmain to make .dll files, not .so files.
10260         shrext_cmds=".dll"
10261         # FIXME: Setting linknames here is a bad hack.
10262         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10263         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10264             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10265           else
10266             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10267           fi~
10268           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10269           linknames='
10270         # The linker will not automatically build a static lib if we build a DLL.
10271         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10272         enable_shared_with_static_runtimes=yes
10273         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10274         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10275         # Don't use ranlib
10276         old_postinstall_cmds='chmod 644 $oldlib'
10277         postlink_cmds='lt_outputfile="@OUTPUT@"~
10278           lt_tool_outputfile="@TOOL_OUTPUT@"~
10279           case $lt_outputfile in
10280             *.exe|*.EXE) ;;
10281             *)
10282               lt_outputfile="$lt_outputfile.exe"
10283               lt_tool_outputfile="$lt_tool_outputfile.exe"
10284               ;;
10285           esac~
10286           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10287             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10288             $RM "$lt_outputfile.manifest";
10289           fi'
10290         ;;
10291       *)
10292         # Assume MSVC wrapper
10293         hardcode_libdir_flag_spec=' '
10294         allow_undefined_flag=unsupported
10295         # Tell ltmain to make .lib files, not .a files.
10296         libext=lib
10297         # Tell ltmain to make .dll files, not .so files.
10298         shrext_cmds=".dll"
10299         # FIXME: Setting linknames here is a bad hack.
10300         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10301         # The linker will automatically build a .lib file if we build a DLL.
10302         old_archive_from_new_cmds='true'
10303         # FIXME: Should let the user specify the lib program.
10304         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10305         enable_shared_with_static_runtimes=yes
10306         ;;
10307       esac
10308       ;;
10309
10310     darwin* | rhapsody*)
10311
10312
10313   archive_cmds_need_lc=no
10314   hardcode_direct=no
10315   hardcode_automatic=yes
10316   hardcode_shlibpath_var=unsupported
10317   if test "$lt_cv_ld_force_load" = "yes"; then
10318     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\"`'
10319
10320   else
10321     whole_archive_flag_spec=''
10322   fi
10323   link_all_deplibs=yes
10324   allow_undefined_flag="$_lt_dar_allow_undefined"
10325   case $cc_basename in
10326      ifort*) _lt_dar_can_shared=yes ;;
10327      *) _lt_dar_can_shared=$GCC ;;
10328   esac
10329   if test "$_lt_dar_can_shared" = "yes"; then
10330     output_verbose_link_cmd=func_echo_all
10331     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10332     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10333     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}"
10334     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}"
10335
10336   else
10337   ld_shlibs=no
10338   fi
10339
10340       ;;
10341
10342     dgux*)
10343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344       hardcode_libdir_flag_spec='-L$libdir'
10345       hardcode_shlibpath_var=no
10346       ;;
10347
10348     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10349     # support.  Future versions do this automatically, but an explicit c++rt0.o
10350     # does not break anything, and helps significantly (at the cost of a little
10351     # extra space).
10352     freebsd2.2*)
10353       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10354       hardcode_libdir_flag_spec='-R$libdir'
10355       hardcode_direct=yes
10356       hardcode_shlibpath_var=no
10357       ;;
10358
10359     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10360     freebsd2.*)
10361       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10362       hardcode_direct=yes
10363       hardcode_minus_L=yes
10364       hardcode_shlibpath_var=no
10365       ;;
10366
10367     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10368     freebsd* | dragonfly*)
10369       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10370       hardcode_libdir_flag_spec='-R$libdir'
10371       hardcode_direct=yes
10372       hardcode_shlibpath_var=no
10373       ;;
10374
10375     hpux9*)
10376       if test "$GCC" = yes; then
10377         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10378       else
10379         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'
10380       fi
10381       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10382       hardcode_libdir_separator=:
10383       hardcode_direct=yes
10384
10385       # hardcode_minus_L: Not really in the search PATH,
10386       # but as the default location of the library.
10387       hardcode_minus_L=yes
10388       export_dynamic_flag_spec='${wl}-E'
10389       ;;
10390
10391     hpux10*)
10392       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10393         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10394       else
10395         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10396       fi
10397       if test "$with_gnu_ld" = no; then
10398         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10399         hardcode_libdir_separator=:
10400         hardcode_direct=yes
10401         hardcode_direct_absolute=yes
10402         export_dynamic_flag_spec='${wl}-E'
10403         # hardcode_minus_L: Not really in the search PATH,
10404         # but as the default location of the library.
10405         hardcode_minus_L=yes
10406       fi
10407       ;;
10408
10409     hpux11*)
10410       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10411         case $host_cpu in
10412         hppa*64*)
10413           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10414           ;;
10415         ia64*)
10416           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10417           ;;
10418         *)
10419           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10420           ;;
10421         esac
10422       else
10423         case $host_cpu in
10424         hppa*64*)
10425           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10426           ;;
10427         ia64*)
10428           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10429           ;;
10430         *)
10431
10432           # Older versions of the 11.00 compiler do not understand -b yet
10433           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10434           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10435 $as_echo_n "checking if $CC understands -b... " >&6; }
10436 if ${lt_cv_prog_compiler__b+:} false; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   lt_cv_prog_compiler__b=no
10440    save_LDFLAGS="$LDFLAGS"
10441    LDFLAGS="$LDFLAGS -b"
10442    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10443    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10444      # The linker can only warn and ignore the option if not recognized
10445      # So say no if there are warnings
10446      if test -s conftest.err; then
10447        # Append any errors to the config.log.
10448        cat conftest.err 1>&5
10449        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10450        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10451        if diff conftest.exp conftest.er2 >/dev/null; then
10452          lt_cv_prog_compiler__b=yes
10453        fi
10454      else
10455        lt_cv_prog_compiler__b=yes
10456      fi
10457    fi
10458    $RM -r conftest*
10459    LDFLAGS="$save_LDFLAGS"
10460
10461 fi
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10463 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10464
10465 if test x"$lt_cv_prog_compiler__b" = xyes; then
10466     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10467 else
10468     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10469 fi
10470
10471           ;;
10472         esac
10473       fi
10474       if test "$with_gnu_ld" = no; then
10475         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10476         hardcode_libdir_separator=:
10477
10478         case $host_cpu in
10479         hppa*64*|ia64*)
10480           hardcode_direct=no
10481           hardcode_shlibpath_var=no
10482           ;;
10483         *)
10484           hardcode_direct=yes
10485           hardcode_direct_absolute=yes
10486           export_dynamic_flag_spec='${wl}-E'
10487
10488           # hardcode_minus_L: Not really in the search PATH,
10489           # but as the default location of the library.
10490           hardcode_minus_L=yes
10491           ;;
10492         esac
10493       fi
10494       ;;
10495
10496     irix5* | irix6* | nonstopux*)
10497       if test "$GCC" = yes; then
10498         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10499         # Try to use the -exported_symbol ld option, if it does not
10500         # work, assume that -exports_file does not work either and
10501         # implicitly export all symbols.
10502         # This should be the same for all languages, so no per-tag cache variable.
10503         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10504 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10505 if ${lt_cv_irix_exported_symbol+:} false; then :
10506   $as_echo_n "(cached) " >&6
10507 else
10508   save_LDFLAGS="$LDFLAGS"
10509            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10510            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h.  */
10512 int foo (void) { return 0; }
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515   lt_cv_irix_exported_symbol=yes
10516 else
10517   lt_cv_irix_exported_symbol=no
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext \
10520     conftest$ac_exeext conftest.$ac_ext
10521            LDFLAGS="$save_LDFLAGS"
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10524 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10525         if test "$lt_cv_irix_exported_symbol" = yes; then
10526           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10527         fi
10528       else
10529         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'
10530         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'
10531       fi
10532       archive_cmds_need_lc='no'
10533       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10534       hardcode_libdir_separator=:
10535       inherit_rpath=yes
10536       link_all_deplibs=yes
10537       ;;
10538
10539     netbsd*)
10540       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10541         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10542       else
10543         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10544       fi
10545       hardcode_libdir_flag_spec='-R$libdir'
10546       hardcode_direct=yes
10547       hardcode_shlibpath_var=no
10548       ;;
10549
10550     newsos6)
10551       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552       hardcode_direct=yes
10553       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10554       hardcode_libdir_separator=:
10555       hardcode_shlibpath_var=no
10556       ;;
10557
10558     *nto* | *qnx*)
10559       ;;
10560
10561     openbsd*)
10562       if test -f /usr/libexec/ld.so; then
10563         hardcode_direct=yes
10564         hardcode_shlibpath_var=no
10565         hardcode_direct_absolute=yes
10566         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10567           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10568           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10569           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10570           export_dynamic_flag_spec='${wl}-E'
10571         else
10572           case $host_os in
10573            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10574              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10575              hardcode_libdir_flag_spec='-R$libdir'
10576              ;;
10577            *)
10578              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10580              ;;
10581           esac
10582         fi
10583       else
10584         ld_shlibs=no
10585       fi
10586       ;;
10587
10588     os2*)
10589       hardcode_libdir_flag_spec='-L$libdir'
10590       hardcode_minus_L=yes
10591       allow_undefined_flag=unsupported
10592       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'
10593       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10594       ;;
10595
10596     osf3*)
10597       if test "$GCC" = yes; then
10598         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10599         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'
10600       else
10601         allow_undefined_flag=' -expect_unresolved \*'
10602         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'
10603       fi
10604       archive_cmds_need_lc='no'
10605       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10606       hardcode_libdir_separator=:
10607       ;;
10608
10609     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10610       if test "$GCC" = yes; then
10611         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10612         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10613         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10614       else
10615         allow_undefined_flag=' -expect_unresolved \*'
10616         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'
10617         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~
10618         $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'
10619
10620         # Both c and cxx compiler support -rpath directly
10621         hardcode_libdir_flag_spec='-rpath $libdir'
10622       fi
10623       archive_cmds_need_lc='no'
10624       hardcode_libdir_separator=:
10625       ;;
10626
10627     solaris*)
10628       no_undefined_flag=' -z defs'
10629       if test "$GCC" = yes; then
10630         wlarc='${wl}'
10631         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10632         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10633           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10634       else
10635         case `$CC -V 2>&1` in
10636         *"Compilers 5.0"*)
10637           wlarc=''
10638           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10640           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10641           ;;
10642         *)
10643           wlarc='${wl}'
10644           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10645           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10646           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10647           ;;
10648         esac
10649       fi
10650       hardcode_libdir_flag_spec='-R$libdir'
10651       hardcode_shlibpath_var=no
10652       case $host_os in
10653       solaris2.[0-5] | solaris2.[0-5].*) ;;
10654       *)
10655         # The compiler driver will combine and reorder linker options,
10656         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10657         # but is careful enough not to reorder.
10658         # Supported since Solaris 2.6 (maybe 2.5.1?)
10659         if test "$GCC" = yes; then
10660           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10661         else
10662           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10663         fi
10664         ;;
10665       esac
10666       link_all_deplibs=yes
10667       ;;
10668
10669     sunos4*)
10670       if test "x$host_vendor" = xsequent; then
10671         # Use $CC to link under sequent, because it throws in some extra .o
10672         # files that make .init and .fini sections work.
10673         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10674       else
10675         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10676       fi
10677       hardcode_libdir_flag_spec='-L$libdir'
10678       hardcode_direct=yes
10679       hardcode_minus_L=yes
10680       hardcode_shlibpath_var=no
10681       ;;
10682
10683     sysv4)
10684       case $host_vendor in
10685         sni)
10686           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10687           hardcode_direct=yes # is this really true???
10688         ;;
10689         siemens)
10690           ## LD is ld it makes a PLAMLIB
10691           ## CC just makes a GrossModule.
10692           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10693           reload_cmds='$CC -r -o $output$reload_objs'
10694           hardcode_direct=no
10695         ;;
10696         motorola)
10697           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10698           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10699         ;;
10700       esac
10701       runpath_var='LD_RUN_PATH'
10702       hardcode_shlibpath_var=no
10703       ;;
10704
10705     sysv4.3*)
10706       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707       hardcode_shlibpath_var=no
10708       export_dynamic_flag_spec='-Bexport'
10709       ;;
10710
10711     sysv4*MP*)
10712       if test -d /usr/nec; then
10713         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714         hardcode_shlibpath_var=no
10715         runpath_var=LD_RUN_PATH
10716         hardcode_runpath_var=yes
10717         ld_shlibs=yes
10718       fi
10719       ;;
10720
10721     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10722       no_undefined_flag='${wl}-z,text'
10723       archive_cmds_need_lc=no
10724       hardcode_shlibpath_var=no
10725       runpath_var='LD_RUN_PATH'
10726
10727       if test "$GCC" = yes; then
10728         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10729         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730       else
10731         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733       fi
10734       ;;
10735
10736     sysv5* | sco3.2v5* | sco5v6*)
10737       # Note: We can NOT use -z defs as we might desire, because we do not
10738       # link with -lc, and that would cause any symbols used from libc to
10739       # always be unresolved, which means just about no library would
10740       # ever link correctly.  If we're not using GNU ld we use -z text
10741       # though, which does catch some bad symbols but isn't as heavy-handed
10742       # as -z defs.
10743       no_undefined_flag='${wl}-z,text'
10744       allow_undefined_flag='${wl}-z,nodefs'
10745       archive_cmds_need_lc=no
10746       hardcode_shlibpath_var=no
10747       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10748       hardcode_libdir_separator=':'
10749       link_all_deplibs=yes
10750       export_dynamic_flag_spec='${wl}-Bexport'
10751       runpath_var='LD_RUN_PATH'
10752
10753       if test "$GCC" = yes; then
10754         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10756       else
10757         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10759       fi
10760       ;;
10761
10762     uts4*)
10763       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10764       hardcode_libdir_flag_spec='-L$libdir'
10765       hardcode_shlibpath_var=no
10766       ;;
10767
10768     *)
10769       ld_shlibs=no
10770       ;;
10771     esac
10772
10773     if test x$host_vendor = xsni; then
10774       case $host in
10775       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10776         export_dynamic_flag_spec='${wl}-Blargedynsym'
10777         ;;
10778       esac
10779     fi
10780   fi
10781
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10783 $as_echo "$ld_shlibs" >&6; }
10784 test "$ld_shlibs" = no && can_build_shared=no
10785
10786 with_gnu_ld=$with_gnu_ld
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802 #
10803 # Do we need to explicitly link libc?
10804 #
10805 case "x$archive_cmds_need_lc" in
10806 x|xyes)
10807   # Assume -lc should be added
10808   archive_cmds_need_lc=yes
10809
10810   if test "$enable_shared" = yes && test "$GCC" = yes; then
10811     case $archive_cmds in
10812     *'~'*)
10813       # FIXME: we may have to deal with multi-command sequences.
10814       ;;
10815     '$CC '*)
10816       # Test whether the compiler implicitly links with -lc since on some
10817       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10818       # to ld, don't add -lc before -lgcc.
10819       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10820 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10821 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   $RM conftest*
10825         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10826
10827         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10828   (eval $ac_compile) 2>&5
10829   ac_status=$?
10830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10831   test $ac_status = 0; } 2>conftest.err; then
10832           soname=conftest
10833           lib=conftest
10834           libobjs=conftest.$ac_objext
10835           deplibs=
10836           wl=$lt_prog_compiler_wl
10837           pic_flag=$lt_prog_compiler_pic
10838           compiler_flags=-v
10839           linker_flags=-v
10840           verstring=
10841           output_objdir=.
10842           libname=conftest
10843           lt_save_allow_undefined_flag=$allow_undefined_flag
10844           allow_undefined_flag=
10845           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10846   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10847   ac_status=$?
10848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849   test $ac_status = 0; }
10850           then
10851             lt_cv_archive_cmds_need_lc=no
10852           else
10853             lt_cv_archive_cmds_need_lc=yes
10854           fi
10855           allow_undefined_flag=$lt_save_allow_undefined_flag
10856         else
10857           cat conftest.err 1>&5
10858         fi
10859         $RM conftest*
10860
10861 fi
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10863 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10864       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10865       ;;
10866     esac
10867   fi
10868   ;;
10869 esac
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11024
11025 if test "$GCC" = yes; then
11026   case $host_os in
11027     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11028     *) lt_awk_arg="/^libraries:/" ;;
11029   esac
11030   case $host_os in
11031     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11032     *) lt_sed_strip_eq="s,=/,/,g" ;;
11033   esac
11034   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11035   case $lt_search_path_spec in
11036   *\;*)
11037     # if the path contains ";" then we assume it to be the separator
11038     # otherwise default to the standard path separator (i.e. ":") - it is
11039     # assumed that no part of a normal pathname contains ";" but that should
11040     # okay in the real world where ";" in dirpaths is itself problematic.
11041     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11042     ;;
11043   *)
11044     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11045     ;;
11046   esac
11047   # Ok, now we have the path, separated by spaces, we can step through it
11048   # and add multilib dir if necessary.
11049   lt_tmp_lt_search_path_spec=
11050   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11051   for lt_sys_path in $lt_search_path_spec; do
11052     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11053       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11054     else
11055       test -d "$lt_sys_path" && \
11056         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11057     fi
11058   done
11059   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11060 BEGIN {RS=" "; FS="/|\n";} {
11061   lt_foo="";
11062   lt_count=0;
11063   for (lt_i = NF; lt_i > 0; lt_i--) {
11064     if ($lt_i != "" && $lt_i != ".") {
11065       if ($lt_i == "..") {
11066         lt_count++;
11067       } else {
11068         if (lt_count == 0) {
11069           lt_foo="/" $lt_i lt_foo;
11070         } else {
11071           lt_count--;
11072         }
11073       }
11074     }
11075   }
11076   if (lt_foo != "") { lt_freq[lt_foo]++; }
11077   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11078 }'`
11079   # AWK program above erroneously prepends '/' to C:/dos/paths
11080   # for these hosts.
11081   case $host_os in
11082     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11083       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11084   esac
11085   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11086 else
11087   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11088 fi
11089 library_names_spec=
11090 libname_spec='lib$name'
11091 soname_spec=
11092 shrext_cmds=".so"
11093 postinstall_cmds=
11094 postuninstall_cmds=
11095 finish_cmds=
11096 finish_eval=
11097 shlibpath_var=
11098 shlibpath_overrides_runpath=unknown
11099 version_type=none
11100 dynamic_linker="$host_os ld.so"
11101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11102 need_lib_prefix=unknown
11103 hardcode_into_libs=no
11104
11105 # when you set need_version to no, make sure it does not cause -set_version
11106 # flags to be left without arguments
11107 need_version=unknown
11108
11109 case $host_os in
11110 aix3*)
11111   version_type=linux # correct to gnu/linux during the next big refactor
11112   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11113   shlibpath_var=LIBPATH
11114
11115   # AIX 3 has no versioning support, so we append a major version to the name.
11116   soname_spec='${libname}${release}${shared_ext}$major'
11117   ;;
11118
11119 aix[4-9]*)
11120   version_type=linux # correct to gnu/linux during the next big refactor
11121   need_lib_prefix=no
11122   need_version=no
11123   hardcode_into_libs=yes
11124   if test "$host_cpu" = ia64; then
11125     # AIX 5 supports IA64
11126     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11127     shlibpath_var=LD_LIBRARY_PATH
11128   else
11129     # With GCC up to 2.95.x, collect2 would create an import file
11130     # for dependence libraries.  The import file would start with
11131     # the line `#! .'.  This would cause the generated library to
11132     # depend on `.', always an invalid library.  This was fixed in
11133     # development snapshots of GCC prior to 3.0.
11134     case $host_os in
11135       aix4 | aix4.[01] | aix4.[01].*)
11136       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11137            echo ' yes '
11138            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11139         :
11140       else
11141         can_build_shared=no
11142       fi
11143       ;;
11144     esac
11145     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11146     # soname into executable. Probably we can add versioning support to
11147     # collect2, so additional links can be useful in future.
11148     if test "$aix_use_runtimelinking" = yes; then
11149       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11150       # instead of lib<name>.a to let people know that these are not
11151       # typical AIX shared libraries.
11152       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153     else
11154       # We preserve .a as extension for shared libraries through AIX4.2
11155       # and later when we are not doing run time linking.
11156       library_names_spec='${libname}${release}.a $libname.a'
11157       soname_spec='${libname}${release}${shared_ext}$major'
11158     fi
11159     shlibpath_var=LIBPATH
11160   fi
11161   ;;
11162
11163 amigaos*)
11164   case $host_cpu in
11165   powerpc)
11166     # Since July 2007 AmigaOS4 officially supports .so libraries.
11167     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169     ;;
11170   m68k)
11171     library_names_spec='$libname.ixlibrary $libname.a'
11172     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11173     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'
11174     ;;
11175   esac
11176   ;;
11177
11178 beos*)
11179   library_names_spec='${libname}${shared_ext}'
11180   dynamic_linker="$host_os ld.so"
11181   shlibpath_var=LIBRARY_PATH
11182   ;;
11183
11184 bsdi[45]*)
11185   version_type=linux # correct to gnu/linux during the next big refactor
11186   need_version=no
11187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188   soname_spec='${libname}${release}${shared_ext}$major'
11189   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11190   shlibpath_var=LD_LIBRARY_PATH
11191   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11192   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11193   # the default ld.so.conf also contains /usr/contrib/lib and
11194   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11195   # libtool to hard-code these into programs
11196   ;;
11197
11198 cygwin* | mingw* | pw32* | cegcc*)
11199   version_type=windows
11200   shrext_cmds=".dll"
11201   need_version=no
11202   need_lib_prefix=no
11203
11204   case $GCC,$cc_basename in
11205   yes,*)
11206     # gcc
11207     library_names_spec='$libname.dll.a'
11208     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11209     postinstall_cmds='base_file=`basename \${file}`~
11210       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11211       dldir=$destdir/`dirname \$dlpath`~
11212       test -d \$dldir || mkdir -p \$dldir~
11213       $install_prog $dir/$dlname \$dldir/$dlname~
11214       chmod a+x \$dldir/$dlname~
11215       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11216         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11217       fi'
11218     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11219       dlpath=$dir/\$dldll~
11220        $RM \$dlpath'
11221     shlibpath_overrides_runpath=yes
11222
11223     case $host_os in
11224     cygwin*)
11225       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11226       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11227
11228       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11229       ;;
11230     mingw* | cegcc*)
11231       # MinGW DLLs use traditional 'lib' prefix
11232       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11233       ;;
11234     pw32*)
11235       # pw32 DLLs use 'pw' prefix rather than 'lib'
11236       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11237       ;;
11238     esac
11239     dynamic_linker='Win32 ld.exe'
11240     ;;
11241
11242   *,cl*)
11243     # Native MSVC
11244     libname_spec='$name'
11245     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11246     library_names_spec='${libname}.dll.lib'
11247
11248     case $build_os in
11249     mingw*)
11250       sys_lib_search_path_spec=
11251       lt_save_ifs=$IFS
11252       IFS=';'
11253       for lt_path in $LIB
11254       do
11255         IFS=$lt_save_ifs
11256         # Let DOS variable expansion print the short 8.3 style file name.
11257         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11258         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11259       done
11260       IFS=$lt_save_ifs
11261       # Convert to MSYS style.
11262       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11263       ;;
11264     cygwin*)
11265       # Convert to unix form, then to dos form, then back to unix form
11266       # but this time dos style (no spaces!) so that the unix form looks
11267       # like /cygdrive/c/PROGRA~1:/cygdr...
11268       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11269       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11270       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11271       ;;
11272     *)
11273       sys_lib_search_path_spec="$LIB"
11274       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11275         # It is most probably a Windows format PATH.
11276         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11277       else
11278         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11279       fi
11280       # FIXME: find the short name or the path components, as spaces are
11281       # common. (e.g. "Program Files" -> "PROGRA~1")
11282       ;;
11283     esac
11284
11285     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11286     postinstall_cmds='base_file=`basename \${file}`~
11287       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11288       dldir=$destdir/`dirname \$dlpath`~
11289       test -d \$dldir || mkdir -p \$dldir~
11290       $install_prog $dir/$dlname \$dldir/$dlname'
11291     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11292       dlpath=$dir/\$dldll~
11293        $RM \$dlpath'
11294     shlibpath_overrides_runpath=yes
11295     dynamic_linker='Win32 link.exe'
11296     ;;
11297
11298   *)
11299     # Assume MSVC wrapper
11300     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11301     dynamic_linker='Win32 ld.exe'
11302     ;;
11303   esac
11304   # FIXME: first we should search . and the directory the executable is in
11305   shlibpath_var=PATH
11306   ;;
11307
11308 darwin* | rhapsody*)
11309   dynamic_linker="$host_os dyld"
11310   version_type=darwin
11311   need_lib_prefix=no
11312   need_version=no
11313   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11314   soname_spec='${libname}${release}${major}$shared_ext'
11315   shlibpath_overrides_runpath=yes
11316   shlibpath_var=DYLD_LIBRARY_PATH
11317   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11318
11319   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11320   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11321   ;;
11322
11323 dgux*)
11324   version_type=linux # correct to gnu/linux during the next big refactor
11325   need_lib_prefix=no
11326   need_version=no
11327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11328   soname_spec='${libname}${release}${shared_ext}$major'
11329   shlibpath_var=LD_LIBRARY_PATH
11330   ;;
11331
11332 freebsd* | dragonfly*)
11333   # DragonFly does not have aout.  When/if they implement a new
11334   # versioning mechanism, adjust this.
11335   if test -x /usr/bin/objformat; then
11336     objformat=`/usr/bin/objformat`
11337   else
11338     case $host_os in
11339     freebsd[23].*) objformat=aout ;;
11340     *) objformat=elf ;;
11341     esac
11342   fi
11343   version_type=freebsd-$objformat
11344   case $version_type in
11345     freebsd-elf*)
11346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11347       need_version=no
11348       need_lib_prefix=no
11349       ;;
11350     freebsd-*)
11351       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11352       need_version=yes
11353       ;;
11354   esac
11355   shlibpath_var=LD_LIBRARY_PATH
11356   case $host_os in
11357   freebsd2.*)
11358     shlibpath_overrides_runpath=yes
11359     ;;
11360   freebsd3.[01]* | freebsdelf3.[01]*)
11361     shlibpath_overrides_runpath=yes
11362     hardcode_into_libs=yes
11363     ;;
11364   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11365   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11366     shlibpath_overrides_runpath=no
11367     hardcode_into_libs=yes
11368     ;;
11369   *) # from 4.6 on, and DragonFly
11370     shlibpath_overrides_runpath=yes
11371     hardcode_into_libs=yes
11372     ;;
11373   esac
11374   ;;
11375
11376 gnu*)
11377   version_type=linux # correct to gnu/linux during the next big refactor
11378   need_lib_prefix=no
11379   need_version=no
11380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11381   soname_spec='${libname}${release}${shared_ext}$major'
11382   shlibpath_var=LD_LIBRARY_PATH
11383   shlibpath_overrides_runpath=no
11384   hardcode_into_libs=yes
11385   ;;
11386
11387 haiku*)
11388   version_type=linux # correct to gnu/linux during the next big refactor
11389   need_lib_prefix=no
11390   need_version=no
11391   dynamic_linker="$host_os runtime_loader"
11392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11393   soname_spec='${libname}${release}${shared_ext}$major'
11394   shlibpath_var=LIBRARY_PATH
11395   shlibpath_overrides_runpath=yes
11396   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11397   hardcode_into_libs=yes
11398   ;;
11399
11400 hpux9* | hpux10* | hpux11*)
11401   # Give a soname corresponding to the major version so that dld.sl refuses to
11402   # link against other versions.
11403   version_type=sunos
11404   need_lib_prefix=no
11405   need_version=no
11406   case $host_cpu in
11407   ia64*)
11408     shrext_cmds='.so'
11409     hardcode_into_libs=yes
11410     dynamic_linker="$host_os dld.so"
11411     shlibpath_var=LD_LIBRARY_PATH
11412     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414     soname_spec='${libname}${release}${shared_ext}$major'
11415     if test "X$HPUX_IA64_MODE" = X32; then
11416       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11417     else
11418       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11419     fi
11420     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11421     ;;
11422   hppa*64*)
11423     shrext_cmds='.sl'
11424     hardcode_into_libs=yes
11425     dynamic_linker="$host_os dld.sl"
11426     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11427     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429     soname_spec='${libname}${release}${shared_ext}$major'
11430     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11431     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11432     ;;
11433   *)
11434     shrext_cmds='.sl'
11435     dynamic_linker="$host_os dld.sl"
11436     shlibpath_var=SHLIB_PATH
11437     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439     soname_spec='${libname}${release}${shared_ext}$major'
11440     ;;
11441   esac
11442   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11443   postinstall_cmds='chmod 555 $lib'
11444   # or fails outright, so override atomically:
11445   install_override_mode=555
11446   ;;
11447
11448 interix[3-9]*)
11449   version_type=linux # correct to gnu/linux during the next big refactor
11450   need_lib_prefix=no
11451   need_version=no
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11453   soname_spec='${libname}${release}${shared_ext}$major'
11454   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   shlibpath_overrides_runpath=no
11457   hardcode_into_libs=yes
11458   ;;
11459
11460 irix5* | irix6* | nonstopux*)
11461   case $host_os in
11462     nonstopux*) version_type=nonstopux ;;
11463     *)
11464         if test "$lt_cv_prog_gnu_ld" = yes; then
11465                 version_type=linux # correct to gnu/linux during the next big refactor
11466         else
11467                 version_type=irix
11468         fi ;;
11469   esac
11470   need_lib_prefix=no
11471   need_version=no
11472   soname_spec='${libname}${release}${shared_ext}$major'
11473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11474   case $host_os in
11475   irix5* | nonstopux*)
11476     libsuff= shlibsuff=
11477     ;;
11478   *)
11479     case $LD in # libtool.m4 will add one of these switches to LD
11480     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11481       libsuff= shlibsuff= libmagic=32-bit;;
11482     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11483       libsuff=32 shlibsuff=N32 libmagic=N32;;
11484     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11485       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11486     *) libsuff= shlibsuff= libmagic=never-match;;
11487     esac
11488     ;;
11489   esac
11490   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11491   shlibpath_overrides_runpath=no
11492   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11493   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11494   hardcode_into_libs=yes
11495   ;;
11496
11497 # No shared lib support for Linux oldld, aout, or coff.
11498 linux*oldld* | linux*aout* | linux*coff*)
11499   dynamic_linker=no
11500   ;;
11501
11502 # This must be glibc/ELF.
11503 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11504   version_type=linux # correct to gnu/linux during the next big refactor
11505   need_lib_prefix=no
11506   need_version=no
11507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508   soname_spec='${libname}${release}${shared_ext}$major'
11509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11510   shlibpath_var=LD_LIBRARY_PATH
11511   shlibpath_overrides_runpath=no
11512
11513   # Some binutils ld are patched to set DT_RUNPATH
11514   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517   lt_cv_shlibpath_overrides_runpath=no
11518     save_LDFLAGS=$LDFLAGS
11519     save_libdir=$libdir
11520     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11521          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h.  */
11524
11525 int
11526 main ()
11527 {
11528
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11535   lt_cv_shlibpath_overrides_runpath=yes
11536 fi
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539     conftest$ac_exeext conftest.$ac_ext
11540     LDFLAGS=$save_LDFLAGS
11541     libdir=$save_libdir
11542
11543 fi
11544
11545   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11546
11547   # This implies no fast_install, which is unacceptable.
11548   # Some rework will be needed to allow for fast_install
11549   # before this can be enabled.
11550   hardcode_into_libs=yes
11551
11552   # Append ld.so.conf contents to the search path
11553   if test -f /etc/ld.so.conf; then
11554     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' ' '`
11555     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11556   fi
11557
11558   # We used to test for /lib/ld.so.1 and disable shared libraries on
11559   # powerpc, because MkLinux only supported shared libraries with the
11560   # GNU dynamic linker.  Since this was broken with cross compilers,
11561   # most powerpc-linux boxes support dynamic linking these days and
11562   # people can always --disable-shared, the test was removed, and we
11563   # assume the GNU/Linux dynamic linker is in use.
11564   dynamic_linker='GNU/Linux ld.so'
11565   ;;
11566
11567 netbsd*)
11568   version_type=sunos
11569   need_lib_prefix=no
11570   need_version=no
11571   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11573     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11574     dynamic_linker='NetBSD (a.out) ld.so'
11575   else
11576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11577     soname_spec='${libname}${release}${shared_ext}$major'
11578     dynamic_linker='NetBSD ld.elf_so'
11579   fi
11580   shlibpath_var=LD_LIBRARY_PATH
11581   shlibpath_overrides_runpath=yes
11582   hardcode_into_libs=yes
11583   ;;
11584
11585 newsos6)
11586   version_type=linux # correct to gnu/linux during the next big refactor
11587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588   shlibpath_var=LD_LIBRARY_PATH
11589   shlibpath_overrides_runpath=yes
11590   ;;
11591
11592 *nto* | *qnx*)
11593   version_type=qnx
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   shlibpath_var=LD_LIBRARY_PATH
11599   shlibpath_overrides_runpath=no
11600   hardcode_into_libs=yes
11601   dynamic_linker='ldqnx.so'
11602   ;;
11603
11604 openbsd*)
11605   version_type=sunos
11606   sys_lib_dlsearch_path_spec="/usr/lib"
11607   need_lib_prefix=no
11608   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11609   case $host_os in
11610     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11611     *)                          need_version=no  ;;
11612   esac
11613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11614   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11615   shlibpath_var=LD_LIBRARY_PATH
11616   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11617     case $host_os in
11618       openbsd2.[89] | openbsd2.[89].*)
11619         shlibpath_overrides_runpath=no
11620         ;;
11621       *)
11622         shlibpath_overrides_runpath=yes
11623         ;;
11624       esac
11625   else
11626     shlibpath_overrides_runpath=yes
11627   fi
11628   ;;
11629
11630 os2*)
11631   libname_spec='$name'
11632   shrext_cmds=".dll"
11633   need_lib_prefix=no
11634   library_names_spec='$libname${shared_ext} $libname.a'
11635   dynamic_linker='OS/2 ld.exe'
11636   shlibpath_var=LIBPATH
11637   ;;
11638
11639 osf3* | osf4* | osf5*)
11640   version_type=osf
11641   need_lib_prefix=no
11642   need_version=no
11643   soname_spec='${libname}${release}${shared_ext}$major'
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645   shlibpath_var=LD_LIBRARY_PATH
11646   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11647   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11648   ;;
11649
11650 rdos*)
11651   dynamic_linker=no
11652   ;;
11653
11654 solaris*)
11655   version_type=linux # correct to gnu/linux during the next big refactor
11656   need_lib_prefix=no
11657   need_version=no
11658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659   soname_spec='${libname}${release}${shared_ext}$major'
11660   shlibpath_var=LD_LIBRARY_PATH
11661   shlibpath_overrides_runpath=yes
11662   hardcode_into_libs=yes
11663   # ldd complains unless libraries are executable
11664   postinstall_cmds='chmod +x $lib'
11665   ;;
11666
11667 sunos4*)
11668   version_type=sunos
11669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11670   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11671   shlibpath_var=LD_LIBRARY_PATH
11672   shlibpath_overrides_runpath=yes
11673   if test "$with_gnu_ld" = yes; then
11674     need_lib_prefix=no
11675   fi
11676   need_version=yes
11677   ;;
11678
11679 sysv4 | sysv4.3*)
11680   version_type=linux # correct to gnu/linux during the next big refactor
11681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682   soname_spec='${libname}${release}${shared_ext}$major'
11683   shlibpath_var=LD_LIBRARY_PATH
11684   case $host_vendor in
11685     sni)
11686       shlibpath_overrides_runpath=no
11687       need_lib_prefix=no
11688       runpath_var=LD_RUN_PATH
11689       ;;
11690     siemens)
11691       need_lib_prefix=no
11692       ;;
11693     motorola)
11694       need_lib_prefix=no
11695       need_version=no
11696       shlibpath_overrides_runpath=no
11697       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11698       ;;
11699   esac
11700   ;;
11701
11702 sysv4*MP*)
11703   if test -d /usr/nec ;then
11704     version_type=linux # correct to gnu/linux during the next big refactor
11705     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11706     soname_spec='$libname${shared_ext}.$major'
11707     shlibpath_var=LD_LIBRARY_PATH
11708   fi
11709   ;;
11710
11711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11712   version_type=freebsd-elf
11713   need_lib_prefix=no
11714   need_version=no
11715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11716   soname_spec='${libname}${release}${shared_ext}$major'
11717   shlibpath_var=LD_LIBRARY_PATH
11718   shlibpath_overrides_runpath=yes
11719   hardcode_into_libs=yes
11720   if test "$with_gnu_ld" = yes; then
11721     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11722   else
11723     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11724     case $host_os in
11725       sco3.2v5*)
11726         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11727         ;;
11728     esac
11729   fi
11730   sys_lib_dlsearch_path_spec='/usr/lib'
11731   ;;
11732
11733 tpf*)
11734   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11735   version_type=linux # correct to gnu/linux during the next big refactor
11736   need_lib_prefix=no
11737   need_version=no
11738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739   shlibpath_var=LD_LIBRARY_PATH
11740   shlibpath_overrides_runpath=no
11741   hardcode_into_libs=yes
11742   ;;
11743
11744 uts4*)
11745   version_type=linux # correct to gnu/linux during the next big refactor
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747   soname_spec='${libname}${release}${shared_ext}$major'
11748   shlibpath_var=LD_LIBRARY_PATH
11749   ;;
11750
11751 *)
11752   dynamic_linker=no
11753   ;;
11754 esac
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11756 $as_echo "$dynamic_linker" >&6; }
11757 test "$dynamic_linker" = no && can_build_shared=no
11758
11759 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11760 if test "$GCC" = yes; then
11761   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11762 fi
11763
11764 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11765   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11766 fi
11767 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11768   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11769 fi
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11863 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11864 hardcode_action=
11865 if test -n "$hardcode_libdir_flag_spec" ||
11866    test -n "$runpath_var" ||
11867    test "X$hardcode_automatic" = "Xyes" ; then
11868
11869   # We can hardcode non-existent directories.
11870   if test "$hardcode_direct" != no &&
11871      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11872      # have to relink, otherwise we might link with an installed library
11873      # when we should be linking with a yet-to-be-installed one
11874      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11875      test "$hardcode_minus_L" != no; then
11876     # Linking always hardcodes the temporary library directory.
11877     hardcode_action=relink
11878   else
11879     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11880     hardcode_action=immediate
11881   fi
11882 else
11883   # We cannot hardcode anything, or else we can only hardcode existing
11884   # directories.
11885   hardcode_action=unsupported
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11888 $as_echo "$hardcode_action" >&6; }
11889
11890 if test "$hardcode_action" = relink ||
11891    test "$inherit_rpath" = yes; then
11892   # Fast installation is not supported
11893   enable_fast_install=no
11894 elif test "$shlibpath_overrides_runpath" = yes ||
11895      test "$enable_shared" = no; then
11896   # Fast installation is not necessary
11897   enable_fast_install=needless
11898 fi
11899
11900
11901
11902
11903
11904
11905   if test "x$enable_dlopen" != xyes; then
11906   enable_dlopen=unknown
11907   enable_dlopen_self=unknown
11908   enable_dlopen_self_static=unknown
11909 else
11910   lt_cv_dlopen=no
11911   lt_cv_dlopen_libs=
11912
11913   case $host_os in
11914   beos*)
11915     lt_cv_dlopen="load_add_on"
11916     lt_cv_dlopen_libs=
11917     lt_cv_dlopen_self=yes
11918     ;;
11919
11920   mingw* | pw32* | cegcc*)
11921     lt_cv_dlopen="LoadLibrary"
11922     lt_cv_dlopen_libs=
11923     ;;
11924
11925   cygwin*)
11926     lt_cv_dlopen="dlopen"
11927     lt_cv_dlopen_libs=
11928     ;;
11929
11930   darwin*)
11931   # if libdl is installed we need to link against it
11932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11933 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11934 if ${ac_cv_lib_dl_dlopen+:} false; then :
11935   $as_echo_n "(cached) " >&6
11936 else
11937   ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-ldl  $LIBS"
11939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h.  */
11941
11942 /* Override any GCC internal prototype to avoid an error.
11943    Use char because int might match the return type of a GCC
11944    builtin and then its argument prototype would still apply.  */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 char dlopen ();
11949 int
11950 main ()
11951 {
11952 return dlopen ();
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_link "$LINENO"; then :
11958   ac_cv_lib_dl_dlopen=yes
11959 else
11960   ac_cv_lib_dl_dlopen=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext \
11963     conftest$ac_exeext conftest.$ac_ext
11964 LIBS=$ac_check_lib_save_LIBS
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11967 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11968 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11970 else
11971
11972     lt_cv_dlopen="dyld"
11973     lt_cv_dlopen_libs=
11974     lt_cv_dlopen_self=yes
11975
11976 fi
11977
11978     ;;
11979
11980   *)
11981     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11982 if test "x$ac_cv_func_shl_load" = xyes; then :
11983   lt_cv_dlopen="shl_load"
11984 else
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11986 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11987 if ${ac_cv_lib_dld_shl_load+:} false; then :
11988   $as_echo_n "(cached) " >&6
11989 else
11990   ac_check_lib_save_LIBS=$LIBS
11991 LIBS="-ldld  $LIBS"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h.  */
11994
11995 /* Override any GCC internal prototype to avoid an error.
11996    Use char because int might match the return type of a GCC
11997    builtin and then its argument prototype would still apply.  */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 char shl_load ();
12002 int
12003 main ()
12004 {
12005 return shl_load ();
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12011   ac_cv_lib_dld_shl_load=yes
12012 else
12013   ac_cv_lib_dld_shl_load=no
12014 fi
12015 rm -f core conftest.err conftest.$ac_objext \
12016     conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12020 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12021 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12022   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12023 else
12024   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12025 if test "x$ac_cv_func_dlopen" = xyes; then :
12026   lt_cv_dlopen="dlopen"
12027 else
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12029 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12030 if ${ac_cv_lib_dl_dlopen+:} false; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033   ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-ldl  $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h.  */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039    Use char because int might match the return type of a GCC
12040    builtin and then its argument prototype would still apply.  */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char dlopen ();
12045 int
12046 main ()
12047 {
12048 return dlopen ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054   ac_cv_lib_dl_dlopen=yes
12055 else
12056   ac_cv_lib_dl_dlopen=no
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059     conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12063 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12064 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12065   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12066 else
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12068 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12069 if ${ac_cv_lib_svld_dlopen+:} false; then :
12070   $as_echo_n "(cached) " >&6
12071 else
12072   ac_check_lib_save_LIBS=$LIBS
12073 LIBS="-lsvld  $LIBS"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h.  */
12076
12077 /* Override any GCC internal prototype to avoid an error.
12078    Use char because int might match the return type of a GCC
12079    builtin and then its argument prototype would still apply.  */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char dlopen ();
12084 int
12085 main ()
12086 {
12087 return dlopen ();
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 if ac_fn_c_try_link "$LINENO"; then :
12093   ac_cv_lib_svld_dlopen=yes
12094 else
12095   ac_cv_lib_svld_dlopen=no
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext \
12098     conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12102 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12103 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12104   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12105 else
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12107 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12108 if ${ac_cv_lib_dld_dld_link+:} false; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   ac_check_lib_save_LIBS=$LIBS
12112 LIBS="-ldld  $LIBS"
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h.  */
12115
12116 /* Override any GCC internal prototype to avoid an error.
12117    Use char because int might match the return type of a GCC
12118    builtin and then its argument prototype would still apply.  */
12119 #ifdef __cplusplus
12120 extern "C"
12121 #endif
12122 char dld_link ();
12123 int
12124 main ()
12125 {
12126 return dld_link ();
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 if ac_fn_c_try_link "$LINENO"; then :
12132   ac_cv_lib_dld_dld_link=yes
12133 else
12134   ac_cv_lib_dld_dld_link=no
12135 fi
12136 rm -f core conftest.err conftest.$ac_objext \
12137     conftest$ac_exeext conftest.$ac_ext
12138 LIBS=$ac_check_lib_save_LIBS
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12141 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12142 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12143   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12144 fi
12145
12146
12147 fi
12148
12149
12150 fi
12151
12152
12153 fi
12154
12155
12156 fi
12157
12158
12159 fi
12160
12161     ;;
12162   esac
12163
12164   if test "x$lt_cv_dlopen" != xno; then
12165     enable_dlopen=yes
12166   else
12167     enable_dlopen=no
12168   fi
12169
12170   case $lt_cv_dlopen in
12171   dlopen)
12172     save_CPPFLAGS="$CPPFLAGS"
12173     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12174
12175     save_LDFLAGS="$LDFLAGS"
12176     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12177
12178     save_LIBS="$LIBS"
12179     LIBS="$lt_cv_dlopen_libs $LIBS"
12180
12181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12182 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12183 if ${lt_cv_dlopen_self+:} false; then :
12184   $as_echo_n "(cached) " >&6
12185 else
12186           if test "$cross_compiling" = yes; then :
12187   lt_cv_dlopen_self=cross
12188 else
12189   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12190   lt_status=$lt_dlunknown
12191   cat > conftest.$ac_ext <<_LT_EOF
12192 #line $LINENO "configure"
12193 #include "confdefs.h"
12194
12195 #if HAVE_DLFCN_H
12196 #include <dlfcn.h>
12197 #endif
12198
12199 #include <stdio.h>
12200
12201 #ifdef RTLD_GLOBAL
12202 #  define LT_DLGLOBAL           RTLD_GLOBAL
12203 #else
12204 #  ifdef DL_GLOBAL
12205 #    define LT_DLGLOBAL         DL_GLOBAL
12206 #  else
12207 #    define LT_DLGLOBAL         0
12208 #  endif
12209 #endif
12210
12211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12212    find out it does not work in some platform. */
12213 #ifndef LT_DLLAZY_OR_NOW
12214 #  ifdef RTLD_LAZY
12215 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12216 #  else
12217 #    ifdef DL_LAZY
12218 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12219 #    else
12220 #      ifdef RTLD_NOW
12221 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12222 #      else
12223 #        ifdef DL_NOW
12224 #          define LT_DLLAZY_OR_NOW      DL_NOW
12225 #        else
12226 #          define LT_DLLAZY_OR_NOW      0
12227 #        endif
12228 #      endif
12229 #    endif
12230 #  endif
12231 #endif
12232
12233 /* When -fvisbility=hidden is used, assume the code has been annotated
12234    correspondingly for the symbols needed.  */
12235 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12236 int fnord () __attribute__((visibility("default")));
12237 #endif
12238
12239 int fnord () { return 42; }
12240 int main ()
12241 {
12242   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12243   int status = $lt_dlunknown;
12244
12245   if (self)
12246     {
12247       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12248       else
12249         {
12250           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12251           else puts (dlerror ());
12252         }
12253       /* dlclose (self); */
12254     }
12255   else
12256     puts (dlerror ());
12257
12258   return status;
12259 }
12260 _LT_EOF
12261   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12262   (eval $ac_link) 2>&5
12263   ac_status=$?
12264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12265   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12266     (./conftest; exit; ) >&5 2>/dev/null
12267     lt_status=$?
12268     case x$lt_status in
12269       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12270       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12271       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12272     esac
12273   else :
12274     # compilation failed
12275     lt_cv_dlopen_self=no
12276   fi
12277 fi
12278 rm -fr conftest*
12279
12280
12281 fi
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12283 $as_echo "$lt_cv_dlopen_self" >&6; }
12284
12285     if test "x$lt_cv_dlopen_self" = xyes; then
12286       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12287       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12288 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12289 if ${lt_cv_dlopen_self_static+:} false; then :
12290   $as_echo_n "(cached) " >&6
12291 else
12292           if test "$cross_compiling" = yes; then :
12293   lt_cv_dlopen_self_static=cross
12294 else
12295   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12296   lt_status=$lt_dlunknown
12297   cat > conftest.$ac_ext <<_LT_EOF
12298 #line $LINENO "configure"
12299 #include "confdefs.h"
12300
12301 #if HAVE_DLFCN_H
12302 #include <dlfcn.h>
12303 #endif
12304
12305 #include <stdio.h>
12306
12307 #ifdef RTLD_GLOBAL
12308 #  define LT_DLGLOBAL           RTLD_GLOBAL
12309 #else
12310 #  ifdef DL_GLOBAL
12311 #    define LT_DLGLOBAL         DL_GLOBAL
12312 #  else
12313 #    define LT_DLGLOBAL         0
12314 #  endif
12315 #endif
12316
12317 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12318    find out it does not work in some platform. */
12319 #ifndef LT_DLLAZY_OR_NOW
12320 #  ifdef RTLD_LAZY
12321 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12322 #  else
12323 #    ifdef DL_LAZY
12324 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12325 #    else
12326 #      ifdef RTLD_NOW
12327 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12328 #      else
12329 #        ifdef DL_NOW
12330 #          define LT_DLLAZY_OR_NOW      DL_NOW
12331 #        else
12332 #          define LT_DLLAZY_OR_NOW      0
12333 #        endif
12334 #      endif
12335 #    endif
12336 #  endif
12337 #endif
12338
12339 /* When -fvisbility=hidden is used, assume the code has been annotated
12340    correspondingly for the symbols needed.  */
12341 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12342 int fnord () __attribute__((visibility("default")));
12343 #endif
12344
12345 int fnord () { return 42; }
12346 int main ()
12347 {
12348   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12349   int status = $lt_dlunknown;
12350
12351   if (self)
12352     {
12353       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12354       else
12355         {
12356           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12357           else puts (dlerror ());
12358         }
12359       /* dlclose (self); */
12360     }
12361   else
12362     puts (dlerror ());
12363
12364   return status;
12365 }
12366 _LT_EOF
12367   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12368   (eval $ac_link) 2>&5
12369   ac_status=$?
12370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12371   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12372     (./conftest; exit; ) >&5 2>/dev/null
12373     lt_status=$?
12374     case x$lt_status in
12375       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12376       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12377       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12378     esac
12379   else :
12380     # compilation failed
12381     lt_cv_dlopen_self_static=no
12382   fi
12383 fi
12384 rm -fr conftest*
12385
12386
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12389 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12390     fi
12391
12392     CPPFLAGS="$save_CPPFLAGS"
12393     LDFLAGS="$save_LDFLAGS"
12394     LIBS="$save_LIBS"
12395     ;;
12396   esac
12397
12398   case $lt_cv_dlopen_self in
12399   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12400   *) enable_dlopen_self=unknown ;;
12401   esac
12402
12403   case $lt_cv_dlopen_self_static in
12404   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12405   *) enable_dlopen_self_static=unknown ;;
12406   esac
12407 fi
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425 striplib=
12426 old_striplib=
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12428 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12429 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12430   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12431   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12433 $as_echo "yes" >&6; }
12434 else
12435 # FIXME - insert some real tests, host_os isn't really good enough
12436   case $host_os in
12437   darwin*)
12438     if test -n "$STRIP" ; then
12439       striplib="$STRIP -x"
12440       old_striplib="$STRIP -S"
12441       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12442 $as_echo "yes" >&6; }
12443     else
12444       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12446     fi
12447     ;;
12448   *)
12449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450 $as_echo "no" >&6; }
12451     ;;
12452   esac
12453 fi
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466   # Report which library types will actually be built
12467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12468 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12470 $as_echo "$can_build_shared" >&6; }
12471
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12473 $as_echo_n "checking whether to build shared libraries... " >&6; }
12474   test "$can_build_shared" = "no" && enable_shared=no
12475
12476   # On AIX, shared libraries and static libraries use the same namespace, and
12477   # are all built from PIC.
12478   case $host_os in
12479   aix3*)
12480     test "$enable_shared" = yes && enable_static=no
12481     if test -n "$RANLIB"; then
12482       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12483       postinstall_cmds='$RANLIB $lib'
12484     fi
12485     ;;
12486
12487   aix[4-9]*)
12488     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12489       test "$enable_shared" = yes && enable_static=no
12490     fi
12491     ;;
12492   esac
12493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12494 $as_echo "$enable_shared" >&6; }
12495
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12497 $as_echo_n "checking whether to build static libraries... " >&6; }
12498   # Make sure either enable_shared or enable_static is yes.
12499   test "$enable_shared" = yes || enable_static=yes
12500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12501 $as_echo "$enable_static" >&6; }
12502
12503
12504
12505
12506 fi
12507 ac_ext=c
12508 ac_cpp='$CPP $CPPFLAGS'
12509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12512
12513 CC="$lt_save_CC"
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529         ac_config_commands="$ac_config_commands libtool"
12530
12531
12532
12533
12534 # Only expand once:
12535
12536
12537
12538 NLOPT_SUFFIX=""
12539
12540 # Check whether --with-cxx was given.
12541 if test "${with_cxx+set}" = set; then :
12542   withval=$with_cxx; with_cxx=$withval
12543 else
12544   with_cxx=no
12545 fi
12546
12547  if test "x$with_cxx" = xyes; then
12548   WITH_CXX_TRUE=
12549   WITH_CXX_FALSE='#'
12550 else
12551   WITH_CXX_TRUE='#'
12552   WITH_CXX_FALSE=
12553 fi
12554
12555 ac_ext=cpp
12556 ac_cpp='$CXXCPP $CPPFLAGS'
12557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12560 if test -z "$CXX"; then
12561   if test -n "$CCC"; then
12562     CXX=$CCC
12563   else
12564     if test -n "$ac_tool_prefix"; then
12565   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12566   do
12567     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if ${ac_cv_prog_CXX+:} false; then :
12572   $as_echo_n "(cached) " >&6
12573 else
12574   if test -n "$CXX"; then
12575   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12576 else
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12579 do
12580   IFS=$as_save_IFS
12581   test -z "$as_dir" && as_dir=.
12582     for ac_exec_ext in '' $ac_executable_extensions; do
12583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586     break 2
12587   fi
12588 done
12589   done
12590 IFS=$as_save_IFS
12591
12592 fi
12593 fi
12594 CXX=$ac_cv_prog_CXX
12595 if test -n "$CXX"; then
12596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12597 $as_echo "$CXX" >&6; }
12598 else
12599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12601 fi
12602
12603
12604     test -n "$CXX" && break
12605   done
12606 fi
12607 if test -z "$CXX"; then
12608   ac_ct_CXX=$CXX
12609   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12610 do
12611   # Extract the first word of "$ac_prog", so it can be a program name with args.
12612 set dummy $ac_prog; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12616   $as_echo_n "(cached) " >&6
12617 else
12618   if test -n "$ac_ct_CXX"; then
12619   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12620 else
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12623 do
12624   IFS=$as_save_IFS
12625   test -z "$as_dir" && as_dir=.
12626     for ac_exec_ext in '' $ac_executable_extensions; do
12627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12628     ac_cv_prog_ac_ct_CXX="$ac_prog"
12629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630     break 2
12631   fi
12632 done
12633   done
12634 IFS=$as_save_IFS
12635
12636 fi
12637 fi
12638 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12639 if test -n "$ac_ct_CXX"; then
12640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12641 $as_echo "$ac_ct_CXX" >&6; }
12642 else
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12645 fi
12646
12647
12648   test -n "$ac_ct_CXX" && break
12649 done
12650
12651   if test "x$ac_ct_CXX" = x; then
12652     CXX="g++"
12653   else
12654     case $cross_compiling:$ac_tool_warned in
12655 yes:)
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12658 ac_tool_warned=yes ;;
12659 esac
12660     CXX=$ac_ct_CXX
12661   fi
12662 fi
12663
12664   fi
12665 fi
12666 # Provide some information about the compiler.
12667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12668 set X $ac_compile
12669 ac_compiler=$2
12670 for ac_option in --version -v -V -qversion; do
12671   { { ac_try="$ac_compiler $ac_option >&5"
12672 case "(($ac_try" in
12673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674   *) ac_try_echo=$ac_try;;
12675 esac
12676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12677 $as_echo "$ac_try_echo"; } >&5
12678   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12679   ac_status=$?
12680   if test -s conftest.err; then
12681     sed '10a\
12682 ... rest of stderr output deleted ...
12683          10q' conftest.err >conftest.er1
12684     cat conftest.er1 >&5
12685   fi
12686   rm -f conftest.er1 conftest.err
12687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688   test $ac_status = 0; }
12689 done
12690
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12692 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12693 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h.  */
12698
12699 int
12700 main ()
12701 {
12702 #ifndef __GNUC__
12703        choke me
12704 #endif
12705
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 if ac_fn_cxx_try_compile "$LINENO"; then :
12711   ac_compiler_gnu=yes
12712 else
12713   ac_compiler_gnu=no
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12717
12718 fi
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12720 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12721 if test $ac_compiler_gnu = yes; then
12722   GXX=yes
12723 else
12724   GXX=
12725 fi
12726 ac_test_CXXFLAGS=${CXXFLAGS+set}
12727 ac_save_CXXFLAGS=$CXXFLAGS
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12729 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12730 if ${ac_cv_prog_cxx_g+:} false; then :
12731   $as_echo_n "(cached) " >&6
12732 else
12733   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12734    ac_cxx_werror_flag=yes
12735    ac_cv_prog_cxx_g=no
12736    CXXFLAGS="-g"
12737    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h.  */
12739
12740 int
12741 main ()
12742 {
12743
12744   ;
12745   return 0;
12746 }
12747 _ACEOF
12748 if ac_fn_cxx_try_compile "$LINENO"; then :
12749   ac_cv_prog_cxx_g=yes
12750 else
12751   CXXFLAGS=""
12752       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h.  */
12754
12755 int
12756 main ()
12757 {
12758
12759   ;
12760   return 0;
12761 }
12762 _ACEOF
12763 if ac_fn_cxx_try_compile "$LINENO"; then :
12764
12765 else
12766   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12767          CXXFLAGS="-g"
12768          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h.  */
12770
12771 int
12772 main ()
12773 {
12774
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 if ac_fn_cxx_try_compile "$LINENO"; then :
12780   ac_cv_prog_cxx_g=yes
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12783 fi
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 fi
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12788 fi
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12790 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12791 if test "$ac_test_CXXFLAGS" = set; then
12792   CXXFLAGS=$ac_save_CXXFLAGS
12793 elif test $ac_cv_prog_cxx_g = yes; then
12794   if test "$GXX" = yes; then
12795     CXXFLAGS="-g -O2"
12796   else
12797     CXXFLAGS="-g"
12798   fi
12799 else
12800   if test "$GXX" = yes; then
12801     CXXFLAGS="-O2"
12802   else
12803     CXXFLAGS=
12804   fi
12805 fi
12806 ac_ext=c
12807 ac_cpp='$CPP $CPPFLAGS'
12808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12811
12812 depcc="$CXX"  am_compiler_list=
12813
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12815 $as_echo_n "checking dependency style of $depcc... " >&6; }
12816 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12817   $as_echo_n "(cached) " >&6
12818 else
12819   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12820   # We make a subdir and do the tests there.  Otherwise we can end up
12821   # making bogus files that we don't know about and never remove.  For
12822   # instance it was reported that on HP-UX the gcc test will end up
12823   # making a dummy file named 'D' -- because '-MD' means "put the output
12824   # in D".
12825   rm -rf conftest.dir
12826   mkdir conftest.dir
12827   # Copy depcomp to subdir because otherwise we won't find it if we're
12828   # using a relative directory.
12829   cp "$am_depcomp" conftest.dir
12830   cd conftest.dir
12831   # We will build objects and dependencies in a subdirectory because
12832   # it helps to detect inapplicable dependency modes.  For instance
12833   # both Tru64's cc and ICC support -MD to output dependencies as a
12834   # side effect of compilation, but ICC will put the dependencies in
12835   # the current directory while Tru64 will put them in the object
12836   # directory.
12837   mkdir sub
12838
12839   am_cv_CXX_dependencies_compiler_type=none
12840   if test "$am_compiler_list" = ""; then
12841      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12842   fi
12843   am__universal=false
12844   case " $depcc " in #(
12845      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12846      esac
12847
12848   for depmode in $am_compiler_list; do
12849     # Setup a source with many dependencies, because some compilers
12850     # like to wrap large dependency lists on column 80 (with \), and
12851     # we should not choose a depcomp mode which is confused by this.
12852     #
12853     # We need to recreate these files for each test, as the compiler may
12854     # overwrite some of them when testing with obscure command lines.
12855     # This happens at least with the AIX C compiler.
12856     : > sub/conftest.c
12857     for i in 1 2 3 4 5 6; do
12858       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12859       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12860       # Solaris 10 /bin/sh.
12861       echo '/* dummy */' > sub/conftst$i.h
12862     done
12863     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12864
12865     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12866     # mode.  It turns out that the SunPro C++ compiler does not properly
12867     # handle '-M -o', and we need to detect this.  Also, some Intel
12868     # versions had trouble with output in subdirs.
12869     am__obj=sub/conftest.${OBJEXT-o}
12870     am__minus_obj="-o $am__obj"
12871     case $depmode in
12872     gcc)
12873       # This depmode causes a compiler race in universal mode.
12874       test "$am__universal" = false || continue
12875       ;;
12876     nosideeffect)
12877       # After this tag, mechanisms are not by side-effect, so they'll
12878       # only be used when explicitly requested.
12879       if test "x$enable_dependency_tracking" = xyes; then
12880         continue
12881       else
12882         break
12883       fi
12884       ;;
12885     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12886       # This compiler won't grok '-c -o', but also, the minuso test has
12887       # not run yet.  These depmodes are late enough in the game, and
12888       # so weak that their functioning should not be impacted.
12889       am__obj=conftest.${OBJEXT-o}
12890       am__minus_obj=
12891       ;;
12892     none) break ;;
12893     esac
12894     if depmode=$depmode \
12895        source=sub/conftest.c object=$am__obj \
12896        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12897        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12898          >/dev/null 2>conftest.err &&
12899        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12900        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12901        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12902        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12903       # icc doesn't choke on unknown options, it will just issue warnings
12904       # or remarks (even with -Werror).  So we grep stderr for any message
12905       # that says an option was ignored or not supported.
12906       # When given -MP, icc 7.0 and 7.1 complain thusly:
12907       #   icc: Command line warning: ignoring option '-M'; no argument required
12908       # The diagnosis changed in icc 8.0:
12909       #   icc: Command line remark: option '-MP' not supported
12910       if (grep 'ignoring option' conftest.err ||
12911           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12912         am_cv_CXX_dependencies_compiler_type=$depmode
12913         break
12914       fi
12915     fi
12916   done
12917
12918   cd ..
12919   rm -rf conftest.dir
12920 else
12921   am_cv_CXX_dependencies_compiler_type=none
12922 fi
12923
12924 fi
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12926 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12927 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12928
12929  if
12930   test "x$enable_dependency_tracking" != xno \
12931   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12932   am__fastdepCXX_TRUE=
12933   am__fastdepCXX_FALSE='#'
12934 else
12935   am__fastdepCXX_TRUE='#'
12936   am__fastdepCXX_FALSE=
12937 fi
12938
12939
12940
12941
12942 func_stripname_cnf ()
12943 {
12944   case ${2} in
12945   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12946   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12947   esac
12948 } # func_stripname_cnf
12949
12950       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12951     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12952     (test "X$CXX" != "Xg++"))) ; then
12953   ac_ext=cpp
12954 ac_cpp='$CXXCPP $CPPFLAGS'
12955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12959 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12960 if test -z "$CXXCPP"; then
12961   if ${ac_cv_prog_CXXCPP+:} false; then :
12962   $as_echo_n "(cached) " >&6
12963 else
12964       # Double quotes because CXXCPP needs to be expanded
12965     for CXXCPP in "$CXX -E" "/lib/cpp"
12966     do
12967       ac_preproc_ok=false
12968 for ac_cxx_preproc_warn_flag in '' yes
12969 do
12970   # Use a header file that comes with gcc, so configuring glibc
12971   # with a fresh cross-compiler works.
12972   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12973   # <limits.h> exists even on freestanding compilers.
12974   # On the NeXT, cc -E runs the code through the compiler's parser,
12975   # not just through cpp. "Syntax error" is here to catch this case.
12976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h.  */
12978 #ifdef __STDC__
12979 # include <limits.h>
12980 #else
12981 # include <assert.h>
12982 #endif
12983                      Syntax error
12984 _ACEOF
12985 if ac_fn_cxx_try_cpp "$LINENO"; then :
12986
12987 else
12988   # Broken: fails on valid input.
12989 continue
12990 fi
12991 rm -f conftest.err conftest.i conftest.$ac_ext
12992
12993   # OK, works on sane cases.  Now check whether nonexistent headers
12994   # can be detected and how.
12995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h.  */
12997 #include <ac_nonexistent.h>
12998 _ACEOF
12999 if ac_fn_cxx_try_cpp "$LINENO"; then :
13000   # Broken: success on invalid input.
13001 continue
13002 else
13003   # Passes both tests.
13004 ac_preproc_ok=:
13005 break
13006 fi
13007 rm -f conftest.err conftest.i conftest.$ac_ext
13008
13009 done
13010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13011 rm -f conftest.i conftest.err conftest.$ac_ext
13012 if $ac_preproc_ok; then :
13013   break
13014 fi
13015
13016     done
13017     ac_cv_prog_CXXCPP=$CXXCPP
13018
13019 fi
13020   CXXCPP=$ac_cv_prog_CXXCPP
13021 else
13022   ac_cv_prog_CXXCPP=$CXXCPP
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13025 $as_echo "$CXXCPP" >&6; }
13026 ac_preproc_ok=false
13027 for ac_cxx_preproc_warn_flag in '' yes
13028 do
13029   # Use a header file that comes with gcc, so configuring glibc
13030   # with a fresh cross-compiler works.
13031   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13032   # <limits.h> exists even on freestanding compilers.
13033   # On the NeXT, cc -E runs the code through the compiler's parser,
13034   # not just through cpp. "Syntax error" is here to catch this case.
13035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h.  */
13037 #ifdef __STDC__
13038 # include <limits.h>
13039 #else
13040 # include <assert.h>
13041 #endif
13042                      Syntax error
13043 _ACEOF
13044 if ac_fn_cxx_try_cpp "$LINENO"; then :
13045
13046 else
13047   # Broken: fails on valid input.
13048 continue
13049 fi
13050 rm -f conftest.err conftest.i conftest.$ac_ext
13051
13052   # OK, works on sane cases.  Now check whether nonexistent headers
13053   # can be detected and how.
13054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h.  */
13056 #include <ac_nonexistent.h>
13057 _ACEOF
13058 if ac_fn_cxx_try_cpp "$LINENO"; then :
13059   # Broken: success on invalid input.
13060 continue
13061 else
13062   # Passes both tests.
13063 ac_preproc_ok=:
13064 break
13065 fi
13066 rm -f conftest.err conftest.i conftest.$ac_ext
13067
13068 done
13069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13070 rm -f conftest.i conftest.err conftest.$ac_ext
13071 if $ac_preproc_ok; then :
13072
13073 else
13074   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13076 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13077 See \`config.log' for more details" "$LINENO" 5; }
13078 fi
13079
13080 ac_ext=c
13081 ac_cpp='$CPP $CPPFLAGS'
13082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13085
13086 else
13087   _lt_caught_CXX_error=yes
13088 fi
13089
13090 ac_ext=cpp
13091 ac_cpp='$CXXCPP $CPPFLAGS'
13092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13095
13096 archive_cmds_need_lc_CXX=no
13097 allow_undefined_flag_CXX=
13098 always_export_symbols_CXX=no
13099 archive_expsym_cmds_CXX=
13100 compiler_needs_object_CXX=no
13101 export_dynamic_flag_spec_CXX=
13102 hardcode_direct_CXX=no
13103 hardcode_direct_absolute_CXX=no
13104 hardcode_libdir_flag_spec_CXX=
13105 hardcode_libdir_separator_CXX=
13106 hardcode_minus_L_CXX=no
13107 hardcode_shlibpath_var_CXX=unsupported
13108 hardcode_automatic_CXX=no
13109 inherit_rpath_CXX=no
13110 module_cmds_CXX=
13111 module_expsym_cmds_CXX=
13112 link_all_deplibs_CXX=unknown
13113 old_archive_cmds_CXX=$old_archive_cmds
13114 reload_flag_CXX=$reload_flag
13115 reload_cmds_CXX=$reload_cmds
13116 no_undefined_flag_CXX=
13117 whole_archive_flag_spec_CXX=
13118 enable_shared_with_static_runtimes_CXX=no
13119
13120 # Source file extension for C++ test sources.
13121 ac_ext=cpp
13122
13123 # Object file extension for compiled C++ test sources.
13124 objext=o
13125 objext_CXX=$objext
13126
13127 # No sense in running all these tests if we already determined that
13128 # the CXX compiler isn't working.  Some variables (like enable_shared)
13129 # are currently assumed to apply to all compilers on this platform,
13130 # and will be corrupted by setting them based on a non-working compiler.
13131 if test "$_lt_caught_CXX_error" != yes; then
13132   # Code to be used in simple compile tests
13133   lt_simple_compile_test_code="int some_variable = 0;"
13134
13135   # Code to be used in simple link tests
13136   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13137
13138   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13139
13140
13141
13142
13143
13144
13145 # If no C compiler was specified, use CC.
13146 LTCC=${LTCC-"$CC"}
13147
13148 # If no C compiler flags were specified, use CFLAGS.
13149 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13150
13151 # Allow CC to be a program name with arguments.
13152 compiler=$CC
13153
13154
13155   # save warnings/boilerplate of simple test code
13156   ac_outfile=conftest.$ac_objext
13157 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13158 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13159 _lt_compiler_boilerplate=`cat conftest.err`
13160 $RM conftest*
13161
13162   ac_outfile=conftest.$ac_objext
13163 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13164 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13165 _lt_linker_boilerplate=`cat conftest.err`
13166 $RM -r conftest*
13167
13168
13169   # Allow CC to be a program name with arguments.
13170   lt_save_CC=$CC
13171   lt_save_CFLAGS=$CFLAGS
13172   lt_save_LD=$LD
13173   lt_save_GCC=$GCC
13174   GCC=$GXX
13175   lt_save_with_gnu_ld=$with_gnu_ld
13176   lt_save_path_LD=$lt_cv_path_LD
13177   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13178     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13179   else
13180     $as_unset lt_cv_prog_gnu_ld
13181   fi
13182   if test -n "${lt_cv_path_LDCXX+set}"; then
13183     lt_cv_path_LD=$lt_cv_path_LDCXX
13184   else
13185     $as_unset lt_cv_path_LD
13186   fi
13187   test -z "${LDCXX+set}" || LD=$LDCXX
13188   CC=${CXX-"c++"}
13189   CFLAGS=$CXXFLAGS
13190   compiler=$CC
13191   compiler_CXX=$CC
13192   for cc_temp in $compiler""; do
13193   case $cc_temp in
13194     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13195     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13196     \-*) ;;
13197     *) break;;
13198   esac
13199 done
13200 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13201
13202
13203   if test -n "$compiler"; then
13204     # We don't want -fno-exception when compiling C++ code, so set the
13205     # no_builtin_flag separately
13206     if test "$GXX" = yes; then
13207       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13208     else
13209       lt_prog_compiler_no_builtin_flag_CXX=
13210     fi
13211
13212     if test "$GXX" = yes; then
13213       # Set up default GNU C++ configuration
13214
13215
13216
13217 # Check whether --with-gnu-ld was given.
13218 if test "${with_gnu_ld+set}" = set; then :
13219   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13220 else
13221   with_gnu_ld=no
13222 fi
13223
13224 ac_prog=ld
13225 if test "$GCC" = yes; then
13226   # Check if gcc -print-prog-name=ld gives a path.
13227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13228 $as_echo_n "checking for ld used by $CC... " >&6; }
13229   case $host in
13230   *-*-mingw*)
13231     # gcc leaves a trailing carriage return which upsets mingw
13232     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13233   *)
13234     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13235   esac
13236   case $ac_prog in
13237     # Accept absolute paths.
13238     [\\/]* | ?:[\\/]*)
13239       re_direlt='/[^/][^/]*/\.\./'
13240       # Canonicalize the pathname of ld
13241       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13242       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13243         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13244       done
13245       test -z "$LD" && LD="$ac_prog"
13246       ;;
13247   "")
13248     # If it fails, then pretend we aren't using GCC.
13249     ac_prog=ld
13250     ;;
13251   *)
13252     # If it is relative, then search for the first ld in PATH.
13253     with_gnu_ld=unknown
13254     ;;
13255   esac
13256 elif test "$with_gnu_ld" = yes; then
13257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13258 $as_echo_n "checking for GNU ld... " >&6; }
13259 else
13260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13261 $as_echo_n "checking for non-GNU ld... " >&6; }
13262 fi
13263 if ${lt_cv_path_LD+:} false; then :
13264   $as_echo_n "(cached) " >&6
13265 else
13266   if test -z "$LD"; then
13267   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13268   for ac_dir in $PATH; do
13269     IFS="$lt_save_ifs"
13270     test -z "$ac_dir" && ac_dir=.
13271     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13272       lt_cv_path_LD="$ac_dir/$ac_prog"
13273       # Check to see if the program is GNU ld.  I'd rather use --version,
13274       # but apparently some variants of GNU ld only accept -v.
13275       # Break only if it was the GNU/non-GNU ld that we prefer.
13276       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13277       *GNU* | *'with BFD'*)
13278         test "$with_gnu_ld" != no && break
13279         ;;
13280       *)
13281         test "$with_gnu_ld" != yes && break
13282         ;;
13283       esac
13284     fi
13285   done
13286   IFS="$lt_save_ifs"
13287 else
13288   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13289 fi
13290 fi
13291
13292 LD="$lt_cv_path_LD"
13293 if test -n "$LD"; then
13294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13295 $as_echo "$LD" >&6; }
13296 else
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13299 fi
13300 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13302 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13303 if ${lt_cv_prog_gnu_ld+:} false; then :
13304   $as_echo_n "(cached) " >&6
13305 else
13306   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13307 case `$LD -v 2>&1 </dev/null` in
13308 *GNU* | *'with BFD'*)
13309   lt_cv_prog_gnu_ld=yes
13310   ;;
13311 *)
13312   lt_cv_prog_gnu_ld=no
13313   ;;
13314 esac
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13317 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13318 with_gnu_ld=$lt_cv_prog_gnu_ld
13319
13320
13321
13322
13323
13324
13325
13326       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13327       # archiving commands below assume that GNU ld is being used.
13328       if test "$with_gnu_ld" = yes; then
13329         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330         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'
13331
13332         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13333         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13334
13335         # If archive_cmds runs LD, not CC, wlarc should be empty
13336         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13337         #     investigate it a little bit more. (MM)
13338         wlarc='${wl}'
13339
13340         # ancient GNU ld didn't support --whole-archive et. al.
13341         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13342           $GREP 'no-whole-archive' > /dev/null; then
13343           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13344         else
13345           whole_archive_flag_spec_CXX=
13346         fi
13347       else
13348         with_gnu_ld=no
13349         wlarc=
13350
13351         # A generic and very simple default shared library creation
13352         # command for GNU C++ for the case where it uses the native
13353         # linker, instead of GNU ld.  If possible, this setting should
13354         # overridden to take advantage of the native linker features on
13355         # the platform it is being used on.
13356         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13357       fi
13358
13359       # Commands to make compiler produce verbose output that lists
13360       # what "hidden" libraries, object files and flags are used when
13361       # linking a shared library.
13362       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13363
13364     else
13365       GXX=no
13366       with_gnu_ld=no
13367       wlarc=
13368     fi
13369
13370     # PORTME: fill in a description of your system's C++ link characteristics
13371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13372 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13373     ld_shlibs_CXX=yes
13374     case $host_os in
13375       aix3*)
13376         # FIXME: insert proper C++ library support
13377         ld_shlibs_CXX=no
13378         ;;
13379       aix[4-9]*)
13380         if test "$host_cpu" = ia64; then
13381           # On IA64, the linker does run time linking by default, so we don't
13382           # have to do anything special.
13383           aix_use_runtimelinking=no
13384           exp_sym_flag='-Bexport'
13385           no_entry_flag=""
13386         else
13387           aix_use_runtimelinking=no
13388
13389           # Test if we are trying to use run time linking or normal
13390           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13391           # need to do runtime linking.
13392           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13393             for ld_flag in $LDFLAGS; do
13394               case $ld_flag in
13395               *-brtl*)
13396                 aix_use_runtimelinking=yes
13397                 break
13398                 ;;
13399               esac
13400             done
13401             ;;
13402           esac
13403
13404           exp_sym_flag='-bexport'
13405           no_entry_flag='-bnoentry'
13406         fi
13407
13408         # When large executables or shared objects are built, AIX ld can
13409         # have problems creating the table of contents.  If linking a library
13410         # or program results in "error TOC overflow" add -mminimal-toc to
13411         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13412         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13413
13414         archive_cmds_CXX=''
13415         hardcode_direct_CXX=yes
13416         hardcode_direct_absolute_CXX=yes
13417         hardcode_libdir_separator_CXX=':'
13418         link_all_deplibs_CXX=yes
13419         file_list_spec_CXX='${wl}-f,'
13420
13421         if test "$GXX" = yes; then
13422           case $host_os in aix4.[012]|aix4.[012].*)
13423           # We only want to do this on AIX 4.2 and lower, the check
13424           # below for broken collect2 doesn't work under 4.3+
13425           collect2name=`${CC} -print-prog-name=collect2`
13426           if test -f "$collect2name" &&
13427              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13428           then
13429             # We have reworked collect2
13430             :
13431           else
13432             # We have old collect2
13433             hardcode_direct_CXX=unsupported
13434             # It fails to find uninstalled libraries when the uninstalled
13435             # path is not listed in the libpath.  Setting hardcode_minus_L
13436             # to unsupported forces relinking
13437             hardcode_minus_L_CXX=yes
13438             hardcode_libdir_flag_spec_CXX='-L$libdir'
13439             hardcode_libdir_separator_CXX=
13440           fi
13441           esac
13442           shared_flag='-shared'
13443           if test "$aix_use_runtimelinking" = yes; then
13444             shared_flag="$shared_flag "'${wl}-G'
13445           fi
13446         else
13447           # not using gcc
13448           if test "$host_cpu" = ia64; then
13449           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13450           # chokes on -Wl,-G. The following line is correct:
13451           shared_flag='-G'
13452           else
13453             if test "$aix_use_runtimelinking" = yes; then
13454               shared_flag='${wl}-G'
13455             else
13456               shared_flag='${wl}-bM:SRE'
13457             fi
13458           fi
13459         fi
13460
13461         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13462         # It seems that -bexpall does not export symbols beginning with
13463         # underscore (_), so it is better to generate a list of symbols to
13464         # export.
13465         always_export_symbols_CXX=yes
13466         if test "$aix_use_runtimelinking" = yes; then
13467           # Warning - without using the other runtime loading flags (-brtl),
13468           # -berok will link without error, but may produce a broken library.
13469           allow_undefined_flag_CXX='-berok'
13470           # Determine the default libpath from the value encoded in an empty
13471           # executable.
13472           if test "${lt_cv_aix_libpath+set}" = set; then
13473   aix_libpath=$lt_cv_aix_libpath
13474 else
13475   if ${lt_cv_aix_libpath__CXX+:} false; then :
13476   $as_echo_n "(cached) " >&6
13477 else
13478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h.  */
13480
13481 int
13482 main ()
13483 {
13484
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 if ac_fn_cxx_try_link "$LINENO"; then :
13490
13491   lt_aix_libpath_sed='
13492       /Import File Strings/,/^$/ {
13493           /^0/ {
13494               s/^0  *\([^ ]*\) *$/\1/
13495               p
13496           }
13497       }'
13498   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13499   # Check for a 64-bit object if we didn't find anything.
13500   if test -z "$lt_cv_aix_libpath__CXX"; then
13501     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13502   fi
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext \
13505     conftest$ac_exeext conftest.$ac_ext
13506   if test -z "$lt_cv_aix_libpath__CXX"; then
13507     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13508   fi
13509
13510 fi
13511
13512   aix_libpath=$lt_cv_aix_libpath__CXX
13513 fi
13514
13515           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13516
13517           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"
13518         else
13519           if test "$host_cpu" = ia64; then
13520             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13521             allow_undefined_flag_CXX="-z nodefs"
13522             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"
13523           else
13524             # Determine the default libpath from the value encoded in an
13525             # empty executable.
13526             if test "${lt_cv_aix_libpath+set}" = set; then
13527   aix_libpath=$lt_cv_aix_libpath
13528 else
13529   if ${lt_cv_aix_libpath__CXX+:} false; then :
13530   $as_echo_n "(cached) " >&6
13531 else
13532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h.  */
13534
13535 int
13536 main ()
13537 {
13538
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 if ac_fn_cxx_try_link "$LINENO"; then :
13544
13545   lt_aix_libpath_sed='
13546       /Import File Strings/,/^$/ {
13547           /^0/ {
13548               s/^0  *\([^ ]*\) *$/\1/
13549               p
13550           }
13551       }'
13552   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13553   # Check for a 64-bit object if we didn't find anything.
13554   if test -z "$lt_cv_aix_libpath__CXX"; then
13555     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13556   fi
13557 fi
13558 rm -f core conftest.err conftest.$ac_objext \
13559     conftest$ac_exeext conftest.$ac_ext
13560   if test -z "$lt_cv_aix_libpath__CXX"; then
13561     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13562   fi
13563
13564 fi
13565
13566   aix_libpath=$lt_cv_aix_libpath__CXX
13567 fi
13568
13569             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13570             # Warning - without using the other run time loading flags,
13571             # -berok will link without error, but may produce a broken library.
13572             no_undefined_flag_CXX=' ${wl}-bernotok'
13573             allow_undefined_flag_CXX=' ${wl}-berok'
13574             if test "$with_gnu_ld" = yes; then
13575               # We only use this code for GNU lds that support --whole-archive.
13576               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13577             else
13578               # Exported symbols can be pulled into shared objects from archives
13579               whole_archive_flag_spec_CXX='$convenience'
13580             fi
13581             archive_cmds_need_lc_CXX=yes
13582             # This is similar to how AIX traditionally builds its shared
13583             # libraries.
13584             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'
13585           fi
13586         fi
13587         ;;
13588
13589       beos*)
13590         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13591           allow_undefined_flag_CXX=unsupported
13592           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13593           # support --undefined.  This deserves some investigation.  FIXME
13594           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13595         else
13596           ld_shlibs_CXX=no
13597         fi
13598         ;;
13599
13600       chorus*)
13601         case $cc_basename in
13602           *)
13603           # FIXME: insert proper C++ library support
13604           ld_shlibs_CXX=no
13605           ;;
13606         esac
13607         ;;
13608
13609       cygwin* | mingw* | pw32* | cegcc*)
13610         case $GXX,$cc_basename in
13611         ,cl* | no,cl*)
13612           # Native MSVC
13613           # hardcode_libdir_flag_spec is actually meaningless, as there is
13614           # no search path for DLLs.
13615           hardcode_libdir_flag_spec_CXX=' '
13616           allow_undefined_flag_CXX=unsupported
13617           always_export_symbols_CXX=yes
13618           file_list_spec_CXX='@'
13619           # Tell ltmain to make .lib files, not .a files.
13620           libext=lib
13621           # Tell ltmain to make .dll files, not .so files.
13622           shrext_cmds=".dll"
13623           # FIXME: Setting linknames here is a bad hack.
13624           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13625           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13626               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13627             else
13628               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13629             fi~
13630             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13631             linknames='
13632           # The linker will not automatically build a static lib if we build a DLL.
13633           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13634           enable_shared_with_static_runtimes_CXX=yes
13635           # Don't use ranlib
13636           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13637           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13638             lt_tool_outputfile="@TOOL_OUTPUT@"~
13639             case $lt_outputfile in
13640               *.exe|*.EXE) ;;
13641               *)
13642                 lt_outputfile="$lt_outputfile.exe"
13643                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13644                 ;;
13645             esac~
13646             func_to_tool_file "$lt_outputfile"~
13647             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13648               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13649               $RM "$lt_outputfile.manifest";
13650             fi'
13651           ;;
13652         *)
13653           # g++
13654           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13655           # as there is no search path for DLLs.
13656           hardcode_libdir_flag_spec_CXX='-L$libdir'
13657           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13658           allow_undefined_flag_CXX=unsupported
13659           always_export_symbols_CXX=no
13660           enable_shared_with_static_runtimes_CXX=yes
13661
13662           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13663             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'
13664             # If the export-symbols file already is a .def file (1st line
13665             # is EXPORTS), use it as is; otherwise, prepend...
13666             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13667               cp $export_symbols $output_objdir/$soname.def;
13668             else
13669               echo EXPORTS > $output_objdir/$soname.def;
13670               cat $export_symbols >> $output_objdir/$soname.def;
13671             fi~
13672             $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'
13673           else
13674             ld_shlibs_CXX=no
13675           fi
13676           ;;
13677         esac
13678         ;;
13679       darwin* | rhapsody*)
13680
13681
13682   archive_cmds_need_lc_CXX=no
13683   hardcode_direct_CXX=no
13684   hardcode_automatic_CXX=yes
13685   hardcode_shlibpath_var_CXX=unsupported
13686   if test "$lt_cv_ld_force_load" = "yes"; then
13687     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\"`'
13688
13689   else
13690     whole_archive_flag_spec_CXX=''
13691   fi
13692   link_all_deplibs_CXX=yes
13693   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13694   case $cc_basename in
13695      ifort*) _lt_dar_can_shared=yes ;;
13696      *) _lt_dar_can_shared=$GCC ;;
13697   esac
13698   if test "$_lt_dar_can_shared" = "yes"; then
13699     output_verbose_link_cmd=func_echo_all
13700     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}"
13701     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13702     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}"
13703     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}"
13704        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13705       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}"
13706       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}"
13707     fi
13708
13709   else
13710   ld_shlibs_CXX=no
13711   fi
13712
13713         ;;
13714
13715       dgux*)
13716         case $cc_basename in
13717           ec++*)
13718             # FIXME: insert proper C++ library support
13719             ld_shlibs_CXX=no
13720             ;;
13721           ghcx*)
13722             # Green Hills C++ Compiler
13723             # FIXME: insert proper C++ library support
13724             ld_shlibs_CXX=no
13725             ;;
13726           *)
13727             # FIXME: insert proper C++ library support
13728             ld_shlibs_CXX=no
13729             ;;
13730         esac
13731         ;;
13732
13733       freebsd2.*)
13734         # C++ shared libraries reported to be fairly broken before
13735         # switch to ELF
13736         ld_shlibs_CXX=no
13737         ;;
13738
13739       freebsd-elf*)
13740         archive_cmds_need_lc_CXX=no
13741         ;;
13742
13743       freebsd* | dragonfly*)
13744         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13745         # conventions
13746         ld_shlibs_CXX=yes
13747         ;;
13748
13749       gnu*)
13750         ;;
13751
13752       haiku*)
13753         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754         link_all_deplibs_CXX=yes
13755         ;;
13756
13757       hpux9*)
13758         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13759         hardcode_libdir_separator_CXX=:
13760         export_dynamic_flag_spec_CXX='${wl}-E'
13761         hardcode_direct_CXX=yes
13762         hardcode_minus_L_CXX=yes # Not in the search PATH,
13763                                              # but as the default
13764                                              # location of the library.
13765
13766         case $cc_basename in
13767           CC*)
13768             # FIXME: insert proper C++ library support
13769             ld_shlibs_CXX=no
13770             ;;
13771           aCC*)
13772             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'
13773             # Commands to make compiler produce verbose output that lists
13774             # what "hidden" libraries, object files and flags are used when
13775             # linking a shared library.
13776             #
13777             # There doesn't appear to be a way to prevent this compiler from
13778             # explicitly linking system object files so we need to strip them
13779             # from the output so that they don't get included in the library
13780             # dependencies.
13781             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"'
13782             ;;
13783           *)
13784             if test "$GXX" = yes; then
13785               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13786             else
13787               # FIXME: insert proper C++ library support
13788               ld_shlibs_CXX=no
13789             fi
13790             ;;
13791         esac
13792         ;;
13793
13794       hpux10*|hpux11*)
13795         if test $with_gnu_ld = no; then
13796           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13797           hardcode_libdir_separator_CXX=:
13798
13799           case $host_cpu in
13800             hppa*64*|ia64*)
13801               ;;
13802             *)
13803               export_dynamic_flag_spec_CXX='${wl}-E'
13804               ;;
13805           esac
13806         fi
13807         case $host_cpu in
13808           hppa*64*|ia64*)
13809             hardcode_direct_CXX=no
13810             hardcode_shlibpath_var_CXX=no
13811             ;;
13812           *)
13813             hardcode_direct_CXX=yes
13814             hardcode_direct_absolute_CXX=yes
13815             hardcode_minus_L_CXX=yes # Not in the search PATH,
13816                                                  # but as the default
13817                                                  # location of the library.
13818             ;;
13819         esac
13820
13821         case $cc_basename in
13822           CC*)
13823             # FIXME: insert proper C++ library support
13824             ld_shlibs_CXX=no
13825             ;;
13826           aCC*)
13827             case $host_cpu in
13828               hppa*64*)
13829                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13830                 ;;
13831               ia64*)
13832                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13833                 ;;
13834               *)
13835                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13836                 ;;
13837             esac
13838             # Commands to make compiler produce verbose output that lists
13839             # what "hidden" libraries, object files and flags are used when
13840             # linking a shared library.
13841             #
13842             # There doesn't appear to be a way to prevent this compiler from
13843             # explicitly linking system object files so we need to strip them
13844             # from the output so that they don't get included in the library
13845             # dependencies.
13846             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"'
13847             ;;
13848           *)
13849             if test "$GXX" = yes; then
13850               if test $with_gnu_ld = no; then
13851                 case $host_cpu in
13852                   hppa*64*)
13853                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13854                     ;;
13855                   ia64*)
13856                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13857                     ;;
13858                   *)
13859                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13860                     ;;
13861                 esac
13862               fi
13863             else
13864               # FIXME: insert proper C++ library support
13865               ld_shlibs_CXX=no
13866             fi
13867             ;;
13868         esac
13869         ;;
13870
13871       interix[3-9]*)
13872         hardcode_direct_CXX=no
13873         hardcode_shlibpath_var_CXX=no
13874         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13875         export_dynamic_flag_spec_CXX='${wl}-E'
13876         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13877         # Instead, shared libraries are loaded at an image base (0x10000000 by
13878         # default) and relocated if they conflict, which is a slow very memory
13879         # consuming and fragmenting process.  To avoid this, we pick a random,
13880         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13881         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13882         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'
13883         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'
13884         ;;
13885       irix5* | irix6*)
13886         case $cc_basename in
13887           CC*)
13888             # SGI C++
13889             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'
13890
13891             # Archives containing C++ object files must be created using
13892             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13893             # necessary to make sure instantiated templates are included
13894             # in the archive.
13895             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13896             ;;
13897           *)
13898             if test "$GXX" = yes; then
13899               if test "$with_gnu_ld" = no; then
13900                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13901               else
13902                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13903               fi
13904             fi
13905             link_all_deplibs_CXX=yes
13906             ;;
13907         esac
13908         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13909         hardcode_libdir_separator_CXX=:
13910         inherit_rpath_CXX=yes
13911         ;;
13912
13913       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13914         case $cc_basename in
13915           KCC*)
13916             # Kuck and Associates, Inc. (KAI) C++ Compiler
13917
13918             # KCC will only create a shared library if the output file
13919             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13920             # to its proper name (with version) after linking.
13921             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'
13922             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'
13923             # Commands to make compiler produce verbose output that lists
13924             # what "hidden" libraries, object files and flags are used when
13925             # linking a shared library.
13926             #
13927             # There doesn't appear to be a way to prevent this compiler from
13928             # explicitly linking system object files so we need to strip them
13929             # from the output so that they don't get included in the library
13930             # dependencies.
13931             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"'
13932
13933             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13934             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13935
13936             # Archives containing C++ object files must be created using
13937             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13938             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13939             ;;
13940           icpc* | ecpc* )
13941             # Intel C++
13942             with_gnu_ld=yes
13943             # version 8.0 and above of icpc choke on multiply defined symbols
13944             # if we add $predep_objects and $postdep_objects, however 7.1 and
13945             # earlier do not add the objects themselves.
13946             case `$CC -V 2>&1` in
13947               *"Version 7."*)
13948                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13949                 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'
13950                 ;;
13951               *)  # Version 8.0 or newer
13952                 tmp_idyn=
13953                 case $host_cpu in
13954                   ia64*) tmp_idyn=' -i_dynamic';;
13955                 esac
13956                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13957                 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'
13958                 ;;
13959             esac
13960             archive_cmds_need_lc_CXX=no
13961             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13962             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13963             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13964             ;;
13965           pgCC* | pgcpp*)
13966             # Portland Group C++ compiler
13967             case `$CC -V` in
13968             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13969               prelink_cmds_CXX='tpldir=Template.dir~
13970                 rm -rf $tpldir~
13971                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13972                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13973               old_archive_cmds_CXX='tpldir=Template.dir~
13974                 rm -rf $tpldir~
13975                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13976                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13977                 $RANLIB $oldlib'
13978               archive_cmds_CXX='tpldir=Template.dir~
13979                 rm -rf $tpldir~
13980                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13981                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13982               archive_expsym_cmds_CXX='tpldir=Template.dir~
13983                 rm -rf $tpldir~
13984                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13985                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13986               ;;
13987             *) # Version 6 and above use weak symbols
13988               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13989               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'
13990               ;;
13991             esac
13992
13993             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13994             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13995             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'
13996             ;;
13997           cxx*)
13998             # Compaq C++
13999             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000             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'
14001
14002             runpath_var=LD_RUN_PATH
14003             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14004             hardcode_libdir_separator_CXX=:
14005
14006             # Commands to make compiler produce verbose output that lists
14007             # what "hidden" libraries, object files and flags are used when
14008             # linking a shared library.
14009             #
14010             # There doesn't appear to be a way to prevent this compiler from
14011             # explicitly linking system object files so we need to strip them
14012             # from the output so that they don't get included in the library
14013             # dependencies.
14014             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'
14015             ;;
14016           xl* | mpixl* | bgxl*)
14017             # IBM XL 8.0 on PPC, with GNU ld
14018             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14019             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14020             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14021             if test "x$supports_anon_versioning" = xyes; then
14022               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14023                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14024                 echo "local: *; };" >> $output_objdir/$libname.ver~
14025                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14026             fi
14027             ;;
14028           *)
14029             case `$CC -V 2>&1 | sed 5q` in
14030             *Sun\ C*)
14031               # Sun C++ 5.9
14032               no_undefined_flag_CXX=' -zdefs'
14033               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14034               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'
14035               hardcode_libdir_flag_spec_CXX='-R$libdir'
14036               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'
14037               compiler_needs_object_CXX=yes
14038
14039               # Not sure whether something based on
14040               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14041               # would be better.
14042               output_verbose_link_cmd='func_echo_all'
14043
14044               # Archives containing C++ object files must be created using
14045               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14046               # necessary to make sure instantiated templates are included
14047               # in the archive.
14048               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14049               ;;
14050             esac
14051             ;;
14052         esac
14053         ;;
14054
14055       lynxos*)
14056         # FIXME: insert proper C++ library support
14057         ld_shlibs_CXX=no
14058         ;;
14059
14060       m88k*)
14061         # FIXME: insert proper C++ library support
14062         ld_shlibs_CXX=no
14063         ;;
14064
14065       mvs*)
14066         case $cc_basename in
14067           cxx*)
14068             # FIXME: insert proper C++ library support
14069             ld_shlibs_CXX=no
14070             ;;
14071           *)
14072             # FIXME: insert proper C++ library support
14073             ld_shlibs_CXX=no
14074             ;;
14075         esac
14076         ;;
14077
14078       netbsd*)
14079         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14080           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14081           wlarc=
14082           hardcode_libdir_flag_spec_CXX='-R$libdir'
14083           hardcode_direct_CXX=yes
14084           hardcode_shlibpath_var_CXX=no
14085         fi
14086         # Workaround some broken pre-1.5 toolchains
14087         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14088         ;;
14089
14090       *nto* | *qnx*)
14091         ld_shlibs_CXX=yes
14092         ;;
14093
14094       openbsd2*)
14095         # C++ shared libraries are fairly broken
14096         ld_shlibs_CXX=no
14097         ;;
14098
14099       openbsd*)
14100         if test -f /usr/libexec/ld.so; then
14101           hardcode_direct_CXX=yes
14102           hardcode_shlibpath_var_CXX=no
14103           hardcode_direct_absolute_CXX=yes
14104           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14105           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14106           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14107             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14108             export_dynamic_flag_spec_CXX='${wl}-E'
14109             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14110           fi
14111           output_verbose_link_cmd=func_echo_all
14112         else
14113           ld_shlibs_CXX=no
14114         fi
14115         ;;
14116
14117       osf3* | osf4* | osf5*)
14118         case $cc_basename in
14119           KCC*)
14120             # Kuck and Associates, Inc. (KAI) C++ Compiler
14121
14122             # KCC will only create a shared library if the output file
14123             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14124             # to its proper name (with version) after linking.
14125             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'
14126
14127             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14128             hardcode_libdir_separator_CXX=:
14129
14130             # Archives containing C++ object files must be created using
14131             # the KAI C++ compiler.
14132             case $host in
14133               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14134               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14135             esac
14136             ;;
14137           RCC*)
14138             # Rational C++ 2.4.1
14139             # FIXME: insert proper C++ library support
14140             ld_shlibs_CXX=no
14141             ;;
14142           cxx*)
14143             case $host in
14144               osf3*)
14145                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14146                 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'
14147                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14148                 ;;
14149               *)
14150                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14151                 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'
14152                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14153                   echo "-hidden">> $lib.exp~
14154                   $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~
14155                   $RM $lib.exp'
14156                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14157                 ;;
14158             esac
14159
14160             hardcode_libdir_separator_CXX=:
14161
14162             # Commands to make compiler produce verbose output that lists
14163             # what "hidden" libraries, object files and flags are used when
14164             # linking a shared library.
14165             #
14166             # There doesn't appear to be a way to prevent this compiler from
14167             # explicitly linking system object files so we need to strip them
14168             # from the output so that they don't get included in the library
14169             # dependencies.
14170             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"'
14171             ;;
14172           *)
14173             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14174               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14175               case $host in
14176                 osf3*)
14177                   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'
14178                   ;;
14179                 *)
14180                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14181                   ;;
14182               esac
14183
14184               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14185               hardcode_libdir_separator_CXX=:
14186
14187               # Commands to make compiler produce verbose output that lists
14188               # what "hidden" libraries, object files and flags are used when
14189               # linking a shared library.
14190               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14191
14192             else
14193               # FIXME: insert proper C++ library support
14194               ld_shlibs_CXX=no
14195             fi
14196             ;;
14197         esac
14198         ;;
14199
14200       psos*)
14201         # FIXME: insert proper C++ library support
14202         ld_shlibs_CXX=no
14203         ;;
14204
14205       sunos4*)
14206         case $cc_basename in
14207           CC*)
14208             # Sun C++ 4.x
14209             # FIXME: insert proper C++ library support
14210             ld_shlibs_CXX=no
14211             ;;
14212           lcc*)
14213             # Lucid
14214             # FIXME: insert proper C++ library support
14215             ld_shlibs_CXX=no
14216             ;;
14217           *)
14218             # FIXME: insert proper C++ library support
14219             ld_shlibs_CXX=no
14220             ;;
14221         esac
14222         ;;
14223
14224       solaris*)
14225         case $cc_basename in
14226           CC* | sunCC*)
14227             # Sun C++ 4.2, 5.x and Centerline C++
14228             archive_cmds_need_lc_CXX=yes
14229             no_undefined_flag_CXX=' -zdefs'
14230             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14231             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14232               $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'
14233
14234             hardcode_libdir_flag_spec_CXX='-R$libdir'
14235             hardcode_shlibpath_var_CXX=no
14236             case $host_os in
14237               solaris2.[0-5] | solaris2.[0-5].*) ;;
14238               *)
14239                 # The compiler driver will combine and reorder linker options,
14240                 # but understands `-z linker_flag'.
14241                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14242                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14243                 ;;
14244             esac
14245             link_all_deplibs_CXX=yes
14246
14247             output_verbose_link_cmd='func_echo_all'
14248
14249             # Archives containing C++ object files must be created using
14250             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14251             # necessary to make sure instantiated templates are included
14252             # in the archive.
14253             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14254             ;;
14255           gcx*)
14256             # Green Hills C++ Compiler
14257             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14258
14259             # The C++ compiler must be used to create the archive.
14260             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14261             ;;
14262           *)
14263             # GNU C++ compiler with Solaris linker
14264             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14265               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14266               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14267                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14268                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14269                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14270
14271                 # Commands to make compiler produce verbose output that lists
14272                 # what "hidden" libraries, object files and flags are used when
14273                 # linking a shared library.
14274                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14275               else
14276                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14277                 # platform.
14278                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14279                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14280                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14281
14282                 # Commands to make compiler produce verbose output that lists
14283                 # what "hidden" libraries, object files and flags are used when
14284                 # linking a shared library.
14285                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14286               fi
14287
14288               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14289               case $host_os in
14290                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14291                 *)
14292                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14293                   ;;
14294               esac
14295             fi
14296             ;;
14297         esac
14298         ;;
14299
14300     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14301       no_undefined_flag_CXX='${wl}-z,text'
14302       archive_cmds_need_lc_CXX=no
14303       hardcode_shlibpath_var_CXX=no
14304       runpath_var='LD_RUN_PATH'
14305
14306       case $cc_basename in
14307         CC*)
14308           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14309           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14310           ;;
14311         *)
14312           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14313           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14314           ;;
14315       esac
14316       ;;
14317
14318       sysv5* | sco3.2v5* | sco5v6*)
14319         # Note: We can NOT use -z defs as we might desire, because we do not
14320         # link with -lc, and that would cause any symbols used from libc to
14321         # always be unresolved, which means just about no library would
14322         # ever link correctly.  If we're not using GNU ld we use -z text
14323         # though, which does catch some bad symbols but isn't as heavy-handed
14324         # as -z defs.
14325         no_undefined_flag_CXX='${wl}-z,text'
14326         allow_undefined_flag_CXX='${wl}-z,nodefs'
14327         archive_cmds_need_lc_CXX=no
14328         hardcode_shlibpath_var_CXX=no
14329         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14330         hardcode_libdir_separator_CXX=':'
14331         link_all_deplibs_CXX=yes
14332         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14333         runpath_var='LD_RUN_PATH'
14334
14335         case $cc_basename in
14336           CC*)
14337             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14338             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14339             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14340               '"$old_archive_cmds_CXX"
14341             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14342               '"$reload_cmds_CXX"
14343             ;;
14344           *)
14345             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14346             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14347             ;;
14348         esac
14349       ;;
14350
14351       tandem*)
14352         case $cc_basename in
14353           NCC*)
14354             # NonStop-UX NCC 3.20
14355             # FIXME: insert proper C++ library support
14356             ld_shlibs_CXX=no
14357             ;;
14358           *)
14359             # FIXME: insert proper C++ library support
14360             ld_shlibs_CXX=no
14361             ;;
14362         esac
14363         ;;
14364
14365       vxworks*)
14366         # FIXME: insert proper C++ library support
14367         ld_shlibs_CXX=no
14368         ;;
14369
14370       *)
14371         # FIXME: insert proper C++ library support
14372         ld_shlibs_CXX=no
14373         ;;
14374     esac
14375
14376     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14377 $as_echo "$ld_shlibs_CXX" >&6; }
14378     test "$ld_shlibs_CXX" = no && can_build_shared=no
14379
14380     GCC_CXX="$GXX"
14381     LD_CXX="$LD"
14382
14383     ## CAVEAT EMPTOR:
14384     ## There is no encapsulation within the following macros, do not change
14385     ## the running order or otherwise move them around unless you know exactly
14386     ## what you are doing...
14387     # Dependencies to place before and after the object being linked:
14388 predep_objects_CXX=
14389 postdep_objects_CXX=
14390 predeps_CXX=
14391 postdeps_CXX=
14392 compiler_lib_search_path_CXX=
14393
14394 cat > conftest.$ac_ext <<_LT_EOF
14395 class Foo
14396 {
14397 public:
14398   Foo (void) { a = 0; }
14399 private:
14400   int a;
14401 };
14402 _LT_EOF
14403
14404
14405 _lt_libdeps_save_CFLAGS=$CFLAGS
14406 case "$CC $CFLAGS " in #(
14407 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14408 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14409 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14410 esac
14411
14412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14413   (eval $ac_compile) 2>&5
14414   ac_status=$?
14415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14416   test $ac_status = 0; }; then
14417   # Parse the compiler output and extract the necessary
14418   # objects, libraries and library flags.
14419
14420   # Sentinel used to keep track of whether or not we are before
14421   # the conftest object file.
14422   pre_test_object_deps_done=no
14423
14424   for p in `eval "$output_verbose_link_cmd"`; do
14425     case ${prev}${p} in
14426
14427     -L* | -R* | -l*)
14428        # Some compilers place space between "-{L,R}" and the path.
14429        # Remove the space.
14430        if test $p = "-L" ||
14431           test $p = "-R"; then
14432          prev=$p
14433          continue
14434        fi
14435
14436        # Expand the sysroot to ease extracting the directories later.
14437        if test -z "$prev"; then
14438          case $p in
14439          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14440          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14441          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14442          esac
14443        fi
14444        case $p in
14445        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14446        esac
14447        if test "$pre_test_object_deps_done" = no; then
14448          case ${prev} in
14449          -L | -R)
14450            # Internal compiler library paths should come after those
14451            # provided the user.  The postdeps already come after the
14452            # user supplied libs so there is no need to process them.
14453            if test -z "$compiler_lib_search_path_CXX"; then
14454              compiler_lib_search_path_CXX="${prev}${p}"
14455            else
14456              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14457            fi
14458            ;;
14459          # The "-l" case would never come before the object being
14460          # linked, so don't bother handling this case.
14461          esac
14462        else
14463          if test -z "$postdeps_CXX"; then
14464            postdeps_CXX="${prev}${p}"
14465          else
14466            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14467          fi
14468        fi
14469        prev=
14470        ;;
14471
14472     *.lto.$objext) ;; # Ignore GCC LTO objects
14473     *.$objext)
14474        # This assumes that the test object file only shows up
14475        # once in the compiler output.
14476        if test "$p" = "conftest.$objext"; then
14477          pre_test_object_deps_done=yes
14478          continue
14479        fi
14480
14481        if test "$pre_test_object_deps_done" = no; then
14482          if test -z "$predep_objects_CXX"; then
14483            predep_objects_CXX="$p"
14484          else
14485            predep_objects_CXX="$predep_objects_CXX $p"
14486          fi
14487        else
14488          if test -z "$postdep_objects_CXX"; then
14489            postdep_objects_CXX="$p"
14490          else
14491            postdep_objects_CXX="$postdep_objects_CXX $p"
14492          fi
14493        fi
14494        ;;
14495
14496     *) ;; # Ignore the rest.
14497
14498     esac
14499   done
14500
14501   # Clean up.
14502   rm -f a.out a.exe
14503 else
14504   echo "libtool.m4: error: problem compiling CXX test program"
14505 fi
14506
14507 $RM -f confest.$objext
14508 CFLAGS=$_lt_libdeps_save_CFLAGS
14509
14510 # PORTME: override above test on systems where it is broken
14511 case $host_os in
14512 interix[3-9]*)
14513   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14514   # hack all around it, let's just trust "g++" to DTRT.
14515   predep_objects_CXX=
14516   postdep_objects_CXX=
14517   postdeps_CXX=
14518   ;;
14519
14520 linux*)
14521   case `$CC -V 2>&1 | sed 5q` in
14522   *Sun\ C*)
14523     # Sun C++ 5.9
14524
14525     # The more standards-conforming stlport4 library is
14526     # incompatible with the Cstd library. Avoid specifying
14527     # it if it's in CXXFLAGS. Ignore libCrun as
14528     # -library=stlport4 depends on it.
14529     case " $CXX $CXXFLAGS " in
14530     *" -library=stlport4 "*)
14531       solaris_use_stlport4=yes
14532       ;;
14533     esac
14534
14535     if test "$solaris_use_stlport4" != yes; then
14536       postdeps_CXX='-library=Cstd -library=Crun'
14537     fi
14538     ;;
14539   esac
14540   ;;
14541
14542 solaris*)
14543   case $cc_basename in
14544   CC* | sunCC*)
14545     # The more standards-conforming stlport4 library is
14546     # incompatible with the Cstd library. Avoid specifying
14547     # it if it's in CXXFLAGS. Ignore libCrun as
14548     # -library=stlport4 depends on it.
14549     case " $CXX $CXXFLAGS " in
14550     *" -library=stlport4 "*)
14551       solaris_use_stlport4=yes
14552       ;;
14553     esac
14554
14555     # Adding this requires a known-good setup of shared libraries for
14556     # Sun compiler versions before 5.6, else PIC objects from an old
14557     # archive will be linked into the output, leading to subtle bugs.
14558     if test "$solaris_use_stlport4" != yes; then
14559       postdeps_CXX='-library=Cstd -library=Crun'
14560     fi
14561     ;;
14562   esac
14563   ;;
14564 esac
14565
14566
14567 case " $postdeps_CXX " in
14568 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14569 esac
14570  compiler_lib_search_dirs_CXX=
14571 if test -n "${compiler_lib_search_path_CXX}"; then
14572  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14573 fi
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605     lt_prog_compiler_wl_CXX=
14606 lt_prog_compiler_pic_CXX=
14607 lt_prog_compiler_static_CXX=
14608
14609
14610   # C++ specific cases for pic, static, wl, etc.
14611   if test "$GXX" = yes; then
14612     lt_prog_compiler_wl_CXX='-Wl,'
14613     lt_prog_compiler_static_CXX='-static'
14614
14615     case $host_os in
14616     aix*)
14617       # All AIX code is PIC.
14618       if test "$host_cpu" = ia64; then
14619         # AIX 5 now supports IA64 processor
14620         lt_prog_compiler_static_CXX='-Bstatic'
14621       fi
14622       ;;
14623
14624     amigaos*)
14625       case $host_cpu in
14626       powerpc)
14627             # see comment about AmigaOS4 .so support
14628             lt_prog_compiler_pic_CXX='-fPIC'
14629         ;;
14630       m68k)
14631             # FIXME: we need at least 68020 code to build shared libraries, but
14632             # adding the `-m68020' flag to GCC prevents building anything better,
14633             # like `-m68040'.
14634             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14635         ;;
14636       esac
14637       ;;
14638
14639     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14640       # PIC is the default for these OSes.
14641       ;;
14642     mingw* | cygwin* | os2* | pw32* | cegcc*)
14643       # This hack is so that the source file can tell whether it is being
14644       # built for inclusion in a dll (and should export symbols for example).
14645       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14646       # (--disable-auto-import) libraries
14647       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14648       ;;
14649     darwin* | rhapsody*)
14650       # PIC is the default on this platform
14651       # Common symbols not allowed in MH_DYLIB files
14652       lt_prog_compiler_pic_CXX='-fno-common'
14653       ;;
14654     *djgpp*)
14655       # DJGPP does not support shared libraries at all
14656       lt_prog_compiler_pic_CXX=
14657       ;;
14658     haiku*)
14659       # PIC is the default for Haiku.
14660       # The "-static" flag exists, but is broken.
14661       lt_prog_compiler_static_CXX=
14662       ;;
14663     interix[3-9]*)
14664       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14665       # Instead, we relocate shared libraries at runtime.
14666       ;;
14667     sysv4*MP*)
14668       if test -d /usr/nec; then
14669         lt_prog_compiler_pic_CXX=-Kconform_pic
14670       fi
14671       ;;
14672     hpux*)
14673       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14674       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14675       # sets the default TLS model and affects inlining.
14676       case $host_cpu in
14677       hppa*64*)
14678         ;;
14679       *)
14680         lt_prog_compiler_pic_CXX='-fPIC'
14681         ;;
14682       esac
14683       ;;
14684     *qnx* | *nto*)
14685       # QNX uses GNU C++, but need to define -shared option too, otherwise
14686       # it will coredump.
14687       lt_prog_compiler_pic_CXX='-fPIC -shared'
14688       ;;
14689     *)
14690       lt_prog_compiler_pic_CXX='-fPIC'
14691       ;;
14692     esac
14693   else
14694     case $host_os in
14695       aix[4-9]*)
14696         # All AIX code is PIC.
14697         if test "$host_cpu" = ia64; then
14698           # AIX 5 now supports IA64 processor
14699           lt_prog_compiler_static_CXX='-Bstatic'
14700         else
14701           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14702         fi
14703         ;;
14704       chorus*)
14705         case $cc_basename in
14706         cxch68*)
14707           # Green Hills C++ Compiler
14708           # _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"
14709           ;;
14710         esac
14711         ;;
14712       mingw* | cygwin* | os2* | pw32* | cegcc*)
14713         # This hack is so that the source file can tell whether it is being
14714         # built for inclusion in a dll (and should export symbols for example).
14715         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14716         ;;
14717       dgux*)
14718         case $cc_basename in
14719           ec++*)
14720             lt_prog_compiler_pic_CXX='-KPIC'
14721             ;;
14722           ghcx*)
14723             # Green Hills C++ Compiler
14724             lt_prog_compiler_pic_CXX='-pic'
14725             ;;
14726           *)
14727             ;;
14728         esac
14729         ;;
14730       freebsd* | dragonfly*)
14731         # FreeBSD uses GNU C++
14732         ;;
14733       hpux9* | hpux10* | hpux11*)
14734         case $cc_basename in
14735           CC*)
14736             lt_prog_compiler_wl_CXX='-Wl,'
14737             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14738             if test "$host_cpu" != ia64; then
14739               lt_prog_compiler_pic_CXX='+Z'
14740             fi
14741             ;;
14742           aCC*)
14743             lt_prog_compiler_wl_CXX='-Wl,'
14744             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14745             case $host_cpu in
14746             hppa*64*|ia64*)
14747               # +Z the default
14748               ;;
14749             *)
14750               lt_prog_compiler_pic_CXX='+Z'
14751               ;;
14752             esac
14753             ;;
14754           *)
14755             ;;
14756         esac
14757         ;;
14758       interix*)
14759         # This is c89, which is MS Visual C++ (no shared libs)
14760         # Anyone wants to do a port?
14761         ;;
14762       irix5* | irix6* | nonstopux*)
14763         case $cc_basename in
14764           CC*)
14765             lt_prog_compiler_wl_CXX='-Wl,'
14766             lt_prog_compiler_static_CXX='-non_shared'
14767             # CC pic flag -KPIC is the default.
14768             ;;
14769           *)
14770             ;;
14771         esac
14772         ;;
14773       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14774         case $cc_basename in
14775           KCC*)
14776             # KAI C++ Compiler
14777             lt_prog_compiler_wl_CXX='--backend -Wl,'
14778             lt_prog_compiler_pic_CXX='-fPIC'
14779             ;;
14780           ecpc* )
14781             # old Intel C++ for x86_64 which still supported -KPIC.
14782             lt_prog_compiler_wl_CXX='-Wl,'
14783             lt_prog_compiler_pic_CXX='-KPIC'
14784             lt_prog_compiler_static_CXX='-static'
14785             ;;
14786           icpc* )
14787             # Intel C++, used to be incompatible with GCC.
14788             # ICC 10 doesn't accept -KPIC any more.
14789             lt_prog_compiler_wl_CXX='-Wl,'
14790             lt_prog_compiler_pic_CXX='-fPIC'
14791             lt_prog_compiler_static_CXX='-static'
14792             ;;
14793           pgCC* | pgcpp*)
14794             # Portland Group C++ compiler
14795             lt_prog_compiler_wl_CXX='-Wl,'
14796             lt_prog_compiler_pic_CXX='-fpic'
14797             lt_prog_compiler_static_CXX='-Bstatic'
14798             ;;
14799           cxx*)
14800             # Compaq C++
14801             # Make sure the PIC flag is empty.  It appears that all Alpha
14802             # Linux and Compaq Tru64 Unix objects are PIC.
14803             lt_prog_compiler_pic_CXX=
14804             lt_prog_compiler_static_CXX='-non_shared'
14805             ;;
14806           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14807             # IBM XL 8.0, 9.0 on PPC and BlueGene
14808             lt_prog_compiler_wl_CXX='-Wl,'
14809             lt_prog_compiler_pic_CXX='-qpic'
14810             lt_prog_compiler_static_CXX='-qstaticlink'
14811             ;;
14812           *)
14813             case `$CC -V 2>&1 | sed 5q` in
14814             *Sun\ C*)
14815               # Sun C++ 5.9
14816               lt_prog_compiler_pic_CXX='-KPIC'
14817               lt_prog_compiler_static_CXX='-Bstatic'
14818               lt_prog_compiler_wl_CXX='-Qoption ld '
14819               ;;
14820             esac
14821             ;;
14822         esac
14823         ;;
14824       lynxos*)
14825         ;;
14826       m88k*)
14827         ;;
14828       mvs*)
14829         case $cc_basename in
14830           cxx*)
14831             lt_prog_compiler_pic_CXX='-W c,exportall'
14832             ;;
14833           *)
14834             ;;
14835         esac
14836         ;;
14837       netbsd*)
14838         ;;
14839       *qnx* | *nto*)
14840         # QNX uses GNU C++, but need to define -shared option too, otherwise
14841         # it will coredump.
14842         lt_prog_compiler_pic_CXX='-fPIC -shared'
14843         ;;
14844       osf3* | osf4* | osf5*)
14845         case $cc_basename in
14846           KCC*)
14847             lt_prog_compiler_wl_CXX='--backend -Wl,'
14848             ;;
14849           RCC*)
14850             # Rational C++ 2.4.1
14851             lt_prog_compiler_pic_CXX='-pic'
14852             ;;
14853           cxx*)
14854             # Digital/Compaq C++
14855             lt_prog_compiler_wl_CXX='-Wl,'
14856             # Make sure the PIC flag is empty.  It appears that all Alpha
14857             # Linux and Compaq Tru64 Unix objects are PIC.
14858             lt_prog_compiler_pic_CXX=
14859             lt_prog_compiler_static_CXX='-non_shared'
14860             ;;
14861           *)
14862             ;;
14863         esac
14864         ;;
14865       psos*)
14866         ;;
14867       solaris*)
14868         case $cc_basename in
14869           CC* | sunCC*)
14870             # Sun C++ 4.2, 5.x and Centerline C++
14871             lt_prog_compiler_pic_CXX='-KPIC'
14872             lt_prog_compiler_static_CXX='-Bstatic'
14873             lt_prog_compiler_wl_CXX='-Qoption ld '
14874             ;;
14875           gcx*)
14876             # Green Hills C++ Compiler
14877             lt_prog_compiler_pic_CXX='-PIC'
14878             ;;
14879           *)
14880             ;;
14881         esac
14882         ;;
14883       sunos4*)
14884         case $cc_basename in
14885           CC*)
14886             # Sun C++ 4.x
14887             lt_prog_compiler_pic_CXX='-pic'
14888             lt_prog_compiler_static_CXX='-Bstatic'
14889             ;;
14890           lcc*)
14891             # Lucid
14892             lt_prog_compiler_pic_CXX='-pic'
14893             ;;
14894           *)
14895             ;;
14896         esac
14897         ;;
14898       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14899         case $cc_basename in
14900           CC*)
14901             lt_prog_compiler_wl_CXX='-Wl,'
14902             lt_prog_compiler_pic_CXX='-KPIC'
14903             lt_prog_compiler_static_CXX='-Bstatic'
14904             ;;
14905         esac
14906         ;;
14907       tandem*)
14908         case $cc_basename in
14909           NCC*)
14910             # NonStop-UX NCC 3.20
14911             lt_prog_compiler_pic_CXX='-KPIC'
14912             ;;
14913           *)
14914             ;;
14915         esac
14916         ;;
14917       vxworks*)
14918         ;;
14919       *)
14920         lt_prog_compiler_can_build_shared_CXX=no
14921         ;;
14922     esac
14923   fi
14924
14925 case $host_os in
14926   # For platforms which do not support PIC, -DPIC is meaningless:
14927   *djgpp*)
14928     lt_prog_compiler_pic_CXX=
14929     ;;
14930   *)
14931     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14932     ;;
14933 esac
14934
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14937 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14938   $as_echo_n "(cached) " >&6
14939 else
14940   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14941 fi
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14943 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14944 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14945
14946 #
14947 # Check to make sure the PIC flag actually works.
14948 #
14949 if test -n "$lt_prog_compiler_pic_CXX"; then
14950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14951 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14952 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14953   $as_echo_n "(cached) " >&6
14954 else
14955   lt_cv_prog_compiler_pic_works_CXX=no
14956    ac_outfile=conftest.$ac_objext
14957    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14958    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14959    # Insert the option either (1) after the last *FLAGS variable, or
14960    # (2) before a word containing "conftest.", or (3) at the end.
14961    # Note that $ac_compile itself does not contain backslashes and begins
14962    # with a dollar sign (not a hyphen), so the echo should work correctly.
14963    # The option is referenced via a variable to avoid confusing sed.
14964    lt_compile=`echo "$ac_compile" | $SED \
14965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967    -e 's:$: $lt_compiler_flag:'`
14968    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14969    (eval "$lt_compile" 2>conftest.err)
14970    ac_status=$?
14971    cat conftest.err >&5
14972    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973    if (exit $ac_status) && test -s "$ac_outfile"; then
14974      # The compiler can only warn and ignore the option if not recognized
14975      # So say no if there are warnings other than the usual output.
14976      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14977      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14978      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14979        lt_cv_prog_compiler_pic_works_CXX=yes
14980      fi
14981    fi
14982    $RM conftest*
14983
14984 fi
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14986 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14987
14988 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14989     case $lt_prog_compiler_pic_CXX in
14990      "" | " "*) ;;
14991      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14992      esac
14993 else
14994     lt_prog_compiler_pic_CXX=
14995      lt_prog_compiler_can_build_shared_CXX=no
14996 fi
14997
14998 fi
14999
15000
15001
15002
15003
15004 #
15005 # Check to make sure the static flag actually works.
15006 #
15007 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15009 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15010 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15011   $as_echo_n "(cached) " >&6
15012 else
15013   lt_cv_prog_compiler_static_works_CXX=no
15014    save_LDFLAGS="$LDFLAGS"
15015    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15016    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15017    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15018      # The linker can only warn and ignore the option if not recognized
15019      # So say no if there are warnings
15020      if test -s conftest.err; then
15021        # Append any errors to the config.log.
15022        cat conftest.err 1>&5
15023        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15024        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15025        if diff conftest.exp conftest.er2 >/dev/null; then
15026          lt_cv_prog_compiler_static_works_CXX=yes
15027        fi
15028      else
15029        lt_cv_prog_compiler_static_works_CXX=yes
15030      fi
15031    fi
15032    $RM -r conftest*
15033    LDFLAGS="$save_LDFLAGS"
15034
15035 fi
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15037 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15038
15039 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15040     :
15041 else
15042     lt_prog_compiler_static_CXX=
15043 fi
15044
15045
15046
15047
15048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15049 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15050 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15051   $as_echo_n "(cached) " >&6
15052 else
15053   lt_cv_prog_compiler_c_o_CXX=no
15054    $RM -r conftest 2>/dev/null
15055    mkdir conftest
15056    cd conftest
15057    mkdir out
15058    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15059
15060    lt_compiler_flag="-o out/conftest2.$ac_objext"
15061    # Insert the option either (1) after the last *FLAGS variable, or
15062    # (2) before a word containing "conftest.", or (3) at the end.
15063    # Note that $ac_compile itself does not contain backslashes and begins
15064    # with a dollar sign (not a hyphen), so the echo should work correctly.
15065    lt_compile=`echo "$ac_compile" | $SED \
15066    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15067    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15068    -e 's:$: $lt_compiler_flag:'`
15069    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15070    (eval "$lt_compile" 2>out/conftest.err)
15071    ac_status=$?
15072    cat out/conftest.err >&5
15073    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15075    then
15076      # The compiler can only warn and ignore the option if not recognized
15077      # So say no if there are warnings
15078      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15079      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15080      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15081        lt_cv_prog_compiler_c_o_CXX=yes
15082      fi
15083    fi
15084    chmod u+w . 2>&5
15085    $RM conftest*
15086    # SGI C++ compiler will create directory out/ii_files/ for
15087    # template instantiation
15088    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15089    $RM out/* && rmdir out
15090    cd ..
15091    $RM -r conftest
15092    $RM conftest*
15093
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15096 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15097
15098
15099
15100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15101 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15102 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15103   $as_echo_n "(cached) " >&6
15104 else
15105   lt_cv_prog_compiler_c_o_CXX=no
15106    $RM -r conftest 2>/dev/null
15107    mkdir conftest
15108    cd conftest
15109    mkdir out
15110    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15111
15112    lt_compiler_flag="-o out/conftest2.$ac_objext"
15113    # Insert the option either (1) after the last *FLAGS variable, or
15114    # (2) before a word containing "conftest.", or (3) at the end.
15115    # Note that $ac_compile itself does not contain backslashes and begins
15116    # with a dollar sign (not a hyphen), so the echo should work correctly.
15117    lt_compile=`echo "$ac_compile" | $SED \
15118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15120    -e 's:$: $lt_compiler_flag:'`
15121    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15122    (eval "$lt_compile" 2>out/conftest.err)
15123    ac_status=$?
15124    cat out/conftest.err >&5
15125    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15127    then
15128      # The compiler can only warn and ignore the option if not recognized
15129      # So say no if there are warnings
15130      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15131      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15132      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15133        lt_cv_prog_compiler_c_o_CXX=yes
15134      fi
15135    fi
15136    chmod u+w . 2>&5
15137    $RM conftest*
15138    # SGI C++ compiler will create directory out/ii_files/ for
15139    # template instantiation
15140    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15141    $RM out/* && rmdir out
15142    cd ..
15143    $RM -r conftest
15144    $RM conftest*
15145
15146 fi
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15148 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15149
15150
15151
15152
15153 hard_links="nottested"
15154 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15155   # do not overwrite the value of need_locks provided by the user
15156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15157 $as_echo_n "checking if we can lock with hard links... " >&6; }
15158   hard_links=yes
15159   $RM conftest*
15160   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15161   touch conftest.a
15162   ln conftest.a conftest.b 2>&5 || hard_links=no
15163   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15165 $as_echo "$hard_links" >&6; }
15166   if test "$hard_links" = no; then
15167     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15168 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15169     need_locks=warn
15170   fi
15171 else
15172   need_locks=no
15173 fi
15174
15175
15176
15177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15178 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15179
15180   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15181   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15182   case $host_os in
15183   aix[4-9]*)
15184     # If we're using GNU nm, then we don't want the "-C" option.
15185     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15186     # Also, AIX nm treats weak defined symbols like other global defined
15187     # symbols, whereas GNU nm marks them as "W".
15188     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15189       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'
15190     else
15191       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15192     fi
15193     ;;
15194   pw32*)
15195     export_symbols_cmds_CXX="$ltdll_cmds"
15196     ;;
15197   cygwin* | mingw* | cegcc*)
15198     case $cc_basename in
15199     cl*)
15200       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15201       ;;
15202     *)
15203       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15204       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15205       ;;
15206     esac
15207     ;;
15208   *)
15209     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15210     ;;
15211   esac
15212
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15214 $as_echo "$ld_shlibs_CXX" >&6; }
15215 test "$ld_shlibs_CXX" = no && can_build_shared=no
15216
15217 with_gnu_ld_CXX=$with_gnu_ld
15218
15219
15220
15221
15222
15223
15224 #
15225 # Do we need to explicitly link libc?
15226 #
15227 case "x$archive_cmds_need_lc_CXX" in
15228 x|xyes)
15229   # Assume -lc should be added
15230   archive_cmds_need_lc_CXX=yes
15231
15232   if test "$enable_shared" = yes && test "$GCC" = yes; then
15233     case $archive_cmds_CXX in
15234     *'~'*)
15235       # FIXME: we may have to deal with multi-command sequences.
15236       ;;
15237     '$CC '*)
15238       # Test whether the compiler implicitly links with -lc since on some
15239       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15240       # to ld, don't add -lc before -lgcc.
15241       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15242 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15243 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15244   $as_echo_n "(cached) " >&6
15245 else
15246   $RM conftest*
15247         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15248
15249         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15250   (eval $ac_compile) 2>&5
15251   ac_status=$?
15252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253   test $ac_status = 0; } 2>conftest.err; then
15254           soname=conftest
15255           lib=conftest
15256           libobjs=conftest.$ac_objext
15257           deplibs=
15258           wl=$lt_prog_compiler_wl_CXX
15259           pic_flag=$lt_prog_compiler_pic_CXX
15260           compiler_flags=-v
15261           linker_flags=-v
15262           verstring=
15263           output_objdir=.
15264           libname=conftest
15265           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15266           allow_undefined_flag_CXX=
15267           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15268   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15269   ac_status=$?
15270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15271   test $ac_status = 0; }
15272           then
15273             lt_cv_archive_cmds_need_lc_CXX=no
15274           else
15275             lt_cv_archive_cmds_need_lc_CXX=yes
15276           fi
15277           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15278         else
15279           cat conftest.err 1>&5
15280         fi
15281         $RM conftest*
15282
15283 fi
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15285 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15286       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15287       ;;
15288     esac
15289   fi
15290   ;;
15291 esac
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15355 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15356
15357 library_names_spec=
15358 libname_spec='lib$name'
15359 soname_spec=
15360 shrext_cmds=".so"
15361 postinstall_cmds=
15362 postuninstall_cmds=
15363 finish_cmds=
15364 finish_eval=
15365 shlibpath_var=
15366 shlibpath_overrides_runpath=unknown
15367 version_type=none
15368 dynamic_linker="$host_os ld.so"
15369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15370 need_lib_prefix=unknown
15371 hardcode_into_libs=no
15372
15373 # when you set need_version to no, make sure it does not cause -set_version
15374 # flags to be left without arguments
15375 need_version=unknown
15376
15377 case $host_os in
15378 aix3*)
15379   version_type=linux # correct to gnu/linux during the next big refactor
15380   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15381   shlibpath_var=LIBPATH
15382
15383   # AIX 3 has no versioning support, so we append a major version to the name.
15384   soname_spec='${libname}${release}${shared_ext}$major'
15385   ;;
15386
15387 aix[4-9]*)
15388   version_type=linux # correct to gnu/linux during the next big refactor
15389   need_lib_prefix=no
15390   need_version=no
15391   hardcode_into_libs=yes
15392   if test "$host_cpu" = ia64; then
15393     # AIX 5 supports IA64
15394     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15395     shlibpath_var=LD_LIBRARY_PATH
15396   else
15397     # With GCC up to 2.95.x, collect2 would create an import file
15398     # for dependence libraries.  The import file would start with
15399     # the line `#! .'.  This would cause the generated library to
15400     # depend on `.', always an invalid library.  This was fixed in
15401     # development snapshots of GCC prior to 3.0.
15402     case $host_os in
15403       aix4 | aix4.[01] | aix4.[01].*)
15404       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15405            echo ' yes '
15406            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15407         :
15408       else
15409         can_build_shared=no
15410       fi
15411       ;;
15412     esac
15413     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15414     # soname into executable. Probably we can add versioning support to
15415     # collect2, so additional links can be useful in future.
15416     if test "$aix_use_runtimelinking" = yes; then
15417       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15418       # instead of lib<name>.a to let people know that these are not
15419       # typical AIX shared libraries.
15420       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421     else
15422       # We preserve .a as extension for shared libraries through AIX4.2
15423       # and later when we are not doing run time linking.
15424       library_names_spec='${libname}${release}.a $libname.a'
15425       soname_spec='${libname}${release}${shared_ext}$major'
15426     fi
15427     shlibpath_var=LIBPATH
15428   fi
15429   ;;
15430
15431 amigaos*)
15432   case $host_cpu in
15433   powerpc)
15434     # Since July 2007 AmigaOS4 officially supports .so libraries.
15435     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437     ;;
15438   m68k)
15439     library_names_spec='$libname.ixlibrary $libname.a'
15440     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15441     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'
15442     ;;
15443   esac
15444   ;;
15445
15446 beos*)
15447   library_names_spec='${libname}${shared_ext}'
15448   dynamic_linker="$host_os ld.so"
15449   shlibpath_var=LIBRARY_PATH
15450   ;;
15451
15452 bsdi[45]*)
15453   version_type=linux # correct to gnu/linux during the next big refactor
15454   need_version=no
15455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456   soname_spec='${libname}${release}${shared_ext}$major'
15457   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15458   shlibpath_var=LD_LIBRARY_PATH
15459   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15460   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15461   # the default ld.so.conf also contains /usr/contrib/lib and
15462   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15463   # libtool to hard-code these into programs
15464   ;;
15465
15466 cygwin* | mingw* | pw32* | cegcc*)
15467   version_type=windows
15468   shrext_cmds=".dll"
15469   need_version=no
15470   need_lib_prefix=no
15471
15472   case $GCC,$cc_basename in
15473   yes,*)
15474     # gcc
15475     library_names_spec='$libname.dll.a'
15476     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15477     postinstall_cmds='base_file=`basename \${file}`~
15478       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15479       dldir=$destdir/`dirname \$dlpath`~
15480       test -d \$dldir || mkdir -p \$dldir~
15481       $install_prog $dir/$dlname \$dldir/$dlname~
15482       chmod a+x \$dldir/$dlname~
15483       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15484         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15485       fi'
15486     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15487       dlpath=$dir/\$dldll~
15488        $RM \$dlpath'
15489     shlibpath_overrides_runpath=yes
15490
15491     case $host_os in
15492     cygwin*)
15493       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15494       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15495
15496       ;;
15497     mingw* | cegcc*)
15498       # MinGW DLLs use traditional 'lib' prefix
15499       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15500       ;;
15501     pw32*)
15502       # pw32 DLLs use 'pw' prefix rather than 'lib'
15503       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15504       ;;
15505     esac
15506     dynamic_linker='Win32 ld.exe'
15507     ;;
15508
15509   *,cl*)
15510     # Native MSVC
15511     libname_spec='$name'
15512     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15513     library_names_spec='${libname}.dll.lib'
15514
15515     case $build_os in
15516     mingw*)
15517       sys_lib_search_path_spec=
15518       lt_save_ifs=$IFS
15519       IFS=';'
15520       for lt_path in $LIB
15521       do
15522         IFS=$lt_save_ifs
15523         # Let DOS variable expansion print the short 8.3 style file name.
15524         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15525         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15526       done
15527       IFS=$lt_save_ifs
15528       # Convert to MSYS style.
15529       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15530       ;;
15531     cygwin*)
15532       # Convert to unix form, then to dos form, then back to unix form
15533       # but this time dos style (no spaces!) so that the unix form looks
15534       # like /cygdrive/c/PROGRA~1:/cygdr...
15535       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15536       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15537       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15538       ;;
15539     *)
15540       sys_lib_search_path_spec="$LIB"
15541       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15542         # It is most probably a Windows format PATH.
15543         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15544       else
15545         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15546       fi
15547       # FIXME: find the short name or the path components, as spaces are
15548       # common. (e.g. "Program Files" -> "PROGRA~1")
15549       ;;
15550     esac
15551
15552     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15553     postinstall_cmds='base_file=`basename \${file}`~
15554       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15555       dldir=$destdir/`dirname \$dlpath`~
15556       test -d \$dldir || mkdir -p \$dldir~
15557       $install_prog $dir/$dlname \$dldir/$dlname'
15558     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15559       dlpath=$dir/\$dldll~
15560        $RM \$dlpath'
15561     shlibpath_overrides_runpath=yes
15562     dynamic_linker='Win32 link.exe'
15563     ;;
15564
15565   *)
15566     # Assume MSVC wrapper
15567     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15568     dynamic_linker='Win32 ld.exe'
15569     ;;
15570   esac
15571   # FIXME: first we should search . and the directory the executable is in
15572   shlibpath_var=PATH
15573   ;;
15574
15575 darwin* | rhapsody*)
15576   dynamic_linker="$host_os dyld"
15577   version_type=darwin
15578   need_lib_prefix=no
15579   need_version=no
15580   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15581   soname_spec='${libname}${release}${major}$shared_ext'
15582   shlibpath_overrides_runpath=yes
15583   shlibpath_var=DYLD_LIBRARY_PATH
15584   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15585
15586   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15587   ;;
15588
15589 dgux*)
15590   version_type=linux # correct to gnu/linux during the next big refactor
15591   need_lib_prefix=no
15592   need_version=no
15593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15594   soname_spec='${libname}${release}${shared_ext}$major'
15595   shlibpath_var=LD_LIBRARY_PATH
15596   ;;
15597
15598 freebsd* | dragonfly*)
15599   # DragonFly does not have aout.  When/if they implement a new
15600   # versioning mechanism, adjust this.
15601   if test -x /usr/bin/objformat; then
15602     objformat=`/usr/bin/objformat`
15603   else
15604     case $host_os in
15605     freebsd[23].*) objformat=aout ;;
15606     *) objformat=elf ;;
15607     esac
15608   fi
15609   version_type=freebsd-$objformat
15610   case $version_type in
15611     freebsd-elf*)
15612       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15613       need_version=no
15614       need_lib_prefix=no
15615       ;;
15616     freebsd-*)
15617       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15618       need_version=yes
15619       ;;
15620   esac
15621   shlibpath_var=LD_LIBRARY_PATH
15622   case $host_os in
15623   freebsd2.*)
15624     shlibpath_overrides_runpath=yes
15625     ;;
15626   freebsd3.[01]* | freebsdelf3.[01]*)
15627     shlibpath_overrides_runpath=yes
15628     hardcode_into_libs=yes
15629     ;;
15630   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15631   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15632     shlibpath_overrides_runpath=no
15633     hardcode_into_libs=yes
15634     ;;
15635   *) # from 4.6 on, and DragonFly
15636     shlibpath_overrides_runpath=yes
15637     hardcode_into_libs=yes
15638     ;;
15639   esac
15640   ;;
15641
15642 gnu*)
15643   version_type=linux # correct to gnu/linux during the next big refactor
15644   need_lib_prefix=no
15645   need_version=no
15646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15647   soname_spec='${libname}${release}${shared_ext}$major'
15648   shlibpath_var=LD_LIBRARY_PATH
15649   shlibpath_overrides_runpath=no
15650   hardcode_into_libs=yes
15651   ;;
15652
15653 haiku*)
15654   version_type=linux # correct to gnu/linux during the next big refactor
15655   need_lib_prefix=no
15656   need_version=no
15657   dynamic_linker="$host_os runtime_loader"
15658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15659   soname_spec='${libname}${release}${shared_ext}$major'
15660   shlibpath_var=LIBRARY_PATH
15661   shlibpath_overrides_runpath=yes
15662   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15663   hardcode_into_libs=yes
15664   ;;
15665
15666 hpux9* | hpux10* | hpux11*)
15667   # Give a soname corresponding to the major version so that dld.sl refuses to
15668   # link against other versions.
15669   version_type=sunos
15670   need_lib_prefix=no
15671   need_version=no
15672   case $host_cpu in
15673   ia64*)
15674     shrext_cmds='.so'
15675     hardcode_into_libs=yes
15676     dynamic_linker="$host_os dld.so"
15677     shlibpath_var=LD_LIBRARY_PATH
15678     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680     soname_spec='${libname}${release}${shared_ext}$major'
15681     if test "X$HPUX_IA64_MODE" = X32; then
15682       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15683     else
15684       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15685     fi
15686     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15687     ;;
15688   hppa*64*)
15689     shrext_cmds='.sl'
15690     hardcode_into_libs=yes
15691     dynamic_linker="$host_os dld.sl"
15692     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15693     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15694     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695     soname_spec='${libname}${release}${shared_ext}$major'
15696     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15697     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15698     ;;
15699   *)
15700     shrext_cmds='.sl'
15701     dynamic_linker="$host_os dld.sl"
15702     shlibpath_var=SHLIB_PATH
15703     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705     soname_spec='${libname}${release}${shared_ext}$major'
15706     ;;
15707   esac
15708   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15709   postinstall_cmds='chmod 555 $lib'
15710   # or fails outright, so override atomically:
15711   install_override_mode=555
15712   ;;
15713
15714 interix[3-9]*)
15715   version_type=linux # correct to gnu/linux during the next big refactor
15716   need_lib_prefix=no
15717   need_version=no
15718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15719   soname_spec='${libname}${release}${shared_ext}$major'
15720   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   shlibpath_overrides_runpath=no
15723   hardcode_into_libs=yes
15724   ;;
15725
15726 irix5* | irix6* | nonstopux*)
15727   case $host_os in
15728     nonstopux*) version_type=nonstopux ;;
15729     *)
15730         if test "$lt_cv_prog_gnu_ld" = yes; then
15731                 version_type=linux # correct to gnu/linux during the next big refactor
15732         else
15733                 version_type=irix
15734         fi ;;
15735   esac
15736   need_lib_prefix=no
15737   need_version=no
15738   soname_spec='${libname}${release}${shared_ext}$major'
15739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15740   case $host_os in
15741   irix5* | nonstopux*)
15742     libsuff= shlibsuff=
15743     ;;
15744   *)
15745     case $LD in # libtool.m4 will add one of these switches to LD
15746     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15747       libsuff= shlibsuff= libmagic=32-bit;;
15748     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15749       libsuff=32 shlibsuff=N32 libmagic=N32;;
15750     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15751       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15752     *) libsuff= shlibsuff= libmagic=never-match;;
15753     esac
15754     ;;
15755   esac
15756   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15757   shlibpath_overrides_runpath=no
15758   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15759   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15760   hardcode_into_libs=yes
15761   ;;
15762
15763 # No shared lib support for Linux oldld, aout, or coff.
15764 linux*oldld* | linux*aout* | linux*coff*)
15765   dynamic_linker=no
15766   ;;
15767
15768 # This must be glibc/ELF.
15769 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15770   version_type=linux # correct to gnu/linux during the next big refactor
15771   need_lib_prefix=no
15772   need_version=no
15773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774   soname_spec='${libname}${release}${shared_ext}$major'
15775   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15776   shlibpath_var=LD_LIBRARY_PATH
15777   shlibpath_overrides_runpath=no
15778
15779   # Some binutils ld are patched to set DT_RUNPATH
15780   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15781   $as_echo_n "(cached) " >&6
15782 else
15783   lt_cv_shlibpath_overrides_runpath=no
15784     save_LDFLAGS=$LDFLAGS
15785     save_libdir=$libdir
15786     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15787          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h.  */
15790
15791 int
15792 main ()
15793 {
15794
15795   ;
15796   return 0;
15797 }
15798 _ACEOF
15799 if ac_fn_cxx_try_link "$LINENO"; then :
15800   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15801   lt_cv_shlibpath_overrides_runpath=yes
15802 fi
15803 fi
15804 rm -f core conftest.err conftest.$ac_objext \
15805     conftest$ac_exeext conftest.$ac_ext
15806     LDFLAGS=$save_LDFLAGS
15807     libdir=$save_libdir
15808
15809 fi
15810
15811   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15812
15813   # This implies no fast_install, which is unacceptable.
15814   # Some rework will be needed to allow for fast_install
15815   # before this can be enabled.
15816   hardcode_into_libs=yes
15817
15818   # Append ld.so.conf contents to the search path
15819   if test -f /etc/ld.so.conf; then
15820     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' ' '`
15821     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15822   fi
15823
15824   # We used to test for /lib/ld.so.1 and disable shared libraries on
15825   # powerpc, because MkLinux only supported shared libraries with the
15826   # GNU dynamic linker.  Since this was broken with cross compilers,
15827   # most powerpc-linux boxes support dynamic linking these days and
15828   # people can always --disable-shared, the test was removed, and we
15829   # assume the GNU/Linux dynamic linker is in use.
15830   dynamic_linker='GNU/Linux ld.so'
15831   ;;
15832
15833 netbsd*)
15834   version_type=sunos
15835   need_lib_prefix=no
15836   need_version=no
15837   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15839     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15840     dynamic_linker='NetBSD (a.out) ld.so'
15841   else
15842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15843     soname_spec='${libname}${release}${shared_ext}$major'
15844     dynamic_linker='NetBSD ld.elf_so'
15845   fi
15846   shlibpath_var=LD_LIBRARY_PATH
15847   shlibpath_overrides_runpath=yes
15848   hardcode_into_libs=yes
15849   ;;
15850
15851 newsos6)
15852   version_type=linux # correct to gnu/linux during the next big refactor
15853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854   shlibpath_var=LD_LIBRARY_PATH
15855   shlibpath_overrides_runpath=yes
15856   ;;
15857
15858 *nto* | *qnx*)
15859   version_type=qnx
15860   need_lib_prefix=no
15861   need_version=no
15862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15863   soname_spec='${libname}${release}${shared_ext}$major'
15864   shlibpath_var=LD_LIBRARY_PATH
15865   shlibpath_overrides_runpath=no
15866   hardcode_into_libs=yes
15867   dynamic_linker='ldqnx.so'
15868   ;;
15869
15870 openbsd*)
15871   version_type=sunos
15872   sys_lib_dlsearch_path_spec="/usr/lib"
15873   need_lib_prefix=no
15874   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15875   case $host_os in
15876     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15877     *)                          need_version=no  ;;
15878   esac
15879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15880   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15881   shlibpath_var=LD_LIBRARY_PATH
15882   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15883     case $host_os in
15884       openbsd2.[89] | openbsd2.[89].*)
15885         shlibpath_overrides_runpath=no
15886         ;;
15887       *)
15888         shlibpath_overrides_runpath=yes
15889         ;;
15890       esac
15891   else
15892     shlibpath_overrides_runpath=yes
15893   fi
15894   ;;
15895
15896 os2*)
15897   libname_spec='$name'
15898   shrext_cmds=".dll"
15899   need_lib_prefix=no
15900   library_names_spec='$libname${shared_ext} $libname.a'
15901   dynamic_linker='OS/2 ld.exe'
15902   shlibpath_var=LIBPATH
15903   ;;
15904
15905 osf3* | osf4* | osf5*)
15906   version_type=osf
15907   need_lib_prefix=no
15908   need_version=no
15909   soname_spec='${libname}${release}${shared_ext}$major'
15910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15911   shlibpath_var=LD_LIBRARY_PATH
15912   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15913   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15914   ;;
15915
15916 rdos*)
15917   dynamic_linker=no
15918   ;;
15919
15920 solaris*)
15921   version_type=linux # correct to gnu/linux during the next big refactor
15922   need_lib_prefix=no
15923   need_version=no
15924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925   soname_spec='${libname}${release}${shared_ext}$major'
15926   shlibpath_var=LD_LIBRARY_PATH
15927   shlibpath_overrides_runpath=yes
15928   hardcode_into_libs=yes
15929   # ldd complains unless libraries are executable
15930   postinstall_cmds='chmod +x $lib'
15931   ;;
15932
15933 sunos4*)
15934   version_type=sunos
15935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15936   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15937   shlibpath_var=LD_LIBRARY_PATH
15938   shlibpath_overrides_runpath=yes
15939   if test "$with_gnu_ld" = yes; then
15940     need_lib_prefix=no
15941   fi
15942   need_version=yes
15943   ;;
15944
15945 sysv4 | sysv4.3*)
15946   version_type=linux # correct to gnu/linux during the next big refactor
15947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948   soname_spec='${libname}${release}${shared_ext}$major'
15949   shlibpath_var=LD_LIBRARY_PATH
15950   case $host_vendor in
15951     sni)
15952       shlibpath_overrides_runpath=no
15953       need_lib_prefix=no
15954       runpath_var=LD_RUN_PATH
15955       ;;
15956     siemens)
15957       need_lib_prefix=no
15958       ;;
15959     motorola)
15960       need_lib_prefix=no
15961       need_version=no
15962       shlibpath_overrides_runpath=no
15963       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15964       ;;
15965   esac
15966   ;;
15967
15968 sysv4*MP*)
15969   if test -d /usr/nec ;then
15970     version_type=linux # correct to gnu/linux during the next big refactor
15971     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15972     soname_spec='$libname${shared_ext}.$major'
15973     shlibpath_var=LD_LIBRARY_PATH
15974   fi
15975   ;;
15976
15977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15978   version_type=freebsd-elf
15979   need_lib_prefix=no
15980   need_version=no
15981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15982   soname_spec='${libname}${release}${shared_ext}$major'
15983   shlibpath_var=LD_LIBRARY_PATH
15984   shlibpath_overrides_runpath=yes
15985   hardcode_into_libs=yes
15986   if test "$with_gnu_ld" = yes; then
15987     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15988   else
15989     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15990     case $host_os in
15991       sco3.2v5*)
15992         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15993         ;;
15994     esac
15995   fi
15996   sys_lib_dlsearch_path_spec='/usr/lib'
15997   ;;
15998
15999 tpf*)
16000   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16001   version_type=linux # correct to gnu/linux during the next big refactor
16002   need_lib_prefix=no
16003   need_version=no
16004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005   shlibpath_var=LD_LIBRARY_PATH
16006   shlibpath_overrides_runpath=no
16007   hardcode_into_libs=yes
16008   ;;
16009
16010 uts4*)
16011   version_type=linux # correct to gnu/linux during the next big refactor
16012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16013   soname_spec='${libname}${release}${shared_ext}$major'
16014   shlibpath_var=LD_LIBRARY_PATH
16015   ;;
16016
16017 *)
16018   dynamic_linker=no
16019   ;;
16020 esac
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16022 $as_echo "$dynamic_linker" >&6; }
16023 test "$dynamic_linker" = no && can_build_shared=no
16024
16025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16026 if test "$GCC" = yes; then
16027   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16028 fi
16029
16030 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16031   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16032 fi
16033 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16034   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16035 fi
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16075 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16076 hardcode_action_CXX=
16077 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16078    test -n "$runpath_var_CXX" ||
16079    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16080
16081   # We can hardcode non-existent directories.
16082   if test "$hardcode_direct_CXX" != no &&
16083      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16084      # have to relink, otherwise we might link with an installed library
16085      # when we should be linking with a yet-to-be-installed one
16086      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16087      test "$hardcode_minus_L_CXX" != no; then
16088     # Linking always hardcodes the temporary library directory.
16089     hardcode_action_CXX=relink
16090   else
16091     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16092     hardcode_action_CXX=immediate
16093   fi
16094 else
16095   # We cannot hardcode anything, or else we can only hardcode existing
16096   # directories.
16097   hardcode_action_CXX=unsupported
16098 fi
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16100 $as_echo "$hardcode_action_CXX" >&6; }
16101
16102 if test "$hardcode_action_CXX" = relink ||
16103    test "$inherit_rpath_CXX" = yes; then
16104   # Fast installation is not supported
16105   enable_fast_install=no
16106 elif test "$shlibpath_overrides_runpath" = yes ||
16107      test "$enable_shared" = no; then
16108   # Fast installation is not necessary
16109   enable_fast_install=needless
16110 fi
16111
16112
16113
16114
16115
16116
16117
16118   fi # test -n "$compiler"
16119
16120   CC=$lt_save_CC
16121   CFLAGS=$lt_save_CFLAGS
16122   LDCXX=$LD
16123   LD=$lt_save_LD
16124   GCC=$lt_save_GCC
16125   with_gnu_ld=$lt_save_with_gnu_ld
16126   lt_cv_path_LDCXX=$lt_cv_path_LD
16127   lt_cv_path_LD=$lt_save_path_LD
16128   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16129   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16130 fi # test "$_lt_caught_CXX_error" != yes
16131
16132 ac_ext=c
16133 ac_cpp='$CPP $CPPFLAGS'
16134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16137
16138
16139 if test "x$with_cxx" = xyes; then
16140
16141 $as_echo "#define WITH_CXX 1" >>confdefs.h
16142
16143    NLOPT_SUFFIX="_cxx"
16144    CC=$CXX
16145    CFLAGS=$CXXFLAGS
16146 fi
16147
16148
16149
16150 # Check whether --with-mthreads was given.
16151 if test "${with_mthreads+set}" = set; then :
16152   withval=$with_mthreads; with_mthrads=$withval
16153 else
16154   with_mthreads=no
16155 fi
16156
16157 if test "x$with_mthreads" = xyes; then
16158    CFLAGS="$CFLAGS -mthreads"
16159    CXXFLAGS="$CXXFLAGS -mthreads"
16160 fi
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16163 $as_echo_n "checking for ANSI C header files... " >&6; }
16164 if ${ac_cv_header_stdc+:} false; then :
16165   $as_echo_n "(cached) " >&6
16166 else
16167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h.  */
16169 #include <stdlib.h>
16170 #include <stdarg.h>
16171 #include <string.h>
16172 #include <float.h>
16173
16174 int
16175 main ()
16176 {
16177
16178   ;
16179   return 0;
16180 }
16181 _ACEOF
16182 if ac_fn_c_try_compile "$LINENO"; then :
16183   ac_cv_header_stdc=yes
16184 else
16185   ac_cv_header_stdc=no
16186 fi
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188
16189 if test $ac_cv_header_stdc = yes; then
16190   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h.  */
16193 #include <string.h>
16194
16195 _ACEOF
16196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16197   $EGREP "memchr" >/dev/null 2>&1; then :
16198
16199 else
16200   ac_cv_header_stdc=no
16201 fi
16202 rm -f conftest*
16203
16204 fi
16205
16206 if test $ac_cv_header_stdc = yes; then
16207   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h.  */
16210 #include <stdlib.h>
16211
16212 _ACEOF
16213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16214   $EGREP "free" >/dev/null 2>&1; then :
16215
16216 else
16217   ac_cv_header_stdc=no
16218 fi
16219 rm -f conftest*
16220
16221 fi
16222
16223 if test $ac_cv_header_stdc = yes; then
16224   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16225   if test "$cross_compiling" = yes; then :
16226   :
16227 else
16228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h.  */
16230 #include <ctype.h>
16231 #include <stdlib.h>
16232 #if ((' ' & 0x0FF) == 0x020)
16233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16235 #else
16236 # define ISLOWER(c) \
16237                    (('a' <= (c) && (c) <= 'i') \
16238                      || ('j' <= (c) && (c) <= 'r') \
16239                      || ('s' <= (c) && (c) <= 'z'))
16240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16241 #endif
16242
16243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16244 int
16245 main ()
16246 {
16247   int i;
16248   for (i = 0; i < 256; i++)
16249     if (XOR (islower (i), ISLOWER (i))
16250         || toupper (i) != TOUPPER (i))
16251       return 2;
16252   return 0;
16253 }
16254 _ACEOF
16255 if ac_fn_c_try_run "$LINENO"; then :
16256
16257 else
16258   ac_cv_header_stdc=no
16259 fi
16260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16261   conftest.$ac_objext conftest.beam conftest.$ac_ext
16262 fi
16263
16264 fi
16265 fi
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16267 $as_echo "$ac_cv_header_stdc" >&6; }
16268 if test $ac_cv_header_stdc = yes; then
16269
16270 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16271
16272 fi
16273
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16275 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16276 if ${ac_cv_header_time+:} false; then :
16277   $as_echo_n "(cached) " >&6
16278 else
16279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h.  */
16281 #include <sys/types.h>
16282 #include <sys/time.h>
16283 #include <time.h>
16284
16285 int
16286 main ()
16287 {
16288 if ((struct tm *) 0)
16289 return 0;
16290   ;
16291   return 0;
16292 }
16293 _ACEOF
16294 if ac_fn_c_try_compile "$LINENO"; then :
16295   ac_cv_header_time=yes
16296 else
16297   ac_cv_header_time=no
16298 fi
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 fi
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16302 $as_echo "$ac_cv_header_time" >&6; }
16303 if test $ac_cv_header_time = yes; then
16304
16305 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16306
16307 fi
16308
16309 for ac_header in unistd.h getopt.h stdint.h
16310 do :
16311   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16312 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16313 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16314   cat >>confdefs.h <<_ACEOF
16315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16316 _ACEOF
16317
16318 fi
16319
16320 done
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16323 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16324 if ${ac_cv_c_const+:} false; then :
16325   $as_echo_n "(cached) " >&6
16326 else
16327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h.  */
16329
16330 int
16331 main ()
16332 {
16333
16334 #ifndef __cplusplus
16335   /* Ultrix mips cc rejects this sort of thing.  */
16336   typedef int charset[2];
16337   const charset cs = { 0, 0 };
16338   /* SunOS 4.1.1 cc rejects this.  */
16339   char const *const *pcpcc;
16340   char **ppc;
16341   /* NEC SVR4.0.2 mips cc rejects this.  */
16342   struct point {int x, y;};
16343   static struct point const zero = {0,0};
16344   /* AIX XL C 1.02.0.0 rejects this.
16345      It does not let you subtract one const X* pointer from another in
16346      an arm of an if-expression whose if-part is not a constant
16347      expression */
16348   const char *g = "string";
16349   pcpcc = &g + (g ? g-g : 0);
16350   /* HPUX 7.0 cc rejects these. */
16351   ++pcpcc;
16352   ppc = (char**) pcpcc;
16353   pcpcc = (char const *const *) ppc;
16354   { /* SCO 3.2v4 cc rejects this sort of thing.  */
16355     char tx;
16356     char *t = &tx;
16357     char const *s = 0 ? (char *) 0 : (char const *) 0;
16358
16359     *t++ = 0;
16360     if (s) return 0;
16361   }
16362   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16363     int x[] = {25, 17};
16364     const int *foo = &x[0];
16365     ++foo;
16366   }
16367   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16368     typedef const int *iptr;
16369     iptr p = 0;
16370     ++p;
16371   }
16372   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16373        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16374     struct s { int j; const int *ap[3]; } bx;
16375     struct s *b = &bx; b->j = 5;
16376   }
16377   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16378     const int foo = 10;
16379     if (!foo) return 0;
16380   }
16381   return !cs[0] && !zero.x;
16382 #endif
16383
16384   ;
16385   return 0;
16386 }
16387 _ACEOF
16388 if ac_fn_c_try_compile "$LINENO"; then :
16389   ac_cv_c_const=yes
16390 else
16391   ac_cv_c_const=no
16392 fi
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16396 $as_echo "$ac_cv_c_const" >&6; }
16397 if test $ac_cv_c_const = no; then
16398
16399 $as_echo "#define const /**/" >>confdefs.h
16400
16401 fi
16402
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16404 $as_echo_n "checking for inline... " >&6; }
16405 if ${ac_cv_c_inline+:} false; then :
16406   $as_echo_n "(cached) " >&6
16407 else
16408   ac_cv_c_inline=no
16409 for ac_kw in inline __inline__ __inline; do
16410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h.  */
16412 #ifndef __cplusplus
16413 typedef int foo_t;
16414 static $ac_kw foo_t static_foo () {return 0; }
16415 $ac_kw foo_t foo () {return 0; }
16416 #endif
16417
16418 _ACEOF
16419 if ac_fn_c_try_compile "$LINENO"; then :
16420   ac_cv_c_inline=$ac_kw
16421 fi
16422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16423   test "$ac_cv_c_inline" != no && break
16424 done
16425
16426 fi
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16428 $as_echo "$ac_cv_c_inline" >&6; }
16429
16430 case $ac_cv_c_inline in
16431   inline | yes) ;;
16432   *)
16433     case $ac_cv_c_inline in
16434       no) ac_val=;;
16435       *) ac_val=$ac_cv_c_inline;;
16436     esac
16437     cat >>confdefs.h <<_ACEOF
16438 #ifndef __cplusplus
16439 #define inline $ac_val
16440 #endif
16441 _ACEOF
16442     ;;
16443 esac
16444
16445
16446 # Check whether --with-threadlocal was given.
16447 if test "${with_threadlocal+set}" = set; then :
16448   withval=$with_threadlocal; with_ax_c_threadlocal=$withval
16449 else
16450   with_ax_c_threadlocal=yes
16451 fi
16452
16453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C thread-local keyword" >&5
16454 $as_echo_n "checking for C thread-local keyword... " >&6; }
16455 if ${ax_cv_c_threadlocal+:} false; then :
16456   $as_echo_n "(cached) " >&6
16457 else
16458   if test "x$with_ax_c_threadlocal" = xno; then
16459    ax_cv_c_threadlocal=disabled
16460  else
16461    ax_cv_c_threadlocal=unsupported
16462
16463    ac_ext=c
16464 ac_cpp='$CPP $CPPFLAGS'
16465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16468
16469    for ax_kw in __thread "__declspec(thread)"; do
16470      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h.  */
16472
16473 int
16474 main ()
16475 {
16476 static $ax_kw int x = 0;
16477   ;
16478   return 0;
16479 }
16480 _ACEOF
16481 if ac_fn_c_try_compile "$LINENO"; then :
16482   ax_cv_c_threadlocal=$ax_kw; break
16483 fi
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485    done
16486    ac_ext=c
16487 ac_cpp='$CPP $CPPFLAGS'
16488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16491
16492  fi
16493
16494 fi
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_threadlocal" >&5
16496 $as_echo "$ax_cv_c_threadlocal" >&6; }
16497  ax_kw="$ax_cv_c_threadlocal"
16498  if test "x$ax_kw" = xunsupported; then ax_kw=""; fi
16499  if test "x$ax_kw" = xdisabled; then ax_kw=""; fi
16500
16501 cat >>confdefs.h <<_ACEOF
16502 #define THREADLOCAL $ax_kw
16503 _ACEOF
16504
16505  if test "$ax_cv_c_threadlocal" = unsupported; then
16506    :
16507  else
16508    :
16509  fi
16510
16511
16512 # The cast to long int works around a bug in the HP C Compiler
16513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16515 # This bug is HP SR number 8606223364.
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16517 $as_echo_n "checking size of unsigned int... " >&6; }
16518 if ${ac_cv_sizeof_unsigned_int+:} false; then :
16519   $as_echo_n "(cached) " >&6
16520 else
16521   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
16522
16523 else
16524   if test "$ac_cv_type_unsigned_int" = yes; then
16525      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16527 as_fn_error 77 "cannot compute sizeof (unsigned int)
16528 See \`config.log' for more details" "$LINENO" 5; }
16529    else
16530      ac_cv_sizeof_unsigned_int=0
16531    fi
16532 fi
16533
16534 fi
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16536 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16537
16538
16539
16540 cat >>confdefs.h <<_ACEOF
16541 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16542 _ACEOF
16543
16544
16545 # The cast to long int works around a bug in the HP C Compiler
16546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16548 # This bug is HP SR number 8606223364.
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16550 $as_echo_n "checking size of unsigned long... " >&6; }
16551 if ${ac_cv_sizeof_unsigned_long+:} false; then :
16552   $as_echo_n "(cached) " >&6
16553 else
16554   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16555
16556 else
16557   if test "$ac_cv_type_unsigned_long" = yes; then
16558      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16560 as_fn_error 77 "cannot compute sizeof (unsigned long)
16561 See \`config.log' for more details" "$LINENO" 5; }
16562    else
16563      ac_cv_sizeof_unsigned_long=0
16564    fi
16565 fi
16566
16567 fi
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16569 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16570
16571
16572
16573 cat >>confdefs.h <<_ACEOF
16574 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16575 _ACEOF
16576
16577
16578 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default
16579 #ifdef HAVE_STDINT_H
16580 #  include <stdint.h>
16581 #endif
16582 "
16583 if test "x$ac_cv_type_uint32_t" = xyes; then :
16584
16585 cat >>confdefs.h <<_ACEOF
16586 #define HAVE_UINT32_T 1
16587 _ACEOF
16588
16589
16590 fi
16591
16592
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16594 $as_echo_n "checking for sin in -lm... " >&6; }
16595 if ${ac_cv_lib_m_sin+:} false; then :
16596   $as_echo_n "(cached) " >&6
16597 else
16598   ac_check_lib_save_LIBS=$LIBS
16599 LIBS="-lm  $LIBS"
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h.  */
16602
16603 /* Override any GCC internal prototype to avoid an error.
16604    Use char because int might match the return type of a GCC
16605    builtin and then its argument prototype would still apply.  */
16606 #ifdef __cplusplus
16607 extern "C"
16608 #endif
16609 char sin ();
16610 int
16611 main ()
16612 {
16613 return sin ();
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 if ac_fn_c_try_link "$LINENO"; then :
16619   ac_cv_lib_m_sin=yes
16620 else
16621   ac_cv_lib_m_sin=no
16622 fi
16623 rm -f core conftest.err conftest.$ac_objext \
16624     conftest$ac_exeext conftest.$ac_ext
16625 LIBS=$ac_check_lib_save_LIBS
16626 fi
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16628 $as_echo "$ac_cv_lib_m_sin" >&6; }
16629 if test "x$ac_cv_lib_m_sin" = xyes; then :
16630   cat >>confdefs.h <<_ACEOF
16631 #define HAVE_LIBM 1
16632 _ACEOF
16633
16634   LIBS="-lm $LIBS"
16635
16636 fi
16637
16638 for ac_func in BSDgettimeofday gettimeofday time qsort_r getpid
16639 do :
16640   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16642 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16643   cat >>confdefs.h <<_ACEOF
16644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16645 _ACEOF
16646
16647 fi
16648 done
16649
16650
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettid syscall" >&5
16652 $as_echo_n "checking for gettid syscall... " >&6; }
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h.  */
16655 #include <unistd.h>
16656 #include <sys/syscall.h>
16657
16658 int
16659 main ()
16660 {
16661 syscall(SYS_gettid);
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 if ac_fn_c_try_link "$LINENO"; then :
16667   ok=yes
16668 else
16669   ok=no
16670 fi
16671 rm -f core conftest.err conftest.$ac_objext \
16672     conftest$ac_exeext conftest.$ac_ext
16673 if test "$ok" = "yes"; then
16674
16675 $as_echo "#define HAVE_GETTID_SYSCALL 1" >>confdefs.h
16676
16677 fi
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
16679 $as_echo "${ok}" >&6; }
16680
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16682 $as_echo_n "checking for isnan... " >&6; }
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h.  */
16685 #include <math.h>
16686
16687 int
16688 main ()
16689 {
16690 if (!isnan(3.14159)) isnan(2.7183);
16691   ;
16692   return 0;
16693 }
16694 _ACEOF
16695 if ac_fn_c_try_link "$LINENO"; then :
16696   ok=yes
16697 else
16698   ok=no
16699 fi
16700 rm -f core conftest.err conftest.$ac_objext \
16701     conftest$ac_exeext conftest.$ac_ext
16702 if test "$ok" = "yes"; then
16703
16704 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16705
16706 fi
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
16708 $as_echo "${ok}" >&6; }
16709
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16711 $as_echo_n "checking for isinf... " >&6; }
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h.  */
16714 #include <math.h>
16715
16716 int
16717 main ()
16718 {
16719 if (!isinf(3.14159)) isinf(2.7183);
16720   ;
16721   return 0;
16722 }
16723 _ACEOF
16724 if ac_fn_c_try_link "$LINENO"; then :
16725   ok=yes
16726 else
16727   ok=no
16728 fi
16729 rm -f core conftest.err conftest.$ac_objext \
16730     conftest$ac_exeext conftest.$ac_ext
16731 if test "$ok" = "yes"; then
16732
16733 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16734
16735 fi
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
16737 $as_echo "${ok}" >&6; }
16738
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
16740 $as_echo_n "checking for copysign... " >&6; }
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h.  */
16743 #include <math.h>
16744
16745 int
16746 main ()
16747 {
16748 double x = copysign(3.14159, -2.7183);
16749   ;
16750   return 0;
16751 }
16752 _ACEOF
16753 if ac_fn_c_try_link "$LINENO"; then :
16754   ok=yes
16755 else
16756   ok=no
16757 fi
16758 rm -f core conftest.err conftest.$ac_objext \
16759     conftest$ac_exeext conftest.$ac_ext
16760 if test "$ok" = "yes"; then
16761
16762 $as_echo "#define HAVE_COPYSIGN 1" >>confdefs.h
16763
16764 fi
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
16766 $as_echo "${ok}" >&6; }
16767
16768
16769
16770 # Check whether --with-guile was given.
16771 if test "${with_guile+set}" = set; then :
16772   withval=$with_guile; with_guile=$withval
16773 else
16774   with_guile=yes
16775 fi
16776
16777
16778 # Check whether --with-python was given.
16779 if test "${with_python+set}" = set; then :
16780   withval=$with_python; with_python=$withval
16781 else
16782   with_python=yes
16783 fi
16784
16785
16786 if test "$enable_shared" = no; then
16787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python and Guile wrappers require --enable-shared; disabling" >&5
16788 $as_echo "$as_me: WARNING: Python and Guile wrappers require --enable-shared; disabling" >&2;}
16789    GUILE_CONFIG=unknown
16790    have_python=no
16791 else
16792
16793 if test "x$with_guile" = xno; then
16794    GUILE_CONFIG=unknown
16795 else
16796
16797
16798 # Extract the first word of "guile-config", so it can be a program name with args.
16799 set dummy guile-config; ac_word=$2
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16801 $as_echo_n "checking for $ac_word... " >&6; }
16802 if ${ac_cv_prog_GUILE_CONFIG+:} false; then :
16803   $as_echo_n "(cached) " >&6
16804 else
16805   if test -n "$GUILE_CONFIG"; then
16806   ac_cv_prog_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test.
16807 else
16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809 for as_dir in $PATH
16810 do
16811   IFS=$as_save_IFS
16812   test -z "$as_dir" && as_dir=.
16813     for ac_exec_ext in '' $ac_executable_extensions; do
16814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815     ac_cv_prog_GUILE_CONFIG="guile-config"
16816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16817     break 2
16818   fi
16819 done
16820   done
16821 IFS=$as_save_IFS
16822
16823   test -z "$ac_cv_prog_GUILE_CONFIG" && ac_cv_prog_GUILE_CONFIG="unknown"
16824 fi
16825 fi
16826 GUILE_CONFIG=$ac_cv_prog_GUILE_CONFIG
16827 if test -n "$GUILE_CONFIG"; then
16828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
16829 $as_echo "$GUILE_CONFIG" >&6; }
16830 else
16831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16832 $as_echo "no" >&6; }
16833 fi
16834
16835
16836 if test "x$GUILE_CONFIG" = "xunknown"; then
16837    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find guile-config, disabling Guile wrapper" >&5
16838 $as_echo "$as_me: WARNING: can't find guile-config, disabling Guile wrapper" >&2;}
16839 else
16840    save_CPPFLAGS=$CPPFLAGS
16841    save_LIBS=$LIBS
16842    GUILE_CPPFLAGS=`$GUILE_CONFIG compile`
16843    GUILE_LIBS=`$GUILE_CONFIG link`
16844    CPPFLAGS="$CPPFLAGS $GUILE_CPPFLAGS"
16845    LIBS="$GUILE_LIBS $LIBS"
16846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking to guile works" >&5
16847 $as_echo_n "checking if linking to guile works... " >&6; }
16848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h.  */
16850
16851 /* Override any GCC internal prototype to avoid an error.
16852    Use char because int might match the return type of a GCC
16853    builtin and then its argument prototype would still apply.  */
16854 #ifdef __cplusplus
16855 extern "C"
16856 #endif
16857 char scm_is_vector ();
16858 int
16859 main ()
16860 {
16861 return scm_is_vector ();
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 if ac_fn_c_try_link "$LINENO"; then :
16867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16868 $as_echo "yes" >&6; }
16869 else
16870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16871 $as_echo "no" >&6; }
16872         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile-config is broken" >&5
16873 $as_echo "$as_me: WARNING: guile-config is broken" >&2;}
16874         GUILE_CONFIG="unknown"
16875 fi
16876 rm -f core conftest.err conftest.$ac_objext \
16877     conftest$ac_exeext conftest.$ac_ext
16878    CPPFLAGS=$save_CPPFLAGS
16879    LIBS=$save_LIBS
16880 fi
16881 # Extract the first word of "guile", so it can be a program name with args.
16882 set dummy guile; ac_word=$2
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16884 $as_echo_n "checking for $ac_word... " >&6; }
16885 if ${ac_cv_prog_GUILE+:} false; then :
16886   $as_echo_n "(cached) " >&6
16887 else
16888   if test -n "$GUILE"; then
16889   ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
16890 else
16891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16892 for as_dir in $PATH
16893 do
16894   IFS=$as_save_IFS
16895   test -z "$as_dir" && as_dir=.
16896     for ac_exec_ext in '' $ac_executable_extensions; do
16897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16898     ac_cv_prog_GUILE="guile"
16899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16900     break 2
16901   fi
16902 done
16903   done
16904 IFS=$as_save_IFS
16905
16906   test -z "$ac_cv_prog_GUILE" && ac_cv_prog_GUILE="unknown"
16907 fi
16908 fi
16909 GUILE=$ac_cv_prog_GUILE
16910 if test -n "$GUILE"; then
16911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
16912 $as_echo "$GUILE" >&6; }
16913 else
16914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16915 $as_echo "no" >&6; }
16916 fi
16917
16918
16919 if test "x$GUILE" = xunknown; then
16920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find guile, disabling Guile wrapper" >&5
16921 $as_echo "$as_me: WARNING: can't find guile, disabling Guile wrapper" >&2;}
16922    GUILE_CONFIG=unknown
16923 elif test x"$GUILE_INSTALL_DIR" = "x"; then
16924    for ac_prog in guile-config
16925 do
16926   # Extract the first word of "$ac_prog", so it can be a program name with args.
16927 set dummy $ac_prog; ac_word=$2
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16929 $as_echo_n "checking for $ac_word... " >&6; }
16930 if ${ac_cv_prog_GUILE_CONFIG+:} false; then :
16931   $as_echo_n "(cached) " >&6
16932 else
16933   if test -n "$GUILE_CONFIG"; then
16934   ac_cv_prog_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test.
16935 else
16936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937 for as_dir in $PATH
16938 do
16939   IFS=$as_save_IFS
16940   test -z "$as_dir" && as_dir=.
16941     for ac_exec_ext in '' $ac_executable_extensions; do
16942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16943     ac_cv_prog_GUILE_CONFIG="$ac_prog"
16944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16945     break 2
16946   fi
16947 done
16948   done
16949 IFS=$as_save_IFS
16950
16951 fi
16952 fi
16953 GUILE_CONFIG=$ac_cv_prog_GUILE_CONFIG
16954 if test -n "$GUILE_CONFIG"; then
16955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
16956 $as_echo "$GUILE_CONFIG" >&6; }
16957 else
16958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959 $as_echo "no" >&6; }
16960 fi
16961
16962
16963   test -n "$GUILE_CONFIG" && break
16964 done
16965 test -n "$GUILE_CONFIG" || GUILE_CONFIG="echo"
16966
16967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking guile prefix" >&5
16968 $as_echo_n "checking guile prefix... " >&6; }
16969    GUILE_PREFIX=`$GUILE_CONFIG info prefix`
16970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_PREFIX" >&5
16971 $as_echo "$GUILE_PREFIX" >&6; }
16972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile installation directory" >&5
16973 $as_echo_n "checking for Guile installation directory... " >&6; }
16974    GUILE_INSTALL_DIR=`guile -c '(display (%site-dir))'`
16975    if test "$prefix" != "NONE"; then
16976         # strip guile install path to honor prefix
16977         GUILE_INSTALL_DIR=`echo "$GUILE_INSTALL_DIR" | sed "s|$GUILE_PREFIX|$prefix|g"`
16978    fi
16979
16980    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_INSTALL_DIR" >&5
16981 $as_echo "$GUILE_INSTALL_DIR" >&6; }
16982 fi
16983
16984 fi # with_guile
16985
16986 if test "x$with_python" = xno; then
16987   have_python=no
16988 else
16989
16990
16991
16992
16993
16994
16995
16996         # Find any Python interpreter.
16997     if test -z "$PYTHON"; then
16998       for ac_prog in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
16999 do
17000   # Extract the first word of "$ac_prog", so it can be a program name with args.
17001 set dummy $ac_prog; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17003 $as_echo_n "checking for $ac_word... " >&6; }
17004 if ${ac_cv_path_PYTHON+:} false; then :
17005   $as_echo_n "(cached) " >&6
17006 else
17007   case $PYTHON in
17008   [\\/]* | ?:[\\/]*)
17009   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17010   ;;
17011   *)
17012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17013 for as_dir in $PATH
17014 do
17015   IFS=$as_save_IFS
17016   test -z "$as_dir" && as_dir=.
17017     for ac_exec_ext in '' $ac_executable_extensions; do
17018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17019     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17021     break 2
17022   fi
17023 done
17024   done
17025 IFS=$as_save_IFS
17026
17027   ;;
17028 esac
17029 fi
17030 PYTHON=$ac_cv_path_PYTHON
17031 if test -n "$PYTHON"; then
17032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17033 $as_echo "$PYTHON" >&6; }
17034 else
17035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17037 fi
17038
17039
17040   test -n "$PYTHON" && break
17041 done
17042 test -n "$PYTHON" || PYTHON=":"
17043
17044     fi
17045     am_display_PYTHON=python
17046
17047
17048   if test "$PYTHON" = :; then
17049       have_python=no
17050   else
17051
17052
17053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17054 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17055 if ${am_cv_python_version+:} false; then :
17056   $as_echo_n "(cached) " >&6
17057 else
17058   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17059 fi
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17061 $as_echo "$am_cv_python_version" >&6; }
17062   PYTHON_VERSION=$am_cv_python_version
17063
17064
17065
17066   PYTHON_PREFIX='${prefix}'
17067
17068   PYTHON_EXEC_PREFIX='${exec_prefix}'
17069
17070
17071
17072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17073 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17074 if ${am_cv_python_platform+:} false; then :
17075   $as_echo_n "(cached) " >&6
17076 else
17077   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17078 fi
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17080 $as_echo "$am_cv_python_platform" >&6; }
17081   PYTHON_PLATFORM=$am_cv_python_platform
17082
17083
17084   # Just factor out some code duplication.
17085   am_python_setup_sysconfig="\
17086 import sys
17087 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17088 # with python 3.x.  See automake bug#10227.
17089 try:
17090     import sysconfig
17091 except ImportError:
17092     can_use_sysconfig = 0
17093 else:
17094     can_use_sysconfig = 1
17095 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17096 # <https://github.com/pypa/virtualenv/issues/118>
17097 try:
17098     from platform import python_implementation
17099     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17100         can_use_sysconfig = 0
17101 except ImportError:
17102     pass"
17103
17104
17105             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17106 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17107 if ${am_cv_python_pythondir+:} false; then :
17108   $as_echo_n "(cached) " >&6
17109 else
17110   if test "x$prefix" = xNONE
17111      then
17112        am_py_prefix=$ac_default_prefix
17113      else
17114        am_py_prefix=$prefix
17115      fi
17116      am_cv_python_pythondir=`$PYTHON -c "
17117 $am_python_setup_sysconfig
17118 if can_use_sysconfig:
17119     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17120 else:
17121     from distutils import sysconfig
17122     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17123 sys.stdout.write(sitedir)"`
17124      case $am_cv_python_pythondir in
17125      $am_py_prefix*)
17126        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17127        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17128        ;;
17129      *)
17130        case $am_py_prefix in
17131          /usr|/System*) ;;
17132          *)
17133           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17134           ;;
17135        esac
17136        ;;
17137      esac
17138
17139 fi
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17141 $as_echo "$am_cv_python_pythondir" >&6; }
17142   pythondir=$am_cv_python_pythondir
17143
17144
17145
17146   pkgpythondir=\${pythondir}/$PACKAGE
17147
17148
17149         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17150 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17151 if ${am_cv_python_pyexecdir+:} false; then :
17152   $as_echo_n "(cached) " >&6
17153 else
17154   if test "x$exec_prefix" = xNONE
17155      then
17156        am_py_exec_prefix=$am_py_prefix
17157      else
17158        am_py_exec_prefix=$exec_prefix
17159      fi
17160      am_cv_python_pyexecdir=`$PYTHON -c "
17161 $am_python_setup_sysconfig
17162 if can_use_sysconfig:
17163     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
17164 else:
17165     from distutils import sysconfig
17166     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
17167 sys.stdout.write(sitedir)"`
17168      case $am_cv_python_pyexecdir in
17169      $am_py_exec_prefix*)
17170        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17171        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17172        ;;
17173      *)
17174        case $am_py_exec_prefix in
17175          /usr|/System*) ;;
17176          *)
17177            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17178            ;;
17179        esac
17180        ;;
17181      esac
17182
17183 fi
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17185 $as_echo "$am_cv_python_pyexecdir" >&6; }
17186   pyexecdir=$am_cv_python_pyexecdir
17187
17188
17189
17190   pkgpyexecdir=\${pyexecdir}/$PACKAGE
17191
17192
17193     have_python=yes
17194   fi
17195
17196
17197 if test $have_python = yes; then
17198
17199   for ac_prog in python$PYTHON_VERSION-config python-config
17200 do
17201   # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17204 $as_echo_n "checking for $ac_word... " >&6; }
17205 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
17206   $as_echo_n "(cached) " >&6
17207 else
17208   case $PYTHON_CONFIG in
17209   [\\/]* | ?:[\\/]*)
17210   ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
17211   ;;
17212   *)
17213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 as_dummy="`dirname $PYTHON`:$PATH"
17215 for as_dir in $as_dummy
17216 do
17217   IFS=$as_save_IFS
17218   test -z "$as_dir" && as_dir=.
17219     for ac_exec_ext in '' $ac_executable_extensions; do
17220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17221     ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17223     break 2
17224   fi
17225 done
17226   done
17227 IFS=$as_save_IFS
17228
17229   ;;
17230 esac
17231 fi
17232 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
17233 if test -n "$PYTHON_CONFIG"; then
17234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
17235 $as_echo "$PYTHON_CONFIG" >&6; }
17236 else
17237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17238 $as_echo "no" >&6; }
17239 fi
17240
17241
17242   test -n "$PYTHON_CONFIG" && break
17243 done
17244 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="unknown"
17245
17246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include flags" >&5
17247 $as_echo_n "checking for Python include flags... " >&6; }
17248   if test "x$PYTHON_CONFIG" = "xunknown"; then
17249       pinc=-I`echo "import distutils.sysconfig; print (distutils.sysconfig.get_python_inc())" | $PYTHON - 2>/dev/null`
17250       test "x$pinc" = "x-I" && pinc=""
17251   else
17252       pinc=`$PYTHON_CONFIG --includes 2>/dev/null`
17253   fi
17254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pinc:-unknown}" >&5
17255 $as_echo "${pinc:-unknown}" >&6; }
17256   PYTHON_INCLUDES="$pinc"
17257   save_CPPFLAGS=$CPPFLAGS
17258   CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
17259   ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
17260 if test "x$ac_cv_header_Python_h" = xyes; then :
17261
17262 else
17263   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling Python wrappers" >&5
17264 $as_echo "$as_me: WARNING: disabling Python wrappers" >&2;}
17265                                    have_python=no
17266 fi
17267
17268
17269   if test $have_python = yes; then
17270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Numpy include directory" >&5
17271 $as_echo_n "checking for Numpy include directory... " >&6; }
17272     pinc=`echo "import numpy; print (numpy.get_include())" | $PYTHON - 2>/dev/null`
17273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pinc:-unknown}" >&5
17274 $as_echo "${pinc:-unknown}" >&6; }
17275     test -n "$pinc" && PYTHON_INCLUDES="$PYTHON_INCLUDES -I$pinc"
17276     CPPFLAGS="$save_CPPFLAGS $PYTHON_INCLUDES"
17277     ac_fn_c_check_header_compile "$LINENO" "numpy/arrayobject.h" "ac_cv_header_numpy_arrayobject_h" "#include <Python.h>
17278 "
17279 if test "x$ac_cv_header_numpy_arrayobject_h" = xyes; then :
17280
17281 else
17282
17283       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling Python wrappers" >&5
17284 $as_echo "$as_me: WARNING: disabling Python wrappers" >&2;}
17285       have_python=no
17286 fi
17287
17288
17289   fi
17290   CPPFLAGS=$save_CPPFLAGS
17291 fi
17292
17293 fi # with_python
17294
17295 fi # if enable_shared
17296
17297
17298
17299
17300
17301  if test x"$GUILE_CONFIG" != "xunknown"; then
17302   WITH_GUILE_TRUE=
17303   WITH_GUILE_FALSE='#'
17304 else
17305   WITH_GUILE_TRUE='#'
17306   WITH_GUILE_FALSE=
17307 fi
17308
17309  if test x"$have_python" = "xyes"; then
17310   WITH_PYTHON_TRUE=
17311   WITH_PYTHON_FALSE='#'
17312 else
17313   WITH_PYTHON_TRUE='#'
17314   WITH_PYTHON_FALSE=
17315 fi
17316
17317
17318
17319
17320
17321
17322
17323
17324 # Check whether --with-octave was given.
17325 if test "${with_octave+set}" = set; then :
17326   withval=$with_octave; with_octave=$withval
17327 else
17328   with_octave=yes
17329 fi
17330
17331
17332 for ac_prog in mkoctfile
17333 do
17334   # Extract the first word of "$ac_prog", so it can be a program name with args.
17335 set dummy $ac_prog; ac_word=$2
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17337 $as_echo_n "checking for $ac_word... " >&6; }
17338 if ${ac_cv_prog_MKOCTFILE+:} false; then :
17339   $as_echo_n "(cached) " >&6
17340 else
17341   if test -n "$MKOCTFILE"; then
17342   ac_cv_prog_MKOCTFILE="$MKOCTFILE" # Let the user override the test.
17343 else
17344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17345 for as_dir in $PATH
17346 do
17347   IFS=$as_save_IFS
17348   test -z "$as_dir" && as_dir=.
17349     for ac_exec_ext in '' $ac_executable_extensions; do
17350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17351     ac_cv_prog_MKOCTFILE="$ac_prog"
17352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17353     break 2
17354   fi
17355 done
17356   done
17357 IFS=$as_save_IFS
17358
17359 fi
17360 fi
17361 MKOCTFILE=$ac_cv_prog_MKOCTFILE
17362 if test -n "$MKOCTFILE"; then
17363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
17364 $as_echo "$MKOCTFILE" >&6; }
17365 else
17366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17367 $as_echo "no" >&6; }
17368 fi
17369
17370
17371   test -n "$MKOCTFILE" && break
17372 done
17373 test -n "$MKOCTFILE" || MKOCTFILE="echo"
17374
17375
17376 if test x"$with_octave" = xno; then
17377         OCT_INSTALL_DIR=""
17378 elif test "$MKOCTFILE" = "echo"; then
17379         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find mkoctfile: won't be able to compile GNU Octave plugin" >&5
17380 $as_echo "$as_me: WARNING: can't find mkoctfile: won't be able to compile GNU Octave plugin" >&2;}
17381         OCT_INSTALL_DIR=""
17382 elif test x"$OCT_INSTALL_DIR" = "x"; then
17383         # try to find installation directory
17384         for ac_prog in octave
17385 do
17386   # Extract the first word of "$ac_prog", so it can be a program name with args.
17387 set dummy $ac_prog; ac_word=$2
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17389 $as_echo_n "checking for $ac_word... " >&6; }
17390 if ${ac_cv_prog_OCTAVE+:} false; then :
17391   $as_echo_n "(cached) " >&6
17392 else
17393   if test -n "$OCTAVE"; then
17394   ac_cv_prog_OCTAVE="$OCTAVE" # Let the user override the test.
17395 else
17396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17397 for as_dir in $PATH
17398 do
17399   IFS=$as_save_IFS
17400   test -z "$as_dir" && as_dir=.
17401     for ac_exec_ext in '' $ac_executable_extensions; do
17402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17403     ac_cv_prog_OCTAVE="$ac_prog"
17404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17405     break 2
17406   fi
17407 done
17408   done
17409 IFS=$as_save_IFS
17410
17411 fi
17412 fi
17413 OCTAVE=$ac_cv_prog_OCTAVE
17414 if test -n "$OCTAVE"; then
17415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
17416 $as_echo "$OCTAVE" >&6; }
17417 else
17418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 $as_echo "no" >&6; }
17420 fi
17421
17422
17423   test -n "$OCTAVE" && break
17424 done
17425 test -n "$OCTAVE" || OCTAVE="echo"
17426
17427         for ac_prog in octave-config
17428 do
17429   # Extract the first word of "$ac_prog", so it can be a program name with args.
17430 set dummy $ac_prog; ac_word=$2
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17432 $as_echo_n "checking for $ac_word... " >&6; }
17433 if ${ac_cv_prog_OCTAVE_CONFIG+:} false; then :
17434   $as_echo_n "(cached) " >&6
17435 else
17436   if test -n "$OCTAVE_CONFIG"; then
17437   ac_cv_prog_OCTAVE_CONFIG="$OCTAVE_CONFIG" # Let the user override the test.
17438 else
17439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17440 for as_dir in $PATH
17441 do
17442   IFS=$as_save_IFS
17443   test -z "$as_dir" && as_dir=.
17444     for ac_exec_ext in '' $ac_executable_extensions; do
17445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17446     ac_cv_prog_OCTAVE_CONFIG="$ac_prog"
17447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17448     break 2
17449   fi
17450 done
17451   done
17452 IFS=$as_save_IFS
17453
17454 fi
17455 fi
17456 OCTAVE_CONFIG=$ac_cv_prog_OCTAVE_CONFIG
17457 if test -n "$OCTAVE_CONFIG"; then
17458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG" >&5
17459 $as_echo "$OCTAVE_CONFIG" >&6; }
17460 else
17461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 $as_echo "no" >&6; }
17463 fi
17464
17465
17466   test -n "$OCTAVE_CONFIG" && break
17467 done
17468 test -n "$OCTAVE_CONFIG" || OCTAVE_CONFIG="echo"
17469
17470
17471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking octave prefix" >&5
17472 $as_echo_n "checking octave prefix... " >&6; }
17473         OCTAVE_PREFIX=`$OCTAVE_CONFIG --print PREFIX 2> /dev/null`
17474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_PREFIX" >&5
17475 $as_echo "$OCTAVE_PREFIX" >&6; }
17476
17477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking where octave plugins go" >&5
17478 $as_echo_n "checking where octave plugins go... " >&6; }
17479         OCT_INSTALL_DIR=`$OCTAVE_CONFIG --oct-site-dir 2> /dev/null | grep '/'`
17480         if test -z "$OCT_INSTALL_DIR"; then
17481                 OCT_INSTALL_DIR=`$OCTAVE_CONFIG --print OCTFILEDIR 2> /dev/null | grep '/'`
17482         fi
17483         if test -z "$OCT_INSTALL_DIR"; then
17484                 OCT_INSTALL_DIR=`echo "path" | $OCTAVE -q 2> /dev/null | grep "/oct/" | head -1`
17485         fi
17486         if test -z "$OCT_INSTALL_DIR"; then
17487                 OCT_INSTALL_DIR=`echo "DEFAULT_LOADPATH" | $OCTAVE -q 2> /dev/null | tr ':' '\n' | grep "site/oct" | head -1`
17488         fi
17489         if test -n "$OCT_INSTALL_DIR"; then
17490                 if test "$prefix" != "NONE"; then
17491                         # strip octave install path to honor prefix
17492                         OCT_INSTALL_DIR=`echo "$OCT_INSTALL_DIR" | sed "s|$OCTAVE_PREFIX|$prefix|g"`
17493                 fi
17494                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCT_INSTALL_DIR" >&5
17495 $as_echo "$OCT_INSTALL_DIR" >&6; }
17496         else
17497                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17498 $as_echo "unknown" >&6; }
17499                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find where to install octave plugins: won't be able to compile octave plugin" >&5
17500 $as_echo "$as_me: WARNING: can't find where to install octave plugins: won't be able to compile octave plugin" >&2;}
17501         fi
17502
17503         { $as_echo "$as_me:${as_lineno-$LINENO}: checking where octave scripts go" >&5
17504 $as_echo_n "checking where octave scripts go... " >&6; }
17505         M_INSTALL_DIR=`$OCTAVE_CONFIG --m-site-dir 2> /dev/null | grep '/'`
17506         if test -z "$M_INSTALL_DIR"; then
17507                 M_INSTALL_DIR=`$OCTAVE_CONFIG --print FCNFILEDIR 2> /dev/null | grep '/'`
17508         fi
17509         if test -z "$M_INSTALL_DIR"; then
17510                 M_INSTALL_DIR=`echo "path" | $OCTAVE -q 2> /dev/null | grep "/m" | head -1`
17511         fi
17512         if test -z "$M_INSTALL_DIR"; then
17513                 M_INSTALL_DIR=`echo "DEFAULT_LOADPATH" | $OCTAVE -q 2> /dev/null | tr ':' '\n' | grep "site/m" | head -1`
17514         fi
17515         if test -n "$M_INSTALL_DIR"; then
17516                 if test "$prefix" != "NONE"; then
17517                         # strip octave install path to honor prefix
17518                         M_INSTALL_DIR=`echo "$M_INSTALL_DIR" | sed "s|$OCTAVE_PREFIX|$prefix|g"`
17519                 fi
17520                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M_INSTALL_DIR" >&5
17521 $as_echo "$M_INSTALL_DIR" >&6; }
17522         else
17523                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17524 $as_echo "unknown" >&6; }
17525                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find where to install octave scripts: won't be able to install octave plugin" >&5
17526 $as_echo "$as_me: WARNING: can't find where to install octave scripts: won't be able to install octave plugin" >&2;}
17527                 OCT_INSTALL_DIR=""
17528         fi
17529 elif test x"$M_INSTALL_DIR" = "x"; then # user-specified OCT_INSTALL_DIR
17530      M_INSTALL_DIR=$OCT_INSTALL_DIR
17531 fi
17532
17533 if test x"$OCT_INSTALL_DIR" != "x"; then
17534 if test "$enable_shared" = no; then
17535         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mkoctfile requires --enable-shared; won't compile Octave plugin" >&5
17536 $as_echo "$as_me: WARNING: mkoctfile requires --enable-shared; won't compile Octave plugin" >&2;}
17537         OCT_INSTALL_DIR=""
17538 fi
17539 fi
17540
17541  if test x"$OCT_INSTALL_DIR" != "x"; then
17542   WITH_OCTAVE_TRUE=
17543   WITH_OCTAVE_FALSE='#'
17544 else
17545   WITH_OCTAVE_TRUE='#'
17546   WITH_OCTAVE_FALSE=
17547 fi
17548
17549
17550
17551
17552
17553
17554
17555 # Check whether --with-matlab was given.
17556 if test "${with_matlab+set}" = set; then :
17557   withval=$with_matlab; with_matlab=$withval
17558 else
17559   with_matlab=yes
17560 fi
17561
17562
17563
17564
17565 for ac_prog in mex
17566 do
17567   # Extract the first word of "$ac_prog", so it can be a program name with args.
17568 set dummy $ac_prog; ac_word=$2
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17570 $as_echo_n "checking for $ac_word... " >&6; }
17571 if ${ac_cv_prog_MEX+:} false; then :
17572   $as_echo_n "(cached) " >&6
17573 else
17574   if test -n "$MEX"; then
17575   ac_cv_prog_MEX="$MEX" # Let the user override the test.
17576 else
17577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17578 for as_dir in $PATH
17579 do
17580   IFS=$as_save_IFS
17581   test -z "$as_dir" && as_dir=.
17582     for ac_exec_ext in '' $ac_executable_extensions; do
17583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17584     ac_cv_prog_MEX="$ac_prog"
17585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17586     break 2
17587   fi
17588 done
17589   done
17590 IFS=$as_save_IFS
17591
17592 fi
17593 fi
17594 MEX=$ac_cv_prog_MEX
17595 if test -n "$MEX"; then
17596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEX" >&5
17597 $as_echo "$MEX" >&6; }
17598 else
17599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17600 $as_echo "no" >&6; }
17601 fi
17602
17603
17604   test -n "$MEX" && break
17605 done
17606 test -n "$MEX" || MEX="echo"
17607
17608 if test x"$with_matlab" = xno; then
17609      MEX_INSTALL_DIR=""
17610 elif test "$MEX" = "echo"; then
17611      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find mex: won't be able to compile Matlab plugin" >&5
17612 $as_echo "$as_me: WARNING: can't find mex: won't be able to compile Matlab plugin" >&2;}
17613      MEX_INSTALL_DIR=""
17614 else
17615      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extension of compiled mex files" >&5
17616 $as_echo_n "checking for extension of compiled mex files... " >&6; }
17617      rm -f conftest*
17618      cat > conftest.c <<EOF
17619 #include <mex.h>
17620 void mexFunction(int nlhs, mxArray *plhs[],
17621                  int nrhs, const mxArray *prhs[]) { }
17622 EOF
17623      if $MEX conftest.c >&5 2>&5; then
17624         MEXSUFF=`ls conftest.m* | head -1 | cut -d'.' -f2`
17625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXSUFF" >&5
17626 $as_echo "$MEXSUFF" >&6; }
17627         for ac_prog in matlab
17628 do
17629   # Extract the first word of "$ac_prog", so it can be a program name with args.
17630 set dummy $ac_prog; ac_word=$2
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17632 $as_echo_n "checking for $ac_word... " >&6; }
17633 if ${ac_cv_prog_MATLAB+:} false; then :
17634   $as_echo_n "(cached) " >&6
17635 else
17636   if test -n "$MATLAB"; then
17637   ac_cv_prog_MATLAB="$MATLAB" # Let the user override the test.
17638 else
17639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17640 for as_dir in $PATH
17641 do
17642   IFS=$as_save_IFS
17643   test -z "$as_dir" && as_dir=.
17644     for ac_exec_ext in '' $ac_executable_extensions; do
17645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17646     ac_cv_prog_MATLAB="$ac_prog"
17647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17648     break 2
17649   fi
17650 done
17651   done
17652 IFS=$as_save_IFS
17653
17654 fi
17655 fi
17656 MATLAB=$ac_cv_prog_MATLAB
17657 if test -n "$MATLAB"; then
17658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&5
17659 $as_echo "$MATLAB" >&6; }
17660 else
17661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17662 $as_echo "no" >&6; }
17663 fi
17664
17665
17666   test -n "$MATLAB" && break
17667 done
17668 test -n "$MATLAB" || MATLAB="echo"
17669
17670      else
17671         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $MEX failed to compile a simple file; won't compile Matlab plugin" >&5
17672 $as_echo "$as_me: WARNING: $MEX failed to compile a simple file; won't compile Matlab plugin" >&2;}
17673         MEX_INSTALL_DIR=""
17674         MATLAB=echo
17675      fi
17676
17677      if test x"$MATLAB" != xecho; then
17678      if test "$enable_shared" = no; then
17679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17680 $as_echo "no" >&6; }
17681         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mex requires --enable-shared; won't compile Matlab plugin" >&5
17682 $as_echo "$as_me: WARNING: mex requires --enable-shared; won't compile Matlab plugin" >&2;}
17683         MEX_INSTALL_DIR=""
17684         MATLAB=echo
17685      fi
17686      fi
17687
17688      if test x"$MATLAB" != xecho; then
17689        # try to find installation directory
17690        if test x"$MEX_INSTALL_DIR" = "x"; then
17691           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MATLAB mex installation dir" >&5
17692 $as_echo_n "checking for MATLAB mex installation dir... " >&6; }
17693           MEX_INSTALL_DIR=`matlab -nodisplay -nodesktop -nojvm -r 'path;quit' | grep toolbox/local |sed 's,^[^/]*,,g' |sort |head -1`
17694           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEX_INSTALL_DIR" >&5
17695 $as_echo "$MEX_INSTALL_DIR" >&6; }
17696           if test x`basename "$MEX_INSTALL_DIR"` != xlocal; then
17697              MEX_INSTALL_DIR=""
17698           fi
17699           if test x"$MEX_INSTALL_DIR" = "x"; then
17700             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find reasonable Matlab installation directory; Matlab plugins will not be compiled unless you manually specify MEX_INSTALL_DIR" >&5
17701 $as_echo "$as_me: WARNING: can't find reasonable Matlab installation directory; Matlab plugins will not be compiled unless you manually specify MEX_INSTALL_DIR" >&2;}
17702           fi
17703        fi
17704      else
17705         MEX_INSTALL_DIR=""
17706      fi
17707 fi
17708  if test x"$MEX_INSTALL_DIR" != "x"; then
17709   WITH_MATLAB_TRUE=
17710   WITH_MATLAB_FALSE='#'
17711 else
17712   WITH_MATLAB_TRUE='#'
17713   WITH_MATLAB_FALSE=
17714 fi
17715
17716
17717
17718
17719
17720
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working HUGE_VAL" >&5
17722 $as_echo_n "checking for working HUGE_VAL... " >&6; }
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h.  */
17725 #include <math.h>
17726 int
17727 main ()
17728 {
17729 double x = -HUGE_VAL;
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 if ac_fn_c_try_compile "$LINENO"; then :
17735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17736 $as_echo "ok" >&6; }
17737 else
17738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h.  */
17740 #include <math.h>
17741 #ifdef __GNUC__
17742 #undef HUGE_VAL
17743 #define HUGE_VAL __builtin_huge_val()
17744 #endif
17745 int
17746 main ()
17747 {
17748 double x = -HUGE_VAL;
17749   ;
17750   return 0;
17751 }
17752 _ACEOF
17753 if ac_fn_c_try_compile "$LINENO"; then :
17754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: __builtin_huge_val()" >&5
17755 $as_echo "__builtin_huge_val()" >&6; }
17756
17757 $as_echo "#define REPLACEMENT_HUGE_VAL __builtin_huge_val()" >>confdefs.h
17758
17759 else
17760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
17761 $as_echo "unknown" >&6; }
17762 as_fn_error $? "broken HUGE_VAL macro with this compiler, unknown workaround" "$LINENO" 5
17763 fi
17764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 fi
17766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767
17768
17769 # Check whether --enable-debug was given.
17770 if test "${enable_debug+set}" = set; then :
17771   enableval=$enable_debug; ok=$enableval
17772 else
17773   ok=no
17774 fi
17775
17776 if test "$ok" = "yes"; then
17777
17778 $as_echo "#define DEBUG 1" >>confdefs.h
17779
17780 fi
17781
17782 if test "${enable_debug}" = "yes"; then
17783         CFLAGS="-g"
17784         CXXFLAGS="-g"
17785         FFLAGS="-g"
17786 fi
17787
17788 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
17789 if test $ac_cv_c_compiler_gnu = yes; then
17790    if test "$ac_test_CFLAGS" != "set"; then
17791       CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations"
17792    fi
17793    if test "$ac_test_CXXFLAGS" != "set"; then
17794       CXXFLAGS="$CXXFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -Wshadow -Wwrite-strings -Wredundant-decls -Wundef -Wconversion"
17795    fi
17796    if test "x$with_cxx" = xyes; then
17797       CFLAGS=$CXXFLAGS
17798    fi
17799 fi
17800 fi
17801
17802 vers=`echo ${VERSION}.0.0 | cut -d. -f1`
17803
17804 cat >>confdefs.h <<_ACEOF
17805 #define MAJOR_VERSION $vers
17806 _ACEOF
17807
17808 vers=`echo ${VERSION}.0.0 | cut -d. -f2`
17809
17810 cat >>confdefs.h <<_ACEOF
17811 #define MINOR_VERSION $vers
17812 _ACEOF
17813
17814 vers=`echo ${VERSION}.0.0 | cut -d. -f3`
17815
17816 cat >>confdefs.h <<_ACEOF
17817 #define BUGFIX_VERSION $vers
17818 _ACEOF
17819
17820
17821
17822 ac_config_files="$ac_config_files Makefile nlopt.pc api/Makefile util/Makefile octave/Makefile direct/Makefile cdirect/Makefile stogo/Makefile praxis/Makefile luksan/Makefile crs/Makefile mlsl/Makefile mma/Makefile cobyla/Makefile newuoa/Makefile neldermead/Makefile auglag/Makefile bobyqa/Makefile isres/Makefile slsqp/Makefile esch/Makefile test/Makefile swig/Makefile swig/nlopt.scm"
17823
17824
17825 cat >confcache <<\_ACEOF
17826 # This file is a shell script that caches the results of configure
17827 # tests run on this system so they can be shared between configure
17828 # scripts and configure runs, see configure's option --config-cache.
17829 # It is not useful on other systems.  If it contains results you don't
17830 # want to keep, you may remove or edit it.
17831 #
17832 # config.status only pays attention to the cache file if you give it
17833 # the --recheck option to rerun configure.
17834 #
17835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17837 # following values.
17838
17839 _ACEOF
17840
17841 # The following way of writing the cache mishandles newlines in values,
17842 # but we know of no workaround that is simple, portable, and efficient.
17843 # So, we kill variables containing newlines.
17844 # Ultrix sh set writes to stderr and can't be redirected directly,
17845 # and sets the high bit in the cache file unless we assign to the vars.
17846 (
17847   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17848     eval ac_val=\$$ac_var
17849     case $ac_val in #(
17850     *${as_nl}*)
17851       case $ac_var in #(
17852       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17854       esac
17855       case $ac_var in #(
17856       _ | IFS | as_nl) ;; #(
17857       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17858       *) { eval $ac_var=; unset $ac_var;} ;;
17859       esac ;;
17860     esac
17861   done
17862
17863   (set) 2>&1 |
17864     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17865     *${as_nl}ac_space=\ *)
17866       # `set' does not quote correctly, so add quotes: double-quote
17867       # substitution turns \\\\ into \\, and sed turns \\ into \.
17868       sed -n \
17869         "s/'/'\\\\''/g;
17870           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17871       ;; #(
17872     *)
17873       # `set' quotes correctly as required by POSIX, so do not add quotes.
17874       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17875       ;;
17876     esac |
17877     sort
17878 ) |
17879   sed '
17880      /^ac_cv_env_/b end
17881      t clear
17882      :clear
17883      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17884      t end
17885      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17886      :end' >>confcache
17887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17888   if test -w "$cache_file"; then
17889     if test "x$cache_file" != "x/dev/null"; then
17890       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17891 $as_echo "$as_me: updating cache $cache_file" >&6;}
17892       if test ! -f "$cache_file" || test -h "$cache_file"; then
17893         cat confcache >"$cache_file"
17894       else
17895         case $cache_file in #(
17896         */* | ?:*)
17897           mv -f confcache "$cache_file"$$ &&
17898           mv -f "$cache_file"$$ "$cache_file" ;; #(
17899         *)
17900           mv -f confcache "$cache_file" ;;
17901         esac
17902       fi
17903     fi
17904   else
17905     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17906 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17907   fi
17908 fi
17909 rm -f confcache
17910
17911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17912 # Let make expand exec_prefix.
17913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17914
17915 DEFS=-DHAVE_CONFIG_H
17916
17917 ac_libobjs=
17918 ac_ltlibobjs=
17919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17920   # 1. Remove the extension, and $U if already installed.
17921   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17922   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17923   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17924   #    will be set to the directory where LIBOBJS objects are built.
17925   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17926   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17927 done
17928 LIBOBJS=$ac_libobjs
17929
17930 LTLIBOBJS=$ac_ltlibobjs
17931
17932
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17934 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17935    if test -n "$am_sleep_pid"; then
17936      # Hide warnings about reused PIDs.
17937      wait $am_sleep_pid 2>/dev/null
17938    fi
17939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17940 $as_echo "done" >&6; }
17941  if test -n "$EXEEXT"; then
17942   am__EXEEXT_TRUE=
17943   am__EXEEXT_FALSE='#'
17944 else
17945   am__EXEEXT_TRUE='#'
17946   am__EXEEXT_FALSE=
17947 fi
17948
17949 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17950   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17952 fi
17953 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17954   as_fn_error $? "conditional \"AMDEP\" was never defined.
17955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17956 fi
17957 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17958   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17960 fi
17961 if test -z "${WITH_CXX_TRUE}" && test -z "${WITH_CXX_FALSE}"; then
17962   as_fn_error $? "conditional \"WITH_CXX\" was never defined.
17963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17964 fi
17965 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17966   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17968 fi
17969 if test -z "${WITH_GUILE_TRUE}" && test -z "${WITH_GUILE_FALSE}"; then
17970   as_fn_error $? "conditional \"WITH_GUILE\" was never defined.
17971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17972 fi
17973 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
17974   as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
17975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17976 fi
17977 if test -z "${WITH_OCTAVE_TRUE}" && test -z "${WITH_OCTAVE_FALSE}"; then
17978   as_fn_error $? "conditional \"WITH_OCTAVE\" was never defined.
17979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17980 fi
17981 if test -z "${WITH_MATLAB_TRUE}" && test -z "${WITH_MATLAB_FALSE}"; then
17982   as_fn_error $? "conditional \"WITH_MATLAB\" was never defined.
17983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17984 fi
17985
17986 : "${CONFIG_STATUS=./config.status}"
17987 ac_write_fail=0
17988 ac_clean_files_save=$ac_clean_files
17989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17991 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17992 as_write_fail=0
17993 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17994 #! $SHELL
17995 # Generated by $as_me.
17996 # Run this file to recreate the current configuration.
17997 # Compiler output produced by configure, useful for debugging
17998 # configure, is in config.log if it exists.
17999
18000 debug=false
18001 ac_cs_recheck=false
18002 ac_cs_silent=false
18003
18004 SHELL=\${CONFIG_SHELL-$SHELL}
18005 export SHELL
18006 _ASEOF
18007 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18008 ## -------------------- ##
18009 ## M4sh Initialization. ##
18010 ## -------------------- ##
18011
18012 # Be more Bourne compatible
18013 DUALCASE=1; export DUALCASE # for MKS sh
18014 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18015   emulate sh
18016   NULLCMD=:
18017   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18018   # is contrary to our usage.  Disable this feature.
18019   alias -g '${1+"$@"}'='"$@"'
18020   setopt NO_GLOB_SUBST
18021 else
18022   case `(set -o) 2>/dev/null` in #(
18023   *posix*) :
18024     set -o posix ;; #(
18025   *) :
18026      ;;
18027 esac
18028 fi
18029
18030
18031 as_nl='
18032 '
18033 export as_nl
18034 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18035 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18036 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18037 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18038 # Prefer a ksh shell builtin over an external printf program on Solaris,
18039 # but without wasting forks for bash or zsh.
18040 if test -z "$BASH_VERSION$ZSH_VERSION" \
18041     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18042   as_echo='print -r --'
18043   as_echo_n='print -rn --'
18044 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18045   as_echo='printf %s\n'
18046   as_echo_n='printf %s'
18047 else
18048   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18049     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18050     as_echo_n='/usr/ucb/echo -n'
18051   else
18052     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18053     as_echo_n_body='eval
18054       arg=$1;
18055       case $arg in #(
18056       *"$as_nl"*)
18057         expr "X$arg" : "X\\(.*\\)$as_nl";
18058         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18059       esac;
18060       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18061     '
18062     export as_echo_n_body
18063     as_echo_n='sh -c $as_echo_n_body as_echo'
18064   fi
18065   export as_echo_body
18066   as_echo='sh -c $as_echo_body as_echo'
18067 fi
18068
18069 # The user is always right.
18070 if test "${PATH_SEPARATOR+set}" != set; then
18071   PATH_SEPARATOR=:
18072   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18073     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18074       PATH_SEPARATOR=';'
18075   }
18076 fi
18077
18078
18079 # IFS
18080 # We need space, tab and new line, in precisely that order.  Quoting is
18081 # there to prevent editors from complaining about space-tab.
18082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18083 # splitting by setting IFS to empty value.)
18084 IFS=" ""        $as_nl"
18085
18086 # Find who we are.  Look in the path if we contain no directory separator.
18087 as_myself=
18088 case $0 in #((
18089   *[\\/]* ) as_myself=$0 ;;
18090   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18091 for as_dir in $PATH
18092 do
18093   IFS=$as_save_IFS
18094   test -z "$as_dir" && as_dir=.
18095     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18096   done
18097 IFS=$as_save_IFS
18098
18099      ;;
18100 esac
18101 # We did not find ourselves, most probably we were run as `sh COMMAND'
18102 # in which case we are not to be found in the path.
18103 if test "x$as_myself" = x; then
18104   as_myself=$0
18105 fi
18106 if test ! -f "$as_myself"; then
18107   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18108   exit 1
18109 fi
18110
18111 # Unset variables that we do not need and which cause bugs (e.g. in
18112 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18113 # suppresses any "Segmentation fault" message there.  '((' could
18114 # trigger a bug in pdksh 5.2.14.
18115 for as_var in BASH_ENV ENV MAIL MAILPATH
18116 do eval test x\${$as_var+set} = xset \
18117   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18118 done
18119 PS1='$ '
18120 PS2='> '
18121 PS4='+ '
18122
18123 # NLS nuisances.
18124 LC_ALL=C
18125 export LC_ALL
18126 LANGUAGE=C
18127 export LANGUAGE
18128
18129 # CDPATH.
18130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18131
18132
18133 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18134 # ----------------------------------------
18135 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18136 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18137 # script with STATUS, using 1 if that was 0.
18138 as_fn_error ()
18139 {
18140   as_status=$1; test $as_status -eq 0 && as_status=1
18141   if test "$4"; then
18142     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18143     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18144   fi
18145   $as_echo "$as_me: error: $2" >&2
18146   as_fn_exit $as_status
18147 } # as_fn_error
18148
18149
18150 # as_fn_set_status STATUS
18151 # -----------------------
18152 # Set $? to STATUS, without forking.
18153 as_fn_set_status ()
18154 {
18155   return $1
18156 } # as_fn_set_status
18157
18158 # as_fn_exit STATUS
18159 # -----------------
18160 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18161 as_fn_exit ()
18162 {
18163   set +e
18164   as_fn_set_status $1
18165   exit $1
18166 } # as_fn_exit
18167
18168 # as_fn_unset VAR
18169 # ---------------
18170 # Portably unset VAR.
18171 as_fn_unset ()
18172 {
18173   { eval $1=; unset $1;}
18174 }
18175 as_unset=as_fn_unset
18176 # as_fn_append VAR VALUE
18177 # ----------------------
18178 # Append the text in VALUE to the end of the definition contained in VAR. Take
18179 # advantage of any shell optimizations that allow amortized linear growth over
18180 # repeated appends, instead of the typical quadratic growth present in naive
18181 # implementations.
18182 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18183   eval 'as_fn_append ()
18184   {
18185     eval $1+=\$2
18186   }'
18187 else
18188   as_fn_append ()
18189   {
18190     eval $1=\$$1\$2
18191   }
18192 fi # as_fn_append
18193
18194 # as_fn_arith ARG...
18195 # ------------------
18196 # Perform arithmetic evaluation on the ARGs, and store the result in the
18197 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18198 # must be portable across $(()) and expr.
18199 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18200   eval 'as_fn_arith ()
18201   {
18202     as_val=$(( $* ))
18203   }'
18204 else
18205   as_fn_arith ()
18206   {
18207     as_val=`expr "$@" || test $? -eq 1`
18208   }
18209 fi # as_fn_arith
18210
18211
18212 if expr a : '\(a\)' >/dev/null 2>&1 &&
18213    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18214   as_expr=expr
18215 else
18216   as_expr=false
18217 fi
18218
18219 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18220   as_basename=basename
18221 else
18222   as_basename=false
18223 fi
18224
18225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18226   as_dirname=dirname
18227 else
18228   as_dirname=false
18229 fi
18230
18231 as_me=`$as_basename -- "$0" ||
18232 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18233          X"$0" : 'X\(//\)$' \| \
18234          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18235 $as_echo X/"$0" |
18236     sed '/^.*\/\([^/][^/]*\)\/*$/{
18237             s//\1/
18238             q
18239           }
18240           /^X\/\(\/\/\)$/{
18241             s//\1/
18242             q
18243           }
18244           /^X\/\(\/\).*/{
18245             s//\1/
18246             q
18247           }
18248           s/.*/./; q'`
18249
18250 # Avoid depending upon Character Ranges.
18251 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18252 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18253 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18254 as_cr_digits='0123456789'
18255 as_cr_alnum=$as_cr_Letters$as_cr_digits
18256
18257 ECHO_C= ECHO_N= ECHO_T=
18258 case `echo -n x` in #(((((
18259 -n*)
18260   case `echo 'xy\c'` in
18261   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18262   xy)  ECHO_C='\c';;
18263   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18264        ECHO_T=' ';;
18265   esac;;
18266 *)
18267   ECHO_N='-n';;
18268 esac
18269
18270 rm -f conf$$ conf$$.exe conf$$.file
18271 if test -d conf$$.dir; then
18272   rm -f conf$$.dir/conf$$.file
18273 else
18274   rm -f conf$$.dir
18275   mkdir conf$$.dir 2>/dev/null
18276 fi
18277 if (echo >conf$$.file) 2>/dev/null; then
18278   if ln -s conf$$.file conf$$ 2>/dev/null; then
18279     as_ln_s='ln -s'
18280     # ... but there are two gotchas:
18281     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18282     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18283     # In both cases, we have to default to `cp -pR'.
18284     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18285       as_ln_s='cp -pR'
18286   elif ln conf$$.file conf$$ 2>/dev/null; then
18287     as_ln_s=ln
18288   else
18289     as_ln_s='cp -pR'
18290   fi
18291 else
18292   as_ln_s='cp -pR'
18293 fi
18294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18295 rmdir conf$$.dir 2>/dev/null
18296
18297
18298 # as_fn_mkdir_p
18299 # -------------
18300 # Create "$as_dir" as a directory, including parents if necessary.
18301 as_fn_mkdir_p ()
18302 {
18303
18304   case $as_dir in #(
18305   -*) as_dir=./$as_dir;;
18306   esac
18307   test -d "$as_dir" || eval $as_mkdir_p || {
18308     as_dirs=
18309     while :; do
18310       case $as_dir in #(
18311       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18312       *) as_qdir=$as_dir;;
18313       esac
18314       as_dirs="'$as_qdir' $as_dirs"
18315       as_dir=`$as_dirname -- "$as_dir" ||
18316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18317          X"$as_dir" : 'X\(//\)[^/]' \| \
18318          X"$as_dir" : 'X\(//\)$' \| \
18319          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18320 $as_echo X"$as_dir" |
18321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18322             s//\1/
18323             q
18324           }
18325           /^X\(\/\/\)[^/].*/{
18326             s//\1/
18327             q
18328           }
18329           /^X\(\/\/\)$/{
18330             s//\1/
18331             q
18332           }
18333           /^X\(\/\).*/{
18334             s//\1/
18335             q
18336           }
18337           s/.*/./; q'`
18338       test -d "$as_dir" && break
18339     done
18340     test -z "$as_dirs" || eval "mkdir $as_dirs"
18341   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18342
18343
18344 } # as_fn_mkdir_p
18345 if mkdir -p . 2>/dev/null; then
18346   as_mkdir_p='mkdir -p "$as_dir"'
18347 else
18348   test -d ./-p && rmdir ./-p
18349   as_mkdir_p=false
18350 fi
18351
18352
18353 # as_fn_executable_p FILE
18354 # -----------------------
18355 # Test if FILE is an executable regular file.
18356 as_fn_executable_p ()
18357 {
18358   test -f "$1" && test -x "$1"
18359 } # as_fn_executable_p
18360 as_test_x='test -x'
18361 as_executable_p=as_fn_executable_p
18362
18363 # Sed expression to map a string onto a valid CPP name.
18364 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18365
18366 # Sed expression to map a string onto a valid variable name.
18367 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18368
18369
18370 exec 6>&1
18371 ## ----------------------------------- ##
18372 ## Main body of $CONFIG_STATUS script. ##
18373 ## ----------------------------------- ##
18374 _ASEOF
18375 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18376
18377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18378 # Save the log message, to keep $0 and so on meaningful, and to
18379 # report actual input values of CONFIG_FILES etc. instead of their
18380 # values after options handling.
18381 ac_log="
18382 This file was extended by nlopt $as_me 2.4.2, which was
18383 generated by GNU Autoconf 2.69.  Invocation command line was
18384
18385   CONFIG_FILES    = $CONFIG_FILES
18386   CONFIG_HEADERS  = $CONFIG_HEADERS
18387   CONFIG_LINKS    = $CONFIG_LINKS
18388   CONFIG_COMMANDS = $CONFIG_COMMANDS
18389   $ $0 $@
18390
18391 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18392 "
18393
18394 _ACEOF
18395
18396 case $ac_config_files in *"
18397 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18398 esac
18399
18400 case $ac_config_headers in *"
18401 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18402 esac
18403
18404
18405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18406 # Files that config.status was made for.
18407 config_files="$ac_config_files"
18408 config_headers="$ac_config_headers"
18409 config_commands="$ac_config_commands"
18410
18411 _ACEOF
18412
18413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18414 ac_cs_usage="\
18415 \`$as_me' instantiates files and other configuration actions
18416 from templates according to the current configuration.  Unless the files
18417 and actions are specified as TAGs, all are instantiated by default.
18418
18419 Usage: $0 [OPTION]... [TAG]...
18420
18421   -h, --help       print this help, then exit
18422   -V, --version    print version number and configuration settings, then exit
18423       --config     print configuration, then exit
18424   -q, --quiet, --silent
18425                    do not print progress messages
18426   -d, --debug      don't remove temporary files
18427       --recheck    update $as_me by reconfiguring in the same conditions
18428       --file=FILE[:TEMPLATE]
18429                    instantiate the configuration file FILE
18430       --header=FILE[:TEMPLATE]
18431                    instantiate the configuration header FILE
18432
18433 Configuration files:
18434 $config_files
18435
18436 Configuration headers:
18437 $config_headers
18438
18439 Configuration commands:
18440 $config_commands
18441
18442 Report bugs to <stevenj@alum.mit.edu>."
18443
18444 _ACEOF
18445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18446 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18447 ac_cs_version="\\
18448 nlopt config.status 2.4.2
18449 configured by $0, generated by GNU Autoconf 2.69,
18450   with options \\"\$ac_cs_config\\"
18451
18452 Copyright (C) 2012 Free Software Foundation, Inc.
18453 This config.status script is free software; the Free Software Foundation
18454 gives unlimited permission to copy, distribute and modify it."
18455
18456 ac_pwd='$ac_pwd'
18457 srcdir='$srcdir'
18458 INSTALL='$INSTALL'
18459 MKDIR_P='$MKDIR_P'
18460 AWK='$AWK'
18461 test -n "\$AWK" || AWK=awk
18462 _ACEOF
18463
18464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18465 # The default lists apply if the user does not specify any file.
18466 ac_need_defaults=:
18467 while test $# != 0
18468 do
18469   case $1 in
18470   --*=?*)
18471     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18472     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18473     ac_shift=:
18474     ;;
18475   --*=)
18476     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18477     ac_optarg=
18478     ac_shift=:
18479     ;;
18480   *)
18481     ac_option=$1
18482     ac_optarg=$2
18483     ac_shift=shift
18484     ;;
18485   esac
18486
18487   case $ac_option in
18488   # Handling of the options.
18489   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18490     ac_cs_recheck=: ;;
18491   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18492     $as_echo "$ac_cs_version"; exit ;;
18493   --config | --confi | --conf | --con | --co | --c )
18494     $as_echo "$ac_cs_config"; exit ;;
18495   --debug | --debu | --deb | --de | --d | -d )
18496     debug=: ;;
18497   --file | --fil | --fi | --f )
18498     $ac_shift
18499     case $ac_optarg in
18500     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18501     '') as_fn_error $? "missing file argument" ;;
18502     esac
18503     as_fn_append CONFIG_FILES " '$ac_optarg'"
18504     ac_need_defaults=false;;
18505   --header | --heade | --head | --hea )
18506     $ac_shift
18507     case $ac_optarg in
18508     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18509     esac
18510     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18511     ac_need_defaults=false;;
18512   --he | --h)
18513     # Conflict between --help and --header
18514     as_fn_error $? "ambiguous option: \`$1'
18515 Try \`$0 --help' for more information.";;
18516   --help | --hel | -h )
18517     $as_echo "$ac_cs_usage"; exit ;;
18518   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18519   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18520     ac_cs_silent=: ;;
18521
18522   # This is an error.
18523   -*) as_fn_error $? "unrecognized option: \`$1'
18524 Try \`$0 --help' for more information." ;;
18525
18526   *) as_fn_append ac_config_targets " $1"
18527      ac_need_defaults=false ;;
18528
18529   esac
18530   shift
18531 done
18532
18533 ac_configure_extra_args=
18534
18535 if $ac_cs_silent; then
18536   exec 6>/dev/null
18537   ac_configure_extra_args="$ac_configure_extra_args --silent"
18538 fi
18539
18540 _ACEOF
18541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18542 if \$ac_cs_recheck; then
18543   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18544   shift
18545   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18546   CONFIG_SHELL='$SHELL'
18547   export CONFIG_SHELL
18548   exec "\$@"
18549 fi
18550
18551 _ACEOF
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18553 exec 5>>config.log
18554 {
18555   echo
18556   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18557 ## Running $as_me. ##
18558 _ASBOX
18559   $as_echo "$ac_log"
18560 } >&5
18561
18562 _ACEOF
18563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18564 #
18565 # INIT-COMMANDS
18566 #
18567 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18568
18569
18570 # The HP-UX ksh and POSIX shell print the target directory to stdout
18571 # if CDPATH is set.
18572 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18573
18574 sed_quote_subst='$sed_quote_subst'
18575 double_quote_subst='$double_quote_subst'
18576 delay_variable_subst='$delay_variable_subst'
18577 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18578 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18579 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18580 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18581 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18582 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18583 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18584 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18585 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18586 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18587 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18588 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18589 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18590 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18591 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18592 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18593 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18594 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18595 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18596 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18597 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18598 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18599 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18600 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18601 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18602 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18603 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18604 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18605 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18606 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18607 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18608 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18609 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18610 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18611 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18612 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18613 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18614 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18615 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18616 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18617 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18618 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18619 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18620 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18621 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18622 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18623 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18624 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18625 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18626 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18627 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18628 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18629 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18630 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18631 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18632 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18633 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18634 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"`'
18635 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18636 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18637 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18638 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18639 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18640 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18641 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18642 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18643 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18644 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18645 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18646 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18647 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18648 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18649 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18650 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18651 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18652 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18653 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18654 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18655 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18656 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18657 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18658 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18659 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18660 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18661 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18662 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18663 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18664 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18665 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18666 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18667 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18668 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18669 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18670 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18671 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18672 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18673 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18674 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18675 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18676 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18677 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18678 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18679 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18680 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18681 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18682 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18683 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18684 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18685 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18686 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18687 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18688 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18689 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18690 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18691 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18692 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18693 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18694 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18695 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18696 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18697 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18698 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18699 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18700 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18701 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18702 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18703 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18704 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18705 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18706 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18707 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18708 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18709 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18710 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18711 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18712 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18713 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18714 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18715 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18716 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18717 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18718 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18719 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18720 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18721 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18722 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18723 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18724 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18725 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18726 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18727 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18728 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18729 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18730 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18731 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18732 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18733 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18734 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18735 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18736 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18737 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18738 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18739 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18740 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18741 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18742 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18743 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18744 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18745 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18746 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18747 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18748 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18749 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18750 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18751 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18752 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18753 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18754 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18755 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18756 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18757 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18758 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18759 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18760 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18761 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18762
18763 LTCC='$LTCC'
18764 LTCFLAGS='$LTCFLAGS'
18765 compiler='$compiler_DEFAULT'
18766
18767 # A function that is used when there is no print builtin or printf.
18768 func_fallback_echo ()
18769 {
18770   eval 'cat <<_LTECHO_EOF
18771 \$1
18772 _LTECHO_EOF'
18773 }
18774
18775 # Quote evaled strings.
18776 for var in AS \
18777 DLLTOOL \
18778 OBJDUMP \
18779 SHELL \
18780 ECHO \
18781 PATH_SEPARATOR \
18782 SED \
18783 GREP \
18784 EGREP \
18785 FGREP \
18786 LD \
18787 NM \
18788 LN_S \
18789 lt_SP2NL \
18790 lt_NL2SP \
18791 reload_flag \
18792 deplibs_check_method \
18793 file_magic_cmd \
18794 file_magic_glob \
18795 want_nocaseglob \
18796 sharedlib_from_linklib_cmd \
18797 AR \
18798 AR_FLAGS \
18799 archiver_list_spec \
18800 STRIP \
18801 RANLIB \
18802 CC \
18803 CFLAGS \
18804 compiler \
18805 lt_cv_sys_global_symbol_pipe \
18806 lt_cv_sys_global_symbol_to_cdecl \
18807 lt_cv_sys_global_symbol_to_c_name_address \
18808 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18809 nm_file_list_spec \
18810 lt_prog_compiler_no_builtin_flag \
18811 lt_prog_compiler_pic \
18812 lt_prog_compiler_wl \
18813 lt_prog_compiler_static \
18814 lt_cv_prog_compiler_c_o \
18815 need_locks \
18816 MANIFEST_TOOL \
18817 DSYMUTIL \
18818 NMEDIT \
18819 LIPO \
18820 OTOOL \
18821 OTOOL64 \
18822 shrext_cmds \
18823 export_dynamic_flag_spec \
18824 whole_archive_flag_spec \
18825 compiler_needs_object \
18826 with_gnu_ld \
18827 allow_undefined_flag \
18828 no_undefined_flag \
18829 hardcode_libdir_flag_spec \
18830 hardcode_libdir_separator \
18831 exclude_expsyms \
18832 include_expsyms \
18833 file_list_spec \
18834 variables_saved_for_relink \
18835 libname_spec \
18836 library_names_spec \
18837 soname_spec \
18838 install_override_mode \
18839 finish_eval \
18840 old_striplib \
18841 striplib \
18842 compiler_lib_search_dirs \
18843 predep_objects \
18844 postdep_objects \
18845 predeps \
18846 postdeps \
18847 compiler_lib_search_path \
18848 LD_CXX \
18849 reload_flag_CXX \
18850 compiler_CXX \
18851 lt_prog_compiler_no_builtin_flag_CXX \
18852 lt_prog_compiler_pic_CXX \
18853 lt_prog_compiler_wl_CXX \
18854 lt_prog_compiler_static_CXX \
18855 lt_cv_prog_compiler_c_o_CXX \
18856 export_dynamic_flag_spec_CXX \
18857 whole_archive_flag_spec_CXX \
18858 compiler_needs_object_CXX \
18859 with_gnu_ld_CXX \
18860 allow_undefined_flag_CXX \
18861 no_undefined_flag_CXX \
18862 hardcode_libdir_flag_spec_CXX \
18863 hardcode_libdir_separator_CXX \
18864 exclude_expsyms_CXX \
18865 include_expsyms_CXX \
18866 file_list_spec_CXX \
18867 compiler_lib_search_dirs_CXX \
18868 predep_objects_CXX \
18869 postdep_objects_CXX \
18870 predeps_CXX \
18871 postdeps_CXX \
18872 compiler_lib_search_path_CXX; do
18873     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18874     *[\\\\\\\`\\"\\\$]*)
18875       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18876       ;;
18877     *)
18878       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18879       ;;
18880     esac
18881 done
18882
18883 # Double-quote double-evaled strings.
18884 for var in reload_cmds \
18885 old_postinstall_cmds \
18886 old_postuninstall_cmds \
18887 old_archive_cmds \
18888 extract_expsyms_cmds \
18889 old_archive_from_new_cmds \
18890 old_archive_from_expsyms_cmds \
18891 archive_cmds \
18892 archive_expsym_cmds \
18893 module_cmds \
18894 module_expsym_cmds \
18895 export_symbols_cmds \
18896 prelink_cmds \
18897 postlink_cmds \
18898 postinstall_cmds \
18899 postuninstall_cmds \
18900 finish_cmds \
18901 sys_lib_search_path_spec \
18902 sys_lib_dlsearch_path_spec \
18903 reload_cmds_CXX \
18904 old_archive_cmds_CXX \
18905 old_archive_from_new_cmds_CXX \
18906 old_archive_from_expsyms_cmds_CXX \
18907 archive_cmds_CXX \
18908 archive_expsym_cmds_CXX \
18909 module_cmds_CXX \
18910 module_expsym_cmds_CXX \
18911 export_symbols_cmds_CXX \
18912 prelink_cmds_CXX \
18913 postlink_cmds_CXX; do
18914     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18915     *[\\\\\\\`\\"\\\$]*)
18916       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18917       ;;
18918     *)
18919       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18920       ;;
18921     esac
18922 done
18923
18924 ac_aux_dir='$ac_aux_dir'
18925 xsi_shell='$xsi_shell'
18926 lt_shell_append='$lt_shell_append'
18927
18928 # See if we are running on zsh, and set the options which allow our
18929 # commands through without removal of \ escapes INIT.
18930 if test -n "\${ZSH_VERSION+set}" ; then
18931    setopt NO_GLOB_SUBST
18932 fi
18933
18934
18935     PACKAGE='$PACKAGE'
18936     VERSION='$VERSION'
18937     TIMESTAMP='$TIMESTAMP'
18938     RM='$RM'
18939     ofile='$ofile'
18940
18941
18942
18943
18944
18945
18946 _ACEOF
18947
18948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18949
18950 # Handling of arguments.
18951 for ac_config_target in $ac_config_targets
18952 do
18953   case $ac_config_target in
18954     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18955     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18956     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18957     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18958     "nlopt.pc") CONFIG_FILES="$CONFIG_FILES nlopt.pc" ;;
18959     "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;;
18960     "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
18961     "octave/Makefile") CONFIG_FILES="$CONFIG_FILES octave/Makefile" ;;
18962     "direct/Makefile") CONFIG_FILES="$CONFIG_FILES direct/Makefile" ;;
18963     "cdirect/Makefile") CONFIG_FILES="$CONFIG_FILES cdirect/Makefile" ;;
18964     "stogo/Makefile") CONFIG_FILES="$CONFIG_FILES stogo/Makefile" ;;
18965     "praxis/Makefile") CONFIG_FILES="$CONFIG_FILES praxis/Makefile" ;;
18966     "luksan/Makefile") CONFIG_FILES="$CONFIG_FILES luksan/Makefile" ;;
18967     "crs/Makefile") CONFIG_FILES="$CONFIG_FILES crs/Makefile" ;;
18968     "mlsl/Makefile") CONFIG_FILES="$CONFIG_FILES mlsl/Makefile" ;;
18969     "mma/Makefile") CONFIG_FILES="$CONFIG_FILES mma/Makefile" ;;
18970     "cobyla/Makefile") CONFIG_FILES="$CONFIG_FILES cobyla/Makefile" ;;
18971     "newuoa/Makefile") CONFIG_FILES="$CONFIG_FILES newuoa/Makefile" ;;
18972     "neldermead/Makefile") CONFIG_FILES="$CONFIG_FILES neldermead/Makefile" ;;
18973     "auglag/Makefile") CONFIG_FILES="$CONFIG_FILES auglag/Makefile" ;;
18974     "bobyqa/Makefile") CONFIG_FILES="$CONFIG_FILES bobyqa/Makefile" ;;
18975     "isres/Makefile") CONFIG_FILES="$CONFIG_FILES isres/Makefile" ;;
18976     "slsqp/Makefile") CONFIG_FILES="$CONFIG_FILES slsqp/Makefile" ;;
18977     "esch/Makefile") CONFIG_FILES="$CONFIG_FILES esch/Makefile" ;;
18978     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18979     "swig/Makefile") CONFIG_FILES="$CONFIG_FILES swig/Makefile" ;;
18980     "swig/nlopt.scm") CONFIG_FILES="$CONFIG_FILES swig/nlopt.scm" ;;
18981
18982   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18983   esac
18984 done
18985
18986
18987 # If the user did not use the arguments to specify the items to instantiate,
18988 # then the envvar interface is used.  Set only those that are not.
18989 # We use the long form for the default assignment because of an extremely
18990 # bizarre bug on SunOS 4.1.3.
18991 if $ac_need_defaults; then
18992   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18993   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18994   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18995 fi
18996
18997 # Have a temporary directory for convenience.  Make it in the build tree
18998 # simply because there is no reason against having it here, and in addition,
18999 # creating and moving files from /tmp can sometimes cause problems.
19000 # Hook for its removal unless debugging.
19001 # Note that there is a small window in which the directory will not be cleaned:
19002 # after its creation but before its name has been assigned to `$tmp'.
19003 $debug ||
19004 {
19005   tmp= ac_tmp=
19006   trap 'exit_status=$?
19007   : "${ac_tmp:=$tmp}"
19008   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19009 ' 0
19010   trap 'as_fn_exit 1' 1 2 13 15
19011 }
19012 # Create a (secure) tmp directory for tmp files.
19013
19014 {
19015   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19016   test -d "$tmp"
19017 }  ||
19018 {
19019   tmp=./conf$$-$RANDOM
19020   (umask 077 && mkdir "$tmp")
19021 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19022 ac_tmp=$tmp
19023
19024 # Set up the scripts for CONFIG_FILES section.
19025 # No need to generate them if there are no CONFIG_FILES.
19026 # This happens for instance with `./config.status config.h'.
19027 if test -n "$CONFIG_FILES"; then
19028
19029
19030 ac_cr=`echo X | tr X '\015'`
19031 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19032 # But we know of no other shell where ac_cr would be empty at this
19033 # point, so we can use a bashism as a fallback.
19034 if test "x$ac_cr" = x; then
19035   eval ac_cr=\$\'\\r\'
19036 fi
19037 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19038 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19039   ac_cs_awk_cr='\\r'
19040 else
19041   ac_cs_awk_cr=$ac_cr
19042 fi
19043
19044 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19045 _ACEOF
19046
19047
19048 {
19049   echo "cat >conf$$subs.awk <<_ACEOF" &&
19050   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19051   echo "_ACEOF"
19052 } >conf$$subs.sh ||
19053   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19054 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19055 ac_delim='%!_!# '
19056 for ac_last_try in false false false false false :; do
19057   . ./conf$$subs.sh ||
19058     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19059
19060   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19061   if test $ac_delim_n = $ac_delim_num; then
19062     break
19063   elif $ac_last_try; then
19064     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19065   else
19066     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19067   fi
19068 done
19069 rm -f conf$$subs.sh
19070
19071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19072 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19073 _ACEOF
19074 sed -n '
19075 h
19076 s/^/S["/; s/!.*/"]=/
19077 p
19078 g
19079 s/^[^!]*!//
19080 :repl
19081 t repl
19082 s/'"$ac_delim"'$//
19083 t delim
19084 :nl
19085 h
19086 s/\(.\{148\}\)..*/\1/
19087 t more1
19088 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19089 p
19090 n
19091 b repl
19092 :more1
19093 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19094 p
19095 g
19096 s/.\{148\}//
19097 t nl
19098 :delim
19099 h
19100 s/\(.\{148\}\)..*/\1/
19101 t more2
19102 s/["\\]/\\&/g; s/^/"/; s/$/"/
19103 p
19104 b
19105 :more2
19106 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19107 p
19108 g
19109 s/.\{148\}//
19110 t delim
19111 ' <conf$$subs.awk | sed '
19112 /^[^""]/{
19113   N
19114   s/\n//
19115 }
19116 ' >>$CONFIG_STATUS || ac_write_fail=1
19117 rm -f conf$$subs.awk
19118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19119 _ACAWK
19120 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19121   for (key in S) S_is_set[key] = 1
19122   FS = "\a"
19123
19124 }
19125 {
19126   line = $ 0
19127   nfields = split(line, field, "@")
19128   substed = 0
19129   len = length(field[1])
19130   for (i = 2; i < nfields; i++) {
19131     key = field[i]
19132     keylen = length(key)
19133     if (S_is_set[key]) {
19134       value = S[key]
19135       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19136       len += length(value) + length(field[++i])
19137       substed = 1
19138     } else
19139       len += 1 + keylen
19140   }
19141
19142   print line
19143 }
19144
19145 _ACAWK
19146 _ACEOF
19147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19148 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19149   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19150 else
19151   cat
19152 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19153   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19154 _ACEOF
19155
19156 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19157 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19158 # trailing colons and then remove the whole line if VPATH becomes empty
19159 # (actually we leave an empty line to preserve line numbers).
19160 if test "x$srcdir" = x.; then
19161   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
19162 h
19163 s///
19164 s/^/:/
19165 s/[      ]*$/:/
19166 s/:\$(srcdir):/:/g
19167 s/:\${srcdir}:/:/g
19168 s/:@srcdir@:/:/g
19169 s/^:*//
19170 s/:*$//
19171 x
19172 s/\(=[   ]*\).*/\1/
19173 G
19174 s/\n//
19175 s/^[^=]*=[       ]*$//
19176 }'
19177 fi
19178
19179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19180 fi # test -n "$CONFIG_FILES"
19181
19182 # Set up the scripts for CONFIG_HEADERS section.
19183 # No need to generate them if there are no CONFIG_HEADERS.
19184 # This happens for instance with `./config.status Makefile'.
19185 if test -n "$CONFIG_HEADERS"; then
19186 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19187 BEGIN {
19188 _ACEOF
19189
19190 # Transform confdefs.h into an awk script `defines.awk', embedded as
19191 # here-document in config.status, that substitutes the proper values into
19192 # config.h.in to produce config.h.
19193
19194 # Create a delimiter string that does not exist in confdefs.h, to ease
19195 # handling of long lines.
19196 ac_delim='%!_!# '
19197 for ac_last_try in false false :; do
19198   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19199   if test -z "$ac_tt"; then
19200     break
19201   elif $ac_last_try; then
19202     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19203   else
19204     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19205   fi
19206 done
19207
19208 # For the awk script, D is an array of macro values keyed by name,
19209 # likewise P contains macro parameters if any.  Preserve backslash
19210 # newline sequences.
19211
19212 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19213 sed -n '
19214 s/.\{148\}/&'"$ac_delim"'/g
19215 t rset
19216 :rset
19217 s/^[     ]*#[    ]*define[       ][      ]*/ /
19218 t def
19219 d
19220 :def
19221 s/\\$//
19222 t bsnl
19223 s/["\\]/\\&/g
19224 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19225 D["\1"]=" \3"/p
19226 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19227 d
19228 :bsnl
19229 s/["\\]/\\&/g
19230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19231 D["\1"]=" \3\\\\\\n"\\/p
19232 t cont
19233 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19234 t cont
19235 d
19236 :cont
19237 n
19238 s/.\{148\}/&'"$ac_delim"'/g
19239 t clear
19240 :clear
19241 s/\\$//
19242 t bsnlc
19243 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19244 d
19245 :bsnlc
19246 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19247 b cont
19248 ' <confdefs.h | sed '
19249 s/'"$ac_delim"'/"\\\
19250 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19251
19252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19253   for (key in D) D_is_set[key] = 1
19254   FS = "\a"
19255 }
19256 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19257   line = \$ 0
19258   split(line, arg, " ")
19259   if (arg[1] == "#") {
19260     defundef = arg[2]
19261     mac1 = arg[3]
19262   } else {
19263     defundef = substr(arg[1], 2)
19264     mac1 = arg[2]
19265   }
19266   split(mac1, mac2, "(") #)
19267   macro = mac2[1]
19268   prefix = substr(line, 1, index(line, defundef) - 1)
19269   if (D_is_set[macro]) {
19270     # Preserve the white space surrounding the "#".
19271     print prefix "define", macro P[macro] D[macro]
19272     next
19273   } else {
19274     # Replace #undef with comments.  This is necessary, for example,
19275     # in the case of _POSIX_SOURCE, which is predefined and required
19276     # on some systems where configure will not decide to define it.
19277     if (defundef == "undef") {
19278       print "/*", prefix defundef, macro, "*/"
19279       next
19280     }
19281   }
19282 }
19283 { print }
19284 _ACAWK
19285 _ACEOF
19286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19287   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19288 fi # test -n "$CONFIG_HEADERS"
19289
19290
19291 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19292 shift
19293 for ac_tag
19294 do
19295   case $ac_tag in
19296   :[FHLC]) ac_mode=$ac_tag; continue;;
19297   esac
19298   case $ac_mode$ac_tag in
19299   :[FHL]*:*);;
19300   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19301   :[FH]-) ac_tag=-:-;;
19302   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19303   esac
19304   ac_save_IFS=$IFS
19305   IFS=:
19306   set x $ac_tag
19307   IFS=$ac_save_IFS
19308   shift
19309   ac_file=$1
19310   shift
19311
19312   case $ac_mode in
19313   :L) ac_source=$1;;
19314   :[FH])
19315     ac_file_inputs=
19316     for ac_f
19317     do
19318       case $ac_f in
19319       -) ac_f="$ac_tmp/stdin";;
19320       *) # Look for the file first in the build tree, then in the source tree
19321          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19322          # because $ac_f cannot contain `:'.
19323          test -f "$ac_f" ||
19324            case $ac_f in
19325            [\\/$]*) false;;
19326            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19327            esac ||
19328            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19329       esac
19330       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19331       as_fn_append ac_file_inputs " '$ac_f'"
19332     done
19333
19334     # Let's still pretend it is `configure' which instantiates (i.e., don't
19335     # use $as_me), people would be surprised to read:
19336     #    /* config.h.  Generated by config.status.  */
19337     configure_input='Generated from '`
19338           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19339         `' by configure.'
19340     if test x"$ac_file" != x-; then
19341       configure_input="$ac_file.  $configure_input"
19342       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19343 $as_echo "$as_me: creating $ac_file" >&6;}
19344     fi
19345     # Neutralize special characters interpreted by sed in replacement strings.
19346     case $configure_input in #(
19347     *\&* | *\|* | *\\* )
19348        ac_sed_conf_input=`$as_echo "$configure_input" |
19349        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19350     *) ac_sed_conf_input=$configure_input;;
19351     esac
19352
19353     case $ac_tag in
19354     *:-:* | *:-) cat >"$ac_tmp/stdin" \
19355       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19356     esac
19357     ;;
19358   esac
19359
19360   ac_dir=`$as_dirname -- "$ac_file" ||
19361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19362          X"$ac_file" : 'X\(//\)[^/]' \| \
19363          X"$ac_file" : 'X\(//\)$' \| \
19364          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19365 $as_echo X"$ac_file" |
19366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19367             s//\1/
19368             q
19369           }
19370           /^X\(\/\/\)[^/].*/{
19371             s//\1/
19372             q
19373           }
19374           /^X\(\/\/\)$/{
19375             s//\1/
19376             q
19377           }
19378           /^X\(\/\).*/{
19379             s//\1/
19380             q
19381           }
19382           s/.*/./; q'`
19383   as_dir="$ac_dir"; as_fn_mkdir_p
19384   ac_builddir=.
19385
19386 case "$ac_dir" in
19387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19388 *)
19389   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19390   # A ".." for each directory in $ac_dir_suffix.
19391   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19392   case $ac_top_builddir_sub in
19393   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19394   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19395   esac ;;
19396 esac
19397 ac_abs_top_builddir=$ac_pwd
19398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19399 # for backward compatibility:
19400 ac_top_builddir=$ac_top_build_prefix
19401
19402 case $srcdir in
19403   .)  # We are building in place.
19404     ac_srcdir=.
19405     ac_top_srcdir=$ac_top_builddir_sub
19406     ac_abs_top_srcdir=$ac_pwd ;;
19407   [\\/]* | ?:[\\/]* )  # Absolute name.
19408     ac_srcdir=$srcdir$ac_dir_suffix;
19409     ac_top_srcdir=$srcdir
19410     ac_abs_top_srcdir=$srcdir ;;
19411   *) # Relative name.
19412     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19413     ac_top_srcdir=$ac_top_build_prefix$srcdir
19414     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19415 esac
19416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19417
19418
19419   case $ac_mode in
19420   :F)
19421   #
19422   # CONFIG_FILE
19423   #
19424
19425   case $INSTALL in
19426   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19427   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19428   esac
19429   ac_MKDIR_P=$MKDIR_P
19430   case $MKDIR_P in
19431   [\\/$]* | ?:[\\/]* ) ;;
19432   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19433   esac
19434 _ACEOF
19435
19436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19437 # If the template does not know about datarootdir, expand it.
19438 # FIXME: This hack should be removed a few years after 2.60.
19439 ac_datarootdir_hack=; ac_datarootdir_seen=
19440 ac_sed_dataroot='
19441 /datarootdir/ {
19442   p
19443   q
19444 }
19445 /@datadir@/p
19446 /@docdir@/p
19447 /@infodir@/p
19448 /@localedir@/p
19449 /@mandir@/p'
19450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19451 *datarootdir*) ac_datarootdir_seen=yes;;
19452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19455 _ACEOF
19456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19457   ac_datarootdir_hack='
19458   s&@datadir@&$datadir&g
19459   s&@docdir@&$docdir&g
19460   s&@infodir@&$infodir&g
19461   s&@localedir@&$localedir&g
19462   s&@mandir@&$mandir&g
19463   s&\\\${datarootdir}&$datarootdir&g' ;;
19464 esac
19465 _ACEOF
19466
19467 # Neutralize VPATH when `$srcdir' = `.'.
19468 # Shell code in configure.ac might set extrasub.
19469 # FIXME: do we really want to maintain this feature?
19470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19471 ac_sed_extra="$ac_vpsub
19472 $extrasub
19473 _ACEOF
19474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19475 :t
19476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19477 s|@configure_input@|$ac_sed_conf_input|;t t
19478 s&@top_builddir@&$ac_top_builddir_sub&;t t
19479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19480 s&@srcdir@&$ac_srcdir&;t t
19481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19482 s&@top_srcdir@&$ac_top_srcdir&;t t
19483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19484 s&@builddir@&$ac_builddir&;t t
19485 s&@abs_builddir@&$ac_abs_builddir&;t t
19486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19487 s&@INSTALL@&$ac_INSTALL&;t t
19488 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19489 $ac_datarootdir_hack
19490 "
19491 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19492   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19493
19494 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19495   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19496   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19497       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19498   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19499 which seems to be undefined.  Please make sure it is defined" >&5
19500 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19501 which seems to be undefined.  Please make sure it is defined" >&2;}
19502
19503   rm -f "$ac_tmp/stdin"
19504   case $ac_file in
19505   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19506   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19507   esac \
19508   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19509  ;;
19510   :H)
19511   #
19512   # CONFIG_HEADER
19513   #
19514   if test x"$ac_file" != x-; then
19515     {
19516       $as_echo "/* $configure_input  */" \
19517       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19518     } >"$ac_tmp/config.h" \
19519       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19520     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19521       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19522 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19523     else
19524       rm -f "$ac_file"
19525       mv "$ac_tmp/config.h" "$ac_file" \
19526         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19527     fi
19528   else
19529     $as_echo "/* $configure_input  */" \
19530       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19531       || as_fn_error $? "could not create -" "$LINENO" 5
19532   fi
19533 # Compute "$ac_file"'s index in $config_headers.
19534 _am_arg="$ac_file"
19535 _am_stamp_count=1
19536 for _am_header in $config_headers :; do
19537   case $_am_header in
19538     $_am_arg | $_am_arg:* )
19539       break ;;
19540     * )
19541       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19542   esac
19543 done
19544 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19545 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19546          X"$_am_arg" : 'X\(//\)[^/]' \| \
19547          X"$_am_arg" : 'X\(//\)$' \| \
19548          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19549 $as_echo X"$_am_arg" |
19550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19551             s//\1/
19552             q
19553           }
19554           /^X\(\/\/\)[^/].*/{
19555             s//\1/
19556             q
19557           }
19558           /^X\(\/\/\)$/{
19559             s//\1/
19560             q
19561           }
19562           /^X\(\/\).*/{
19563             s//\1/
19564             q
19565           }
19566           s/.*/./; q'`/stamp-h$_am_stamp_count
19567  ;;
19568
19569   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19570 $as_echo "$as_me: executing $ac_file commands" >&6;}
19571  ;;
19572   esac
19573
19574
19575   case $ac_file$ac_mode in
19576     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19577   # Older Autoconf quotes --file arguments for eval, but not when files
19578   # are listed without --file.  Let's play safe and only enable the eval
19579   # if we detect the quoting.
19580   case $CONFIG_FILES in
19581   *\'*) eval set x "$CONFIG_FILES" ;;
19582   *)   set x $CONFIG_FILES ;;
19583   esac
19584   shift
19585   for mf
19586   do
19587     # Strip MF so we end up with the name of the file.
19588     mf=`echo "$mf" | sed -e 's/:.*$//'`
19589     # Check whether this is an Automake generated Makefile or not.
19590     # We used to match only the files named 'Makefile.in', but
19591     # some people rename them; so instead we look at the file content.
19592     # Grep'ing the first line is not enough: some people post-process
19593     # each Makefile.in and add a new line on top of each file to say so.
19594     # Grep'ing the whole file is not good either: AIX grep has a line
19595     # limit of 2048, but all sed's we know have understand at least 4000.
19596     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19597       dirpart=`$as_dirname -- "$mf" ||
19598 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19599          X"$mf" : 'X\(//\)[^/]' \| \
19600          X"$mf" : 'X\(//\)$' \| \
19601          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19602 $as_echo X"$mf" |
19603     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19604             s//\1/
19605             q
19606           }
19607           /^X\(\/\/\)[^/].*/{
19608             s//\1/
19609             q
19610           }
19611           /^X\(\/\/\)$/{
19612             s//\1/
19613             q
19614           }
19615           /^X\(\/\).*/{
19616             s//\1/
19617             q
19618           }
19619           s/.*/./; q'`
19620     else
19621       continue
19622     fi
19623     # Extract the definition of DEPDIR, am__include, and am__quote
19624     # from the Makefile without running 'make'.
19625     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19626     test -z "$DEPDIR" && continue
19627     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19628     test -z "$am__include" && continue
19629     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19630     # Find all dependency output files, they are included files with
19631     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19632     # simplest approach to changing $(DEPDIR) to its actual value in the
19633     # expansion.
19634     for file in `sed -n "
19635       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19636          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19637       # Make sure the directory exists.
19638       test -f "$dirpart/$file" && continue
19639       fdir=`$as_dirname -- "$file" ||
19640 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19641          X"$file" : 'X\(//\)[^/]' \| \
19642          X"$file" : 'X\(//\)$' \| \
19643          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19644 $as_echo X"$file" |
19645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19646             s//\1/
19647             q
19648           }
19649           /^X\(\/\/\)[^/].*/{
19650             s//\1/
19651             q
19652           }
19653           /^X\(\/\/\)$/{
19654             s//\1/
19655             q
19656           }
19657           /^X\(\/\).*/{
19658             s//\1/
19659             q
19660           }
19661           s/.*/./; q'`
19662       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19663       # echo "creating $dirpart/$file"
19664       echo '# dummy' > "$dirpart/$file"
19665     done
19666   done
19667 }
19668  ;;
19669     "libtool":C)
19670
19671     # See if we are running on zsh, and set the options which allow our
19672     # commands through without removal of \ escapes.
19673     if test -n "${ZSH_VERSION+set}" ; then
19674       setopt NO_GLOB_SUBST
19675     fi
19676
19677     cfgfile="${ofile}T"
19678     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19679     $RM "$cfgfile"
19680
19681     cat <<_LT_EOF >> "$cfgfile"
19682 #! $SHELL
19683
19684 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19685 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19686 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19687 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19688 #
19689 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19690 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19691 #                 Foundation, Inc.
19692 #   Written by Gordon Matzigkeit, 1996
19693 #
19694 #   This file is part of GNU Libtool.
19695 #
19696 # GNU Libtool is free software; you can redistribute it and/or
19697 # modify it under the terms of the GNU General Public License as
19698 # published by the Free Software Foundation; either version 2 of
19699 # the License, or (at your option) any later version.
19700 #
19701 # As a special exception to the GNU General Public License,
19702 # if you distribute this file as part of a program or library that
19703 # is built using GNU Libtool, you may include this file under the
19704 # same distribution terms that you use for the rest of that program.
19705 #
19706 # GNU Libtool is distributed in the hope that it will be useful,
19707 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19708 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19709 # GNU General Public License for more details.
19710 #
19711 # You should have received a copy of the GNU General Public License
19712 # along with GNU Libtool; see the file COPYING.  If not, a copy
19713 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19714 # obtained by writing to the Free Software Foundation, Inc.,
19715 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19716
19717
19718 # The names of the tagged configurations supported by this script.
19719 available_tags="CXX "
19720
19721 # ### BEGIN LIBTOOL CONFIG
19722
19723 # Whether or not to build shared libraries.
19724 build_libtool_libs=$enable_shared
19725
19726 # Assembler program.
19727 AS=$lt_AS
19728
19729 # DLL creation program.
19730 DLLTOOL=$lt_DLLTOOL
19731
19732 # Object dumper program.
19733 OBJDUMP=$lt_OBJDUMP
19734
19735 # Which release of libtool.m4 was used?
19736 macro_version=$macro_version
19737 macro_revision=$macro_revision
19738
19739 # Whether or not to build static libraries.
19740 build_old_libs=$enable_static
19741
19742 # What type of objects to build.
19743 pic_mode=$pic_mode
19744
19745 # Whether or not to optimize for fast installation.
19746 fast_install=$enable_fast_install
19747
19748 # Shell to use when invoking shell scripts.
19749 SHELL=$lt_SHELL
19750
19751 # An echo program that protects backslashes.
19752 ECHO=$lt_ECHO
19753
19754 # The PATH separator for the build system.
19755 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19756
19757 # The host system.
19758 host_alias=$host_alias
19759 host=$host
19760 host_os=$host_os
19761
19762 # The build system.
19763 build_alias=$build_alias
19764 build=$build
19765 build_os=$build_os
19766
19767 # A sed program that does not truncate output.
19768 SED=$lt_SED
19769
19770 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19771 Xsed="\$SED -e 1s/^X//"
19772
19773 # A grep program that handles long lines.
19774 GREP=$lt_GREP
19775
19776 # An ERE matcher.
19777 EGREP=$lt_EGREP
19778
19779 # A literal string matcher.
19780 FGREP=$lt_FGREP
19781
19782 # A BSD- or MS-compatible name lister.
19783 NM=$lt_NM
19784
19785 # Whether we need soft or hard links.
19786 LN_S=$lt_LN_S
19787
19788 # What is the maximum length of a command?
19789 max_cmd_len=$max_cmd_len
19790
19791 # Object file suffix (normally "o").
19792 objext=$ac_objext
19793
19794 # Executable file suffix (normally "").
19795 exeext=$exeext
19796
19797 # whether the shell understands "unset".
19798 lt_unset=$lt_unset
19799
19800 # turn spaces into newlines.
19801 SP2NL=$lt_lt_SP2NL
19802
19803 # turn newlines into spaces.
19804 NL2SP=$lt_lt_NL2SP
19805
19806 # convert \$build file names to \$host format.
19807 to_host_file_cmd=$lt_cv_to_host_file_cmd
19808
19809 # convert \$build files to toolchain format.
19810 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19811
19812 # Method to check whether dependent libraries are shared objects.
19813 deplibs_check_method=$lt_deplibs_check_method
19814
19815 # Command to use when deplibs_check_method = "file_magic".
19816 file_magic_cmd=$lt_file_magic_cmd
19817
19818 # How to find potential files when deplibs_check_method = "file_magic".
19819 file_magic_glob=$lt_file_magic_glob
19820
19821 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19822 want_nocaseglob=$lt_want_nocaseglob
19823
19824 # Command to associate shared and link libraries.
19825 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19826
19827 # The archiver.
19828 AR=$lt_AR
19829
19830 # Flags to create an archive.
19831 AR_FLAGS=$lt_AR_FLAGS
19832
19833 # How to feed a file listing to the archiver.
19834 archiver_list_spec=$lt_archiver_list_spec
19835
19836 # A symbol stripping program.
19837 STRIP=$lt_STRIP
19838
19839 # Commands used to install an old-style archive.
19840 RANLIB=$lt_RANLIB
19841 old_postinstall_cmds=$lt_old_postinstall_cmds
19842 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19843
19844 # Whether to use a lock for old archive extraction.
19845 lock_old_archive_extraction=$lock_old_archive_extraction
19846
19847 # A C compiler.
19848 LTCC=$lt_CC
19849
19850 # LTCC compiler flags.
19851 LTCFLAGS=$lt_CFLAGS
19852
19853 # Take the output of nm and produce a listing of raw symbols and C names.
19854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19855
19856 # Transform the output of nm in a proper C declaration.
19857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19858
19859 # Transform the output of nm in a C name address pair.
19860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19861
19862 # Transform the output of nm in a C name address pair when lib prefix is needed.
19863 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19864
19865 # Specify filename containing input files for \$NM.
19866 nm_file_list_spec=$lt_nm_file_list_spec
19867
19868 # The root where to search for dependent libraries,and in which our libraries should be installed.
19869 lt_sysroot=$lt_sysroot
19870
19871 # The name of the directory that contains temporary libtool files.
19872 objdir=$objdir
19873
19874 # Used to examine libraries when file_magic_cmd begins with "file".
19875 MAGIC_CMD=$MAGIC_CMD
19876
19877 # Must we lock files when doing compilation?
19878 need_locks=$lt_need_locks
19879
19880 # Manifest tool.
19881 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19882
19883 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19884 DSYMUTIL=$lt_DSYMUTIL
19885
19886 # Tool to change global to local symbols on Mac OS X.
19887 NMEDIT=$lt_NMEDIT
19888
19889 # Tool to manipulate fat objects and archives on Mac OS X.
19890 LIPO=$lt_LIPO
19891
19892 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19893 OTOOL=$lt_OTOOL
19894
19895 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19896 OTOOL64=$lt_OTOOL64
19897
19898 # Old archive suffix (normally "a").
19899 libext=$libext
19900
19901 # Shared library suffix (normally ".so").
19902 shrext_cmds=$lt_shrext_cmds
19903
19904 # The commands to extract the exported symbol list from a shared archive.
19905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19906
19907 # Variables whose values should be saved in libtool wrapper scripts and
19908 # restored at link time.
19909 variables_saved_for_relink=$lt_variables_saved_for_relink
19910
19911 # Do we need the "lib" prefix for modules?
19912 need_lib_prefix=$need_lib_prefix
19913
19914 # Do we need a version for libraries?
19915 need_version=$need_version
19916
19917 # Library versioning type.
19918 version_type=$version_type
19919
19920 # Shared library runtime path variable.
19921 runpath_var=$runpath_var
19922
19923 # Shared library path variable.
19924 shlibpath_var=$shlibpath_var
19925
19926 # Is shlibpath searched before the hard-coded library search path?
19927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19928
19929 # Format of library name prefix.
19930 libname_spec=$lt_libname_spec
19931
19932 # List of archive names.  First name is the real one, the rest are links.
19933 # The last name is the one that the linker finds with -lNAME
19934 library_names_spec=$lt_library_names_spec
19935
19936 # The coded name of the library, if different from the real name.
19937 soname_spec=$lt_soname_spec
19938
19939 # Permission mode override for installation of shared libraries.
19940 install_override_mode=$lt_install_override_mode
19941
19942 # Command to use after installation of a shared archive.
19943 postinstall_cmds=$lt_postinstall_cmds
19944
19945 # Command to use after uninstallation of a shared archive.
19946 postuninstall_cmds=$lt_postuninstall_cmds
19947
19948 # Commands used to finish a libtool library installation in a directory.
19949 finish_cmds=$lt_finish_cmds
19950
19951 # As "finish_cmds", except a single script fragment to be evaled but
19952 # not shown.
19953 finish_eval=$lt_finish_eval
19954
19955 # Whether we should hardcode library paths into libraries.
19956 hardcode_into_libs=$hardcode_into_libs
19957
19958 # Compile-time system search path for libraries.
19959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19960
19961 # Run-time system search path for libraries.
19962 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19963
19964 # Whether dlopen is supported.
19965 dlopen_support=$enable_dlopen
19966
19967 # Whether dlopen of programs is supported.
19968 dlopen_self=$enable_dlopen_self
19969
19970 # Whether dlopen of statically linked programs is supported.
19971 dlopen_self_static=$enable_dlopen_self_static
19972
19973 # Commands to strip libraries.
19974 old_striplib=$lt_old_striplib
19975 striplib=$lt_striplib
19976
19977
19978 # The linker used to build libraries.
19979 LD=$lt_LD
19980
19981 # How to create reloadable object files.
19982 reload_flag=$lt_reload_flag
19983 reload_cmds=$lt_reload_cmds
19984
19985 # Commands used to build an old-style archive.
19986 old_archive_cmds=$lt_old_archive_cmds
19987
19988 # A language specific compiler.
19989 CC=$lt_compiler
19990
19991 # Is the compiler the GNU compiler?
19992 with_gcc=$GCC
19993
19994 # Compiler flag to turn off builtin functions.
19995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19996
19997 # Additional compiler flags for building library objects.
19998 pic_flag=$lt_lt_prog_compiler_pic
19999
20000 # How to pass a linker flag through the compiler.
20001 wl=$lt_lt_prog_compiler_wl
20002
20003 # Compiler flag to prevent dynamic linking.
20004 link_static_flag=$lt_lt_prog_compiler_static
20005
20006 # Does compiler simultaneously support -c and -o options?
20007 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20008
20009 # Whether or not to add -lc for building shared libraries.
20010 build_libtool_need_lc=$archive_cmds_need_lc
20011
20012 # Whether or not to disallow shared libs when runtime libs are static.
20013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20014
20015 # Compiler flag to allow reflexive dlopens.
20016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20017
20018 # Compiler flag to generate shared objects directly from archives.
20019 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20020
20021 # Whether the compiler copes with passing no objects directly.
20022 compiler_needs_object=$lt_compiler_needs_object
20023
20024 # Create an old-style archive from a shared archive.
20025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20026
20027 # Create a temporary old-style archive to link instead of a shared archive.
20028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20029
20030 # Commands used to build a shared archive.
20031 archive_cmds=$lt_archive_cmds
20032 archive_expsym_cmds=$lt_archive_expsym_cmds
20033
20034 # Commands used to build a loadable module if different from building
20035 # a shared archive.
20036 module_cmds=$lt_module_cmds
20037 module_expsym_cmds=$lt_module_expsym_cmds
20038
20039 # Whether we are building with GNU ld or not.
20040 with_gnu_ld=$lt_with_gnu_ld
20041
20042 # Flag that allows shared libraries with undefined symbols to be built.
20043 allow_undefined_flag=$lt_allow_undefined_flag
20044
20045 # Flag that enforces no undefined symbols.
20046 no_undefined_flag=$lt_no_undefined_flag
20047
20048 # Flag to hardcode \$libdir into a binary during linking.
20049 # This must work even if \$libdir does not exist
20050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20051
20052 # Whether we need a single "-rpath" flag with a separated argument.
20053 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20054
20055 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20056 # DIR into the resulting binary.
20057 hardcode_direct=$hardcode_direct
20058
20059 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20060 # DIR into the resulting binary and the resulting library dependency is
20061 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20062 # library is relocated.
20063 hardcode_direct_absolute=$hardcode_direct_absolute
20064
20065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20066 # into the resulting binary.
20067 hardcode_minus_L=$hardcode_minus_L
20068
20069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20070 # into the resulting binary.
20071 hardcode_shlibpath_var=$hardcode_shlibpath_var
20072
20073 # Set to "yes" if building a shared library automatically hardcodes DIR
20074 # into the library and all subsequent libraries and executables linked
20075 # against it.
20076 hardcode_automatic=$hardcode_automatic
20077
20078 # Set to yes if linker adds runtime paths of dependent libraries
20079 # to runtime path list.
20080 inherit_rpath=$inherit_rpath
20081
20082 # Whether libtool must link a program against all its dependency libraries.
20083 link_all_deplibs=$link_all_deplibs
20084
20085 # Set to "yes" if exported symbols are required.
20086 always_export_symbols=$always_export_symbols
20087
20088 # The commands to list exported symbols.
20089 export_symbols_cmds=$lt_export_symbols_cmds
20090
20091 # Symbols that should not be listed in the preloaded symbols.
20092 exclude_expsyms=$lt_exclude_expsyms
20093
20094 # Symbols that must always be exported.
20095 include_expsyms=$lt_include_expsyms
20096
20097 # Commands necessary for linking programs (against libraries) with templates.
20098 prelink_cmds=$lt_prelink_cmds
20099
20100 # Commands necessary for finishing linking programs.
20101 postlink_cmds=$lt_postlink_cmds
20102
20103 # Specify filename containing input files.
20104 file_list_spec=$lt_file_list_spec
20105
20106 # How to hardcode a shared library path into an executable.
20107 hardcode_action=$hardcode_action
20108
20109 # The directories searched by this compiler when creating a shared library.
20110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20111
20112 # Dependencies to place before and after the objects being linked to
20113 # create a shared library.
20114 predep_objects=$lt_predep_objects
20115 postdep_objects=$lt_postdep_objects
20116 predeps=$lt_predeps
20117 postdeps=$lt_postdeps
20118
20119 # The library search path used internally by the compiler when linking
20120 # a shared library.
20121 compiler_lib_search_path=$lt_compiler_lib_search_path
20122
20123 # ### END LIBTOOL CONFIG
20124
20125 _LT_EOF
20126
20127   case $host_os in
20128   aix3*)
20129     cat <<\_LT_EOF >> "$cfgfile"
20130 # AIX sometimes has problems with the GCC collect2 program.  For some
20131 # reason, if we set the COLLECT_NAMES environment variable, the problems
20132 # vanish in a puff of smoke.
20133 if test "X${COLLECT_NAMES+set}" != Xset; then
20134   COLLECT_NAMES=
20135   export COLLECT_NAMES
20136 fi
20137 _LT_EOF
20138     ;;
20139   esac
20140
20141
20142 ltmain="$ac_aux_dir/ltmain.sh"
20143
20144
20145   # We use sed instead of cat because bash on DJGPP gets confused if
20146   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20147   # text mode, it properly converts lines to CR/LF.  This bash problem
20148   # is reportedly fixed, but why not run on old versions too?
20149   sed '$q' "$ltmain" >> "$cfgfile" \
20150      || (rm -f "$cfgfile"; exit 1)
20151
20152   if test x"$xsi_shell" = xyes; then
20153   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20154 func_dirname ()\
20155 {\
20156 \    case ${1} in\
20157 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20158 \      *  ) func_dirname_result="${3}" ;;\
20159 \    esac\
20160 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20161   && mv -f "$cfgfile.tmp" "$cfgfile" \
20162     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20163 test 0 -eq $? || _lt_function_replace_fail=:
20164
20165
20166   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20167 func_basename ()\
20168 {\
20169 \    func_basename_result="${1##*/}"\
20170 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20171   && mv -f "$cfgfile.tmp" "$cfgfile" \
20172     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20173 test 0 -eq $? || _lt_function_replace_fail=:
20174
20175
20176   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20177 func_dirname_and_basename ()\
20178 {\
20179 \    case ${1} in\
20180 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20181 \      *  ) func_dirname_result="${3}" ;;\
20182 \    esac\
20183 \    func_basename_result="${1##*/}"\
20184 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20185   && mv -f "$cfgfile.tmp" "$cfgfile" \
20186     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20187 test 0 -eq $? || _lt_function_replace_fail=:
20188
20189
20190   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20191 func_stripname ()\
20192 {\
20193 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20194 \    # positional parameters, so assign one to ordinary parameter first.\
20195 \    func_stripname_result=${3}\
20196 \    func_stripname_result=${func_stripname_result#"${1}"}\
20197 \    func_stripname_result=${func_stripname_result%"${2}"}\
20198 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20199   && mv -f "$cfgfile.tmp" "$cfgfile" \
20200     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20201 test 0 -eq $? || _lt_function_replace_fail=:
20202
20203
20204   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20205 func_split_long_opt ()\
20206 {\
20207 \    func_split_long_opt_name=${1%%=*}\
20208 \    func_split_long_opt_arg=${1#*=}\
20209 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20210   && mv -f "$cfgfile.tmp" "$cfgfile" \
20211     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20212 test 0 -eq $? || _lt_function_replace_fail=:
20213
20214
20215   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20216 func_split_short_opt ()\
20217 {\
20218 \    func_split_short_opt_arg=${1#??}\
20219 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20220 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20221   && mv -f "$cfgfile.tmp" "$cfgfile" \
20222     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20223 test 0 -eq $? || _lt_function_replace_fail=:
20224
20225
20226   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20227 func_lo2o ()\
20228 {\
20229 \    case ${1} in\
20230 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20231 \      *)    func_lo2o_result=${1} ;;\
20232 \    esac\
20233 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20234   && mv -f "$cfgfile.tmp" "$cfgfile" \
20235     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20236 test 0 -eq $? || _lt_function_replace_fail=:
20237
20238
20239   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20240 func_xform ()\
20241 {\
20242     func_xform_result=${1%.*}.lo\
20243 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20244   && mv -f "$cfgfile.tmp" "$cfgfile" \
20245     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20246 test 0 -eq $? || _lt_function_replace_fail=:
20247
20248
20249   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20250 func_arith ()\
20251 {\
20252     func_arith_result=$(( $* ))\
20253 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20254   && mv -f "$cfgfile.tmp" "$cfgfile" \
20255     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20256 test 0 -eq $? || _lt_function_replace_fail=:
20257
20258
20259   sed -e '/^func_len ()$/,/^} # func_len /c\
20260 func_len ()\
20261 {\
20262     func_len_result=${#1}\
20263 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20264   && mv -f "$cfgfile.tmp" "$cfgfile" \
20265     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20266 test 0 -eq $? || _lt_function_replace_fail=:
20267
20268 fi
20269
20270 if test x"$lt_shell_append" = xyes; then
20271   sed -e '/^func_append ()$/,/^} # func_append /c\
20272 func_append ()\
20273 {\
20274     eval "${1}+=\\${2}"\
20275 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20276   && mv -f "$cfgfile.tmp" "$cfgfile" \
20277     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20278 test 0 -eq $? || _lt_function_replace_fail=:
20279
20280
20281   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20282 func_append_quoted ()\
20283 {\
20284 \    func_quote_for_eval "${2}"\
20285 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20286 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20287   && mv -f "$cfgfile.tmp" "$cfgfile" \
20288     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20289 test 0 -eq $? || _lt_function_replace_fail=:
20290
20291
20292   # Save a `func_append' function call where possible by direct use of '+='
20293   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20294     && mv -f "$cfgfile.tmp" "$cfgfile" \
20295       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20296   test 0 -eq $? || _lt_function_replace_fail=:
20297 else
20298   # Save a `func_append' function call even when '+=' is not available
20299   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20300     && mv -f "$cfgfile.tmp" "$cfgfile" \
20301       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20302   test 0 -eq $? || _lt_function_replace_fail=:
20303 fi
20304
20305 if test x"$_lt_function_replace_fail" = x":"; then
20306   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20307 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20308 fi
20309
20310
20311    mv -f "$cfgfile" "$ofile" ||
20312     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20313   chmod +x "$ofile"
20314
20315
20316     cat <<_LT_EOF >> "$ofile"
20317
20318 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20319
20320 # The linker used to build libraries.
20321 LD=$lt_LD_CXX
20322
20323 # How to create reloadable object files.
20324 reload_flag=$lt_reload_flag_CXX
20325 reload_cmds=$lt_reload_cmds_CXX
20326
20327 # Commands used to build an old-style archive.
20328 old_archive_cmds=$lt_old_archive_cmds_CXX
20329
20330 # A language specific compiler.
20331 CC=$lt_compiler_CXX
20332
20333 # Is the compiler the GNU compiler?
20334 with_gcc=$GCC_CXX
20335
20336 # Compiler flag to turn off builtin functions.
20337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20338
20339 # Additional compiler flags for building library objects.
20340 pic_flag=$lt_lt_prog_compiler_pic_CXX
20341
20342 # How to pass a linker flag through the compiler.
20343 wl=$lt_lt_prog_compiler_wl_CXX
20344
20345 # Compiler flag to prevent dynamic linking.
20346 link_static_flag=$lt_lt_prog_compiler_static_CXX
20347
20348 # Does compiler simultaneously support -c and -o options?
20349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20350
20351 # Whether or not to add -lc for building shared libraries.
20352 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20353
20354 # Whether or not to disallow shared libs when runtime libs are static.
20355 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20356
20357 # Compiler flag to allow reflexive dlopens.
20358 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20359
20360 # Compiler flag to generate shared objects directly from archives.
20361 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20362
20363 # Whether the compiler copes with passing no objects directly.
20364 compiler_needs_object=$lt_compiler_needs_object_CXX
20365
20366 # Create an old-style archive from a shared archive.
20367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20368
20369 # Create a temporary old-style archive to link instead of a shared archive.
20370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20371
20372 # Commands used to build a shared archive.
20373 archive_cmds=$lt_archive_cmds_CXX
20374 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20375
20376 # Commands used to build a loadable module if different from building
20377 # a shared archive.
20378 module_cmds=$lt_module_cmds_CXX
20379 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20380
20381 # Whether we are building with GNU ld or not.
20382 with_gnu_ld=$lt_with_gnu_ld_CXX
20383
20384 # Flag that allows shared libraries with undefined symbols to be built.
20385 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20386
20387 # Flag that enforces no undefined symbols.
20388 no_undefined_flag=$lt_no_undefined_flag_CXX
20389
20390 # Flag to hardcode \$libdir into a binary during linking.
20391 # This must work even if \$libdir does not exist
20392 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20393
20394 # Whether we need a single "-rpath" flag with a separated argument.
20395 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20396
20397 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20398 # DIR into the resulting binary.
20399 hardcode_direct=$hardcode_direct_CXX
20400
20401 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20402 # DIR into the resulting binary and the resulting library dependency is
20403 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20404 # library is relocated.
20405 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20406
20407 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20408 # into the resulting binary.
20409 hardcode_minus_L=$hardcode_minus_L_CXX
20410
20411 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20412 # into the resulting binary.
20413 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20414
20415 # Set to "yes" if building a shared library automatically hardcodes DIR
20416 # into the library and all subsequent libraries and executables linked
20417 # against it.
20418 hardcode_automatic=$hardcode_automatic_CXX
20419
20420 # Set to yes if linker adds runtime paths of dependent libraries
20421 # to runtime path list.
20422 inherit_rpath=$inherit_rpath_CXX
20423
20424 # Whether libtool must link a program against all its dependency libraries.
20425 link_all_deplibs=$link_all_deplibs_CXX
20426
20427 # Set to "yes" if exported symbols are required.
20428 always_export_symbols=$always_export_symbols_CXX
20429
20430 # The commands to list exported symbols.
20431 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20432
20433 # Symbols that should not be listed in the preloaded symbols.
20434 exclude_expsyms=$lt_exclude_expsyms_CXX
20435
20436 # Symbols that must always be exported.
20437 include_expsyms=$lt_include_expsyms_CXX
20438
20439 # Commands necessary for linking programs (against libraries) with templates.
20440 prelink_cmds=$lt_prelink_cmds_CXX
20441
20442 # Commands necessary for finishing linking programs.
20443 postlink_cmds=$lt_postlink_cmds_CXX
20444
20445 # Specify filename containing input files.
20446 file_list_spec=$lt_file_list_spec_CXX
20447
20448 # How to hardcode a shared library path into an executable.
20449 hardcode_action=$hardcode_action_CXX
20450
20451 # The directories searched by this compiler when creating a shared library.
20452 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20453
20454 # Dependencies to place before and after the objects being linked to
20455 # create a shared library.
20456 predep_objects=$lt_predep_objects_CXX
20457 postdep_objects=$lt_postdep_objects_CXX
20458 predeps=$lt_predeps_CXX
20459 postdeps=$lt_postdeps_CXX
20460
20461 # The library search path used internally by the compiler when linking
20462 # a shared library.
20463 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20464
20465 # ### END LIBTOOL TAG CONFIG: CXX
20466 _LT_EOF
20467
20468  ;;
20469
20470   esac
20471 done # for ac_tag
20472
20473
20474 as_fn_exit 0
20475 _ACEOF
20476 ac_clean_files=$ac_clean_files_save
20477
20478 test $ac_write_fail = 0 ||
20479   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20480
20481
20482 # configure is writing to config.log, and then calls config.status.
20483 # config.status does its own redirection, appending to config.log.
20484 # Unfortunately, on DOS this fails, as config.log is still kept open
20485 # by configure, so config.status won't be able to write to it; its
20486 # output is simply discarded.  So we exec the FD to /dev/null,
20487 # effectively closing config.log, so it can be properly (re)opened and
20488 # appended to by config.status.  When coming back to configure, we
20489 # need to make the FD available again.
20490 if test "$no_create" != yes; then
20491   ac_cs_success=:
20492   ac_config_status_args=
20493   test "$silent" = yes &&
20494     ac_config_status_args="$ac_config_status_args --quiet"
20495   exec 5>/dev/null
20496   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20497   exec 5>>config.log
20498   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20499   # would make configure fail if this is the last instruction.
20500   $ac_cs_success || as_fn_exit 1
20501 fi
20502 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20503   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20504 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20505 fi
20506