ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/releases/1.0.0beta1/configure
Revision: 5059
Committed: Mon Dec 22 13:43:00 2014 UTC (10 years, 8 months ago) by michael
Original Path: hopm/trunk/configure
File size: 464179 byte(s)
Log Message:
- C99 is now mandatory. Removed snprintf.c and related code

File Contents

# User Rev Content
1 michael 5052 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 michael 5059 # Generated by GNU Autoconf 2.69 for bopm 3.1.3.
4 michael 5052 #
5 michael 5059 #
6     # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7     #
8     #
9 michael 5052 # This configure script is free software; the Free Software Foundation
10     # gives unlimited permission to copy, distribute and modify it.
11 michael 5059 ## -------------------- ##
12     ## M4sh Initialization. ##
13     ## -------------------- ##
14 michael 5052
15 michael 5059 # Be more Bourne compatible
16     DUALCASE=1; export DUALCASE # for MKS sh
17     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 michael 5052 emulate sh
19     NULLCMD=:
20 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 michael 5052 # is contrary to our usage. Disable this feature.
22     alias -g '${1+"$@"}'='"$@"'
23     setopt NO_GLOB_SUBST
24     else
25 michael 5059 case `(set -o) 2>/dev/null` in #(
26     *posix*) :
27     set -o posix ;; #(
28     *) :
29     ;;
30     esac
31 michael 5052 fi
32    
33    
34 michael 5059 as_nl='
35     '
36     export as_nl
37     # Printing a long string crashes Solaris 7 /usr/bin/printf.
38     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41     # Prefer a ksh shell builtin over an external printf program on Solaris,
42     # but without wasting forks for bash or zsh.
43     if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45     as_echo='print -r --'
46     as_echo_n='print -rn --'
47     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48     as_echo='printf %s\n'
49     as_echo_n='printf %s'
50     else
51     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54 michael 5052 else
55 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57     arg=$1;
58     case $arg in #(
59     *"$as_nl"*)
60     expr "X$arg" : "X\\(.*\\)$as_nl";
61     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62     esac;
63     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67 michael 5052 fi
68 michael 5059 export as_echo_body
69     as_echo='sh -c $as_echo_body as_echo'
70 michael 5052 fi
71    
72 michael 5059 # The user is always right.
73     if test "${PATH_SEPARATOR+set}" != set; then
74     PATH_SEPARATOR=:
75     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77     PATH_SEPARATOR=';'
78     }
79 michael 5052 fi
80    
81    
82     # IFS
83     # We need space, tab and new line, in precisely that order. Quoting is
84     # there to prevent editors from complaining about space-tab.
85     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86     # splitting by setting IFS to empty value.)
87     IFS=" "" $as_nl"
88    
89     # Find who we are. Look in the path if we contain no directory separator.
90 michael 5059 as_myself=
91     case $0 in #((
92 michael 5052 *[\\/]* ) as_myself=$0 ;;
93     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94     for as_dir in $PATH
95     do
96     IFS=$as_save_IFS
97     test -z "$as_dir" && as_dir=.
98 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99     done
100 michael 5052 IFS=$as_save_IFS
101    
102     ;;
103     esac
104     # We did not find ourselves, most probably we were run as `sh COMMAND'
105     # in which case we are not to be found in the path.
106     if test "x$as_myself" = x; then
107     as_myself=$0
108     fi
109     if test ! -f "$as_myself"; then
110 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111     exit 1
112 michael 5052 fi
113    
114 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
115     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116     # suppresses any "Segmentation fault" message there. '((' could
117     # trigger a bug in pdksh 5.2.14.
118     for as_var in BASH_ENV ENV MAIL MAILPATH
119     do eval test x\${$as_var+set} = xset \
120     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 michael 5052 done
122     PS1='$ '
123     PS2='> '
124     PS4='+ '
125    
126     # NLS nuisances.
127 michael 5059 LC_ALL=C
128     export LC_ALL
129     LANGUAGE=C
130     export LANGUAGE
131 michael 5052
132     # CDPATH.
133 michael 5059 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 michael 5052
135 michael 5059 # Use a proper internal environment variable to ensure we don't fall
136     # into an infinite loop, continuously re-executing ourselves.
137     if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140     # neutralization value for shells without unset; and this also
141     # works around shells that cannot unset nonexistent variables.
142     # Preserve -v and -x to the replacement shell.
143     BASH_ENV=/dev/null
144     ENV=/dev/null
145     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146     case $- in # ((((
147     *v*x* | *x*v* ) as_opts=-vx ;;
148     *v* ) as_opts=-v ;;
149     *x* ) as_opts=-x ;;
150     * ) as_opts= ;;
151     esac
152     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153     # Admittedly, this is quite paranoid, since all the known shells bail
154     # out after a failed `exec'.
155     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156     as_fn_exit 255
157     fi
158     # We don't want this to propagate to other subprocesses.
159     { _as_can_reexec=; unset _as_can_reexec;}
160 michael 5052 if test "x$CONFIG_SHELL" = x; then
161 michael 5059 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162     emulate sh
163     NULLCMD=:
164     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165     # is contrary to our usage. Disable this feature.
166     alias -g '\${1+\"\$@\"}'='\"\$@\"'
167     setopt NO_GLOB_SUBST
168 michael 5052 else
169 michael 5059 case \`(set -o) 2>/dev/null\` in #(
170     *posix*) :
171     set -o posix ;; #(
172     *) :
173     ;;
174     esac
175 michael 5052 fi
176 michael 5059 "
177     as_required="as_fn_return () { (exit \$1); }
178     as_fn_success () { as_fn_return 0; }
179     as_fn_failure () { as_fn_return 1; }
180     as_fn_ret_success () { return 0; }
181     as_fn_ret_failure () { return 1; }
182 michael 5052
183     exitcode=0
184 michael 5059 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189 michael 5052
190     else
191 michael 5059 exitcode=1; echo positional parameters were not saved.
192 michael 5052 fi
193 michael 5059 test x\$exitcode = x0 || exit 1
194     test -x / || exit 1"
195     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 michael 5052
200 michael 5059 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206     || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207     test \$(( 1 + 1 )) = 2 || exit 1"
208     if (eval "$as_required") 2>/dev/null; then :
209     as_have_required=yes
210 michael 5052 else
211 michael 5059 as_have_required=no
212 michael 5052 fi
213 michael 5059 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214 michael 5052
215     else
216 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217     as_found=false
218     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 michael 5052 do
220     IFS=$as_save_IFS
221     test -z "$as_dir" && as_dir=.
222 michael 5059 as_found=:
223     case $as_dir in #(
224 michael 5052 /*)
225     for as_base in sh bash ksh sh5; do
226 michael 5059 # Try only shells that exist, to save several forks.
227     as_shell=$as_dir/$as_base
228     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230     CONFIG_SHELL=$as_shell as_have_required=yes
231     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232     break 2
233     fi
234     fi
235 michael 5052 done;;
236     esac
237 michael 5059 as_found=false
238 michael 5052 done
239 michael 5059 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241     CONFIG_SHELL=$SHELL as_have_required=yes
242     fi; }
243 michael 5052 IFS=$as_save_IFS
244    
245    
246 michael 5059 if test "x$CONFIG_SHELL" != x; then :
247     export CONFIG_SHELL
248     # We cannot yet assume a decent shell, so we have to provide a
249     # neutralization value for shells without unset; and this also
250     # works around shells that cannot unset nonexistent variables.
251     # Preserve -v and -x to the replacement shell.
252     BASH_ENV=/dev/null
253     ENV=/dev/null
254     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255     case $- in # ((((
256     *v*x* | *x*v* ) as_opts=-vx ;;
257     *v* ) as_opts=-v ;;
258     *x* ) as_opts=-x ;;
259     * ) as_opts= ;;
260     esac
261     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262     # Admittedly, this is quite paranoid, since all the known shells bail
263     # out after a failed `exec'.
264     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265     exit 255
266 michael 5052 fi
267    
268 michael 5059 if test x$as_have_required = xno; then :
269     $as_echo "$0: This script requires a shell more modern than all"
270     $as_echo "$0: the shells that I found on your system."
271     if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274     else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276     $0: including any error possibly output before this
277     $0: message. Then install a modern shell, or manually run
278     $0: the script under such a shell if you do have one."
279     fi
280     exit 1
281 michael 5052 fi
282     fi
283     fi
284 michael 5059 SHELL=${CONFIG_SHELL-/bin/sh}
285     export SHELL
286     # Unset more variables known to interfere with behavior of common tools.
287     CLICOLOR_FORCE= GREP_OPTIONS=
288     unset CLICOLOR_FORCE GREP_OPTIONS
289 michael 5052
290 michael 5059 ## --------------------- ##
291     ## M4sh Shell Functions. ##
292     ## --------------------- ##
293     # as_fn_unset VAR
294     # ---------------
295     # Portably unset VAR.
296     as_fn_unset ()
297     {
298     { eval $1=; unset $1;}
299     }
300     as_unset=as_fn_unset
301 michael 5052
302 michael 5059 # as_fn_set_status STATUS
303     # -----------------------
304     # Set $? to STATUS, without forking.
305     as_fn_set_status ()
306     {
307     return $1
308     } # as_fn_set_status
309 michael 5052
310 michael 5059 # as_fn_exit STATUS
311     # -----------------
312     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313     as_fn_exit ()
314     {
315     set +e
316     as_fn_set_status $1
317     exit $1
318     } # as_fn_exit
319 michael 5052
320 michael 5059 # as_fn_mkdir_p
321     # -------------
322     # Create "$as_dir" as a directory, including parents if necessary.
323     as_fn_mkdir_p ()
324     {
325 michael 5052
326 michael 5059 case $as_dir in #(
327     -*) as_dir=./$as_dir;;
328     esac
329     test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332     case $as_dir in #(
333     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334     *) as_qdir=$as_dir;;
335     esac
336     as_dirs="'$as_qdir' $as_dirs"
337     as_dir=`$as_dirname -- "$as_dir" ||
338     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339     X"$as_dir" : 'X\(//\)[^/]' \| \
340     X"$as_dir" : 'X\(//\)$' \| \
341     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342     $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344     s//\1/
345     q
346     }
347     /^X\(\/\/\)[^/].*/{
348     s//\1/
349     q
350     }
351     /^X\(\/\/\)$/{
352     s//\1/
353     q
354     }
355     /^X\(\/\).*/{
356     s//\1/
357     q
358     }
359     s/.*/./; q'`
360     test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364 michael 5052
365    
366 michael 5059 } # as_fn_mkdir_p
367 michael 5052
368 michael 5059 # as_fn_executable_p FILE
369     # -----------------------
370     # Test if FILE is an executable regular file.
371     as_fn_executable_p ()
372     {
373     test -f "$1" && test -x "$1"
374     } # as_fn_executable_p
375     # as_fn_append VAR VALUE
376     # ----------------------
377     # Append the text in VALUE to the end of the definition contained in VAR. Take
378     # advantage of any shell optimizations that allow amortized linear growth over
379     # repeated appends, instead of the typical quadratic growth present in naive
380     # implementations.
381     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382     eval 'as_fn_append ()
383     {
384     eval $1+=\$2
385     }'
386     else
387     as_fn_append ()
388     {
389     eval $1=\$$1\$2
390     }
391     fi # as_fn_append
392 michael 5052
393 michael 5059 # as_fn_arith ARG...
394     # ------------------
395     # Perform arithmetic evaluation on the ARGs, and store the result in the
396     # global $as_val. Take advantage of shells that can avoid forks. The arguments
397     # must be portable across $(()) and expr.
398     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399     eval 'as_fn_arith ()
400     {
401     as_val=$(( $* ))
402     }'
403     else
404     as_fn_arith ()
405     {
406     as_val=`expr "$@" || test $? -eq 1`
407     }
408     fi # as_fn_arith
409 michael 5052
410    
411 michael 5059 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412     # ----------------------------------------
413     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415     # script with STATUS, using 1 if that was 0.
416     as_fn_error ()
417     {
418     as_status=$1; test $as_status -eq 0 && as_status=1
419     if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422     fi
423     $as_echo "$as_me: error: $2" >&2
424     as_fn_exit $as_status
425     } # as_fn_error
426 michael 5052
427 michael 5059 if expr a : '\(a\)' >/dev/null 2>&1 &&
428     test "X`expr 00001 : '.*\(...\)'`" = X001; then
429     as_expr=expr
430 michael 5052 else
431 michael 5059 as_expr=false
432 michael 5052 fi
433    
434 michael 5059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435     as_basename=basename
436 michael 5052 else
437 michael 5059 as_basename=false
438 michael 5052 fi
439    
440 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441     as_dirname=dirname
442 michael 5052 else
443 michael 5059 as_dirname=false
444 michael 5052 fi
445    
446 michael 5059 as_me=`$as_basename -- "$0" ||
447     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448     X"$0" : 'X\(//\)$' \| \
449     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450     $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452     s//\1/
453     q
454     }
455     /^X\/\(\/\/\)$/{
456     s//\1/
457     q
458     }
459     /^X\/\(\/\).*/{
460     s//\1/
461     q
462     }
463     s/.*/./; q'`
464 michael 5052
465 michael 5059 # Avoid depending upon Character Ranges.
466     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469     as_cr_digits='0123456789'
470     as_cr_alnum=$as_cr_Letters$as_cr_digits
471 michael 5052
472    
473 michael 5059 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474     as_lineno_2=$LINENO as_lineno_2a=$LINENO
475     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 michael 5052 sed -n '
479     p
480     /[$]LINENO/=
481     ' <$as_myself |
482     sed '
483     s/[$]LINENO.*/&-/
484     t lineno
485     b
486     :lineno
487     N
488     :loop
489     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490     t loop
491     s/-\n.*//
492     ' >$as_me.lineno &&
493     chmod +x "$as_me.lineno" ||
494 michael 5059 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495 michael 5052
496 michael 5059 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497     # already done that, so ensure we don't try to do so again and fall
498     # in an infinite loop. This has already happened in practice.
499     _as_can_reexec=no; export _as_can_reexec
500 michael 5052 # Don't try to exec as it changes $[0], causing all sort of problems
501     # (the dirname of $[0] is not the place where we might find the
502     # original and so on. Autoconf is especially sensitive to this).
503     . "./$as_me.lineno"
504     # Exit status is that of the last command.
505     exit
506     }
507    
508     ECHO_C= ECHO_N= ECHO_T=
509 michael 5059 case `echo -n x` in #(((((
510 michael 5052 -n*)
511 michael 5059 case `echo 'xy\c'` in
512 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 michael 5059 xy) ECHO_C='\c';;
514     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515     ECHO_T=' ';;
516 michael 5052 esac;;
517     *)
518     ECHO_N='-n';;
519     esac
520    
521     rm -f conf$$ conf$$.exe conf$$.file
522     if test -d conf$$.dir; then
523     rm -f conf$$.dir/conf$$.file
524     else
525     rm -f conf$$.dir
526 michael 5059 mkdir conf$$.dir 2>/dev/null
527 michael 5052 fi
528 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
529     if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536     as_ln_s='cp -pR'
537     elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539     else
540     as_ln_s='cp -pR'
541     fi
542 michael 5052 else
543 michael 5059 as_ln_s='cp -pR'
544 michael 5052 fi
545     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546     rmdir conf$$.dir 2>/dev/null
547    
548     if mkdir -p . 2>/dev/null; then
549 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
550 michael 5052 else
551     test -d ./-p && rmdir ./-p
552     as_mkdir_p=false
553     fi
554    
555 michael 5059 as_test_x='test -x'
556     as_executable_p=as_fn_executable_p
557 michael 5052
558     # Sed expression to map a string onto a valid CPP name.
559     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560    
561     # Sed expression to map a string onto a valid variable name.
562     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563    
564     SHELL=${CONFIG_SHELL-/bin/sh}
565    
566    
567 michael 5059 test -n "$DJDIR" || exec 7<&0 </dev/null
568     exec 6>&1
569 michael 5052
570     # Name of the host.
571 michael 5059 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 michael 5052 # so uname gets run too.
573     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574    
575     #
576     # Initializations.
577     #
578     ac_default_prefix=/usr/local
579     ac_clean_files=
580     ac_config_libobj_dir=.
581     LIBOBJS=
582     cross_compiling=no
583     subdirs=
584     MFLAGS=
585     MAKEFLAGS=
586    
587     # Identity of this package.
588     PACKAGE_NAME='bopm'
589     PACKAGE_TARNAME='bopm'
590     PACKAGE_VERSION='3.1.3'
591     PACKAGE_STRING='bopm 3.1.3'
592     PACKAGE_BUGREPORT=''
593 michael 5059 PACKAGE_URL=''
594 michael 5052
595     ac_unique_file="src/opercmd.h"
596     ac_default_prefix=\${HOME}/bopm
597     # Factoring default headers for most tests.
598     ac_includes_default="\
599     #include <stdio.h>
600 michael 5059 #ifdef HAVE_SYS_TYPES_H
601 michael 5052 # include <sys/types.h>
602     #endif
603 michael 5059 #ifdef HAVE_SYS_STAT_H
604 michael 5052 # include <sys/stat.h>
605     #endif
606 michael 5059 #ifdef STDC_HEADERS
607 michael 5052 # include <stdlib.h>
608     # include <stddef.h>
609     #else
610 michael 5059 # ifdef HAVE_STDLIB_H
611 michael 5052 # include <stdlib.h>
612     # endif
613     #endif
614 michael 5059 #ifdef HAVE_STRING_H
615     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 michael 5052 # include <memory.h>
617     # endif
618     # include <string.h>
619     #endif
620 michael 5059 #ifdef HAVE_STRINGS_H
621 michael 5052 # include <strings.h>
622     #endif
623 michael 5059 #ifdef HAVE_INTTYPES_H
624 michael 5052 # include <inttypes.h>
625     #endif
626 michael 5059 #ifdef HAVE_STDINT_H
627 michael 5052 # include <stdint.h>
628     #endif
629 michael 5059 #ifdef HAVE_UNISTD_H
630 michael 5052 # include <unistd.h>
631     #endif"
632    
633 michael 5059 enable_option_checking=no
634     ac_subst_vars='am__EXEEXT_FALSE
635     am__EXEEXT_TRUE
636     LTLIBOBJS
637 michael 5052 LIBOBJS
638 michael 5059 subdirs
639 michael 5052 LEXLIB
640     LEX_OUTPUT_ROOT
641 michael 5059 LEX
642     YFLAGS
643     YACC
644     CPP
645     OTOOL64
646     OTOOL
647     LIPO
648     NMEDIT
649     DSYMUTIL
650     MANIFEST_TOOL
651     RANLIB
652     ac_ct_AR
653     AR
654     DLLTOOL
655     OBJDUMP
656     LN_S
657     NM
658     ac_ct_DUMPBIN
659     DUMPBIN
660     LD
661     FGREP
662     EGREP
663     GREP
664     SED
665     host_os
666     host_vendor
667     host_cpu
668     host
669     build_os
670     build_vendor
671     build_cpu
672     build
673     LIBTOOL
674     am__fastdepCC_FALSE
675     am__fastdepCC_TRUE
676     CCDEPMODE
677     am__nodep
678     AMDEPBACKSLASH
679     AMDEP_FALSE
680     AMDEP_TRUE
681     am__quote
682     am__include
683     DEPDIR
684     OBJEXT
685     EXEEXT
686     ac_ct_CC
687     CPPFLAGS
688     LDFLAGS
689     CFLAGS
690     CC
691     MAINT
692     MAINTAINER_MODE_FALSE
693     MAINTAINER_MODE_TRUE
694     AM_BACKSLASH
695     AM_DEFAULT_VERBOSITY
696     AM_DEFAULT_V
697     AM_V
698     am__untar
699     am__tar
700     AMTAR
701     am__leading_dot
702     SET_MAKE
703     AWK
704     mkdir_p
705     MKDIR_P
706     INSTALL_STRIP_PROGRAM
707     STRIP
708     install_sh
709     MAKEINFO
710     AUTOHEADER
711     AUTOMAKE
712     AUTOCONF
713     ACLOCAL
714     VERSION
715     PACKAGE
716     CYGPATH_W
717     am__isrc
718     INSTALL_DATA
719     INSTALL_SCRIPT
720     INSTALL_PROGRAM
721     target_alias
722     host_alias
723     build_alias
724     LIBS
725     ECHO_T
726     ECHO_N
727     ECHO_C
728     DEFS
729     mandir
730     localedir
731     libdir
732     psdir
733     pdfdir
734     dvidir
735     htmldir
736     infodir
737     docdir
738     oldincludedir
739     includedir
740     localstatedir
741     sharedstatedir
742     sysconfdir
743     datadir
744     datarootdir
745     libexecdir
746     sbindir
747     bindir
748     program_transform_name
749     prefix
750     exec_prefix
751     PACKAGE_URL
752     PACKAGE_BUGREPORT
753     PACKAGE_STRING
754     PACKAGE_VERSION
755     PACKAGE_TARNAME
756     PACKAGE_NAME
757     PATH_SEPARATOR
758     SHELL'
759 michael 5052 ac_subst_files=''
760 michael 5059 ac_user_opts='
761     enable_option_checking
762     enable_silent_rules
763     enable_maintainer_mode
764     with_extra_fascism
765     enable_dependency_tracking
766     enable_shared
767     enable_static
768     with_pic
769     enable_fast_install
770     with_aix_soname
771     with_gnu_ld
772     with_sysroot
773     enable_libtool_lock
774     with_werror
775     '
776 michael 5052 ac_precious_vars='build_alias
777     host_alias
778     target_alias
779     CC
780     CFLAGS
781     LDFLAGS
782 michael 5059 LIBS
783 michael 5052 CPPFLAGS
784     CPP
785     YACC
786     YFLAGS'
787     ac_subdirs_all='src/libopm'
788    
789     # Initialize some variables set by options.
790     ac_init_help=
791     ac_init_version=false
792 michael 5059 ac_unrecognized_opts=
793     ac_unrecognized_sep=
794 michael 5052 # The variables have the same names as the options, with
795     # dashes changed to underlines.
796     cache_file=/dev/null
797     exec_prefix=NONE
798     no_create=
799     no_recursion=
800     prefix=NONE
801     program_prefix=NONE
802     program_suffix=NONE
803     program_transform_name=s,x,x,
804     silent=
805     site=
806     srcdir=
807     verbose=
808     x_includes=NONE
809     x_libraries=NONE
810    
811     # Installation directory options.
812     # These are left unexpanded so users can "make install exec_prefix=/foo"
813     # and all the variables that are supposed to be based on exec_prefix
814     # by default will actually change.
815     # Use braces instead of parens because sh, perl, etc. also accept them.
816     # (The list follows the same order as the GNU Coding Standards.)
817     bindir='${exec_prefix}/bin'
818     sbindir='${exec_prefix}/sbin'
819     libexecdir='${exec_prefix}/libexec'
820     datarootdir='${prefix}/share'
821     datadir='${datarootdir}'
822     sysconfdir='${prefix}/etc'
823     sharedstatedir='${prefix}/com'
824     localstatedir='${prefix}/var'
825     includedir='${prefix}/include'
826     oldincludedir='/usr/include'
827     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828     infodir='${datarootdir}/info'
829     htmldir='${docdir}'
830     dvidir='${docdir}'
831     pdfdir='${docdir}'
832     psdir='${docdir}'
833     libdir='${exec_prefix}/lib'
834     localedir='${datarootdir}/locale'
835     mandir='${datarootdir}/man'
836    
837     ac_prev=
838     ac_dashdash=
839     for ac_option
840     do
841     # If the previous option needs an argument, assign it.
842     if test -n "$ac_prev"; then
843     eval $ac_prev=\$ac_option
844     ac_prev=
845     continue
846     fi
847    
848     case $ac_option in
849 michael 5059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850     *=) ac_optarg= ;;
851     *) ac_optarg=yes ;;
852 michael 5052 esac
853    
854     # Accept the important Cygnus configure options, so we can diagnose typos.
855    
856     case $ac_dashdash$ac_option in
857     --)
858     ac_dashdash=yes ;;
859    
860     -bindir | --bindir | --bindi | --bind | --bin | --bi)
861     ac_prev=bindir ;;
862     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863     bindir=$ac_optarg ;;
864    
865     -build | --build | --buil | --bui | --bu)
866     ac_prev=build_alias ;;
867     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868     build_alias=$ac_optarg ;;
869    
870     -cache-file | --cache-file | --cache-fil | --cache-fi \
871     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872     ac_prev=cache_file ;;
873     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875     cache_file=$ac_optarg ;;
876    
877     --config-cache | -C)
878     cache_file=config.cache ;;
879    
880     -datadir | --datadir | --datadi | --datad)
881     ac_prev=datadir ;;
882     -datadir=* | --datadir=* | --datadi=* | --datad=*)
883     datadir=$ac_optarg ;;
884    
885     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886     | --dataroo | --dataro | --datar)
887     ac_prev=datarootdir ;;
888     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890     datarootdir=$ac_optarg ;;
891    
892     -disable-* | --disable-*)
893 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 michael 5052 # Reject names that are not valid shell variable names.
895 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896     as_fn_error $? "invalid feature name: $ac_useropt"
897     ac_useropt_orig=$ac_useropt
898     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899     case $ac_user_opts in
900     *"
901     "enable_$ac_useropt"
902     "*) ;;
903     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904     ac_unrecognized_sep=', ';;
905     esac
906     eval enable_$ac_useropt=no ;;
907 michael 5052
908     -docdir | --docdir | --docdi | --doc | --do)
909     ac_prev=docdir ;;
910     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911     docdir=$ac_optarg ;;
912    
913     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914     ac_prev=dvidir ;;
915     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916     dvidir=$ac_optarg ;;
917    
918     -enable-* | --enable-*)
919 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 michael 5052 # Reject names that are not valid shell variable names.
921 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922     as_fn_error $? "invalid feature name: $ac_useropt"
923     ac_useropt_orig=$ac_useropt
924     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925     case $ac_user_opts in
926     *"
927     "enable_$ac_useropt"
928     "*) ;;
929     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930     ac_unrecognized_sep=', ';;
931     esac
932     eval enable_$ac_useropt=\$ac_optarg ;;
933 michael 5052
934     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936     | --exec | --exe | --ex)
937     ac_prev=exec_prefix ;;
938     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940     | --exec=* | --exe=* | --ex=*)
941     exec_prefix=$ac_optarg ;;
942    
943     -gas | --gas | --ga | --g)
944     # Obsolete; use --with-gas.
945     with_gas=yes ;;
946    
947     -help | --help | --hel | --he | -h)
948     ac_init_help=long ;;
949     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950     ac_init_help=recursive ;;
951     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952     ac_init_help=short ;;
953    
954     -host | --host | --hos | --ho)
955     ac_prev=host_alias ;;
956     -host=* | --host=* | --hos=* | --ho=*)
957     host_alias=$ac_optarg ;;
958    
959     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960     ac_prev=htmldir ;;
961     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962     | --ht=*)
963     htmldir=$ac_optarg ;;
964    
965     -includedir | --includedir | --includedi | --included | --include \
966     | --includ | --inclu | --incl | --inc)
967     ac_prev=includedir ;;
968     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969     | --includ=* | --inclu=* | --incl=* | --inc=*)
970     includedir=$ac_optarg ;;
971    
972     -infodir | --infodir | --infodi | --infod | --info | --inf)
973     ac_prev=infodir ;;
974     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975     infodir=$ac_optarg ;;
976    
977     -libdir | --libdir | --libdi | --libd)
978     ac_prev=libdir ;;
979     -libdir=* | --libdir=* | --libdi=* | --libd=*)
980     libdir=$ac_optarg ;;
981    
982     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983     | --libexe | --libex | --libe)
984     ac_prev=libexecdir ;;
985     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986     | --libexe=* | --libex=* | --libe=*)
987     libexecdir=$ac_optarg ;;
988    
989     -localedir | --localedir | --localedi | --localed | --locale)
990     ac_prev=localedir ;;
991     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992     localedir=$ac_optarg ;;
993    
994     -localstatedir | --localstatedir | --localstatedi | --localstated \
995     | --localstate | --localstat | --localsta | --localst | --locals)
996     ac_prev=localstatedir ;;
997     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999     localstatedir=$ac_optarg ;;
1000    
1001     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002     ac_prev=mandir ;;
1003     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004     mandir=$ac_optarg ;;
1005    
1006     -nfp | --nfp | --nf)
1007     # Obsolete; use --without-fp.
1008     with_fp=no ;;
1009    
1010     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011     | --no-cr | --no-c | -n)
1012     no_create=yes ;;
1013    
1014     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016     no_recursion=yes ;;
1017    
1018     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020     | --oldin | --oldi | --old | --ol | --o)
1021     ac_prev=oldincludedir ;;
1022     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025     oldincludedir=$ac_optarg ;;
1026    
1027     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028     ac_prev=prefix ;;
1029     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030     prefix=$ac_optarg ;;
1031    
1032     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033     | --program-pre | --program-pr | --program-p)
1034     ac_prev=program_prefix ;;
1035     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037     program_prefix=$ac_optarg ;;
1038    
1039     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040     | --program-suf | --program-su | --program-s)
1041     ac_prev=program_suffix ;;
1042     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044     program_suffix=$ac_optarg ;;
1045    
1046     -program-transform-name | --program-transform-name \
1047     | --program-transform-nam | --program-transform-na \
1048     | --program-transform-n | --program-transform- \
1049     | --program-transform | --program-transfor \
1050     | --program-transfo | --program-transf \
1051     | --program-trans | --program-tran \
1052     | --progr-tra | --program-tr | --program-t)
1053     ac_prev=program_transform_name ;;
1054     -program-transform-name=* | --program-transform-name=* \
1055     | --program-transform-nam=* | --program-transform-na=* \
1056     | --program-transform-n=* | --program-transform-=* \
1057     | --program-transform=* | --program-transfor=* \
1058     | --program-transfo=* | --program-transf=* \
1059     | --program-trans=* | --program-tran=* \
1060     | --progr-tra=* | --program-tr=* | --program-t=*)
1061     program_transform_name=$ac_optarg ;;
1062    
1063     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064     ac_prev=pdfdir ;;
1065     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066     pdfdir=$ac_optarg ;;
1067    
1068     -psdir | --psdir | --psdi | --psd | --ps)
1069     ac_prev=psdir ;;
1070     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071     psdir=$ac_optarg ;;
1072    
1073     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074     | -silent | --silent | --silen | --sile | --sil)
1075     silent=yes ;;
1076    
1077     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078     ac_prev=sbindir ;;
1079     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080     | --sbi=* | --sb=*)
1081     sbindir=$ac_optarg ;;
1082    
1083     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085     | --sharedst | --shareds | --shared | --share | --shar \
1086     | --sha | --sh)
1087     ac_prev=sharedstatedir ;;
1088     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091     | --sha=* | --sh=*)
1092     sharedstatedir=$ac_optarg ;;
1093    
1094     -site | --site | --sit)
1095     ac_prev=site ;;
1096     -site=* | --site=* | --sit=*)
1097     site=$ac_optarg ;;
1098    
1099     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100     ac_prev=srcdir ;;
1101     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102     srcdir=$ac_optarg ;;
1103    
1104     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105     | --syscon | --sysco | --sysc | --sys | --sy)
1106     ac_prev=sysconfdir ;;
1107     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109     sysconfdir=$ac_optarg ;;
1110    
1111     -target | --target | --targe | --targ | --tar | --ta | --t)
1112     ac_prev=target_alias ;;
1113     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114     target_alias=$ac_optarg ;;
1115    
1116     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117     verbose=yes ;;
1118    
1119     -version | --version | --versio | --versi | --vers | -V)
1120     ac_init_version=: ;;
1121    
1122     -with-* | --with-*)
1123 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 michael 5052 # Reject names that are not valid shell variable names.
1125 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126     as_fn_error $? "invalid package name: $ac_useropt"
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130     *"
1131     "with_$ac_useropt"
1132     "*) ;;
1133     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134     ac_unrecognized_sep=', ';;
1135     esac
1136     eval with_$ac_useropt=\$ac_optarg ;;
1137 michael 5052
1138     -without-* | --without-*)
1139 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 michael 5052 # Reject names that are not valid shell variable names.
1141 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142     as_fn_error $? "invalid package name: $ac_useropt"
1143     ac_useropt_orig=$ac_useropt
1144     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145     case $ac_user_opts in
1146     *"
1147     "with_$ac_useropt"
1148     "*) ;;
1149     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150     ac_unrecognized_sep=', ';;
1151     esac
1152     eval with_$ac_useropt=no ;;
1153 michael 5052
1154     --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157    
1158     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159     | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164    
1165     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171    
1172 michael 5059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173     Try \`$0 --help' for more information"
1174 michael 5052 ;;
1175    
1176     *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179 michael 5059 case $ac_envvar in #(
1180     '' | [0-9]* | *[!_$as_cr_alnum]* )
1181     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182     esac
1183 michael 5052 eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185    
1186     *)
1187     # FIXME: should be removed in autoconf 3.0.
1188 michael 5059 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 michael 5052 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 michael 5059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 michael 5052 ;;
1193    
1194     esac
1195     done
1196    
1197     if test -n "$ac_prev"; then
1198     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 michael 5059 as_fn_error $? "missing argument to $ac_option"
1200 michael 5052 fi
1201    
1202 michael 5059 if test -n "$ac_unrecognized_opts"; then
1203     case $enable_option_checking in
1204     no) ;;
1205     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207     esac
1208     fi
1209    
1210     # Check all directory arguments for consistency.
1211 michael 5052 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212     datadir sysconfdir sharedstatedir localstatedir includedir \
1213     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214     libdir localedir mandir
1215     do
1216     eval ac_val=\$$ac_var
1217 michael 5059 # Remove trailing slashes.
1218 michael 5052 case $ac_val in
1219 michael 5059 */ )
1220     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221     eval $ac_var=\$ac_val;;
1222     esac
1223     # Be sure to have absolute directory names.
1224     case $ac_val in
1225 michael 5052 [\\/$]* | ?:[\\/]* ) continue;;
1226     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227     esac
1228 michael 5059 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 michael 5052 done
1230    
1231     # There might be people who depend on the old broken behavior: `$host'
1232     # used to hold the argument of --host etc.
1233     # FIXME: To remove some day.
1234     build=$build_alias
1235     host=$host_alias
1236     target=$target_alias
1237    
1238     # FIXME: To remove some day.
1239     if test "x$host_alias" != x; then
1240     if test "x$build_alias" = x; then
1241     cross_compiling=maybe
1242     elif test "x$build_alias" != "x$host_alias"; then
1243     cross_compiling=yes
1244     fi
1245     fi
1246    
1247     ac_tool_prefix=
1248     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249    
1250     test "$silent" = yes && exec 6>/dev/null
1251    
1252    
1253     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254     ac_ls_di=`ls -di .` &&
1255     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 michael 5059 as_fn_error $? "working directory cannot be determined"
1257 michael 5052 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 michael 5059 as_fn_error $? "pwd does not report name of working directory"
1259 michael 5052
1260    
1261     # Find the source files, if location was not specified.
1262     if test -z "$srcdir"; then
1263     ac_srcdir_defaulted=yes
1264     # Try the directory containing this script, then the parent directory.
1265 michael 5059 ac_confdir=`$as_dirname -- "$as_myself" ||
1266     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267     X"$as_myself" : 'X\(//\)[^/]' \| \
1268     X"$as_myself" : 'X\(//\)$' \| \
1269     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270     $as_echo X"$as_myself" |
1271 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272     s//\1/
1273     q
1274     }
1275     /^X\(\/\/\)[^/].*/{
1276     s//\1/
1277     q
1278     }
1279     /^X\(\/\/\)$/{
1280     s//\1/
1281     q
1282     }
1283     /^X\(\/\).*/{
1284     s//\1/
1285     q
1286     }
1287     s/.*/./; q'`
1288     srcdir=$ac_confdir
1289     if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291     fi
1292     else
1293     ac_srcdir_defaulted=no
1294     fi
1295     if test ! -r "$srcdir/$ac_unique_file"; then
1296     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 michael 5059 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 michael 5052 fi
1299     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300     ac_abs_confdir=`(
1301 michael 5059 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 michael 5052 pwd)`
1303     # When building in place, set srcdir=.
1304     if test "$ac_abs_confdir" = "$ac_pwd"; then
1305     srcdir=.
1306     fi
1307     # Remove unnecessary trailing slashes from srcdir.
1308     # Double slashes in file names in object file debugging info
1309     # mess up M-x gdb in Emacs.
1310     case $srcdir in
1311     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312     esac
1313     for ac_var in $ac_precious_vars; do
1314     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315     eval ac_env_${ac_var}_value=\$${ac_var}
1316     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318     done
1319    
1320     #
1321     # Report the --help message.
1322     #
1323     if test "$ac_init_help" = "long"; then
1324     # Omit some internal or obsolete options to make the list less imposing.
1325     # This message is too long to be a string in the A/UX 3.1 sh.
1326     cat <<_ACEOF
1327     \`configure' configures bopm 3.1.3 to adapt to many kinds of systems.
1328    
1329     Usage: $0 [OPTION]... [VAR=VALUE]...
1330    
1331     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332     VAR=VALUE. See below for descriptions of some of the useful variables.
1333    
1334     Defaults for the options are specified in brackets.
1335    
1336     Configuration:
1337     -h, --help display this help and exit
1338     --help=short display options specific to this package
1339     --help=recursive display the short help of all the included packages
1340     -V, --version display version information and exit
1341 michael 5059 -q, --quiet, --silent do not print \`checking ...' messages
1342 michael 5052 --cache-file=FILE cache test results in FILE [disabled]
1343     -C, --config-cache alias for \`--cache-file=config.cache'
1344     -n, --no-create do not create output files
1345     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346    
1347     Installation directories:
1348     --prefix=PREFIX install architecture-independent files in PREFIX
1349 michael 5059 [$ac_default_prefix]
1350 michael 5052 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 michael 5059 [PREFIX]
1352 michael 5052
1353     By default, \`make install' will install all the files in
1354     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356     for instance \`--prefix=\$HOME'.
1357    
1358     For better control, use the options below.
1359    
1360     Fine tuning of the installation directories:
1361 michael 5059 --bindir=DIR user executables [EPREFIX/bin]
1362     --sbindir=DIR system admin executables [EPREFIX/sbin]
1363     --libexecdir=DIR program executables [EPREFIX/libexec]
1364     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367     --libdir=DIR object code libraries [EPREFIX/lib]
1368     --includedir=DIR C header files [PREFIX/include]
1369     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372     --infodir=DIR info documentation [DATAROOTDIR/info]
1373     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374     --mandir=DIR man documentation [DATAROOTDIR/man]
1375     --docdir=DIR documentation root [DATAROOTDIR/doc/bopm]
1376     --htmldir=DIR html documentation [DOCDIR]
1377     --dvidir=DIR dvi documentation [DOCDIR]
1378     --pdfdir=DIR pdf documentation [DOCDIR]
1379     --psdir=DIR ps documentation [DOCDIR]
1380 michael 5052 _ACEOF
1381    
1382     cat <<\_ACEOF
1383    
1384     Program names:
1385     --program-prefix=PREFIX prepend PREFIX to installed program names
1386     --program-suffix=SUFFIX append SUFFIX to installed program names
1387     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388    
1389     System types:
1390     --build=BUILD configure for building on BUILD [guessed]
1391     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392     _ACEOF
1393     fi
1394    
1395     if test -n "$ac_init_help"; then
1396     case $ac_init_help in
1397     short | recursive ) echo "Configuration of bopm 3.1.3:";;
1398     esac
1399     cat <<\_ACEOF
1400    
1401     Optional Features:
1402 michael 5059 --disable-option-checking ignore unrecognized --enable/--with options
1403 michael 5052 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 michael 5059 --enable-silent-rules less verbose build output (undo: "make V=1")
1406     --disable-silent-rules verbose build output (undo: "make V=0")
1407     --enable-maintainer-mode
1408     enable make rules and dependencies not useful (and
1409     sometimes confusing) to the casual installer
1410     --enable-dependency-tracking
1411     do not reject slow dependency extractors
1412     --disable-dependency-tracking
1413     speeds up one-time build
1414 michael 5052 --enable-shared[=PKGS] build shared libraries [default=yes]
1415     --enable-static[=PKGS] build static libraries [default=yes]
1416     --enable-fast-install[=PKGS]
1417     optimize for fast installation [default=yes]
1418     --disable-libtool-lock avoid locking (might break parallel builds)
1419    
1420     Optional Packages:
1421     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423     --with-extra-fascism Add extra gcc3-specific warning flags
1424 michael 5059 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1425     both]
1426     --with-aix-soname=aix|svr4|both
1427     shared library versioning (aka "SONAME") variant to
1428     provide on AIX, [default=aix].
1429 michael 5052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 michael 5059 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1431     compiler's sysroot if not specified).
1432 michael 5052 --with-werror use -Werror to abort compilation on any warning
1433    
1434     Some influential environment variables:
1435     CC C compiler command
1436     CFLAGS C compiler flags
1437     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438     nonstandard directory <lib dir>
1439 michael 5059 LIBS libraries to pass to the linker, e.g. -l<library>
1440     CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 michael 5052 you have headers in a nonstandard directory <include dir>
1442     CPP C preprocessor
1443 michael 5059 YACC The `Yet Another Compiler Compiler' implementation to use.
1444     Defaults to the first program found out of: `bison -y', `byacc',
1445     `yacc'.
1446 michael 5052 YFLAGS The list of arguments that will be passed by default to $YACC.
1447     This script will default YFLAGS to the empty string to avoid a
1448     default value of `-d' given by some make applications.
1449    
1450     Use these variables to override the choices made by `configure' or to help
1451     it to find libraries and programs with nonstandard names/locations.
1452    
1453 michael 5059 Report bugs to the package provider.
1454 michael 5052 _ACEOF
1455     ac_status=$?
1456     fi
1457    
1458     if test "$ac_init_help" = "recursive"; then
1459     # If there are subdirs, report their specific --help.
1460     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461 michael 5059 test -d "$ac_dir" ||
1462     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463     continue
1464 michael 5052 ac_builddir=.
1465    
1466     case "$ac_dir" in
1467     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468     *)
1469 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 michael 5052 # A ".." for each directory in $ac_dir_suffix.
1471 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 michael 5052 case $ac_top_builddir_sub in
1473     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475     esac ;;
1476     esac
1477     ac_abs_top_builddir=$ac_pwd
1478     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479     # for backward compatibility:
1480     ac_top_builddir=$ac_top_build_prefix
1481    
1482     case $srcdir in
1483     .) # We are building in place.
1484     ac_srcdir=.
1485     ac_top_srcdir=$ac_top_builddir_sub
1486     ac_abs_top_srcdir=$ac_pwd ;;
1487     [\\/]* | ?:[\\/]* ) # Absolute name.
1488     ac_srcdir=$srcdir$ac_dir_suffix;
1489     ac_top_srcdir=$srcdir
1490     ac_abs_top_srcdir=$srcdir ;;
1491     *) # Relative name.
1492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493     ac_top_srcdir=$ac_top_build_prefix$srcdir
1494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495     esac
1496     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497    
1498     cd "$ac_dir" || { ac_status=$?; continue; }
1499     # Check for guested configure.
1500     if test -f "$ac_srcdir/configure.gnu"; then
1501     echo &&
1502     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503     elif test -f "$ac_srcdir/configure"; then
1504     echo &&
1505     $SHELL "$ac_srcdir/configure" --help=recursive
1506     else
1507 michael 5059 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 michael 5052 fi || ac_status=$?
1509     cd "$ac_pwd" || { ac_status=$?; break; }
1510     done
1511     fi
1512    
1513     test -n "$ac_init_help" && exit $ac_status
1514     if $ac_init_version; then
1515     cat <<\_ACEOF
1516     bopm configure 3.1.3
1517 michael 5059 generated by GNU Autoconf 2.69
1518 michael 5052
1519 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
1520 michael 5052 This configure script is free software; the Free Software Foundation
1521     gives unlimited permission to copy, distribute and modify it.
1522     _ACEOF
1523     exit
1524     fi
1525 michael 5059
1526     ## ------------------------ ##
1527     ## Autoconf initialization. ##
1528     ## ------------------------ ##
1529    
1530     # ac_fn_c_try_compile LINENO
1531     # --------------------------
1532     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533     ac_fn_c_try_compile ()
1534     {
1535     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536     rm -f conftest.$ac_objext
1537     if { { ac_try="$ac_compile"
1538     case "(($ac_try" in
1539     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540     *) ac_try_echo=$ac_try;;
1541     esac
1542     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543     $as_echo "$ac_try_echo"; } >&5
1544     (eval "$ac_compile") 2>conftest.err
1545     ac_status=$?
1546     if test -s conftest.err; then
1547     grep -v '^ *+' conftest.err >conftest.er1
1548     cat conftest.er1 >&5
1549     mv -f conftest.er1 conftest.err
1550     fi
1551     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552     test $ac_status = 0; } && {
1553     test -z "$ac_c_werror_flag" ||
1554     test ! -s conftest.err
1555     } && test -s conftest.$ac_objext; then :
1556     ac_retval=0
1557     else
1558     $as_echo "$as_me: failed program was:" >&5
1559     sed 's/^/| /' conftest.$ac_ext >&5
1560    
1561     ac_retval=1
1562     fi
1563     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564     as_fn_set_status $ac_retval
1565    
1566     } # ac_fn_c_try_compile
1567    
1568     # ac_fn_c_try_link LINENO
1569     # -----------------------
1570     # Try to link conftest.$ac_ext, and return whether this succeeded.
1571     ac_fn_c_try_link ()
1572     {
1573     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574     rm -f conftest.$ac_objext conftest$ac_exeext
1575     if { { ac_try="$ac_link"
1576     case "(($ac_try" in
1577     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578     *) ac_try_echo=$ac_try;;
1579     esac
1580     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581     $as_echo "$ac_try_echo"; } >&5
1582     (eval "$ac_link") 2>conftest.err
1583     ac_status=$?
1584     if test -s conftest.err; then
1585     grep -v '^ *+' conftest.err >conftest.er1
1586     cat conftest.er1 >&5
1587     mv -f conftest.er1 conftest.err
1588     fi
1589     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590     test $ac_status = 0; } && {
1591     test -z "$ac_c_werror_flag" ||
1592     test ! -s conftest.err
1593     } && test -s conftest$ac_exeext && {
1594     test "$cross_compiling" = yes ||
1595     test -x conftest$ac_exeext
1596     }; then :
1597     ac_retval=0
1598     else
1599     $as_echo "$as_me: failed program was:" >&5
1600     sed 's/^/| /' conftest.$ac_ext >&5
1601    
1602     ac_retval=1
1603     fi
1604     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606     # interfere with the next link command; also delete a directory that is
1607     # left behind by Apple's compiler. We do this before executing the actions.
1608     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610     as_fn_set_status $ac_retval
1611    
1612     } # ac_fn_c_try_link
1613    
1614     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615     # -------------------------------------------------------
1616     # Tests whether HEADER exists and can be compiled using the include files in
1617     # INCLUDES, setting the cache variable VAR accordingly.
1618     ac_fn_c_check_header_compile ()
1619     {
1620     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622     $as_echo_n "checking for $2... " >&6; }
1623     if eval \${$3+:} false; then :
1624     $as_echo_n "(cached) " >&6
1625     else
1626     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627     /* end confdefs.h. */
1628     $4
1629     #include <$2>
1630     _ACEOF
1631     if ac_fn_c_try_compile "$LINENO"; then :
1632     eval "$3=yes"
1633     else
1634     eval "$3=no"
1635     fi
1636     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637     fi
1638     eval ac_res=\$$3
1639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640     $as_echo "$ac_res" >&6; }
1641     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642    
1643     } # ac_fn_c_check_header_compile
1644    
1645     # ac_fn_c_try_cpp LINENO
1646     # ----------------------
1647     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648     ac_fn_c_try_cpp ()
1649     {
1650     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651     if { { ac_try="$ac_cpp conftest.$ac_ext"
1652     case "(($ac_try" in
1653     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654     *) ac_try_echo=$ac_try;;
1655     esac
1656     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657     $as_echo "$ac_try_echo"; } >&5
1658     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659     ac_status=$?
1660     if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664     fi
1665     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666     test $ac_status = 0; } > conftest.i && {
1667     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668     test ! -s conftest.err
1669     }; then :
1670     ac_retval=0
1671     else
1672     $as_echo "$as_me: failed program was:" >&5
1673     sed 's/^/| /' conftest.$ac_ext >&5
1674    
1675     ac_retval=1
1676     fi
1677     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678     as_fn_set_status $ac_retval
1679    
1680     } # ac_fn_c_try_cpp
1681    
1682     # ac_fn_c_try_run LINENO
1683     # ----------------------
1684     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685     # that executables *can* be run.
1686     ac_fn_c_try_run ()
1687     {
1688     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689     if { { ac_try="$ac_link"
1690     case "(($ac_try" in
1691     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692     *) ac_try_echo=$ac_try;;
1693     esac
1694     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695     $as_echo "$ac_try_echo"; } >&5
1696     (eval "$ac_link") 2>&5
1697     ac_status=$?
1698     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700     { { case "(($ac_try" in
1701     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702     *) ac_try_echo=$ac_try;;
1703     esac
1704     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705     $as_echo "$ac_try_echo"; } >&5
1706     (eval "$ac_try") 2>&5
1707     ac_status=$?
1708     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709     test $ac_status = 0; }; }; then :
1710     ac_retval=0
1711     else
1712     $as_echo "$as_me: program exited with status $ac_status" >&5
1713     $as_echo "$as_me: failed program was:" >&5
1714     sed 's/^/| /' conftest.$ac_ext >&5
1715    
1716     ac_retval=$ac_status
1717     fi
1718     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720     as_fn_set_status $ac_retval
1721    
1722     } # ac_fn_c_try_run
1723    
1724     # ac_fn_c_check_func LINENO FUNC VAR
1725     # ----------------------------------
1726     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727     ac_fn_c_check_func ()
1728     {
1729     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731     $as_echo_n "checking for $2... " >&6; }
1732     if eval \${$3+:} false; then :
1733     $as_echo_n "(cached) " >&6
1734     else
1735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736     /* end confdefs.h. */
1737     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739     #define $2 innocuous_$2
1740    
1741     /* System header to define __stub macros and hopefully few prototypes,
1742     which can conflict with char $2 (); below.
1743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744     <limits.h> exists even on freestanding compilers. */
1745    
1746     #ifdef __STDC__
1747     # include <limits.h>
1748     #else
1749     # include <assert.h>
1750     #endif
1751    
1752     #undef $2
1753    
1754     /* Override any GCC internal prototype to avoid an error.
1755     Use char because int might match the return type of a GCC
1756     builtin and then its argument prototype would still apply. */
1757     #ifdef __cplusplus
1758     extern "C"
1759     #endif
1760     char $2 ();
1761     /* The GNU C library defines this for functions which it implements
1762     to always fail with ENOSYS. Some functions are actually named
1763     something starting with __ and the normal name is an alias. */
1764     #if defined __stub_$2 || defined __stub___$2
1765     choke me
1766     #endif
1767    
1768     int
1769     main ()
1770     {
1771     return $2 ();
1772     ;
1773     return 0;
1774     }
1775     _ACEOF
1776     if ac_fn_c_try_link "$LINENO"; then :
1777     eval "$3=yes"
1778     else
1779     eval "$3=no"
1780     fi
1781     rm -f core conftest.err conftest.$ac_objext \
1782     conftest$ac_exeext conftest.$ac_ext
1783     fi
1784     eval ac_res=\$$3
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786     $as_echo "$ac_res" >&6; }
1787     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788    
1789     } # ac_fn_c_check_func
1790    
1791     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1792     # -------------------------------------------------------
1793     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1794     # the include files in INCLUDES and setting the cache variable VAR
1795     # accordingly.
1796     ac_fn_c_check_header_mongrel ()
1797     {
1798     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799     if eval \${$3+:} false; then :
1800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801     $as_echo_n "checking for $2... " >&6; }
1802     if eval \${$3+:} false; then :
1803     $as_echo_n "(cached) " >&6
1804     fi
1805     eval ac_res=\$$3
1806     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807     $as_echo "$ac_res" >&6; }
1808     else
1809     # Is the header compilable?
1810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1811     $as_echo_n "checking $2 usability... " >&6; }
1812     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813     /* end confdefs.h. */
1814     $4
1815     #include <$2>
1816     _ACEOF
1817     if ac_fn_c_try_compile "$LINENO"; then :
1818     ac_header_compiler=yes
1819     else
1820     ac_header_compiler=no
1821     fi
1822     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1824     $as_echo "$ac_header_compiler" >&6; }
1825    
1826     # Is the header present?
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1828     $as_echo_n "checking $2 presence... " >&6; }
1829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830     /* end confdefs.h. */
1831     #include <$2>
1832     _ACEOF
1833     if ac_fn_c_try_cpp "$LINENO"; then :
1834     ac_header_preproc=yes
1835     else
1836     ac_header_preproc=no
1837     fi
1838     rm -f conftest.err conftest.i conftest.$ac_ext
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1840     $as_echo "$ac_header_preproc" >&6; }
1841    
1842     # So? What about this header?
1843     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1844     yes:no: )
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1846     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849     ;;
1850     no:yes:* )
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1852     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1854     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1856     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1858     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861     ;;
1862     esac
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864     $as_echo_n "checking for $2... " >&6; }
1865     if eval \${$3+:} false; then :
1866     $as_echo_n "(cached) " >&6
1867     else
1868     eval "$3=\$ac_header_compiler"
1869     fi
1870     eval ac_res=\$$3
1871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872     $as_echo "$ac_res" >&6; }
1873     fi
1874     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875    
1876     } # ac_fn_c_check_header_mongrel
1877    
1878     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1879     # -------------------------------------------
1880     # Tests whether TYPE exists after having included INCLUDES, setting cache
1881     # variable VAR accordingly.
1882     ac_fn_c_check_type ()
1883     {
1884     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886     $as_echo_n "checking for $2... " >&6; }
1887     if eval \${$3+:} false; then :
1888     $as_echo_n "(cached) " >&6
1889     else
1890     eval "$3=no"
1891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892     /* end confdefs.h. */
1893     $4
1894     int
1895     main ()
1896     {
1897     if (sizeof ($2))
1898     return 0;
1899     ;
1900     return 0;
1901     }
1902     _ACEOF
1903     if ac_fn_c_try_compile "$LINENO"; then :
1904     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905     /* end confdefs.h. */
1906     $4
1907     int
1908     main ()
1909     {
1910     if (sizeof (($2)))
1911     return 0;
1912     ;
1913     return 0;
1914     }
1915     _ACEOF
1916     if ac_fn_c_try_compile "$LINENO"; then :
1917    
1918     else
1919     eval "$3=yes"
1920     fi
1921     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922     fi
1923     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924     fi
1925     eval ac_res=\$$3
1926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927     $as_echo "$ac_res" >&6; }
1928     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929    
1930     } # ac_fn_c_check_type
1931    
1932     # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1933     # --------------------------------------------
1934     # Tries to find the compile-time value of EXPR in a program that includes
1935     # INCLUDES, setting VAR accordingly. Returns whether the value could be
1936     # computed
1937     ac_fn_c_compute_int ()
1938     {
1939     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940     if test "$cross_compiling" = yes; then
1941     # Depending upon the size, compute the lo and hi bounds.
1942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943     /* end confdefs.h. */
1944     $4
1945     int
1946     main ()
1947     {
1948     static int test_array [1 - 2 * !(($2) >= 0)];
1949     test_array [0] = 0;
1950     return test_array [0];
1951    
1952     ;
1953     return 0;
1954     }
1955     _ACEOF
1956     if ac_fn_c_try_compile "$LINENO"; then :
1957     ac_lo=0 ac_mid=0
1958     while :; do
1959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960     /* end confdefs.h. */
1961     $4
1962     int
1963     main ()
1964     {
1965     static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1966     test_array [0] = 0;
1967     return test_array [0];
1968    
1969     ;
1970     return 0;
1971     }
1972     _ACEOF
1973     if ac_fn_c_try_compile "$LINENO"; then :
1974     ac_hi=$ac_mid; break
1975     else
1976     as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1977     if test $ac_lo -le $ac_mid; then
1978     ac_lo= ac_hi=
1979     break
1980     fi
1981     as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1982     fi
1983     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984     done
1985     else
1986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987     /* end confdefs.h. */
1988     $4
1989     int
1990     main ()
1991     {
1992     static int test_array [1 - 2 * !(($2) < 0)];
1993     test_array [0] = 0;
1994     return test_array [0];
1995    
1996     ;
1997     return 0;
1998     }
1999     _ACEOF
2000     if ac_fn_c_try_compile "$LINENO"; then :
2001     ac_hi=-1 ac_mid=-1
2002     while :; do
2003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004     /* end confdefs.h. */
2005     $4
2006     int
2007     main ()
2008     {
2009     static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2010     test_array [0] = 0;
2011     return test_array [0];
2012    
2013     ;
2014     return 0;
2015     }
2016     _ACEOF
2017     if ac_fn_c_try_compile "$LINENO"; then :
2018     ac_lo=$ac_mid; break
2019     else
2020     as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2021     if test $ac_mid -le $ac_hi; then
2022     ac_lo= ac_hi=
2023     break
2024     fi
2025     as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2026     fi
2027     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028     done
2029     else
2030     ac_lo= ac_hi=
2031     fi
2032     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033     fi
2034     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035     # Binary search between lo and hi bounds.
2036     while test "x$ac_lo" != "x$ac_hi"; do
2037     as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039     /* end confdefs.h. */
2040     $4
2041     int
2042     main ()
2043     {
2044     static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045     test_array [0] = 0;
2046     return test_array [0];
2047    
2048     ;
2049     return 0;
2050     }
2051     _ACEOF
2052     if ac_fn_c_try_compile "$LINENO"; then :
2053     ac_hi=$ac_mid
2054     else
2055     as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2056     fi
2057     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058     done
2059     case $ac_lo in #((
2060     ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2061     '') ac_retval=1 ;;
2062     esac
2063     else
2064     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065     /* end confdefs.h. */
2066     $4
2067     static long int longval () { return $2; }
2068     static unsigned long int ulongval () { return $2; }
2069     #include <stdio.h>
2070     #include <stdlib.h>
2071     int
2072     main ()
2073     {
2074    
2075     FILE *f = fopen ("conftest.val", "w");
2076     if (! f)
2077     return 1;
2078     if (($2) < 0)
2079     {
2080     long int i = longval ();
2081     if (i != ($2))
2082     return 1;
2083     fprintf (f, "%ld", i);
2084     }
2085     else
2086     {
2087     unsigned long int i = ulongval ();
2088     if (i != ($2))
2089     return 1;
2090     fprintf (f, "%lu", i);
2091     }
2092     /* Do not output a trailing newline, as this causes \r\n confusion
2093     on some platforms. */
2094     return ferror (f) || fclose (f) != 0;
2095    
2096     ;
2097     return 0;
2098     }
2099     _ACEOF
2100     if ac_fn_c_try_run "$LINENO"; then :
2101     echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2102     else
2103     ac_retval=1
2104     fi
2105     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2106     conftest.$ac_objext conftest.beam conftest.$ac_ext
2107     rm -f conftest.val
2108    
2109     fi
2110     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111     as_fn_set_status $ac_retval
2112    
2113     } # ac_fn_c_compute_int
2114 michael 5052 cat >config.log <<_ACEOF
2115     This file contains any messages produced by compilers while
2116     running configure, to aid debugging if configure makes a mistake.
2117    
2118     It was created by bopm $as_me 3.1.3, which was
2119 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
2120 michael 5052
2121     $ $0 $@
2122    
2123     _ACEOF
2124     exec 5>>config.log
2125     {
2126     cat <<_ASUNAME
2127     ## --------- ##
2128     ## Platform. ##
2129     ## --------- ##
2130    
2131     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2132     uname -m = `(uname -m) 2>/dev/null || echo unknown`
2133     uname -r = `(uname -r) 2>/dev/null || echo unknown`
2134     uname -s = `(uname -s) 2>/dev/null || echo unknown`
2135     uname -v = `(uname -v) 2>/dev/null || echo unknown`
2136    
2137     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2138     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2139    
2140     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2141     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2142     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2143     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2144     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2145     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2146     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2147    
2148     _ASUNAME
2149    
2150     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151     for as_dir in $PATH
2152     do
2153     IFS=$as_save_IFS
2154     test -z "$as_dir" && as_dir=.
2155 michael 5059 $as_echo "PATH: $as_dir"
2156     done
2157 michael 5052 IFS=$as_save_IFS
2158    
2159     } >&5
2160    
2161     cat >&5 <<_ACEOF
2162    
2163    
2164     ## ----------- ##
2165     ## Core tests. ##
2166     ## ----------- ##
2167    
2168     _ACEOF
2169    
2170    
2171     # Keep a trace of the command line.
2172     # Strip out --no-create and --no-recursion so they do not pile up.
2173     # Strip out --silent because we don't want to record it for future runs.
2174     # Also quote any args containing shell meta-characters.
2175     # Make two passes to allow for proper duplicate-argument suppression.
2176     ac_configure_args=
2177     ac_configure_args0=
2178     ac_configure_args1=
2179     ac_must_keep_next=false
2180     for ac_pass in 1 2
2181     do
2182     for ac_arg
2183     do
2184     case $ac_arg in
2185     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2186     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2187     | -silent | --silent | --silen | --sile | --sil)
2188     continue ;;
2189     *\'*)
2190 michael 5059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 michael 5052 esac
2192     case $ac_pass in
2193 michael 5059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2194 michael 5052 2)
2195 michael 5059 as_fn_append ac_configure_args1 " '$ac_arg'"
2196 michael 5052 if test $ac_must_keep_next = true; then
2197     ac_must_keep_next=false # Got value, back to normal.
2198     else
2199     case $ac_arg in
2200     *=* | --config-cache | -C | -disable-* | --disable-* \
2201     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2202     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2203     | -with-* | --with-* | -without-* | --without-* | --x)
2204     case "$ac_configure_args0 " in
2205     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206     esac
2207     ;;
2208     -* ) ac_must_keep_next=true ;;
2209     esac
2210     fi
2211 michael 5059 as_fn_append ac_configure_args " '$ac_arg'"
2212 michael 5052 ;;
2213     esac
2214     done
2215     done
2216 michael 5059 { ac_configure_args0=; unset ac_configure_args0;}
2217     { ac_configure_args1=; unset ac_configure_args1;}
2218 michael 5052
2219     # When interrupted or exit'd, cleanup temporary files, and complete
2220     # config.log. We remove comments because anyway the quotes in there
2221     # would cause problems or look ugly.
2222     # WARNING: Use '\'' to represent an apostrophe within the trap.
2223     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2224     trap 'exit_status=$?
2225     # Save into config.log some information that might help in debugging.
2226     {
2227     echo
2228    
2229 michael 5059 $as_echo "## ---------------- ##
2230 michael 5052 ## Cache variables. ##
2231 michael 5059 ## ---------------- ##"
2232 michael 5052 echo
2233     # The following way of writing the cache mishandles newlines in values,
2234     (
2235     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2236     eval ac_val=\$$ac_var
2237     case $ac_val in #(
2238     *${as_nl}*)
2239     case $ac_var in #(
2240 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2241     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2242 michael 5052 esac
2243     case $ac_var in #(
2244     _ | IFS | as_nl) ;; #(
2245 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2246     *) { eval $ac_var=; unset $ac_var;} ;;
2247 michael 5052 esac ;;
2248     esac
2249     done
2250     (set) 2>&1 |
2251     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2252     *${as_nl}ac_space=\ *)
2253     sed -n \
2254     "s/'\''/'\''\\\\'\'''\''/g;
2255     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2256     ;; #(
2257     *)
2258     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2259     ;;
2260     esac |
2261     sort
2262     )
2263     echo
2264    
2265 michael 5059 $as_echo "## ----------------- ##
2266 michael 5052 ## Output variables. ##
2267 michael 5059 ## ----------------- ##"
2268 michael 5052 echo
2269     for ac_var in $ac_subst_vars
2270     do
2271     eval ac_val=\$$ac_var
2272     case $ac_val in
2273 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 michael 5052 esac
2275 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
2276 michael 5052 done | sort
2277     echo
2278    
2279     if test -n "$ac_subst_files"; then
2280 michael 5059 $as_echo "## ------------------- ##
2281 michael 5052 ## File substitutions. ##
2282 michael 5059 ## ------------------- ##"
2283 michael 5052 echo
2284     for ac_var in $ac_subst_files
2285     do
2286     eval ac_val=\$$ac_var
2287     case $ac_val in
2288 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 michael 5052 esac
2290 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
2291 michael 5052 done | sort
2292     echo
2293     fi
2294    
2295     if test -s confdefs.h; then
2296 michael 5059 $as_echo "## ----------- ##
2297 michael 5052 ## confdefs.h. ##
2298 michael 5059 ## ----------- ##"
2299 michael 5052 echo
2300     cat confdefs.h
2301     echo
2302     fi
2303     test "$ac_signal" != 0 &&
2304 michael 5059 $as_echo "$as_me: caught signal $ac_signal"
2305     $as_echo "$as_me: exit $exit_status"
2306 michael 5052 } >&5
2307     rm -f core *.core core.conftest.* &&
2308     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2309     exit $exit_status
2310     ' 0
2311     for ac_signal in 1 2 13 15; do
2312 michael 5059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2313 michael 5052 done
2314     ac_signal=0
2315    
2316     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2317     rm -f -r conftest* confdefs.h
2318    
2319 michael 5059 $as_echo "/* confdefs.h */" > confdefs.h
2320    
2321 michael 5052 # Predefined preprocessor variables.
2322    
2323     cat >>confdefs.h <<_ACEOF
2324     #define PACKAGE_NAME "$PACKAGE_NAME"
2325     _ACEOF
2326    
2327     cat >>confdefs.h <<_ACEOF
2328     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2329     _ACEOF
2330    
2331     cat >>confdefs.h <<_ACEOF
2332     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2333     _ACEOF
2334    
2335     cat >>confdefs.h <<_ACEOF
2336     #define PACKAGE_STRING "$PACKAGE_STRING"
2337     _ACEOF
2338    
2339     cat >>confdefs.h <<_ACEOF
2340     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2341     _ACEOF
2342    
2343 michael 5059 cat >>confdefs.h <<_ACEOF
2344     #define PACKAGE_URL "$PACKAGE_URL"
2345     _ACEOF
2346 michael 5052
2347 michael 5059
2348 michael 5052 # Let the site file select an alternate cache file if it wants to.
2349 michael 5059 # Prefer an explicitly selected file to automatically selected ones.
2350     ac_site_file1=NONE
2351     ac_site_file2=NONE
2352 michael 5052 if test -n "$CONFIG_SITE"; then
2353 michael 5059 # We do not want a PATH search for config.site.
2354     case $CONFIG_SITE in #((
2355     -*) ac_site_file1=./$CONFIG_SITE;;
2356     */*) ac_site_file1=$CONFIG_SITE;;
2357     *) ac_site_file1=./$CONFIG_SITE;;
2358     esac
2359 michael 5052 elif test "x$prefix" != xNONE; then
2360 michael 5059 ac_site_file1=$prefix/share/config.site
2361     ac_site_file2=$prefix/etc/config.site
2362 michael 5052 else
2363 michael 5059 ac_site_file1=$ac_default_prefix/share/config.site
2364     ac_site_file2=$ac_default_prefix/etc/config.site
2365 michael 5052 fi
2366 michael 5059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2367 michael 5052 do
2368 michael 5059 test "x$ac_site_file" = xNONE && continue
2369     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2370     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2371     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2372 michael 5052 sed 's/^/| /' "$ac_site_file" >&5
2373 michael 5059 . "$ac_site_file" \
2374     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376     as_fn_error $? "failed to load site script $ac_site_file
2377     See \`config.log' for more details" "$LINENO" 5; }
2378 michael 5052 fi
2379     done
2380    
2381     if test -r "$cache_file"; then
2382 michael 5059 # Some versions of bash will fail to source /dev/null (special files
2383     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2384     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2385     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2386     $as_echo "$as_me: loading cache $cache_file" >&6;}
2387 michael 5052 case $cache_file in
2388     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2389     *) . "./$cache_file";;
2390     esac
2391     fi
2392     else
2393 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2394     $as_echo "$as_me: creating cache $cache_file" >&6;}
2395 michael 5052 >$cache_file
2396     fi
2397    
2398     # Check that the precious variables saved in the cache have kept the same
2399     # value.
2400     ac_cache_corrupted=false
2401     for ac_var in $ac_precious_vars; do
2402     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2403     eval ac_new_set=\$ac_env_${ac_var}_set
2404     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2405     eval ac_new_val=\$ac_env_${ac_var}_value
2406     case $ac_old_set,$ac_new_set in
2407     set,)
2408 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2409     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2410 michael 5052 ac_cache_corrupted=: ;;
2411     ,set)
2412 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2413     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2414 michael 5052 ac_cache_corrupted=: ;;
2415     ,);;
2416     *)
2417     if test "x$ac_old_val" != "x$ac_new_val"; then
2418 michael 5059 # differences in whitespace do not lead to failure.
2419     ac_old_val_w=`echo x $ac_old_val`
2420     ac_new_val_w=`echo x $ac_new_val`
2421     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2422     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2423     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2424     ac_cache_corrupted=:
2425     else
2426     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2427     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2428     eval $ac_var=\$ac_old_val
2429     fi
2430     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2431     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2432     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2433     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2434 michael 5052 fi;;
2435     esac
2436     # Pass precious variables to config.status.
2437     if test "$ac_new_set" = set; then
2438     case $ac_new_val in
2439 michael 5059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 michael 5052 *) ac_arg=$ac_var=$ac_new_val ;;
2441     esac
2442     case " $ac_configure_args " in
2443     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2444 michael 5059 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2445 michael 5052 esac
2446     fi
2447     done
2448     if $ac_cache_corrupted; then
2449 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2452     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2453     as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2454 michael 5052 fi
2455 michael 5059 ## -------------------- ##
2456     ## Main body of script. ##
2457     ## -------------------- ##
2458 michael 5052
2459     ac_ext=c
2460     ac_cpp='$CPP $CPPFLAGS'
2461     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464    
2465    
2466    
2467     ac_config_headers="$ac_config_headers src/setup.h"
2468    
2469 michael 5059 am__api_version='1.14'
2470    
2471 michael 5052 ac_aux_dir=
2472     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2473     if test -f "$ac_dir/install-sh"; then
2474     ac_aux_dir=$ac_dir
2475     ac_install_sh="$ac_aux_dir/install-sh -c"
2476     break
2477     elif test -f "$ac_dir/install.sh"; then
2478     ac_aux_dir=$ac_dir
2479     ac_install_sh="$ac_aux_dir/install.sh -c"
2480     break
2481     elif test -f "$ac_dir/shtool"; then
2482     ac_aux_dir=$ac_dir
2483     ac_install_sh="$ac_aux_dir/shtool install -c"
2484     break
2485     fi
2486     done
2487     if test -z "$ac_aux_dir"; then
2488 michael 5059 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2489 michael 5052 fi
2490    
2491     # These three variables are undocumented and unsupported,
2492     # and are intended to be withdrawn in a future Autoconf release.
2493     # They can cause serious problems if a builder's source tree is in a directory
2494     # whose full name contains unusual characters.
2495     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2496     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2497     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2498    
2499    
2500     # Find a good install program. We prefer a C program (faster),
2501     # so one script is as good as another. But avoid the broken or
2502     # incompatible versions:
2503     # SysV /etc/install, /usr/sbin/install
2504     # SunOS /usr/etc/install
2505     # IRIX /sbin/install
2506     # AIX /bin/install
2507     # AmigaOS /C/install, which installs bootblocks on floppy discs
2508     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2509     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2511     # OS/2's system install, which has a completely different semantic
2512     # ./install, which can be erroneously created by make from ./install.sh.
2513 michael 5059 # Reject install programs that cannot install multiple files.
2514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2515     $as_echo_n "checking for a BSD-compatible install... " >&6; }
2516 michael 5052 if test -z "$INSTALL"; then
2517 michael 5059 if ${ac_cv_path_install+:} false; then :
2518     $as_echo_n "(cached) " >&6
2519 michael 5052 else
2520     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521     for as_dir in $PATH
2522     do
2523     IFS=$as_save_IFS
2524     test -z "$as_dir" && as_dir=.
2525 michael 5059 # Account for people who put trailing slashes in PATH elements.
2526     case $as_dir/ in #((
2527     ./ | .// | /[cC]/* | \
2528 michael 5052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2529 michael 5059 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2530 michael 5052 /usr/ucb/* ) ;;
2531     *)
2532     # OSF1 and SCO ODT 3.0 have their own names for install.
2533     # Don't use installbsd from OSF since it installs stuff as root
2534     # by default.
2535     for ac_prog in ginstall scoinst install; do
2536     for ac_exec_ext in '' $ac_executable_extensions; do
2537 michael 5059 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2538 michael 5052 if test $ac_prog = install &&
2539     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540     # AIX install. It has an incompatible calling convention.
2541     :
2542     elif test $ac_prog = install &&
2543     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544     # program-specific install script used by HP pwplus--don't use.
2545     :
2546     else
2547 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2548     echo one > conftest.one
2549     echo two > conftest.two
2550     mkdir conftest.dir
2551     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2552     test -s conftest.one && test -s conftest.two &&
2553     test -s conftest.dir/conftest.one &&
2554     test -s conftest.dir/conftest.two
2555     then
2556     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2557     break 3
2558     fi
2559 michael 5052 fi
2560     fi
2561     done
2562     done
2563     ;;
2564     esac
2565 michael 5059
2566     done
2567 michael 5052 IFS=$as_save_IFS
2568    
2569 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2570 michael 5052
2571     fi
2572     if test "${ac_cv_path_install+set}" = set; then
2573     INSTALL=$ac_cv_path_install
2574     else
2575     # As a last resort, use the slow shell script. Don't cache a
2576     # value for INSTALL within a source directory, because that will
2577     # break other packages using the cache if that directory is
2578     # removed, or if the value is a relative name.
2579     INSTALL=$ac_install_sh
2580     fi
2581     fi
2582 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2583     $as_echo "$INSTALL" >&6; }
2584 michael 5052
2585     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586     # It thinks the first close brace ends the variable substitution.
2587     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2588    
2589     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2590    
2591     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592    
2593 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2594     $as_echo_n "checking whether build environment is sane... " >&6; }
2595     # Reject unsafe characters in $srcdir or the absolute working directory
2596     # name. Accept space and tab only in the latter.
2597     am_lf='
2598     '
2599     case `pwd` in
2600     *[\\\"\#\$\&\'\`$am_lf]*)
2601     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2602     esac
2603     case $srcdir in
2604     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2605     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2606     esac
2607    
2608     # Do 'set' in a subshell so we don't clobber the current shell's
2609 michael 5052 # arguments. Must try -L first in case configure is actually a
2610     # symlink; some systems play weird games with the mod time of symlinks
2611     # (eg FreeBSD returns the mod time of the symlink's containing
2612     # directory).
2613     if (
2614 michael 5059 am_has_slept=no
2615     for am_try in 1 2; do
2616     echo "timestamp, slept: $am_has_slept" > conftest.file
2617     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2618     if test "$*" = "X"; then
2619     # -L didn't work.
2620     set X `ls -t "$srcdir/configure" conftest.file`
2621     fi
2622     if test "$*" != "X $srcdir/configure conftest.file" \
2623     && test "$*" != "X conftest.file $srcdir/configure"; then
2624 michael 5052
2625 michael 5059 # If neither matched, then we have a broken ls. This can happen
2626     # if, for instance, CONFIG_SHELL is bash and it inherits a
2627     # broken ls alias from the environment. This has actually
2628     # happened. Such a system could not be considered "sane".
2629     as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2630     alias in your environment" "$LINENO" 5
2631     fi
2632     if test "$2" = conftest.file || test $am_try -eq 2; then
2633     break
2634     fi
2635     # Just in case.
2636     sleep 1
2637     am_has_slept=yes
2638     done
2639 michael 5052 test "$2" = conftest.file
2640     )
2641     then
2642     # Ok.
2643     :
2644     else
2645 michael 5059 as_fn_error $? "newly created file is older than distributed files!
2646     Check your system clock" "$LINENO" 5
2647 michael 5052 fi
2648 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649     $as_echo "yes" >&6; }
2650     # If we didn't sleep, we still need to ensure time stamps of config.status and
2651     # generated files are strictly newer.
2652     am_sleep_pid=
2653     if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2654     ( sleep 1 ) &
2655     am_sleep_pid=$!
2656     fi
2657    
2658     rm -f conftest.file
2659    
2660 michael 5052 test "$program_prefix" != NONE &&
2661     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2662     # Use a double $ so make ignores it.
2663     test "$program_suffix" != NONE &&
2664     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2665 michael 5059 # Double any \ or $.
2666 michael 5052 # By default was `s,x,x', remove it if useless.
2667 michael 5059 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2668     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2669 michael 5052
2670     # expand $ac_aux_dir to an absolute path
2671     am_aux_dir=`cd $ac_aux_dir && pwd`
2672    
2673 michael 5059 if test x"${MISSING+set}" != xset; then
2674     case $am_aux_dir in
2675     *\ * | *\ *)
2676     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2677     *)
2678     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2679     esac
2680     fi
2681 michael 5052 # Use eval to expand $SHELL
2682 michael 5059 if eval "$MISSING --is-lightweight"; then
2683     am_missing_run="$MISSING "
2684 michael 5052 else
2685     am_missing_run=
2686 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2687     $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2688 michael 5052 fi
2689    
2690 michael 5059 if test x"${install_sh}" != xset; then
2691     case $am_aux_dir in
2692     *\ * | *\ *)
2693     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2694     *)
2695     install_sh="\${SHELL} $am_aux_dir/install-sh"
2696     esac
2697     fi
2698    
2699     # Installed binaries are usually stripped using 'strip' when the user
2700     # run "make install-strip". However 'strip' might not be the right
2701     # tool to use in cross-compilation environments, therefore Automake
2702     # will honor the 'STRIP' environment variable to overrule this program.
2703     if test "$cross_compiling" != no; then
2704     if test -n "$ac_tool_prefix"; then
2705     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2706     set dummy ${ac_tool_prefix}strip; ac_word=$2
2707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708     $as_echo_n "checking for $ac_word... " >&6; }
2709     if ${ac_cv_prog_STRIP+:} false; then :
2710     $as_echo_n "(cached) " >&6
2711 michael 5052 else
2712 michael 5059 if test -n "$STRIP"; then
2713     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2714     else
2715     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716     for as_dir in $PATH
2717     do
2718     IFS=$as_save_IFS
2719     test -z "$as_dir" && as_dir=.
2720     for ac_exec_ext in '' $ac_executable_extensions; do
2721     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725     fi
2726     done
2727 michael 5052 done
2728 michael 5059 IFS=$as_save_IFS
2729    
2730     fi
2731     fi
2732     STRIP=$ac_cv_prog_STRIP
2733     if test -n "$STRIP"; then
2734     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2735     $as_echo "$STRIP" >&6; }
2736     else
2737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738     $as_echo "no" >&6; }
2739     fi
2740    
2741    
2742     fi
2743     if test -z "$ac_cv_prog_STRIP"; then
2744     ac_ct_STRIP=$STRIP
2745     # Extract the first word of "strip", so it can be a program name with args.
2746     set dummy strip; ac_word=$2
2747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748     $as_echo_n "checking for $ac_word... " >&6; }
2749     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2750     $as_echo_n "(cached) " >&6
2751     else
2752     if test -n "$ac_ct_STRIP"; then
2753     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2754     else
2755     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756     for as_dir in $PATH
2757     do
2758     IFS=$as_save_IFS
2759     test -z "$as_dir" && as_dir=.
2760     for ac_exec_ext in '' $ac_executable_extensions; do
2761     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2762     ac_cv_prog_ac_ct_STRIP="strip"
2763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764     break 2
2765     fi
2766     done
2767     done
2768     IFS=$as_save_IFS
2769    
2770     fi
2771     fi
2772     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2773     if test -n "$ac_ct_STRIP"; then
2774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2775     $as_echo "$ac_ct_STRIP" >&6; }
2776     else
2777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778     $as_echo "no" >&6; }
2779     fi
2780    
2781     if test "x$ac_ct_STRIP" = x; then
2782     STRIP=":"
2783 michael 5052 else
2784 michael 5059 case $cross_compiling:$ac_tool_warned in
2785     yes:)
2786     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2787     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2788     ac_tool_warned=yes ;;
2789     esac
2790     STRIP=$ac_ct_STRIP
2791 michael 5052 fi
2792 michael 5059 else
2793     STRIP="$ac_cv_prog_STRIP"
2794 michael 5052 fi
2795    
2796 michael 5059 fi
2797     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2798    
2799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2800     $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2801     if test -z "$MKDIR_P"; then
2802     if ${ac_cv_path_mkdir+:} false; then :
2803     $as_echo_n "(cached) " >&6
2804     else
2805     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2807     do
2808     IFS=$as_save_IFS
2809     test -z "$as_dir" && as_dir=.
2810     for ac_prog in mkdir gmkdir; do
2811     for ac_exec_ext in '' $ac_executable_extensions; do
2812     as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2813     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2814     'mkdir (GNU coreutils) '* | \
2815     'mkdir (coreutils) '* | \
2816     'mkdir (fileutils) '4.1*)
2817     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2818     break 3;;
2819     esac
2820     done
2821     done
2822     done
2823     IFS=$as_save_IFS
2824    
2825     fi
2826    
2827     test -d ./--version && rmdir ./--version
2828     if test "${ac_cv_path_mkdir+set}" = set; then
2829     MKDIR_P="$ac_cv_path_mkdir -p"
2830     else
2831     # As a last resort, use the slow shell script. Don't cache a
2832     # value for MKDIR_P within a source directory, because that will
2833     # break other packages using the cache if that directory is
2834     # removed, or if the value is a relative name.
2835     MKDIR_P="$ac_install_sh -d"
2836     fi
2837     fi
2838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2839     $as_echo "$MKDIR_P" >&6; }
2840    
2841 michael 5052 for ac_prog in gawk mawk nawk awk
2842     do
2843     # Extract the first word of "$ac_prog", so it can be a program name with args.
2844     set dummy $ac_prog; ac_word=$2
2845 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846     $as_echo_n "checking for $ac_word... " >&6; }
2847     if ${ac_cv_prog_AWK+:} false; then :
2848     $as_echo_n "(cached) " >&6
2849 michael 5052 else
2850     if test -n "$AWK"; then
2851     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2852     else
2853     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854     for as_dir in $PATH
2855     do
2856     IFS=$as_save_IFS
2857     test -z "$as_dir" && as_dir=.
2858 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2859     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 michael 5052 ac_cv_prog_AWK="$ac_prog"
2861 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 michael 5052 break 2
2863     fi
2864     done
2865 michael 5059 done
2866 michael 5052 IFS=$as_save_IFS
2867    
2868     fi
2869     fi
2870     AWK=$ac_cv_prog_AWK
2871     if test -n "$AWK"; then
2872 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2873     $as_echo "$AWK" >&6; }
2874 michael 5052 else
2875 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876     $as_echo "no" >&6; }
2877 michael 5052 fi
2878    
2879    
2880     test -n "$AWK" && break
2881     done
2882    
2883 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2884     $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2885     set x ${MAKE-make}
2886     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2887     if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2888     $as_echo_n "(cached) " >&6
2889 michael 5052 else
2890     cat >conftest.make <<\_ACEOF
2891     SHELL = /bin/sh
2892     all:
2893     @echo '@@@%%%=$(MAKE)=@@@%%%'
2894     _ACEOF
2895 michael 5059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2896 michael 5052 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2897     *@@@%%%=?*=@@@%%%*)
2898     eval ac_cv_prog_make_${ac_make}_set=yes;;
2899     *)
2900     eval ac_cv_prog_make_${ac_make}_set=no;;
2901     esac
2902     rm -f conftest.make
2903     fi
2904     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2905 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906     $as_echo "yes" >&6; }
2907 michael 5052 SET_MAKE=
2908     else
2909 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910     $as_echo "no" >&6; }
2911 michael 5052 SET_MAKE="MAKE=${MAKE-make}"
2912     fi
2913    
2914     rm -rf .tst 2>/dev/null
2915     mkdir .tst 2>/dev/null
2916     if test -d .tst; then
2917     am__leading_dot=.
2918     else
2919     am__leading_dot=_
2920     fi
2921     rmdir .tst 2>/dev/null
2922    
2923 michael 5059 # Check whether --enable-silent-rules was given.
2924     if test "${enable_silent_rules+set}" = set; then :
2925     enableval=$enable_silent_rules;
2926 michael 5052 fi
2927    
2928 michael 5059 case $enable_silent_rules in # (((
2929     yes) AM_DEFAULT_VERBOSITY=0;;
2930     no) AM_DEFAULT_VERBOSITY=1;;
2931     *) AM_DEFAULT_VERBOSITY=1;;
2932     esac
2933     am_make=${MAKE-make}
2934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2935     $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2936     if ${am_cv_make_support_nested_variables+:} false; then :
2937     $as_echo_n "(cached) " >&6
2938     else
2939     if $as_echo 'TRUE=$(BAR$(V))
2940     BAR0=false
2941     BAR1=true
2942     V=1
2943     am__doit:
2944     @$(TRUE)
2945     .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2946     am_cv_make_support_nested_variables=yes
2947     else
2948     am_cv_make_support_nested_variables=no
2949     fi
2950     fi
2951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2952     $as_echo "$am_cv_make_support_nested_variables" >&6; }
2953     if test $am_cv_make_support_nested_variables = yes; then
2954     AM_V='$(V)'
2955     AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2956     else
2957     AM_V=$AM_DEFAULT_VERBOSITY
2958     AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2959     fi
2960     AM_BACKSLASH='\'
2961    
2962     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2963     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2964     # is not polluted with repeated "-I."
2965     am__isrc=' -I$(srcdir)'
2966     # test to see if srcdir already configured
2967     if test -f $srcdir/config.status; then
2968     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2969     fi
2970     fi
2971    
2972 michael 5052 # test whether we have cygpath
2973     if test -z "$CYGPATH_W"; then
2974     if (cygpath --version) >/dev/null 2>/dev/null; then
2975     CYGPATH_W='cygpath -w'
2976     else
2977     CYGPATH_W=echo
2978     fi
2979     fi
2980    
2981    
2982     # Define the identity of the package.
2983     PACKAGE='bopm'
2984     VERSION='3.1.3'
2985    
2986    
2987     cat >>confdefs.h <<_ACEOF
2988     #define PACKAGE "$PACKAGE"
2989     _ACEOF
2990    
2991    
2992     cat >>confdefs.h <<_ACEOF
2993     #define VERSION "$VERSION"
2994     _ACEOF
2995    
2996     # Some tools Automake needs.
2997    
2998     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2999    
3000    
3001     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3002    
3003    
3004     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3005    
3006    
3007     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3008    
3009    
3010     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3011    
3012 michael 5059 # For better backward compatibility. To be removed once Automake 1.9.x
3013     # dies out for good. For more background, see:
3014     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3015     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3016     mkdir_p='$(MKDIR_P)'
3017 michael 5052
3018 michael 5059 # We need awk for the "check" target. The system "awk" is bad on
3019     # some platforms.
3020     # Always define AMTAR for backward compatibility. Yes, it's still used
3021     # in the wild :-( We should find a proper way to deprecate it ...
3022     AMTAR='$${TAR-tar}'
3023 michael 5052
3024    
3025 michael 5059 # We'll loop over all known methods to create a tar archive until one works.
3026     _am_tools='gnutar pax cpio none'
3027 michael 5052
3028 michael 5059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3029 michael 5052
3030    
3031    
3032    
3033    
3034    
3035 michael 5059 # POSIX will say in a future version that running "rm -f" with no argument
3036     # is OK; and we want to be able to make that assumption in our Makefile
3037     # recipes. So use an aggressive probe to check that the usage we want is
3038     # actually supported "in the wild" to an acceptable degree.
3039     # See automake bug#10828.
3040     # To make any issue more visible, cause the running configure to be aborted
3041     # by default if the 'rm' program in use doesn't match our expectations; the
3042     # user can still override this though.
3043     if rm -f && rm -fr && rm -rf; then : OK; else
3044     cat >&2 <<'END'
3045     Oops!
3046 michael 5052
3047 michael 5059 Your 'rm' program seems unable to run without file operands specified
3048     on the command line, even when the '-f' option is present. This is contrary
3049     to the behaviour of most rm programs out there, and not conforming with
3050     the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3051 michael 5052
3052 michael 5059 Please tell bug-automake@gnu.org about your system, including the value
3053     of your $PATH and any error possibly output before this message. This
3054     can help us improve future automake versions.
3055 michael 5052
3056 michael 5059 END
3057     if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3058     echo 'Configuration will proceed anyway, since you have set the' >&2
3059     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3060     echo >&2
3061     else
3062     cat >&2 <<'END'
3063     Aborting the configuration process, to ensure you take notice of the issue.
3064 michael 5052
3065 michael 5059 You can download and install GNU coreutils to get an 'rm' implementation
3066     that behaves properly: <http://www.gnu.org/software/coreutils/>.
3067 michael 5052
3068 michael 5059 If you want to complete the configuration process using your problematic
3069     'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3070     to "yes", and re-run configure.
3071 michael 5052
3072 michael 5059 END
3073     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3074     fi
3075     fi
3076    
3077    
3078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3079     $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3080 michael 5052 # Check whether --enable-maintainer-mode was given.
3081 michael 5059 if test "${enable_maintainer_mode+set}" = set; then :
3082 michael 5052 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3083     else
3084     USE_MAINTAINER_MODE=no
3085     fi
3086    
3087 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3088     $as_echo "$USE_MAINTAINER_MODE" >&6; }
3089     if test $USE_MAINTAINER_MODE = yes; then
3090 michael 5052 MAINTAINER_MODE_TRUE=
3091     MAINTAINER_MODE_FALSE='#'
3092     else
3093     MAINTAINER_MODE_TRUE='#'
3094     MAINTAINER_MODE_FALSE=
3095     fi
3096    
3097     MAINT=$MAINTAINER_MODE_TRUE
3098    
3099    
3100    
3101    
3102     # Check whether --with-extra-fascism was given.
3103 michael 5059 if test "${with_extra_fascism+set}" = set; then :
3104 michael 5052 withval=$with_extra_fascism; CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
3105     fi
3106    
3107    
3108    
3109    
3110    
3111 michael 5059 DEPDIR="${am__leading_dot}deps"
3112    
3113     ac_config_commands="$ac_config_commands depfiles"
3114    
3115    
3116     am_make=${MAKE-make}
3117     cat > confinc << 'END'
3118     am__doit:
3119     @echo this is the am__doit target
3120     .PHONY: am__doit
3121     END
3122     # If we don't find an include directive, just comment out the code.
3123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3124     $as_echo_n "checking for style of include used by $am_make... " >&6; }
3125     am__include="#"
3126     am__quote=
3127     _am_result=none
3128     # First try GNU make style include.
3129     echo "include confinc" > confmf
3130     # Ignore all kinds of additional output from 'make'.
3131     case `$am_make -s -f confmf 2> /dev/null` in #(
3132     *the\ am__doit\ target*)
3133     am__include=include
3134     am__quote=
3135     _am_result=GNU
3136     ;;
3137     esac
3138     # Now try BSD make style include.
3139     if test "$am__include" = "#"; then
3140     echo '.include "confinc"' > confmf
3141     case `$am_make -s -f confmf 2> /dev/null` in #(
3142     *the\ am__doit\ target*)
3143     am__include=.include
3144     am__quote="\""
3145     _am_result=BSD
3146     ;;
3147     esac
3148     fi
3149    
3150    
3151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3152     $as_echo "$_am_result" >&6; }
3153     rm -f confinc confmf
3154    
3155     # Check whether --enable-dependency-tracking was given.
3156     if test "${enable_dependency_tracking+set}" = set; then :
3157     enableval=$enable_dependency_tracking;
3158     fi
3159    
3160     if test "x$enable_dependency_tracking" != xno; then
3161     am_depcomp="$ac_aux_dir/depcomp"
3162     AMDEPBACKSLASH='\'
3163     am__nodep='_no'
3164     fi
3165     if test "x$enable_dependency_tracking" != xno; then
3166     AMDEP_TRUE=
3167     AMDEP_FALSE='#'
3168     else
3169     AMDEP_TRUE='#'
3170     AMDEP_FALSE=
3171     fi
3172    
3173    
3174 michael 5052 ac_ext=c
3175     ac_cpp='$CPP $CPPFLAGS'
3176     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179     if test -n "$ac_tool_prefix"; then
3180     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3181     set dummy ${ac_tool_prefix}gcc; ac_word=$2
3182 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183     $as_echo_n "checking for $ac_word... " >&6; }
3184     if ${ac_cv_prog_CC+:} false; then :
3185     $as_echo_n "(cached) " >&6
3186 michael 5052 else
3187     if test -n "$CC"; then
3188     ac_cv_prog_CC="$CC" # Let the user override the test.
3189     else
3190     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191     for as_dir in $PATH
3192     do
3193     IFS=$as_save_IFS
3194     test -z "$as_dir" && as_dir=.
3195 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3196     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3198 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 michael 5052 break 2
3200     fi
3201     done
3202 michael 5059 done
3203 michael 5052 IFS=$as_save_IFS
3204    
3205     fi
3206     fi
3207     CC=$ac_cv_prog_CC
3208     if test -n "$CC"; then
3209 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210     $as_echo "$CC" >&6; }
3211 michael 5052 else
3212 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213     $as_echo "no" >&6; }
3214 michael 5052 fi
3215    
3216    
3217     fi
3218     if test -z "$ac_cv_prog_CC"; then
3219     ac_ct_CC=$CC
3220     # Extract the first word of "gcc", so it can be a program name with args.
3221     set dummy gcc; ac_word=$2
3222 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223     $as_echo_n "checking for $ac_word... " >&6; }
3224     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3225     $as_echo_n "(cached) " >&6
3226 michael 5052 else
3227     if test -n "$ac_ct_CC"; then
3228     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229     else
3230     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231     for as_dir in $PATH
3232     do
3233     IFS=$as_save_IFS
3234     test -z "$as_dir" && as_dir=.
3235 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3236     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 michael 5052 ac_cv_prog_ac_ct_CC="gcc"
3238 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 michael 5052 break 2
3240     fi
3241     done
3242 michael 5059 done
3243 michael 5052 IFS=$as_save_IFS
3244    
3245     fi
3246     fi
3247     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248     if test -n "$ac_ct_CC"; then
3249 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250     $as_echo "$ac_ct_CC" >&6; }
3251 michael 5052 else
3252 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253     $as_echo "no" >&6; }
3254 michael 5052 fi
3255    
3256     if test "x$ac_ct_CC" = x; then
3257     CC=""
3258     else
3259     case $cross_compiling:$ac_tool_warned in
3260     yes:)
3261 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 michael 5052 ac_tool_warned=yes ;;
3264     esac
3265     CC=$ac_ct_CC
3266     fi
3267     else
3268     CC="$ac_cv_prog_CC"
3269     fi
3270    
3271     if test -z "$CC"; then
3272     if test -n "$ac_tool_prefix"; then
3273     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274     set dummy ${ac_tool_prefix}cc; ac_word=$2
3275 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276     $as_echo_n "checking for $ac_word... " >&6; }
3277     if ${ac_cv_prog_CC+:} false; then :
3278     $as_echo_n "(cached) " >&6
3279 michael 5052 else
3280     if test -n "$CC"; then
3281     ac_cv_prog_CC="$CC" # Let the user override the test.
3282     else
3283     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284     for as_dir in $PATH
3285     do
3286     IFS=$as_save_IFS
3287     test -z "$as_dir" && as_dir=.
3288 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3289     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}cc"
3291 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 michael 5052 break 2
3293     fi
3294     done
3295 michael 5059 done
3296 michael 5052 IFS=$as_save_IFS
3297    
3298     fi
3299     fi
3300     CC=$ac_cv_prog_CC
3301     if test -n "$CC"; then
3302 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303     $as_echo "$CC" >&6; }
3304 michael 5052 else
3305 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306     $as_echo "no" >&6; }
3307 michael 5052 fi
3308    
3309    
3310     fi
3311     fi
3312     if test -z "$CC"; then
3313     # Extract the first word of "cc", so it can be a program name with args.
3314     set dummy cc; ac_word=$2
3315 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316     $as_echo_n "checking for $ac_word... " >&6; }
3317     if ${ac_cv_prog_CC+:} false; then :
3318     $as_echo_n "(cached) " >&6
3319 michael 5052 else
3320     if test -n "$CC"; then
3321     ac_cv_prog_CC="$CC" # Let the user override the test.
3322     else
3323     ac_prog_rejected=no
3324     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325     for as_dir in $PATH
3326     do
3327     IFS=$as_save_IFS
3328     test -z "$as_dir" && as_dir=.
3329 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3330     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 michael 5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3332     ac_prog_rejected=yes
3333     continue
3334     fi
3335     ac_cv_prog_CC="cc"
3336 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 michael 5052 break 2
3338     fi
3339     done
3340 michael 5059 done
3341 michael 5052 IFS=$as_save_IFS
3342    
3343     if test $ac_prog_rejected = yes; then
3344     # We found a bogon in the path, so make sure we never use it.
3345     set dummy $ac_cv_prog_CC
3346     shift
3347     if test $# != 0; then
3348     # We chose a different compiler from the bogus one.
3349     # However, it has the same basename, so the bogon will be chosen
3350     # first if we set CC to just the basename; use the full file name.
3351     shift
3352     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3353     fi
3354     fi
3355     fi
3356     fi
3357     CC=$ac_cv_prog_CC
3358     if test -n "$CC"; then
3359 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360     $as_echo "$CC" >&6; }
3361 michael 5052 else
3362 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363     $as_echo "no" >&6; }
3364 michael 5052 fi
3365    
3366    
3367     fi
3368     if test -z "$CC"; then
3369     if test -n "$ac_tool_prefix"; then
3370     for ac_prog in cl.exe
3371     do
3372     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3373     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3374 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375     $as_echo_n "checking for $ac_word... " >&6; }
3376     if ${ac_cv_prog_CC+:} false; then :
3377     $as_echo_n "(cached) " >&6
3378 michael 5052 else
3379     if test -n "$CC"; then
3380     ac_cv_prog_CC="$CC" # Let the user override the test.
3381     else
3382     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383     for as_dir in $PATH
3384     do
3385     IFS=$as_save_IFS
3386     test -z "$as_dir" && as_dir=.
3387 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3388     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 michael 5052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3390 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 michael 5052 break 2
3392     fi
3393     done
3394 michael 5059 done
3395 michael 5052 IFS=$as_save_IFS
3396    
3397     fi
3398     fi
3399     CC=$ac_cv_prog_CC
3400     if test -n "$CC"; then
3401 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402     $as_echo "$CC" >&6; }
3403 michael 5052 else
3404 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405     $as_echo "no" >&6; }
3406 michael 5052 fi
3407    
3408    
3409     test -n "$CC" && break
3410     done
3411     fi
3412     if test -z "$CC"; then
3413     ac_ct_CC=$CC
3414     for ac_prog in cl.exe
3415     do
3416     # Extract the first word of "$ac_prog", so it can be a program name with args.
3417     set dummy $ac_prog; ac_word=$2
3418 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419     $as_echo_n "checking for $ac_word... " >&6; }
3420     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3421     $as_echo_n "(cached) " >&6
3422 michael 5052 else
3423     if test -n "$ac_ct_CC"; then
3424     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425     else
3426     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427     for as_dir in $PATH
3428     do
3429     IFS=$as_save_IFS
3430     test -z "$as_dir" && as_dir=.
3431 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3432     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 michael 5052 ac_cv_prog_ac_ct_CC="$ac_prog"
3434 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 michael 5052 break 2
3436     fi
3437     done
3438 michael 5059 done
3439 michael 5052 IFS=$as_save_IFS
3440    
3441     fi
3442     fi
3443     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444     if test -n "$ac_ct_CC"; then
3445 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446     $as_echo "$ac_ct_CC" >&6; }
3447 michael 5052 else
3448 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449     $as_echo "no" >&6; }
3450 michael 5052 fi
3451    
3452    
3453     test -n "$ac_ct_CC" && break
3454     done
3455    
3456     if test "x$ac_ct_CC" = x; then
3457     CC=""
3458     else
3459     case $cross_compiling:$ac_tool_warned in
3460     yes:)
3461 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 michael 5052 ac_tool_warned=yes ;;
3464     esac
3465     CC=$ac_ct_CC
3466     fi
3467     fi
3468    
3469     fi
3470    
3471    
3472 michael 5059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474     as_fn_error $? "no acceptable C compiler found in \$PATH
3475     See \`config.log' for more details" "$LINENO" 5; }
3476 michael 5052
3477     # Provide some information about the compiler.
3478 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3479     set X $ac_compile
3480     ac_compiler=$2
3481     for ac_option in --version -v -V -qversion; do
3482     { { ac_try="$ac_compiler $ac_option >&5"
3483 michael 5052 case "(($ac_try" in
3484     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485     *) ac_try_echo=$ac_try;;
3486     esac
3487 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488     $as_echo "$ac_try_echo"; } >&5
3489     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490 michael 5052 ac_status=$?
3491 michael 5059 if test -s conftest.err; then
3492     sed '10a\
3493     ... rest of stderr output deleted ...
3494     10q' conftest.err >conftest.er1
3495     cat conftest.er1 >&5
3496     fi
3497     rm -f conftest.er1 conftest.err
3498     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499     test $ac_status = 0; }
3500     done
3501 michael 5052
3502 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 michael 5052 /* end confdefs.h. */
3504    
3505     int
3506     main ()
3507     {
3508    
3509     ;
3510     return 0;
3511     }
3512     _ACEOF
3513     ac_clean_files_save=$ac_clean_files
3514 michael 5059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3515 michael 5052 # Try to create an executable without -o first, disregard a.out.
3516     # It will help us diagnose broken compilers, and finding out an intuition
3517     # of exeext.
3518 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3519     $as_echo_n "checking whether the C compiler works... " >&6; }
3520     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3521    
3522     # The possible output files:
3523     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3524    
3525 michael 5052 ac_rmfiles=
3526     for ac_file in $ac_files
3527     do
3528     case $ac_file in
3529 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 michael 5052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531     esac
3532     done
3533     rm -f $ac_rmfiles
3534    
3535 michael 5059 if { { ac_try="$ac_link_default"
3536 michael 5052 case "(($ac_try" in
3537     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538     *) ac_try_echo=$ac_try;;
3539     esac
3540 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541     $as_echo "$ac_try_echo"; } >&5
3542 michael 5052 (eval "$ac_link_default") 2>&5
3543     ac_status=$?
3544 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545     test $ac_status = 0; }; then :
3546 michael 5052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3547     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3548     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3549     # so that the user can short-circuit this test for compilers unknown to
3550     # Autoconf.
3551 michael 5059 for ac_file in $ac_files ''
3552 michael 5052 do
3553     test -f "$ac_file" || continue
3554     case $ac_file in
3555 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3556 michael 5052 ;;
3557     [ab].out )
3558     # We found the default executable, but exeext='' is most
3559     # certainly right.
3560     break;;
3561     *.* )
3562 michael 5059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 michael 5052 then :; else
3564     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565     fi
3566     # We set ac_cv_exeext here because the later test for it is not
3567     # safe: cross compilers may not add the suffix if given an `-o'
3568     # argument, so we may need to know it at that point already.
3569     # Even if this section looks crufty: it has the advantage of
3570     # actually working.
3571     break;;
3572     * )
3573     break;;
3574     esac
3575     done
3576     test "$ac_cv_exeext" = no && ac_cv_exeext=
3577    
3578     else
3579 michael 5059 ac_file=''
3580     fi
3581     if test -z "$ac_file"; then :
3582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583     $as_echo "no" >&6; }
3584     $as_echo "$as_me: failed program was:" >&5
3585 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3586    
3587 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589     as_fn_error 77 "C compiler cannot create executables
3590     See \`config.log' for more details" "$LINENO" 5; }
3591     else
3592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593     $as_echo "yes" >&6; }
3594 michael 5052 fi
3595 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3596     $as_echo_n "checking for C compiler default output file name... " >&6; }
3597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3598     $as_echo "$ac_file" >&6; }
3599 michael 5052 ac_exeext=$ac_cv_exeext
3600    
3601 michael 5059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3602 michael 5052 ac_clean_files=$ac_clean_files_save
3603 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3604     $as_echo_n "checking for suffix of executables... " >&6; }
3605     if { { ac_try="$ac_link"
3606 michael 5052 case "(($ac_try" in
3607     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608     *) ac_try_echo=$ac_try;;
3609     esac
3610 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611     $as_echo "$ac_try_echo"; } >&5
3612 michael 5052 (eval "$ac_link") 2>&5
3613     ac_status=$?
3614 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615     test $ac_status = 0; }; then :
3616 michael 5052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3617     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3618     # work properly (i.e., refer to `conftest.exe'), while it won't with
3619     # `rm'.
3620     for ac_file in conftest.exe conftest conftest.*; do
3621     test -f "$ac_file" || continue
3622     case $ac_file in
3623 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3624 michael 5052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625     break;;
3626     * ) break;;
3627     esac
3628     done
3629     else
3630 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632     as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3633     See \`config.log' for more details" "$LINENO" 5; }
3634 michael 5052 fi
3635 michael 5059 rm -f conftest conftest$ac_cv_exeext
3636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3637     $as_echo "$ac_cv_exeext" >&6; }
3638 michael 5052
3639     rm -f conftest.$ac_ext
3640     EXEEXT=$ac_cv_exeext
3641     ac_exeext=$EXEEXT
3642 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643     /* end confdefs.h. */
3644     #include <stdio.h>
3645     int
3646     main ()
3647     {
3648     FILE *f = fopen ("conftest.out", "w");
3649     return ferror (f) || fclose (f) != 0;
3650    
3651     ;
3652     return 0;
3653     }
3654     _ACEOF
3655     ac_clean_files="$ac_clean_files conftest.out"
3656     # Check that the compiler produces executables we can run. If not, either
3657     # the compiler is broken, or we cross compile.
3658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3659     $as_echo_n "checking whether we are cross compiling... " >&6; }
3660     if test "$cross_compiling" != yes; then
3661     { { ac_try="$ac_link"
3662     case "(($ac_try" in
3663     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664     *) ac_try_echo=$ac_try;;
3665     esac
3666     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667     $as_echo "$ac_try_echo"; } >&5
3668     (eval "$ac_link") 2>&5
3669     ac_status=$?
3670     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671     test $ac_status = 0; }
3672     if { ac_try='./conftest$ac_cv_exeext'
3673     { { case "(($ac_try" in
3674     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675     *) ac_try_echo=$ac_try;;
3676     esac
3677     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678     $as_echo "$ac_try_echo"; } >&5
3679     (eval "$ac_try") 2>&5
3680     ac_status=$?
3681     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682     test $ac_status = 0; }; }; then
3683     cross_compiling=no
3684     else
3685     if test "$cross_compiling" = maybe; then
3686     cross_compiling=yes
3687     else
3688     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690     as_fn_error $? "cannot run C compiled programs.
3691     If you meant to cross compile, use \`--host'.
3692     See \`config.log' for more details" "$LINENO" 5; }
3693     fi
3694     fi
3695     fi
3696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3697     $as_echo "$cross_compiling" >&6; }
3698    
3699     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3700     ac_clean_files=$ac_clean_files_save
3701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3702     $as_echo_n "checking for suffix of object files... " >&6; }
3703     if ${ac_cv_objext+:} false; then :
3704     $as_echo_n "(cached) " >&6
3705 michael 5052 else
3706 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 michael 5052 /* end confdefs.h. */
3708    
3709     int
3710     main ()
3711     {
3712    
3713     ;
3714     return 0;
3715     }
3716     _ACEOF
3717     rm -f conftest.o conftest.obj
3718 michael 5059 if { { ac_try="$ac_compile"
3719 michael 5052 case "(($ac_try" in
3720     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721     *) ac_try_echo=$ac_try;;
3722     esac
3723 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724     $as_echo "$ac_try_echo"; } >&5
3725 michael 5052 (eval "$ac_compile") 2>&5
3726     ac_status=$?
3727 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728     test $ac_status = 0; }; then :
3729 michael 5052 for ac_file in conftest.o conftest.obj conftest.*; do
3730     test -f "$ac_file" || continue;
3731     case $ac_file in
3732 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3733 michael 5052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3734     break;;
3735     esac
3736     done
3737     else
3738 michael 5059 $as_echo "$as_me: failed program was:" >&5
3739 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3740    
3741 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743     as_fn_error $? "cannot compute suffix of object files: cannot compile
3744     See \`config.log' for more details" "$LINENO" 5; }
3745 michael 5052 fi
3746     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3747     fi
3748 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3749     $as_echo "$ac_cv_objext" >&6; }
3750 michael 5052 OBJEXT=$ac_cv_objext
3751     ac_objext=$OBJEXT
3752 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3753     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3754     if ${ac_cv_c_compiler_gnu+:} false; then :
3755     $as_echo_n "(cached) " >&6
3756 michael 5052 else
3757 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 michael 5052 /* end confdefs.h. */
3759    
3760     int
3761     main ()
3762     {
3763     #ifndef __GNUC__
3764     choke me
3765     #endif
3766    
3767     ;
3768     return 0;
3769     }
3770     _ACEOF
3771 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3772 michael 5052 ac_compiler_gnu=yes
3773     else
3774 michael 5059 ac_compiler_gnu=no
3775 michael 5052 fi
3776     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3778    
3779     fi
3780 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3781     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3782     if test $ac_compiler_gnu = yes; then
3783     GCC=yes
3784     else
3785     GCC=
3786     fi
3787 michael 5052 ac_test_CFLAGS=${CFLAGS+set}
3788     ac_save_CFLAGS=$CFLAGS
3789 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3790     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3791     if ${ac_cv_prog_cc_g+:} false; then :
3792     $as_echo_n "(cached) " >&6
3793 michael 5052 else
3794     ac_save_c_werror_flag=$ac_c_werror_flag
3795     ac_c_werror_flag=yes
3796     ac_cv_prog_cc_g=no
3797     CFLAGS="-g"
3798 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 michael 5052 /* end confdefs.h. */
3800    
3801     int
3802     main ()
3803     {
3804    
3805     ;
3806     return 0;
3807     }
3808     _ACEOF
3809 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3810 michael 5052 ac_cv_prog_cc_g=yes
3811     else
3812 michael 5059 CFLAGS=""
3813     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 michael 5052 /* end confdefs.h. */
3815    
3816     int
3817     main ()
3818     {
3819    
3820     ;
3821     return 0;
3822     }
3823     _ACEOF
3824 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3825    
3826 michael 5052 else
3827 michael 5059 ac_c_werror_flag=$ac_save_c_werror_flag
3828 michael 5052 CFLAGS="-g"
3829 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 michael 5052 /* end confdefs.h. */
3831    
3832     int
3833     main ()
3834     {
3835    
3836     ;
3837     return 0;
3838     }
3839     _ACEOF
3840 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3841 michael 5052 ac_cv_prog_cc_g=yes
3842     fi
3843     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844     fi
3845     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846     fi
3847     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848     ac_c_werror_flag=$ac_save_c_werror_flag
3849     fi
3850 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3851     $as_echo "$ac_cv_prog_cc_g" >&6; }
3852 michael 5052 if test "$ac_test_CFLAGS" = set; then
3853     CFLAGS=$ac_save_CFLAGS
3854     elif test $ac_cv_prog_cc_g = yes; then
3855     if test "$GCC" = yes; then
3856     CFLAGS="-g -O2"
3857     else
3858     CFLAGS="-g"
3859     fi
3860     else
3861     if test "$GCC" = yes; then
3862     CFLAGS="-O2"
3863     else
3864     CFLAGS=
3865     fi
3866     fi
3867 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3868     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3869     if ${ac_cv_prog_cc_c89+:} false; then :
3870     $as_echo_n "(cached) " >&6
3871 michael 5052 else
3872     ac_cv_prog_cc_c89=no
3873     ac_save_CC=$CC
3874 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 michael 5052 /* end confdefs.h. */
3876     #include <stdarg.h>
3877     #include <stdio.h>
3878 michael 5059 struct stat;
3879 michael 5052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3880     struct buf { int x; };
3881     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3882     static char *e (p, i)
3883     char **p;
3884     int i;
3885     {
3886     return p[i];
3887     }
3888     static char *f (char * (*g) (char **, int), char **p, ...)
3889     {
3890     char *s;
3891     va_list v;
3892     va_start (v,p);
3893     s = g (p, va_arg (v,int));
3894     va_end (v);
3895     return s;
3896     }
3897    
3898     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3899     function prototypes and stuff, but not '\xHH' hex character constants.
3900     These don't provoke an error unfortunately, instead are silently treated
3901     as 'x'. The following induces an error, until -std is added to get
3902     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3903     array size at least. It's necessary to write '\x00'==0 to get something
3904     that's true only with -std. */
3905     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3906    
3907     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3908     inside strings and character constants. */
3909     #define FOO(x) 'x'
3910     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3911    
3912     int test (int i, double x);
3913     struct s1 {int (*f) (int a);};
3914     struct s2 {int (*f) (double a);};
3915     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3916     int argc;
3917     char **argv;
3918     int
3919     main ()
3920     {
3921     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3922     ;
3923     return 0;
3924     }
3925     _ACEOF
3926     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3927     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3928     do
3929     CC="$ac_save_CC $ac_arg"
3930 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3931 michael 5052 ac_cv_prog_cc_c89=$ac_arg
3932     fi
3933     rm -f core conftest.err conftest.$ac_objext
3934     test "x$ac_cv_prog_cc_c89" != "xno" && break
3935     done
3936     rm -f conftest.$ac_ext
3937     CC=$ac_save_CC
3938    
3939     fi
3940     # AC_CACHE_VAL
3941     case "x$ac_cv_prog_cc_c89" in
3942     x)
3943 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3944     $as_echo "none needed" >&6; } ;;
3945 michael 5052 xno)
3946 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3947     $as_echo "unsupported" >&6; } ;;
3948 michael 5052 *)
3949     CC="$CC $ac_cv_prog_cc_c89"
3950 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3951     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3952 michael 5052 esac
3953 michael 5059 if test "x$ac_cv_prog_cc_c89" != xno; then :
3954 michael 5052
3955 michael 5059 fi
3956 michael 5052
3957     ac_ext=c
3958     ac_cpp='$CPP $CPPFLAGS'
3959     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962    
3963 michael 5059 ac_ext=c
3964     ac_cpp='$CPP $CPPFLAGS'
3965     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3969     $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3970     if ${am_cv_prog_cc_c_o+:} false; then :
3971     $as_echo_n "(cached) " >&6
3972     else
3973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974     /* end confdefs.h. */
3975 michael 5052
3976 michael 5059 int
3977     main ()
3978     {
3979 michael 5052
3980 michael 5059 ;
3981     return 0;
3982     }
3983     _ACEOF
3984     # Make sure it works both with $CC and with simple cc.
3985     # Following AC_PROG_CC_C_O, we do the test twice because some
3986     # compilers refuse to overwrite an existing .o file with -o,
3987     # though they will create one.
3988     am_cv_prog_cc_c_o=yes
3989     for am_i in 1 2; do
3990     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3991     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3992     ac_status=$?
3993     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994     (exit $ac_status); } \
3995     && test -f conftest2.$ac_objext; then
3996     : OK
3997     else
3998     am_cv_prog_cc_c_o=no
3999     break
4000     fi
4001     done
4002     rm -f core conftest*
4003     unset am_i
4004 michael 5052 fi
4005 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4006     $as_echo "$am_cv_prog_cc_c_o" >&6; }
4007     if test "$am_cv_prog_cc_c_o" != yes; then
4008     # Losing compiler, so override with the script.
4009     # FIXME: It is wrong to rewrite CC.
4010     # But if we don't then we get into trouble of one sort or another.
4011     # A longer-term fix would be to have automake use am__CC in this case,
4012     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4013     CC="$am_aux_dir/compile $CC"
4014 michael 5052 fi
4015 michael 5059 ac_ext=c
4016     ac_cpp='$CPP $CPPFLAGS'
4017     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020 michael 5052
4021    
4022     depcc="$CC" am_compiler_list=
4023    
4024 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4025     $as_echo_n "checking dependency style of $depcc... " >&6; }
4026     if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4027     $as_echo_n "(cached) " >&6
4028 michael 5052 else
4029     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4030     # We make a subdir and do the tests there. Otherwise we can end up
4031     # making bogus files that we don't know about and never remove. For
4032     # instance it was reported that on HP-UX the gcc test will end up
4033 michael 5059 # making a dummy file named 'D' -- because '-MD' means "put the output
4034     # in D".
4035     rm -rf conftest.dir
4036 michael 5052 mkdir conftest.dir
4037     # Copy depcomp to subdir because otherwise we won't find it if we're
4038     # using a relative directory.
4039     cp "$am_depcomp" conftest.dir
4040     cd conftest.dir
4041     # We will build objects and dependencies in a subdirectory because
4042     # it helps to detect inapplicable dependency modes. For instance
4043     # both Tru64's cc and ICC support -MD to output dependencies as a
4044     # side effect of compilation, but ICC will put the dependencies in
4045     # the current directory while Tru64 will put them in the object
4046     # directory.
4047     mkdir sub
4048    
4049     am_cv_CC_dependencies_compiler_type=none
4050     if test "$am_compiler_list" = ""; then
4051     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4052     fi
4053 michael 5059 am__universal=false
4054     case " $depcc " in #(
4055     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4056     esac
4057    
4058 michael 5052 for depmode in $am_compiler_list; do
4059     # Setup a source with many dependencies, because some compilers
4060     # like to wrap large dependency lists on column 80 (with \), and
4061     # we should not choose a depcomp mode which is confused by this.
4062     #
4063     # We need to recreate these files for each test, as the compiler may
4064     # overwrite some of them when testing with obscure command lines.
4065     # This happens at least with the AIX C compiler.
4066     : > sub/conftest.c
4067     for i in 1 2 3 4 5 6; do
4068     echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069 michael 5059 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4070     # Solaris 10 /bin/sh.
4071     echo '/* dummy */' > sub/conftst$i.h
4072 michael 5052 done
4073     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074    
4075 michael 5059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4076     # mode. It turns out that the SunPro C++ compiler does not properly
4077     # handle '-M -o', and we need to detect this. Also, some Intel
4078     # versions had trouble with output in subdirs.
4079     am__obj=sub/conftest.${OBJEXT-o}
4080     am__minus_obj="-o $am__obj"
4081 michael 5052 case $depmode in
4082 michael 5059 gcc)
4083     # This depmode causes a compiler race in universal mode.
4084     test "$am__universal" = false || continue
4085     ;;
4086 michael 5052 nosideeffect)
4087 michael 5059 # After this tag, mechanisms are not by side-effect, so they'll
4088     # only be used when explicitly requested.
4089 michael 5052 if test "x$enable_dependency_tracking" = xyes; then
4090     continue
4091     else
4092     break
4093     fi
4094     ;;
4095 michael 5059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4096     # This compiler won't grok '-c -o', but also, the minuso test has
4097     # not run yet. These depmodes are late enough in the game, and
4098     # so weak that their functioning should not be impacted.
4099     am__obj=conftest.${OBJEXT-o}
4100     am__minus_obj=
4101     ;;
4102 michael 5052 none) break ;;
4103     esac
4104     if depmode=$depmode \
4105 michael 5059 source=sub/conftest.c object=$am__obj \
4106 michael 5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4107 michael 5059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4108 michael 5052 >/dev/null 2>conftest.err &&
4109 michael 5059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4110 michael 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4111 michael 5059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4112 michael 5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4113     # icc doesn't choke on unknown options, it will just issue warnings
4114     # or remarks (even with -Werror). So we grep stderr for any message
4115     # that says an option was ignored or not supported.
4116     # When given -MP, icc 7.0 and 7.1 complain thusly:
4117     # icc: Command line warning: ignoring option '-M'; no argument required
4118     # The diagnosis changed in icc 8.0:
4119     # icc: Command line remark: option '-MP' not supported
4120     if (grep 'ignoring option' conftest.err ||
4121     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4122     am_cv_CC_dependencies_compiler_type=$depmode
4123     break
4124     fi
4125     fi
4126     done
4127    
4128     cd ..
4129     rm -rf conftest.dir
4130     else
4131     am_cv_CC_dependencies_compiler_type=none
4132     fi
4133    
4134     fi
4135 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4136     $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4137 michael 5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4138    
4139 michael 5059 if
4140 michael 5052 test "x$enable_dependency_tracking" != xno \
4141     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4142     am__fastdepCC_TRUE=
4143     am__fastdepCC_FALSE='#'
4144     else
4145     am__fastdepCC_TRUE='#'
4146     am__fastdepCC_FALSE=
4147     fi
4148    
4149    
4150 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4151     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4152     if ${ac_cv_prog_cc_c99+:} false; then :
4153     $as_echo_n "(cached) " >&6
4154 michael 5052 else
4155 michael 5059 ac_cv_prog_cc_c99=no
4156     ac_save_CC=$CC
4157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158     /* end confdefs.h. */
4159     #include <stdarg.h>
4160     #include <stdbool.h>
4161     #include <stdlib.h>
4162     #include <wchar.h>
4163     #include <stdio.h>
4164    
4165     // Check varargs macros. These examples are taken from C99 6.10.3.5.
4166     #define debug(...) fprintf (stderr, __VA_ARGS__)
4167     #define showlist(...) puts (#__VA_ARGS__)
4168     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4169     static void
4170     test_varargs_macros (void)
4171     {
4172     int x = 1234;
4173     int y = 5678;
4174     debug ("Flag");
4175     debug ("X = %d\n", x);
4176     showlist (The first, second, and third items.);
4177     report (x>y, "x is %d but y is %d", x, y);
4178     }
4179    
4180     // Check long long types.
4181     #define BIG64 18446744073709551615ull
4182     #define BIG32 4294967295ul
4183     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4184     #if !BIG_OK
4185     your preprocessor is broken;
4186     #endif
4187     #if BIG_OK
4188     #else
4189     your preprocessor is broken;
4190     #endif
4191     static long long int bignum = -9223372036854775807LL;
4192     static unsigned long long int ubignum = BIG64;
4193    
4194     struct incomplete_array
4195     {
4196     int datasize;
4197     double data[];
4198     };
4199    
4200     struct named_init {
4201     int number;
4202     const wchar_t *name;
4203     double average;
4204     };
4205    
4206     typedef const char *ccp;
4207    
4208     static inline int
4209     test_restrict (ccp restrict text)
4210     {
4211     // See if C++-style comments work.
4212     // Iterate through items via the restricted pointer.
4213     // Also check for declarations in for loops.
4214     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4215     continue;
4216     return 0;
4217     }
4218    
4219     // Check varargs and va_copy.
4220     static void
4221     test_varargs (const char *format, ...)
4222     {
4223     va_list args;
4224     va_start (args, format);
4225     va_list args_copy;
4226     va_copy (args_copy, args);
4227    
4228     const char *str;
4229     int number;
4230     float fnumber;
4231    
4232     while (*format)
4233     {
4234     switch (*format++)
4235     {
4236     case 's': // string
4237     str = va_arg (args_copy, const char *);
4238     break;
4239     case 'd': // int
4240     number = va_arg (args_copy, int);
4241     break;
4242     case 'f': // float
4243     fnumber = va_arg (args_copy, double);
4244     break;
4245     default:
4246     break;
4247     }
4248     }
4249     va_end (args_copy);
4250     va_end (args);
4251     }
4252    
4253     int
4254     main ()
4255     {
4256    
4257     // Check bool.
4258     _Bool success = false;
4259    
4260     // Check restrict.
4261     if (test_restrict ("String literal") == 0)
4262     success = true;
4263     char *restrict newvar = "Another string";
4264    
4265     // Check varargs.
4266     test_varargs ("s, d' f .", "string", 65, 34.234);
4267     test_varargs_macros ();
4268    
4269     // Check flexible array members.
4270     struct incomplete_array *ia =
4271     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4272     ia->datasize = 10;
4273     for (int i = 0; i < ia->datasize; ++i)
4274     ia->data[i] = i * 1.234;
4275    
4276     // Check named initializers.
4277     struct named_init ni = {
4278     .number = 34,
4279     .name = L"Test wide string",
4280     .average = 543.34343,
4281     };
4282    
4283     ni.number = 58;
4284    
4285     int dynamic_array[ni.number];
4286     dynamic_array[ni.number - 1] = 543;
4287    
4288     // work around unused variable warnings
4289     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4290     || dynamic_array[ni.number - 1] != 543);
4291    
4292     ;
4293     return 0;
4294     }
4295     _ACEOF
4296     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4297     do
4298     CC="$ac_save_CC $ac_arg"
4299     if ac_fn_c_try_compile "$LINENO"; then :
4300     ac_cv_prog_cc_c99=$ac_arg
4301 michael 5052 fi
4302 michael 5059 rm -f core conftest.err conftest.$ac_objext
4303     test "x$ac_cv_prog_cc_c99" != "xno" && break
4304     done
4305     rm -f conftest.$ac_ext
4306     CC=$ac_save_CC
4307 michael 5052
4308 michael 5059 fi
4309     # AC_CACHE_VAL
4310     case "x$ac_cv_prog_cc_c99" in
4311     x)
4312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4313     $as_echo "none needed" >&6; } ;;
4314     xno)
4315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4316     $as_echo "unsupported" >&6; } ;;
4317     *)
4318     CC="$CC $ac_cv_prog_cc_c99"
4319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4320     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4321     esac
4322     if test "x$ac_cv_prog_cc_c99" != xno; then :
4323 michael 5052
4324     fi
4325    
4326    
4327 michael 5059 if test "$ac_cv_prog_cc_c99" = "no"; then :
4328     as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4329 michael 5052 fi
4330 michael 5059 case `pwd` in
4331     *\ * | *\ *)
4332     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4333     $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4334     esac
4335 michael 5052
4336    
4337 michael 5059
4338     macro_version='2.4.4'
4339     macro_revision='2.4.4'
4340    
4341    
4342    
4343    
4344    
4345    
4346    
4347    
4348    
4349    
4350    
4351    
4352    
4353     ltmain=$ac_aux_dir/ltmain.sh
4354    
4355 michael 5052 # Make sure we can run config.sub.
4356     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4357 michael 5059 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4358 michael 5052
4359 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4360     $as_echo_n "checking build system type... " >&6; }
4361     if ${ac_cv_build+:} false; then :
4362     $as_echo_n "(cached) " >&6
4363 michael 5052 else
4364     ac_build_alias=$build_alias
4365     test "x$ac_build_alias" = x &&
4366     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4367     test "x$ac_build_alias" = x &&
4368 michael 5059 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4369 michael 5052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4370 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4371 michael 5052
4372     fi
4373 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4374     $as_echo "$ac_cv_build" >&6; }
4375 michael 5052 case $ac_cv_build in
4376     *-*-*) ;;
4377 michael 5059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4378 michael 5052 esac
4379     build=$ac_cv_build
4380     ac_save_IFS=$IFS; IFS='-'
4381     set x $ac_cv_build
4382     shift
4383     build_cpu=$1
4384     build_vendor=$2
4385     shift; shift
4386     # Remember, the first character of IFS is used to create $*,
4387     # except with old shells:
4388     build_os=$*
4389     IFS=$ac_save_IFS
4390     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4391    
4392    
4393 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4394     $as_echo_n "checking host system type... " >&6; }
4395     if ${ac_cv_host+:} false; then :
4396     $as_echo_n "(cached) " >&6
4397 michael 5052 else
4398     if test "x$host_alias" = x; then
4399     ac_cv_host=$ac_cv_build
4400     else
4401     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4402 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4403 michael 5052 fi
4404    
4405     fi
4406 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4407     $as_echo "$ac_cv_host" >&6; }
4408 michael 5052 case $ac_cv_host in
4409     *-*-*) ;;
4410 michael 5059 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4411 michael 5052 esac
4412     host=$ac_cv_host
4413     ac_save_IFS=$IFS; IFS='-'
4414     set x $ac_cv_host
4415     shift
4416     host_cpu=$1
4417     host_vendor=$2
4418     shift; shift
4419     # Remember, the first character of IFS is used to create $*,
4420     # except with old shells:
4421     host_os=$*
4422     IFS=$ac_save_IFS
4423     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4424    
4425    
4426 michael 5059 # Backslashify metacharacters that are still active within
4427     # double-quoted strings.
4428     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4429    
4430     # Same as above, but do not quote variable references.
4431     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4432    
4433     # Sed substitution to delay expansion of an escaped shell variable in a
4434     # double_quote_subst'ed string.
4435     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4436    
4437     # Sed substitution to delay expansion of an escaped single quote.
4438     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4439    
4440     # Sed substitution to avoid accidental globbing in evaled expressions
4441     no_glob_subst='s/\*/\\\*/g'
4442    
4443     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4444     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4445     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4446    
4447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4448     $as_echo_n "checking how to print strings... " >&6; }
4449     # Test print first, because it will be a builtin if present.
4450     if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4451     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4452     ECHO='print -r --'
4453     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4454     ECHO='printf %s\n'
4455 michael 5052 else
4456 michael 5059 # Use this function as a fallback that always works.
4457     func_fallback_echo ()
4458     {
4459     eval 'cat <<_LTECHO_EOF
4460     $1
4461     _LTECHO_EOF'
4462     }
4463     ECHO='func_fallback_echo'
4464     fi
4465    
4466     # func_echo_all arg...
4467     # Invoke $ECHO with all args, space-separated.
4468     func_echo_all ()
4469     {
4470     $ECHO ""
4471     }
4472    
4473     case $ECHO in
4474     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4475     $as_echo "printf" >&6; } ;;
4476     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4477     $as_echo "print -r" >&6; } ;;
4478     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4479     $as_echo "cat" >&6; } ;;
4480     esac
4481    
4482    
4483    
4484    
4485    
4486    
4487    
4488    
4489    
4490    
4491    
4492    
4493    
4494    
4495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4496     $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4497     if ${ac_cv_path_SED+:} false; then :
4498     $as_echo_n "(cached) " >&6
4499     else
4500     ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4501     for ac_i in 1 2 3 4 5 6 7; do
4502     ac_script="$ac_script$as_nl$ac_script"
4503     done
4504     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4505     { ac_script=; unset ac_script;}
4506     if test -z "$SED"; then
4507     ac_path_SED_found=false
4508     # Loop through the user's path and test for each of PROGNAME-LIST
4509     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 michael 5052 for as_dir in $PATH
4511     do
4512     IFS=$as_save_IFS
4513     test -z "$as_dir" && as_dir=.
4514 michael 5059 for ac_prog in sed gsed; do
4515 michael 5052 for ac_exec_ext in '' $ac_executable_extensions; do
4516 michael 5059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4517     as_fn_executable_p "$ac_path_SED" || continue
4518     # Check for GNU ac_path_SED and select it if it is found.
4519     # Check for GNU $ac_path_SED
4520     case `"$ac_path_SED" --version 2>&1` in
4521     *GNU*)
4522     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4523     *)
4524     ac_count=0
4525     $as_echo_n 0123456789 >"conftest.in"
4526     while :
4527     do
4528     cat "conftest.in" "conftest.in" >"conftest.tmp"
4529     mv "conftest.tmp" "conftest.in"
4530     cp "conftest.in" "conftest.nl"
4531     $as_echo '' >> "conftest.nl"
4532     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534     as_fn_arith $ac_count + 1 && ac_count=$as_val
4535     if test $ac_count -gt ${ac_path_SED_max-0}; then
4536     # Best one so far, save it but keep looking for a better one
4537     ac_cv_path_SED="$ac_path_SED"
4538     ac_path_SED_max=$ac_count
4539     fi
4540     # 10*(2^10) chars as input seems more than enough
4541     test $ac_count -gt 10 && break
4542     done
4543     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544     esac
4545    
4546     $ac_path_SED_found && break 3
4547 michael 5052 done
4548     done
4549 michael 5059 done
4550     IFS=$as_save_IFS
4551     if test -z "$ac_cv_path_SED"; then
4552     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4553 michael 5052 fi
4554 michael 5059 else
4555     ac_cv_path_SED=$SED
4556     fi
4557 michael 5052
4558     fi
4559 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4560     $as_echo "$ac_cv_path_SED" >&6; }
4561     SED="$ac_cv_path_SED"
4562     rm -f conftest.sed
4563 michael 5052
4564 michael 5059 test -z "$SED" && SED=sed
4565     Xsed="$SED -e 1s/^X//"
4566 michael 5052
4567 michael 5059
4568    
4569    
4570    
4571    
4572    
4573    
4574    
4575    
4576    
4577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4578     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4579     if ${ac_cv_path_GREP+:} false; then :
4580     $as_echo_n "(cached) " >&6
4581 michael 5052 else
4582 michael 5059 if test -z "$GREP"; then
4583 michael 5052 ac_path_GREP_found=false
4584 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4585     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587     do
4588     IFS=$as_save_IFS
4589     test -z "$as_dir" && as_dir=.
4590 michael 5059 for ac_prog in grep ggrep; do
4591     for ac_exec_ext in '' $ac_executable_extensions; do
4592     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4593     as_fn_executable_p "$ac_path_GREP" || continue
4594     # Check for GNU ac_path_GREP and select it if it is found.
4595 michael 5052 # Check for GNU $ac_path_GREP
4596     case `"$ac_path_GREP" --version 2>&1` in
4597     *GNU*)
4598     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599     *)
4600     ac_count=0
4601 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4602 michael 5052 while :
4603     do
4604     cat "conftest.in" "conftest.in" >"conftest.tmp"
4605     mv "conftest.tmp" "conftest.in"
4606     cp "conftest.in" "conftest.nl"
4607 michael 5059 $as_echo 'GREP' >> "conftest.nl"
4608 michael 5052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4611 michael 5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4612     # Best one so far, save it but keep looking for a better one
4613     ac_cv_path_GREP="$ac_path_GREP"
4614     ac_path_GREP_max=$ac_count
4615     fi
4616     # 10*(2^10) chars as input seems more than enough
4617     test $ac_count -gt 10 && break
4618     done
4619     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620     esac
4621    
4622 michael 5059 $ac_path_GREP_found && break 3
4623     done
4624 michael 5052 done
4625 michael 5059 done
4626 michael 5052 IFS=$as_save_IFS
4627 michael 5059 if test -z "$ac_cv_path_GREP"; then
4628     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629     fi
4630 michael 5052 else
4631     ac_cv_path_GREP=$GREP
4632     fi
4633    
4634     fi
4635 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4636     $as_echo "$ac_cv_path_GREP" >&6; }
4637 michael 5052 GREP="$ac_cv_path_GREP"
4638    
4639    
4640 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4641     $as_echo_n "checking for egrep... " >&6; }
4642     if ${ac_cv_path_EGREP+:} false; then :
4643     $as_echo_n "(cached) " >&6
4644 michael 5052 else
4645     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4646     then ac_cv_path_EGREP="$GREP -E"
4647     else
4648 michael 5059 if test -z "$EGREP"; then
4649 michael 5052 ac_path_EGREP_found=false
4650 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4651     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653     do
4654     IFS=$as_save_IFS
4655     test -z "$as_dir" && as_dir=.
4656 michael 5059 for ac_prog in egrep; do
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4659     as_fn_executable_p "$ac_path_EGREP" || continue
4660     # Check for GNU ac_path_EGREP and select it if it is found.
4661 michael 5052 # Check for GNU $ac_path_EGREP
4662     case `"$ac_path_EGREP" --version 2>&1` in
4663     *GNU*)
4664     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4665     *)
4666     ac_count=0
4667 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4668 michael 5052 while :
4669     do
4670     cat "conftest.in" "conftest.in" >"conftest.tmp"
4671     mv "conftest.tmp" "conftest.in"
4672     cp "conftest.in" "conftest.nl"
4673 michael 5059 $as_echo 'EGREP' >> "conftest.nl"
4674 michael 5052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 michael 5052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4678     # Best one so far, save it but keep looking for a better one
4679     ac_cv_path_EGREP="$ac_path_EGREP"
4680     ac_path_EGREP_max=$ac_count
4681     fi
4682     # 10*(2^10) chars as input seems more than enough
4683     test $ac_count -gt 10 && break
4684     done
4685     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686     esac
4687    
4688 michael 5059 $ac_path_EGREP_found && break 3
4689     done
4690 michael 5052 done
4691 michael 5059 done
4692 michael 5052 IFS=$as_save_IFS
4693 michael 5059 if test -z "$ac_cv_path_EGREP"; then
4694     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695     fi
4696     else
4697     ac_cv_path_EGREP=$EGREP
4698 michael 5052 fi
4699    
4700 michael 5059 fi
4701 michael 5052 fi
4702 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4703     $as_echo "$ac_cv_path_EGREP" >&6; }
4704     EGREP="$ac_cv_path_EGREP"
4705 michael 5052
4706 michael 5059
4707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4708     $as_echo_n "checking for fgrep... " >&6; }
4709     if ${ac_cv_path_FGREP+:} false; then :
4710     $as_echo_n "(cached) " >&6
4711 michael 5052 else
4712 michael 5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4713     then ac_cv_path_FGREP="$GREP -F"
4714     else
4715     if test -z "$FGREP"; then
4716     ac_path_FGREP_found=false
4717     # Loop through the user's path and test for each of PROGNAME-LIST
4718     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4720     do
4721     IFS=$as_save_IFS
4722     test -z "$as_dir" && as_dir=.
4723     for ac_prog in fgrep; do
4724     for ac_exec_ext in '' $ac_executable_extensions; do
4725     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4726     as_fn_executable_p "$ac_path_FGREP" || continue
4727     # Check for GNU ac_path_FGREP and select it if it is found.
4728     # Check for GNU $ac_path_FGREP
4729     case `"$ac_path_FGREP" --version 2>&1` in
4730     *GNU*)
4731     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4732     *)
4733     ac_count=0
4734     $as_echo_n 0123456789 >"conftest.in"
4735     while :
4736     do
4737     cat "conftest.in" "conftest.in" >"conftest.tmp"
4738     mv "conftest.tmp" "conftest.in"
4739     cp "conftest.in" "conftest.nl"
4740     $as_echo 'FGREP' >> "conftest.nl"
4741     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4742     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4743     as_fn_arith $ac_count + 1 && ac_count=$as_val
4744     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4745     # Best one so far, save it but keep looking for a better one
4746     ac_cv_path_FGREP="$ac_path_FGREP"
4747     ac_path_FGREP_max=$ac_count
4748     fi
4749     # 10*(2^10) chars as input seems more than enough
4750     test $ac_count -gt 10 && break
4751     done
4752     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4753     esac
4754    
4755     $ac_path_FGREP_found && break 3
4756     done
4757     done
4758     done
4759     IFS=$as_save_IFS
4760     if test -z "$ac_cv_path_FGREP"; then
4761     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4762     fi
4763     else
4764     ac_cv_path_FGREP=$FGREP
4765 michael 5052 fi
4766    
4767     fi
4768     fi
4769 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4770     $as_echo "$ac_cv_path_FGREP" >&6; }
4771     FGREP="$ac_cv_path_FGREP"
4772 michael 5052
4773    
4774 michael 5059 test -z "$GREP" && GREP=grep
4775 michael 5052
4776 michael 5059
4777    
4778    
4779    
4780    
4781    
4782    
4783    
4784    
4785    
4786    
4787    
4788    
4789    
4790    
4791    
4792    
4793    
4794 michael 5052 # Check whether --with-gnu-ld was given.
4795 michael 5059 if test "${with_gnu_ld+set}" = set; then :
4796     withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4797 michael 5052 else
4798     with_gnu_ld=no
4799     fi
4800    
4801     ac_prog=ld
4802 michael 5059 if test yes = "$GCC"; then
4803 michael 5052 # Check if gcc -print-prog-name=ld gives a path.
4804 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4805     $as_echo_n "checking for ld used by $CC... " >&6; }
4806 michael 5052 case $host in
4807     *-*-mingw*)
4808 michael 5059 # gcc leaves a trailing carriage return, which upsets mingw
4809 michael 5052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4810     *)
4811     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4812     esac
4813     case $ac_prog in
4814     # Accept absolute paths.
4815     [\\/]* | ?:[\\/]*)
4816     re_direlt='/[^/][^/]*/\.\./'
4817     # Canonicalize the pathname of ld
4818 michael 5059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4819     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4820     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4821 michael 5052 done
4822 michael 5059 test -z "$LD" && LD=$ac_prog
4823 michael 5052 ;;
4824     "")
4825     # If it fails, then pretend we aren't using GCC.
4826     ac_prog=ld
4827     ;;
4828     *)
4829     # If it is relative, then search for the first ld in PATH.
4830     with_gnu_ld=unknown
4831     ;;
4832     esac
4833 michael 5059 elif test yes = "$with_gnu_ld"; then
4834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4835     $as_echo_n "checking for GNU ld... " >&6; }
4836 michael 5052 else
4837 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4838     $as_echo_n "checking for non-GNU ld... " >&6; }
4839 michael 5052 fi
4840 michael 5059 if ${lt_cv_path_LD+:} false; then :
4841     $as_echo_n "(cached) " >&6
4842 michael 5052 else
4843     if test -z "$LD"; then
4844 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4845 michael 5052 for ac_dir in $PATH; do
4846 michael 5059 IFS=$lt_save_ifs
4847 michael 5052 test -z "$ac_dir" && ac_dir=.
4848     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4849 michael 5059 lt_cv_path_LD=$ac_dir/$ac_prog
4850 michael 5052 # Check to see if the program is GNU ld. I'd rather use --version,
4851     # but apparently some variants of GNU ld only accept -v.
4852     # Break only if it was the GNU/non-GNU ld that we prefer.
4853     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4854     *GNU* | *'with BFD'*)
4855 michael 5059 test no != "$with_gnu_ld" && break
4856 michael 5052 ;;
4857     *)
4858 michael 5059 test yes != "$with_gnu_ld" && break
4859 michael 5052 ;;
4860     esac
4861     fi
4862     done
4863 michael 5059 IFS=$lt_save_ifs
4864 michael 5052 else
4865 michael 5059 lt_cv_path_LD=$LD # Let the user override the test with a path.
4866 michael 5052 fi
4867     fi
4868    
4869 michael 5059 LD=$lt_cv_path_LD
4870 michael 5052 if test -n "$LD"; then
4871 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4872     $as_echo "$LD" >&6; }
4873 michael 5052 else
4874 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875     $as_echo "no" >&6; }
4876 michael 5052 fi
4877 michael 5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4879     $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4880     if ${lt_cv_prog_gnu_ld+:} false; then :
4881     $as_echo_n "(cached) " >&6
4882 michael 5052 else
4883     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4884     case `$LD -v 2>&1 </dev/null` in
4885     *GNU* | *'with BFD'*)
4886     lt_cv_prog_gnu_ld=yes
4887     ;;
4888     *)
4889     lt_cv_prog_gnu_ld=no
4890     ;;
4891     esac
4892     fi
4893 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4894     $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4895 michael 5052 with_gnu_ld=$lt_cv_prog_gnu_ld
4896    
4897    
4898    
4899 michael 5059
4900    
4901    
4902    
4903    
4904    
4905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4906     $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4907     if ${lt_cv_path_NM+:} false; then :
4908     $as_echo_n "(cached) " >&6
4909 michael 5052 else
4910     if test -n "$NM"; then
4911     # Let the user override the test.
4912 michael 5059 lt_cv_path_NM=$NM
4913 michael 5052 else
4914 michael 5059 lt_nm_to_check=${ac_tool_prefix}nm
4915 michael 5052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4916     lt_nm_to_check="$lt_nm_to_check nm"
4917     fi
4918     for lt_tmp_nm in $lt_nm_to_check; do
4919 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4920 michael 5052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4921 michael 5059 IFS=$lt_save_ifs
4922 michael 5052 test -z "$ac_dir" && ac_dir=.
4923 michael 5059 tmp_nm=$ac_dir/$lt_tmp_nm
4924     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4925 michael 5052 # Check to see if the nm accepts a BSD-compat flag.
4926 michael 5059 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4927 michael 5052 # nm: unknown option "B" ignored
4928     # Tru64's nm complains that /dev/null is an invalid object file
4929 michael 5059 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4930     case $build_os in
4931     mingw*) lt_bad_file=conftest.nm/nofile ;;
4932     *) lt_bad_file=/dev/null ;;
4933     esac
4934     case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4935     *$lt_bad_file* | *'Invalid file or object type'*)
4936 michael 5052 lt_cv_path_NM="$tmp_nm -B"
4937 michael 5059 break 2
4938 michael 5052 ;;
4939     *)
4940     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4941     */dev/null*)
4942     lt_cv_path_NM="$tmp_nm -p"
4943 michael 5059 break 2
4944 michael 5052 ;;
4945     *)
4946     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4947     continue # so that we can try to find one that supports BSD flags
4948     ;;
4949     esac
4950     ;;
4951     esac
4952     fi
4953     done
4954 michael 5059 IFS=$lt_save_ifs
4955 michael 5052 done
4956 michael 5059 : ${lt_cv_path_NM=no}
4957 michael 5052 fi
4958     fi
4959 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4960     $as_echo "$lt_cv_path_NM" >&6; }
4961     if test no != "$lt_cv_path_NM"; then
4962     NM=$lt_cv_path_NM
4963     else
4964     # Didn't find any BSD compatible name lister, look for dumpbin.
4965     if test -n "$DUMPBIN"; then :
4966     # Let the user override the test.
4967     else
4968     if test -n "$ac_tool_prefix"; then
4969     for ac_prog in dumpbin "link -dump"
4970     do
4971     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4972     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974     $as_echo_n "checking for $ac_word... " >&6; }
4975     if ${ac_cv_prog_DUMPBIN+:} false; then :
4976     $as_echo_n "(cached) " >&6
4977     else
4978     if test -n "$DUMPBIN"; then
4979     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4980     else
4981     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982     for as_dir in $PATH
4983     do
4984     IFS=$as_save_IFS
4985     test -z "$as_dir" && as_dir=.
4986     for ac_exec_ext in '' $ac_executable_extensions; do
4987     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990     break 2
4991     fi
4992     done
4993     done
4994     IFS=$as_save_IFS
4995 michael 5052
4996 michael 5059 fi
4997     fi
4998     DUMPBIN=$ac_cv_prog_DUMPBIN
4999     if test -n "$DUMPBIN"; then
5000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5001     $as_echo "$DUMPBIN" >&6; }
5002     else
5003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004     $as_echo "no" >&6; }
5005     fi
5006    
5007    
5008     test -n "$DUMPBIN" && break
5009     done
5010     fi
5011     if test -z "$DUMPBIN"; then
5012     ac_ct_DUMPBIN=$DUMPBIN
5013     for ac_prog in dumpbin "link -dump"
5014     do
5015     # Extract the first word of "$ac_prog", so it can be a program name with args.
5016     set dummy $ac_prog; ac_word=$2
5017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018     $as_echo_n "checking for $ac_word... " >&6; }
5019     if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5020     $as_echo_n "(cached) " >&6
5021     else
5022     if test -n "$ac_ct_DUMPBIN"; then
5023     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5024     else
5025     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026     for as_dir in $PATH
5027     do
5028     IFS=$as_save_IFS
5029     test -z "$as_dir" && as_dir=.
5030     for ac_exec_ext in '' $ac_executable_extensions; do
5031     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035     fi
5036     done
5037     done
5038     IFS=$as_save_IFS
5039    
5040     fi
5041     fi
5042     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5043     if test -n "$ac_ct_DUMPBIN"; then
5044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5045     $as_echo "$ac_ct_DUMPBIN" >&6; }
5046     else
5047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048     $as_echo "no" >&6; }
5049     fi
5050    
5051    
5052     test -n "$ac_ct_DUMPBIN" && break
5053     done
5054    
5055     if test "x$ac_ct_DUMPBIN" = x; then
5056     DUMPBIN=":"
5057     else
5058     case $cross_compiling:$ac_tool_warned in
5059     yes:)
5060     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5061     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5062     ac_tool_warned=yes ;;
5063     esac
5064     DUMPBIN=$ac_ct_DUMPBIN
5065     fi
5066     fi
5067    
5068     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5069     *COFF*)
5070     DUMPBIN="$DUMPBIN -symbols -headers"
5071     ;;
5072     *)
5073     DUMPBIN=:
5074     ;;
5075     esac
5076     fi
5077    
5078     if test : != "$DUMPBIN"; then
5079     NM=$DUMPBIN
5080     fi
5081     fi
5082     test -z "$NM" && NM=nm
5083    
5084    
5085    
5086    
5087    
5088    
5089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5090     $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5091     if ${lt_cv_nm_interface+:} false; then :
5092     $as_echo_n "(cached) " >&6
5093     else
5094     lt_cv_nm_interface="BSD nm"
5095     echo "int some_variable = 0;" > conftest.$ac_ext
5096     (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5097     (eval "$ac_compile" 2>conftest.err)
5098     cat conftest.err >&5
5099     (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5100     (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5101     cat conftest.err >&5
5102     (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5103     cat conftest.out >&5
5104     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5105     lt_cv_nm_interface="MS dumpbin"
5106     fi
5107     rm -f conftest*
5108     fi
5109     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5110     $as_echo "$lt_cv_nm_interface" >&6; }
5111    
5112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5113     $as_echo_n "checking whether ln -s works... " >&6; }
5114 michael 5052 LN_S=$as_ln_s
5115     if test "$LN_S" = "ln -s"; then
5116 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5117     $as_echo "yes" >&6; }
5118 michael 5052 else
5119 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5120     $as_echo "no, using $LN_S" >&6; }
5121 michael 5052 fi
5122    
5123 michael 5059 # find the maximum length of command line arguments
5124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5125     $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5126     if ${lt_cv_sys_max_cmd_len+:} false; then :
5127     $as_echo_n "(cached) " >&6
5128 michael 5052 else
5129 michael 5059 i=0
5130     teststring=ABCD
5131    
5132     case $build_os in
5133     msdosdjgpp*)
5134     # On DJGPP, this test can blow up pretty badly due to problems in libc
5135     # (any single argument exceeding 2000 bytes causes a buffer overrun
5136     # during glob expansion). Even if it were fixed, the result of this
5137     # check would be larger than it should be.
5138     lt_cv_sys_max_cmd_len=12288; # 12K is about right
5139     ;;
5140    
5141     gnu*)
5142     # Under GNU Hurd, this test is not required because there is
5143     # no limit to the length of command line arguments.
5144     # Libtool will interpret -1 as no limit whatsoever
5145     lt_cv_sys_max_cmd_len=-1;
5146     ;;
5147    
5148     cygwin* | mingw* | cegcc*)
5149     # On Win9x/ME, this test blows up -- it succeeds, but takes
5150     # about 5 minutes as the teststring grows exponentially.
5151     # Worse, since 9x/ME are not pre-emptively multitasking,
5152     # you end up with a "frozen" computer, even though with patience
5153     # the test eventually succeeds (with a max line length of 256k).
5154     # Instead, let's just punt: use the minimum linelength reported by
5155     # all of the supported platforms: 8192 (on NT/2K/XP).
5156     lt_cv_sys_max_cmd_len=8192;
5157     ;;
5158    
5159     mint*)
5160     # On MiNT this can take a long time and run out of memory.
5161     lt_cv_sys_max_cmd_len=8192;
5162     ;;
5163    
5164     amigaos*)
5165     # On AmigaOS with pdksh, this test takes hours, literally.
5166     # So we just punt and use a minimum line length of 8192.
5167     lt_cv_sys_max_cmd_len=8192;
5168     ;;
5169    
5170     bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5171     # This has been around since 386BSD, at least. Likely further.
5172     if test -x /sbin/sysctl; then
5173     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5174     elif test -x /usr/sbin/sysctl; then
5175     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5176     else
5177     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5178     fi
5179     # And add a safety zone
5180     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5181     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5182     ;;
5183    
5184     interix*)
5185     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5186     lt_cv_sys_max_cmd_len=196608
5187     ;;
5188    
5189     os2*)
5190     # The test takes a long time on OS/2.
5191     lt_cv_sys_max_cmd_len=8192
5192     ;;
5193    
5194     osf*)
5195     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5196     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5197     # nice to cause kernel panics so lets avoid the loop below.
5198     # First set a reasonable default.
5199     lt_cv_sys_max_cmd_len=16384
5200     #
5201     if test -x /sbin/sysconfig; then
5202     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5203     *1*) lt_cv_sys_max_cmd_len=-1 ;;
5204     esac
5205     fi
5206     ;;
5207     sco3.2v5*)
5208     lt_cv_sys_max_cmd_len=102400
5209     ;;
5210     sysv5* | sco5v6* | sysv4.2uw2*)
5211     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5212     if test -n "$kargmax"; then
5213     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5214     else
5215     lt_cv_sys_max_cmd_len=32768
5216     fi
5217     ;;
5218     *)
5219     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5220     if test -n "$lt_cv_sys_max_cmd_len" && \
5221     test undefined != "$lt_cv_sys_max_cmd_len"; then
5222     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5223     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5224     else
5225     # Make teststring a little bigger before we do anything with it.
5226     # a 1K string should be a reasonable start.
5227     for i in 1 2 3 4 5 6 7 8; do
5228     teststring=$teststring$teststring
5229     done
5230     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5231     # If test is not a shell built-in, we'll probably end up computing a
5232     # maximum length that is only half of the actual maximum length, but
5233     # we can't tell.
5234     while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5235     = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5236     test 17 != "$i" # 1/2 MB should be enough
5237     do
5238     i=`expr $i + 1`
5239     teststring=$teststring$teststring
5240     done
5241     # Only check the string length outside the loop.
5242     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5243     teststring=
5244     # Add a significant safety factor because C++ compilers can tack on
5245     # massive amounts of additional arguments before passing them to the
5246     # linker. It appears as though 1/2 is a usable value.
5247     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5248     fi
5249     ;;
5250     esac
5251    
5252     fi
5253    
5254     if test -n "$lt_cv_sys_max_cmd_len"; then
5255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5256     $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5257     else
5258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5259     $as_echo "none" >&6; }
5260     fi
5261     max_cmd_len=$lt_cv_sys_max_cmd_len
5262    
5263    
5264    
5265    
5266    
5267    
5268     : ${CP="cp -f"}
5269     : ${MV="mv -f"}
5270     : ${RM="rm -f"}
5271    
5272     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5273     lt_unset=unset
5274     else
5275     lt_unset=false
5276     fi
5277    
5278    
5279    
5280    
5281    
5282     # test EBCDIC or ASCII
5283     case `echo X|tr X '\101'` in
5284     A) # ASCII based system
5285     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5286     lt_SP2NL='tr \040 \012'
5287     lt_NL2SP='tr \015\012 \040\040'
5288     ;;
5289     *) # EBCDIC based system
5290     lt_SP2NL='tr \100 \n'
5291     lt_NL2SP='tr \r\n \100\100'
5292     ;;
5293     esac
5294    
5295    
5296    
5297    
5298    
5299    
5300    
5301    
5302    
5303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5304     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5305     if ${lt_cv_to_host_file_cmd+:} false; then :
5306     $as_echo_n "(cached) " >&6
5307     else
5308     case $host in
5309     *-*-mingw* )
5310     case $build in
5311     *-*-mingw* ) # actually msys
5312     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5313     ;;
5314     *-*-cygwin* )
5315     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5316     ;;
5317     * ) # otherwise, assume *nix
5318     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5319     ;;
5320     esac
5321     ;;
5322     *-*-cygwin* )
5323     case $build in
5324     *-*-mingw* ) # actually msys
5325     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5326     ;;
5327     *-*-cygwin* )
5328     lt_cv_to_host_file_cmd=func_convert_file_noop
5329     ;;
5330     * ) # otherwise, assume *nix
5331     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5332     ;;
5333     esac
5334     ;;
5335     * ) # unhandled hosts (and "normal" native builds)
5336     lt_cv_to_host_file_cmd=func_convert_file_noop
5337     ;;
5338     esac
5339    
5340     fi
5341    
5342     to_host_file_cmd=$lt_cv_to_host_file_cmd
5343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5344     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5345    
5346    
5347    
5348    
5349    
5350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5351     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5352     if ${lt_cv_to_tool_file_cmd+:} false; then :
5353     $as_echo_n "(cached) " >&6
5354     else
5355     #assume ordinary cross tools, or native build.
5356     lt_cv_to_tool_file_cmd=func_convert_file_noop
5357     case $host in
5358     *-*-mingw* )
5359     case $build in
5360     *-*-mingw* ) # actually msys
5361     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5362     ;;
5363     esac
5364     ;;
5365     esac
5366    
5367     fi
5368    
5369     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5371     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5372    
5373    
5374    
5375    
5376    
5377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5378     $as_echo_n "checking for $LD option to reload object files... " >&6; }
5379     if ${lt_cv_ld_reload_flag+:} false; then :
5380     $as_echo_n "(cached) " >&6
5381     else
5382     lt_cv_ld_reload_flag='-r'
5383     fi
5384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5385     $as_echo "$lt_cv_ld_reload_flag" >&6; }
5386     reload_flag=$lt_cv_ld_reload_flag
5387     case $reload_flag in
5388     "" | " "*) ;;
5389     *) reload_flag=" $reload_flag" ;;
5390     esac
5391     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5392     case $host_os in
5393     cygwin* | mingw* | pw32* | cegcc*)
5394     if test yes != "$GCC"; then
5395     reload_cmds=false
5396     fi
5397     ;;
5398     darwin*)
5399     if test yes = "$GCC"; then
5400     reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5401     else
5402     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5403     fi
5404     ;;
5405     esac
5406    
5407    
5408    
5409    
5410    
5411    
5412    
5413    
5414    
5415     if test -n "$ac_tool_prefix"; then
5416     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5417     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419     $as_echo_n "checking for $ac_word... " >&6; }
5420     if ${ac_cv_prog_OBJDUMP+:} false; then :
5421     $as_echo_n "(cached) " >&6
5422     else
5423     if test -n "$OBJDUMP"; then
5424     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5425     else
5426     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427     for as_dir in $PATH
5428     do
5429     IFS=$as_save_IFS
5430     test -z "$as_dir" && as_dir=.
5431     for ac_exec_ext in '' $ac_executable_extensions; do
5432     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436     fi
5437     done
5438     done
5439     IFS=$as_save_IFS
5440    
5441     fi
5442     fi
5443     OBJDUMP=$ac_cv_prog_OBJDUMP
5444     if test -n "$OBJDUMP"; then
5445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5446     $as_echo "$OBJDUMP" >&6; }
5447     else
5448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449     $as_echo "no" >&6; }
5450     fi
5451    
5452    
5453     fi
5454     if test -z "$ac_cv_prog_OBJDUMP"; then
5455     ac_ct_OBJDUMP=$OBJDUMP
5456     # Extract the first word of "objdump", so it can be a program name with args.
5457     set dummy objdump; ac_word=$2
5458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459     $as_echo_n "checking for $ac_word... " >&6; }
5460     if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5461     $as_echo_n "(cached) " >&6
5462     else
5463     if test -n "$ac_ct_OBJDUMP"; then
5464     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5465     else
5466     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467     for as_dir in $PATH
5468     do
5469     IFS=$as_save_IFS
5470     test -z "$as_dir" && as_dir=.
5471     for ac_exec_ext in '' $ac_executable_extensions; do
5472     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475     break 2
5476     fi
5477     done
5478     done
5479     IFS=$as_save_IFS
5480    
5481     fi
5482     fi
5483     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5484     if test -n "$ac_ct_OBJDUMP"; then
5485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5486     $as_echo "$ac_ct_OBJDUMP" >&6; }
5487     else
5488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489     $as_echo "no" >&6; }
5490     fi
5491    
5492     if test "x$ac_ct_OBJDUMP" = x; then
5493     OBJDUMP="false"
5494     else
5495     case $cross_compiling:$ac_tool_warned in
5496     yes:)
5497     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499     ac_tool_warned=yes ;;
5500     esac
5501     OBJDUMP=$ac_ct_OBJDUMP
5502     fi
5503     else
5504     OBJDUMP="$ac_cv_prog_OBJDUMP"
5505     fi
5506    
5507     test -z "$OBJDUMP" && OBJDUMP=objdump
5508    
5509    
5510    
5511    
5512    
5513    
5514    
5515    
5516    
5517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5518     $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5519     if ${lt_cv_deplibs_check_method+:} false; then :
5520     $as_echo_n "(cached) " >&6
5521     else
5522 michael 5052 lt_cv_file_magic_cmd='$MAGIC_CMD'
5523     lt_cv_file_magic_test_file=
5524     lt_cv_deplibs_check_method='unknown'
5525     # Need to set the preceding variable on all platforms that support
5526     # interlibrary dependencies.
5527     # 'none' -- dependencies not supported.
5528 michael 5059 # 'unknown' -- same as none, but documents that we really don't know.
5529 michael 5052 # 'pass_all' -- all dependencies passed with no checks.
5530     # 'test_compile' -- check by making test program.
5531     # 'file_magic [[regex]]' -- check by looking for files in library path
5532 michael 5059 # that responds to the $file_magic_cmd with a given extended regex.
5533     # If you have 'file' or equivalent on your system and you're not sure
5534     # whether 'pass_all' will *always* work, you probably want this one.
5535 michael 5052
5536     case $host_os in
5537 michael 5059 aix[4-9]*)
5538 michael 5052 lt_cv_deplibs_check_method=pass_all
5539     ;;
5540    
5541     beos*)
5542     lt_cv_deplibs_check_method=pass_all
5543     ;;
5544    
5545     bsdi[45]*)
5546     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5547     lt_cv_file_magic_cmd='/usr/bin/file -L'
5548     lt_cv_file_magic_test_file=/shlib/libc.so
5549     ;;
5550    
5551     cygwin*)
5552     # func_win32_libid is a shell function defined in ltmain.sh
5553     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5554     lt_cv_file_magic_cmd='func_win32_libid'
5555     ;;
5556    
5557     mingw* | pw32*)
5558     # Base MSYS/MinGW do not provide the 'file' command needed by
5559 michael 5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5560     # unless we find 'file', for example because we are cross-compiling.
5561     if ( file / ) >/dev/null 2>&1; then
5562     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5563     lt_cv_file_magic_cmd='func_win32_libid'
5564     else
5565     # Keep this pattern in sync with the one in func_win32_libid.
5566     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5567     lt_cv_file_magic_cmd='$OBJDUMP -f'
5568     fi
5569     ;;
5570    
5571     cegcc*)
5572     # use the weaker test based on 'objdump'. See mingw*.
5573     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5574 michael 5052 lt_cv_file_magic_cmd='$OBJDUMP -f'
5575     ;;
5576    
5577     darwin* | rhapsody*)
5578     lt_cv_deplibs_check_method=pass_all
5579     ;;
5580    
5581     freebsd* | dragonfly*)
5582 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5583 michael 5052 case $host_cpu in
5584     i*86 )
5585     # Not sure whether the presence of OpenBSD here was a mistake.
5586     # Let's accept both of them until this is cleared up.
5587     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5588     lt_cv_file_magic_cmd=/usr/bin/file
5589     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5590     ;;
5591     esac
5592     else
5593     lt_cv_deplibs_check_method=pass_all
5594     fi
5595     ;;
5596    
5597 michael 5059 haiku*)
5598 michael 5052 lt_cv_deplibs_check_method=pass_all
5599     ;;
5600    
5601     hpux10.20* | hpux11*)
5602     lt_cv_file_magic_cmd=/usr/bin/file
5603     case $host_cpu in
5604     ia64*)
5605     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5607     ;;
5608     hppa*64*)
5609 michael 5059 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]'
5610 michael 5052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5611     ;;
5612     *)
5613 michael 5059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5614 michael 5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5615     ;;
5616     esac
5617     ;;
5618    
5619 michael 5059 interix[3-9]*)
5620 michael 5052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5622     ;;
5623    
5624     irix5* | irix6* | nonstopux*)
5625     case $LD in
5626     *-32|*"-32 ") libmagic=32-bit;;
5627     *-n32|*"-n32 ") libmagic=N32;;
5628     *-64|*"-64 ") libmagic=64-bit;;
5629     *) libmagic=never-match;;
5630     esac
5631     lt_cv_deplibs_check_method=pass_all
5632     ;;
5633    
5634 michael 5059 # This must be glibc/ELF.
5635     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5636 michael 5052 lt_cv_deplibs_check_method=pass_all
5637     ;;
5638    
5639 michael 5059 netbsd*)
5640     if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5641 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5642     else
5643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5644     fi
5645     ;;
5646    
5647     newos6*)
5648     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649     lt_cv_file_magic_cmd=/usr/bin/file
5650     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5651     ;;
5652    
5653 michael 5059 *nto* | *qnx*)
5654     lt_cv_deplibs_check_method=pass_all
5655 michael 5052 ;;
5656    
5657 michael 5059 openbsd* | bitrig*)
5658     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5659 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5660     else
5661     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5662     fi
5663     ;;
5664    
5665     osf3* | osf4* | osf5*)
5666     lt_cv_deplibs_check_method=pass_all
5667     ;;
5668    
5669 michael 5059 rdos*)
5670     lt_cv_deplibs_check_method=pass_all
5671     ;;
5672    
5673 michael 5052 solaris*)
5674     lt_cv_deplibs_check_method=pass_all
5675     ;;
5676    
5677 michael 5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5678     lt_cv_deplibs_check_method=pass_all
5679     ;;
5680    
5681 michael 5052 sysv4 | sysv4.3*)
5682     case $host_vendor in
5683     motorola)
5684     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]'
5685     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5686     ;;
5687     ncr)
5688     lt_cv_deplibs_check_method=pass_all
5689     ;;
5690     sequent)
5691     lt_cv_file_magic_cmd='/bin/file'
5692     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5693     ;;
5694     sni)
5695     lt_cv_file_magic_cmd='/bin/file'
5696     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5697     lt_cv_file_magic_test_file=/lib/libc.so
5698     ;;
5699     siemens)
5700     lt_cv_deplibs_check_method=pass_all
5701     ;;
5702     pc)
5703     lt_cv_deplibs_check_method=pass_all
5704     ;;
5705     esac
5706     ;;
5707    
5708 michael 5059 tpf*)
5709 michael 5052 lt_cv_deplibs_check_method=pass_all
5710     ;;
5711 michael 5059 os2*)
5712     lt_cv_deplibs_check_method=pass_all
5713     ;;
5714 michael 5052 esac
5715    
5716     fi
5717 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5718     $as_echo "$lt_cv_deplibs_check_method" >&6; }
5719    
5720     file_magic_glob=
5721     want_nocaseglob=no
5722     if test "$build" = "$host"; then
5723     case $host_os in
5724     mingw* | pw32*)
5725     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5726     want_nocaseglob=yes
5727     else
5728     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5729     fi
5730     ;;
5731     esac
5732     fi
5733    
5734 michael 5052 file_magic_cmd=$lt_cv_file_magic_cmd
5735     deplibs_check_method=$lt_cv_deplibs_check_method
5736     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5737    
5738    
5739    
5740    
5741    
5742    
5743    
5744    
5745    
5746    
5747    
5748    
5749    
5750    
5751    
5752    
5753    
5754    
5755    
5756    
5757    
5758    
5759 michael 5059 if test -n "$ac_tool_prefix"; then
5760     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5761     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763     $as_echo_n "checking for $ac_word... " >&6; }
5764     if ${ac_cv_prog_DLLTOOL+:} false; then :
5765     $as_echo_n "(cached) " >&6
5766 michael 5052 else
5767 michael 5059 if test -n "$DLLTOOL"; then
5768     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5769     else
5770     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771     for as_dir in $PATH
5772 michael 5052 do
5773 michael 5059 IFS=$as_save_IFS
5774     test -z "$as_dir" && as_dir=.
5775     for ac_exec_ext in '' $ac_executable_extensions; do
5776     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780 michael 5052 fi
5781 michael 5059 done
5782     done
5783     IFS=$as_save_IFS
5784 michael 5052
5785     fi
5786     fi
5787 michael 5059 DLLTOOL=$ac_cv_prog_DLLTOOL
5788     if test -n "$DLLTOOL"; then
5789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5790     $as_echo "$DLLTOOL" >&6; }
5791 michael 5052 else
5792 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793     $as_echo "no" >&6; }
5794 michael 5052 fi
5795    
5796    
5797     fi
5798 michael 5059 if test -z "$ac_cv_prog_DLLTOOL"; then
5799     ac_ct_DLLTOOL=$DLLTOOL
5800     # Extract the first word of "dlltool", so it can be a program name with args.
5801     set dummy dlltool; ac_word=$2
5802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803     $as_echo_n "checking for $ac_word... " >&6; }
5804     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5805     $as_echo_n "(cached) " >&6
5806 michael 5052 else
5807 michael 5059 if test -n "$ac_ct_DLLTOOL"; then
5808     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5809     else
5810     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811     for as_dir in $PATH
5812 michael 5052 do
5813 michael 5059 IFS=$as_save_IFS
5814     test -z "$as_dir" && as_dir=.
5815     for ac_exec_ext in '' $ac_executable_extensions; do
5816     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820 michael 5052 fi
5821     done
5822 michael 5059 done
5823     IFS=$as_save_IFS
5824 michael 5052
5825     fi
5826     fi
5827 michael 5059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5828     if test -n "$ac_ct_DLLTOOL"; then
5829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5830     $as_echo "$ac_ct_DLLTOOL" >&6; }
5831 michael 5052 else
5832 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833     $as_echo "no" >&6; }
5834 michael 5052 fi
5835    
5836 michael 5059 if test "x$ac_ct_DLLTOOL" = x; then
5837     DLLTOOL="false"
5838     else
5839     case $cross_compiling:$ac_tool_warned in
5840     yes:)
5841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843     ac_tool_warned=yes ;;
5844 michael 5052 esac
5845 michael 5059 DLLTOOL=$ac_ct_DLLTOOL
5846     fi
5847 michael 5052 else
5848 michael 5059 DLLTOOL="$ac_cv_prog_DLLTOOL"
5849 michael 5052 fi
5850    
5851 michael 5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5852 michael 5052
5853    
5854    
5855    
5856    
5857    
5858    
5859    
5860    
5861    
5862 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5863     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5864     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5865     $as_echo_n "(cached) " >&6
5866 michael 5052 else
5867 michael 5059 lt_cv_sharedlib_from_linklib_cmd='unknown'
5868 michael 5052
5869 michael 5059 case $host_os in
5870     cygwin* | mingw* | pw32* | cegcc*)
5871     # two different shell functions defined in ltmain.sh;
5872     # decide which one to use based on capabilities of $DLLTOOL
5873     case `$DLLTOOL --help 2>&1` in
5874     *--identify-strict*)
5875     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5876     ;;
5877     *)
5878     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5879     ;;
5880     esac
5881     ;;
5882     *)
5883     # fallback: assume linklib IS sharedlib
5884     lt_cv_sharedlib_from_linklib_cmd=$ECHO
5885     ;;
5886 michael 5052 esac
5887    
5888     fi
5889 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5890     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5891     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5892     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5893 michael 5052
5894    
5895    
5896    
5897    
5898    
5899    
5900    
5901 michael 5059 if test -n "$ac_tool_prefix"; then
5902     for ac_prog in ar
5903 michael 5052 do
5904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5905     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5906 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907     $as_echo_n "checking for $ac_word... " >&6; }
5908     if ${ac_cv_prog_AR+:} false; then :
5909     $as_echo_n "(cached) " >&6
5910 michael 5052 else
5911 michael 5059 if test -n "$AR"; then
5912     ac_cv_prog_AR="$AR" # Let the user override the test.
5913 michael 5052 else
5914     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915     for as_dir in $PATH
5916     do
5917     IFS=$as_save_IFS
5918     test -z "$as_dir" && as_dir=.
5919 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5920     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 michael 5052 break 2
5924     fi
5925     done
5926 michael 5059 done
5927 michael 5052 IFS=$as_save_IFS
5928    
5929     fi
5930     fi
5931 michael 5059 AR=$ac_cv_prog_AR
5932     if test -n "$AR"; then
5933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5934     $as_echo "$AR" >&6; }
5935 michael 5052 else
5936 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937     $as_echo "no" >&6; }
5938 michael 5052 fi
5939    
5940    
5941 michael 5059 test -n "$AR" && break
5942 michael 5052 done
5943     fi
5944 michael 5059 if test -z "$AR"; then
5945     ac_ct_AR=$AR
5946     for ac_prog in ar
5947 michael 5052 do
5948     # Extract the first word of "$ac_prog", so it can be a program name with args.
5949     set dummy $ac_prog; ac_word=$2
5950 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951     $as_echo_n "checking for $ac_word... " >&6; }
5952     if ${ac_cv_prog_ac_ct_AR+:} false; then :
5953     $as_echo_n "(cached) " >&6
5954 michael 5052 else
5955 michael 5059 if test -n "$ac_ct_AR"; then
5956     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5957 michael 5052 else
5958     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959     for as_dir in $PATH
5960     do
5961     IFS=$as_save_IFS
5962     test -z "$as_dir" && as_dir=.
5963 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5964     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965     ac_cv_prog_ac_ct_AR="$ac_prog"
5966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 michael 5052 break 2
5968     fi
5969     done
5970 michael 5059 done
5971 michael 5052 IFS=$as_save_IFS
5972    
5973     fi
5974     fi
5975 michael 5059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5976     if test -n "$ac_ct_AR"; then
5977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5978     $as_echo "$ac_ct_AR" >&6; }
5979 michael 5052 else
5980 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981     $as_echo "no" >&6; }
5982 michael 5052 fi
5983    
5984    
5985 michael 5059 test -n "$ac_ct_AR" && break
5986 michael 5052 done
5987    
5988 michael 5059 if test "x$ac_ct_AR" = x; then
5989     AR="false"
5990 michael 5052 else
5991     case $cross_compiling:$ac_tool_warned in
5992     yes:)
5993 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5994     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5995 michael 5052 ac_tool_warned=yes ;;
5996     esac
5997 michael 5059 AR=$ac_ct_AR
5998 michael 5052 fi
5999     fi
6000    
6001 michael 5059 : ${AR=ar}
6002     : ${AR_FLAGS=cru}
6003 michael 5052
6004    
6005    
6006    
6007    
6008    
6009    
6010    
6011    
6012    
6013    
6014 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6015     $as_echo_n "checking for archiver @FILE support... " >&6; }
6016     if ${lt_cv_ar_at_file+:} false; then :
6017     $as_echo_n "(cached) " >&6
6018 michael 5052 else
6019 michael 5059 lt_cv_ar_at_file=no
6020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 michael 5052 /* end confdefs.h. */
6022    
6023     int
6024     main ()
6025     {
6026    
6027     ;
6028     return 0;
6029     }
6030     _ACEOF
6031 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
6032     echo conftest.$ac_objext > conftest.lst
6033     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6034     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6035     (eval $lt_ar_try) 2>&5
6036 michael 5052 ac_status=$?
6037 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038     test $ac_status = 0; }
6039     if test 0 -eq "$ac_status"; then
6040     # Ensure the archiver fails upon bogus file names.
6041     rm -f conftest.$ac_objext libconftest.a
6042     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6043     (eval $lt_ar_try) 2>&5
6044 michael 5052 ac_status=$?
6045 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6046     test $ac_status = 0; }
6047     if test 0 -ne "$ac_status"; then
6048     lt_cv_ar_at_file=@
6049     fi
6050     fi
6051     rm -f conftest.* libconftest.a
6052 michael 5052
6053     fi
6054     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055    
6056     fi
6057 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6058     $as_echo "$lt_cv_ar_at_file" >&6; }
6059 michael 5052
6060 michael 5059 if test no = "$lt_cv_ar_at_file"; then
6061     archiver_list_spec=
6062 michael 5052 else
6063 michael 5059 archiver_list_spec=$lt_cv_ar_at_file
6064 michael 5052 fi
6065    
6066    
6067    
6068    
6069    
6070    
6071    
6072 michael 5059 if test -n "$ac_tool_prefix"; then
6073     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6074     set dummy ${ac_tool_prefix}strip; ac_word=$2
6075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076     $as_echo_n "checking for $ac_word... " >&6; }
6077     if ${ac_cv_prog_STRIP+:} false; then :
6078     $as_echo_n "(cached) " >&6
6079 michael 5052 else
6080 michael 5059 if test -n "$STRIP"; then
6081     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6082 michael 5052 else
6083 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084     for as_dir in $PATH
6085 michael 5052 do
6086 michael 5059 IFS=$as_save_IFS
6087     test -z "$as_dir" && as_dir=.
6088     for ac_exec_ext in '' $ac_executable_extensions; do
6089     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092     break 2
6093 michael 5052 fi
6094 michael 5059 done
6095     done
6096     IFS=$as_save_IFS
6097 michael 5052
6098     fi
6099     fi
6100 michael 5059 STRIP=$ac_cv_prog_STRIP
6101     if test -n "$STRIP"; then
6102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6103     $as_echo "$STRIP" >&6; }
6104 michael 5052 else
6105 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106     $as_echo "no" >&6; }
6107 michael 5052 fi
6108    
6109    
6110     fi
6111 michael 5059 if test -z "$ac_cv_prog_STRIP"; then
6112     ac_ct_STRIP=$STRIP
6113     # Extract the first word of "strip", so it can be a program name with args.
6114     set dummy strip; ac_word=$2
6115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116     $as_echo_n "checking for $ac_word... " >&6; }
6117     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6118     $as_echo_n "(cached) " >&6
6119 michael 5052 else
6120 michael 5059 if test -n "$ac_ct_STRIP"; then
6121     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6122     else
6123     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124     for as_dir in $PATH
6125 michael 5052 do
6126 michael 5059 IFS=$as_save_IFS
6127     test -z "$as_dir" && as_dir=.
6128     for ac_exec_ext in '' $ac_executable_extensions; do
6129     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130     ac_cv_prog_ac_ct_STRIP="strip"
6131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133 michael 5052 fi
6134 michael 5059 done
6135     done
6136     IFS=$as_save_IFS
6137    
6138 michael 5052 fi
6139 michael 5059 fi
6140     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6141     if test -n "$ac_ct_STRIP"; then
6142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6143     $as_echo "$ac_ct_STRIP" >&6; }
6144 michael 5052 else
6145 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146     $as_echo "no" >&6; }
6147 michael 5052 fi
6148    
6149 michael 5059 if test "x$ac_ct_STRIP" = x; then
6150     STRIP=":"
6151     else
6152     case $cross_compiling:$ac_tool_warned in
6153     yes:)
6154     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156     ac_tool_warned=yes ;;
6157 michael 5052 esac
6158 michael 5059 STRIP=$ac_ct_STRIP
6159 michael 5052 fi
6160     else
6161 michael 5059 STRIP="$ac_cv_prog_STRIP"
6162 michael 5052 fi
6163    
6164 michael 5059 test -z "$STRIP" && STRIP=:
6165 michael 5052
6166    
6167    
6168    
6169    
6170    
6171     if test -n "$ac_tool_prefix"; then
6172 michael 5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6173     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175     $as_echo_n "checking for $ac_word... " >&6; }
6176     if ${ac_cv_prog_RANLIB+:} false; then :
6177     $as_echo_n "(cached) " >&6
6178 michael 5052 else
6179 michael 5059 if test -n "$RANLIB"; then
6180     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6181 michael 5052 else
6182     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183     for as_dir in $PATH
6184     do
6185     IFS=$as_save_IFS
6186     test -z "$as_dir" && as_dir=.
6187 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6188     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 michael 5052 break 2
6192     fi
6193     done
6194 michael 5059 done
6195 michael 5052 IFS=$as_save_IFS
6196    
6197     fi
6198     fi
6199 michael 5059 RANLIB=$ac_cv_prog_RANLIB
6200     if test -n "$RANLIB"; then
6201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6202     $as_echo "$RANLIB" >&6; }
6203 michael 5052 else
6204 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205     $as_echo "no" >&6; }
6206 michael 5052 fi
6207    
6208    
6209     fi
6210 michael 5059 if test -z "$ac_cv_prog_RANLIB"; then
6211     ac_ct_RANLIB=$RANLIB
6212     # Extract the first word of "ranlib", so it can be a program name with args.
6213     set dummy ranlib; ac_word=$2
6214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215     $as_echo_n "checking for $ac_word... " >&6; }
6216     if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6217     $as_echo_n "(cached) " >&6
6218 michael 5052 else
6219 michael 5059 if test -n "$ac_ct_RANLIB"; then
6220     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6221 michael 5052 else
6222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223     for as_dir in $PATH
6224     do
6225     IFS=$as_save_IFS
6226     test -z "$as_dir" && as_dir=.
6227 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6228     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229     ac_cv_prog_ac_ct_RANLIB="ranlib"
6230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 michael 5052 break 2
6232     fi
6233     done
6234 michael 5059 done
6235 michael 5052 IFS=$as_save_IFS
6236    
6237     fi
6238     fi
6239 michael 5059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6240     if test -n "$ac_ct_RANLIB"; then
6241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6242     $as_echo "$ac_ct_RANLIB" >&6; }
6243 michael 5052 else
6244 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245     $as_echo "no" >&6; }
6246 michael 5052 fi
6247    
6248 michael 5059 if test "x$ac_ct_RANLIB" = x; then
6249     RANLIB=":"
6250 michael 5052 else
6251     case $cross_compiling:$ac_tool_warned in
6252     yes:)
6253 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6254     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6255 michael 5052 ac_tool_warned=yes ;;
6256     esac
6257 michael 5059 RANLIB=$ac_ct_RANLIB
6258 michael 5052 fi
6259 michael 5059 else
6260     RANLIB="$ac_cv_prog_RANLIB"
6261 michael 5052 fi
6262    
6263 michael 5059 test -z "$RANLIB" && RANLIB=:
6264 michael 5052
6265    
6266    
6267    
6268    
6269    
6270 michael 5059 # Determine commands to create old-style static archives.
6271     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6272     old_postinstall_cmds='chmod 644 $oldlib'
6273     old_postuninstall_cmds=
6274    
6275     if test -n "$RANLIB"; then
6276     case $host_os in
6277     bitrig* | openbsd*)
6278     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6279     ;;
6280     *)
6281     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6282     ;;
6283     esac
6284     old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6285 michael 5052 fi
6286    
6287 michael 5059 case $host_os in
6288     darwin*)
6289     lock_old_archive_extraction=yes ;;
6290     *)
6291     lock_old_archive_extraction=no ;;
6292 michael 5052 esac
6293    
6294    
6295    
6296    
6297    
6298    
6299    
6300    
6301    
6302    
6303    
6304    
6305    
6306    
6307    
6308    
6309    
6310    
6311    
6312    
6313    
6314 michael 5059
6315    
6316    
6317    
6318    
6319    
6320    
6321    
6322    
6323    
6324    
6325    
6326    
6327    
6328    
6329    
6330    
6331    
6332     # If no C compiler was specified, use CC.
6333     LTCC=${LTCC-"$CC"}
6334    
6335     # If no C compiler flags were specified, use CFLAGS.
6336     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6337    
6338     # Allow CC to be a program name with arguments.
6339     compiler=$CC
6340    
6341    
6342 michael 5052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6343 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6344     $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6345     if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6346     $as_echo_n "(cached) " >&6
6347 michael 5052 else
6348    
6349     # These are sane defaults that work on at least a few old systems.
6350     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6351    
6352     # Character class describing NM global symbol codes.
6353     symcode='[BCDEGRST]'
6354    
6355     # Regexp to match symbols that can be accessed directly from C.
6356     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6357    
6358     # Define system-specific variables.
6359     case $host_os in
6360     aix*)
6361     symcode='[BCDT]'
6362     ;;
6363 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
6364 michael 5052 symcode='[ABCDGISTW]'
6365     ;;
6366 michael 5059 hpux*)
6367     if test ia64 = "$host_cpu"; then
6368 michael 5052 symcode='[ABCDEGRST]'
6369     fi
6370     ;;
6371     irix* | nonstopux*)
6372     symcode='[BCDEGRST]'
6373     ;;
6374     osf*)
6375     symcode='[BCDEGQRST]'
6376     ;;
6377     solaris*)
6378     symcode='[BDRT]'
6379     ;;
6380     sco3.2v5*)
6381     symcode='[DT]'
6382     ;;
6383     sysv4.2uw2*)
6384     symcode='[DT]'
6385     ;;
6386     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6387     symcode='[ABDT]'
6388     ;;
6389     sysv4)
6390     symcode='[DFNSTU]'
6391     ;;
6392     esac
6393    
6394 michael 5059 # If we're using GNU nm, then use its standard symbol codes.
6395     case `$NM -V 2>&1` in
6396     *GNU* | *'with BFD'*)
6397     symcode='[ABCDGIRSTW]' ;;
6398     esac
6399    
6400     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6401     # Gets list of data symbols to import.
6402     lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6403     # Adjust the below global symbol transforms to fixup imported variables.
6404     lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6405     lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6406     lt_c_name_lib_hook="\
6407     -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6408     -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6409     else
6410     # Disable hooks by default.
6411     lt_cv_sys_global_symbol_to_import=
6412     lt_cdecl_hook=
6413     lt_c_name_hook=
6414     lt_c_name_lib_hook=
6415     fi
6416    
6417     # Transform an extracted symbol line into a proper C declaration.
6418     # Some systems (esp. on ia64) link data and code symbols differently,
6419     # so use this general approach.
6420     lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6421     $lt_cdecl_hook\
6422     " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6423     " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6424    
6425     # Transform an extracted symbol line into symbol name and symbol address
6426     lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6427     $lt_c_name_hook\
6428     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6429     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6430    
6431     # Transform an extracted symbol line into symbol name with lib prefix and
6432     # symbol address.
6433     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6434     $lt_c_name_lib_hook\
6435     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6436     " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6437     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6438    
6439 michael 5052 # Handle CRLF in mingw tool chain
6440     opt_cr=
6441     case $build_os in
6442     mingw*)
6443 michael 5059 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6444 michael 5052 ;;
6445     esac
6446    
6447 michael 5059 # Try without a prefix underscore, then with it.
6448 michael 5052 for ac_symprfx in "" "_"; do
6449    
6450     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6451     symxfrm="\\1 $ac_symprfx\\2 \\2"
6452    
6453     # Write the raw and C identifiers.
6454 michael 5059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6455     # Fake it for dumpbin and say T for any non-static function,
6456     # D for any global variable and I for any imported variable.
6457     # Also find C++ and __fastcall symbols from MSVC++,
6458     # which start with @ or ?.
6459     lt_cv_sys_global_symbol_pipe="$AWK '"\
6460     " {last_section=section; section=\$ 3};"\
6461     " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6462     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6463     " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6464     " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6465     " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6466     " \$ 0!~/External *\|/{next};"\
6467     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6468     " {if(hide[section]) next};"\
6469     " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6470     " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6471     " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6472     " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6473     " ' prfx=^$ac_symprfx"
6474     else
6475     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6476     fi
6477     lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6478 michael 5052
6479     # Check to see that the pipe works correctly.
6480     pipe_works=no
6481    
6482     rm -f conftest*
6483 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
6484 michael 5052 #ifdef __cplusplus
6485     extern "C" {
6486     #endif
6487     char nm_test_var;
6488 michael 5059 void nm_test_func(void);
6489     void nm_test_func(void){}
6490 michael 5052 #ifdef __cplusplus
6491     }
6492     #endif
6493     int main(){nm_test_var='a';nm_test_func();return(0);}
6494 michael 5059 _LT_EOF
6495 michael 5052
6496 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6497 michael 5052 (eval $ac_compile) 2>&5
6498     ac_status=$?
6499 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500     test $ac_status = 0; }; then
6501 michael 5052 # Now try to grab the symbols.
6502     nlist=conftest.nm
6503 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6504     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6505 michael 5052 ac_status=$?
6506 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507     test $ac_status = 0; } && test -s "$nlist"; then
6508 michael 5052 # Try sorting and uniquifying the output.
6509     if sort "$nlist" | uniq > "$nlist"T; then
6510     mv -f "$nlist"T "$nlist"
6511     else
6512     rm -f "$nlist"T
6513     fi
6514    
6515     # Make sure that we snagged all the symbols we need.
6516 michael 5059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6517     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6518     cat <<_LT_EOF > conftest.$ac_ext
6519     /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6520     #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6521     /* DATA imports from DLLs on WIN32 can't be const, because runtime
6522     relocations are performed -- see ld's documentation on pseudo-relocs. */
6523     # define LT_DLSYM_CONST
6524     #elif defined __osf__
6525     /* This system does not cope well with relocations in const data. */
6526     # define LT_DLSYM_CONST
6527     #else
6528     # define LT_DLSYM_CONST const
6529     #endif
6530    
6531 michael 5052 #ifdef __cplusplus
6532     extern "C" {
6533     #endif
6534    
6535 michael 5059 _LT_EOF
6536 michael 5052 # Now generate the symbol file.
6537 michael 5059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6538 michael 5052
6539 michael 5059 cat <<_LT_EOF >> conftest.$ac_ext
6540 michael 5052
6541 michael 5059 /* The mapping between symbol names and symbols. */
6542     LT_DLSYM_CONST struct {
6543 michael 5052 const char *name;
6544 michael 5059 void *address;
6545 michael 5052 }
6546 michael 5059 lt__PROGRAM__LTX_preloaded_symbols[] =
6547 michael 5052 {
6548 michael 5059 { "@PROGRAM@", (void *) 0 },
6549     _LT_EOF
6550     $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6551     cat <<\_LT_EOF >> conftest.$ac_ext
6552     {0, (void *) 0}
6553 michael 5052 };
6554    
6555 michael 5059 /* This works around a problem in FreeBSD linker */
6556     #ifdef FREEBSD_WORKAROUND
6557     static const void *lt_preloaded_setup() {
6558     return lt__PROGRAM__LTX_preloaded_symbols;
6559     }
6560     #endif
6561    
6562 michael 5052 #ifdef __cplusplus
6563     }
6564     #endif
6565 michael 5059 _LT_EOF
6566 michael 5052 # Now try linking the two files.
6567     mv conftest.$ac_objext conftstm.$ac_objext
6568 michael 5059 lt_globsym_save_LIBS=$LIBS
6569     lt_globsym_save_CFLAGS=$CFLAGS
6570     LIBS=conftstm.$ac_objext
6571 michael 5052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6572 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6573 michael 5052 (eval $ac_link) 2>&5
6574     ac_status=$?
6575 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576     test $ac_status = 0; } && test -s conftest$ac_exeext; then
6577 michael 5052 pipe_works=yes
6578     fi
6579 michael 5059 LIBS=$lt_globsym_save_LIBS
6580     CFLAGS=$lt_globsym_save_CFLAGS
6581 michael 5052 else
6582     echo "cannot find nm_test_func in $nlist" >&5
6583     fi
6584     else
6585     echo "cannot find nm_test_var in $nlist" >&5
6586     fi
6587     else
6588     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6589     fi
6590     else
6591     echo "$progname: failed program was:" >&5
6592     cat conftest.$ac_ext >&5
6593     fi
6594 michael 5059 rm -rf conftest* conftst*
6595 michael 5052
6596     # Do not use the global_symbol_pipe unless it works.
6597 michael 5059 if test yes = "$pipe_works"; then
6598 michael 5052 break
6599     else
6600     lt_cv_sys_global_symbol_pipe=
6601     fi
6602     done
6603    
6604     fi
6605    
6606     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6607     lt_cv_sys_global_symbol_to_cdecl=
6608     fi
6609     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6610 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6611     $as_echo "failed" >&6; }
6612 michael 5052 else
6613 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6614     $as_echo "ok" >&6; }
6615 michael 5052 fi
6616    
6617 michael 5059 # Response file support.
6618     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6619     nm_file_list_spec='@'
6620     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6621     nm_file_list_spec='@'
6622     fi
6623    
6624    
6625    
6626    
6627    
6628    
6629    
6630    
6631    
6632    
6633    
6634    
6635    
6636    
6637    
6638    
6639    
6640    
6641    
6642    
6643    
6644    
6645    
6646    
6647    
6648    
6649    
6650    
6651    
6652    
6653    
6654    
6655    
6656    
6657    
6658    
6659    
6660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6661     $as_echo_n "checking for sysroot... " >&6; }
6662    
6663     # Check whether --with-sysroot was given.
6664     if test "${with_sysroot+set}" = set; then :
6665     withval=$with_sysroot;
6666 michael 5052 else
6667 michael 5059 with_sysroot=no
6668     fi
6669    
6670    
6671     lt_sysroot=
6672     case $with_sysroot in #(
6673     yes)
6674     if test yes = "$GCC"; then
6675     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6676     fi
6677     ;; #(
6678     /*)
6679     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6680     ;; #(
6681     no|'')
6682     ;; #(
6683     *)
6684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6685     $as_echo "$with_sysroot" >&6; }
6686     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6687     ;;
6688     esac
6689    
6690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6691     $as_echo "${lt_sysroot:-no}" >&6; }
6692    
6693    
6694    
6695    
6696    
6697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6698     $as_echo_n "checking for a working dd... " >&6; }
6699     if ${ac_cv_path_lt_DD+:} false; then :
6700     $as_echo_n "(cached) " >&6
6701 michael 5052 else
6702 michael 5059 printf 0123456789abcdef0123456789abcdef >conftest.i
6703     cat conftest.i conftest.i >conftest2.i
6704     : ${lt_DD:=$DD}
6705     if test -z "$lt_DD"; then
6706     ac_path_lt_DD_found=false
6707     # Loop through the user's path and test for each of PROGNAME-LIST
6708     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709     for as_dir in $PATH
6710     do
6711     IFS=$as_save_IFS
6712     test -z "$as_dir" && as_dir=.
6713     for ac_prog in dd; do
6714     for ac_exec_ext in '' $ac_executable_extensions; do
6715     ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6716     as_fn_executable_p "$ac_path_lt_DD" || continue
6717     if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6718     cmp -s conftest.i conftest.out \
6719     && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6720 michael 5052 fi
6721 michael 5059 $ac_path_lt_DD_found && break 3
6722     done
6723     done
6724     done
6725     IFS=$as_save_IFS
6726     if test -z "$ac_cv_path_lt_DD"; then
6727     :
6728     fi
6729     else
6730     ac_cv_path_lt_DD=$lt_DD
6731 michael 5052 fi
6732    
6733 michael 5059 rm -f conftest.i conftest2.i conftest.out
6734     fi
6735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6736     $as_echo "$ac_cv_path_lt_DD" >&6; }
6737 michael 5052
6738    
6739 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6740     $as_echo_n "checking how to truncate binary pipes... " >&6; }
6741     if ${lt_cv_truncate_bin+:} false; then :
6742     $as_echo_n "(cached) " >&6
6743     else
6744     printf 0123456789abcdef0123456789abcdef >conftest.i
6745     cat conftest.i conftest.i >conftest2.i
6746     lt_cv_truncate_bin=
6747     if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6748     cmp -s conftest.i conftest.out \
6749     && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6750     fi
6751     rm -f conftest.i conftest2.i conftest.out
6752     test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6753     fi
6754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6755     $as_echo "$lt_cv_truncate_bin" >&6; }
6756 michael 5052
6757    
6758 michael 5059
6759    
6760    
6761    
6762     # Check whether --enable-libtool-lock was given.
6763     if test "${enable_libtool_lock+set}" = set; then :
6764     enableval=$enable_libtool_lock;
6765     fi
6766    
6767     test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6768    
6769     # Some flags need to be propagated to the compiler or linker for good
6770     # libtool support.
6771     case $host in
6772     ia64-*-hpux*)
6773     # Find out what ABI is being produced by ac_compile, and set mode
6774     # options accordingly.
6775     echo 'int i;' > conftest.$ac_ext
6776     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777     (eval $ac_compile) 2>&5
6778     ac_status=$?
6779     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780     test $ac_status = 0; }; then
6781     case `/usr/bin/file conftest.$ac_objext` in
6782     *ELF-32*)
6783     HPUX_IA64_MODE=32
6784     ;;
6785     *ELF-64*)
6786     HPUX_IA64_MODE=64
6787     ;;
6788     esac
6789 michael 5052 fi
6790 michael 5059 rm -rf conftest*
6791 michael 5052 ;;
6792 michael 5059 *-*-irix6*)
6793     # Find out what ABI is being produced by ac_compile, and set linker
6794     # options accordingly.
6795     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6796     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6797     (eval $ac_compile) 2>&5
6798     ac_status=$?
6799     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800     test $ac_status = 0; }; then
6801     if test yes = "$lt_cv_prog_gnu_ld"; then
6802     case `/usr/bin/file conftest.$ac_objext` in
6803     *32-bit*)
6804     LD="${LD-ld} -melf32bsmip"
6805     ;;
6806     *N32*)
6807     LD="${LD-ld} -melf32bmipn32"
6808     ;;
6809     *64-bit*)
6810     LD="${LD-ld} -melf64bmip"
6811     ;;
6812     esac
6813     else
6814     case `/usr/bin/file conftest.$ac_objext` in
6815     *32-bit*)
6816     LD="${LD-ld} -32"
6817     ;;
6818     *N32*)
6819     LD="${LD-ld} -n32"
6820     ;;
6821     *64-bit*)
6822     LD="${LD-ld} -64"
6823     ;;
6824     esac
6825     fi
6826     fi
6827     rm -rf conftest*
6828     ;;
6829 michael 5052
6830 michael 5059 mips64*-*linux*)
6831     # Find out what ABI is being produced by ac_compile, and set linker
6832     # options accordingly.
6833     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6834     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6835     (eval $ac_compile) 2>&5
6836     ac_status=$?
6837     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838     test $ac_status = 0; }; then
6839     emul=elf
6840     case `/usr/bin/file conftest.$ac_objext` in
6841     *32-bit*)
6842     emul="${emul}32"
6843     ;;
6844     *64-bit*)
6845     emul="${emul}64"
6846     ;;
6847     esac
6848     case `/usr/bin/file conftest.$ac_objext` in
6849     *MSB*)
6850     emul="${emul}btsmip"
6851     ;;
6852     *LSB*)
6853     emul="${emul}ltsmip"
6854     ;;
6855     esac
6856     case `/usr/bin/file conftest.$ac_objext` in
6857     *N32*)
6858     emul="${emul}n32"
6859     ;;
6860     esac
6861     LD="${LD-ld} -m $emul"
6862     fi
6863     rm -rf conftest*
6864     ;;
6865 michael 5052
6866 michael 5059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6867     s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6868     # Find out what ABI is being produced by ac_compile, and set linker
6869     # options accordingly. Note that the listed cases only cover the
6870     # situations where additional linker options are needed (such as when
6871     # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6872     # vice versa); the common cases where no linker options are needed do
6873     # not appear in the list.
6874     echo 'int i;' > conftest.$ac_ext
6875     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6876     (eval $ac_compile) 2>&5
6877     ac_status=$?
6878     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879     test $ac_status = 0; }; then
6880     case `/usr/bin/file conftest.o` in
6881     *32-bit*)
6882     case $host in
6883     x86_64-*kfreebsd*-gnu)
6884     LD="${LD-ld} -m elf_i386_fbsd"
6885     ;;
6886     x86_64-*linux*)
6887     case `/usr/bin/file conftest.o` in
6888     *x86-64*)
6889     LD="${LD-ld} -m elf32_x86_64"
6890     ;;
6891     *)
6892     LD="${LD-ld} -m elf_i386"
6893     ;;
6894     esac
6895     ;;
6896     powerpc64le-*linux*)
6897     LD="${LD-ld} -m elf32lppclinux"
6898     ;;
6899     powerpc64-*linux*)
6900     LD="${LD-ld} -m elf32ppclinux"
6901     ;;
6902     s390x-*linux*)
6903     LD="${LD-ld} -m elf_s390"
6904     ;;
6905     sparc64-*linux*)
6906     LD="${LD-ld} -m elf32_sparc"
6907     ;;
6908     esac
6909     ;;
6910     *64-bit*)
6911     case $host in
6912     x86_64-*kfreebsd*-gnu)
6913     LD="${LD-ld} -m elf_x86_64_fbsd"
6914     ;;
6915     x86_64-*linux*)
6916     LD="${LD-ld} -m elf_x86_64"
6917     ;;
6918     powerpcle-*linux*)
6919     LD="${LD-ld} -m elf64lppc"
6920     ;;
6921     powerpc-*linux*)
6922     LD="${LD-ld} -m elf64ppc"
6923     ;;
6924     s390*-*linux*|s390*-*tpf*)
6925     LD="${LD-ld} -m elf64_s390"
6926     ;;
6927     sparc*-*linux*)
6928     LD="${LD-ld} -m elf64_sparc"
6929     ;;
6930     esac
6931     ;;
6932     esac
6933     fi
6934     rm -rf conftest*
6935     ;;
6936 michael 5052
6937 michael 5059 *-*-sco3.2v5*)
6938     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6939     SAVE_CFLAGS=$CFLAGS
6940     CFLAGS="$CFLAGS -belf"
6941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6942     $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6943     if ${lt_cv_cc_needs_belf+:} false; then :
6944     $as_echo_n "(cached) " >&6
6945     else
6946     ac_ext=c
6947     ac_cpp='$CPP $CPPFLAGS'
6948     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6951 michael 5052
6952 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953     /* end confdefs.h. */
6954 michael 5052
6955 michael 5059 int
6956     main ()
6957     {
6958 michael 5052
6959 michael 5059 ;
6960     return 0;
6961     }
6962     _ACEOF
6963     if ac_fn_c_try_link "$LINENO"; then :
6964     lt_cv_cc_needs_belf=yes
6965     else
6966     lt_cv_cc_needs_belf=no
6967     fi
6968     rm -f core conftest.err conftest.$ac_objext \
6969     conftest$ac_exeext conftest.$ac_ext
6970     ac_ext=c
6971     ac_cpp='$CPP $CPPFLAGS'
6972     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975 michael 5052
6976 michael 5059 fi
6977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6978     $as_echo "$lt_cv_cc_needs_belf" >&6; }
6979     if test yes != "$lt_cv_cc_needs_belf"; then
6980     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6981     CFLAGS=$SAVE_CFLAGS
6982     fi
6983     ;;
6984     *-*solaris*)
6985     # Find out what ABI is being produced by ac_compile, and set linker
6986     # options accordingly.
6987     echo 'int i;' > conftest.$ac_ext
6988     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989     (eval $ac_compile) 2>&5
6990     ac_status=$?
6991     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992     test $ac_status = 0; }; then
6993     case `/usr/bin/file conftest.o` in
6994     *64-bit*)
6995     case $lt_cv_prog_gnu_ld in
6996     yes*)
6997     case $host in
6998     i?86-*-solaris*|x86_64-*-solaris*)
6999     LD="${LD-ld} -m elf_x86_64"
7000     ;;
7001     sparc*-*-solaris*)
7002     LD="${LD-ld} -m elf64_sparc"
7003     ;;
7004     esac
7005     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7006     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7007     LD=${LD-ld}_sol2
7008     fi
7009     ;;
7010     *)
7011     if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7012     LD="${LD-ld} -64"
7013     fi
7014     ;;
7015     esac
7016     ;;
7017     esac
7018     fi
7019     rm -rf conftest*
7020     ;;
7021     esac
7022 michael 5052
7023 michael 5059 need_locks=$enable_libtool_lock
7024    
7025 michael 5052 if test -n "$ac_tool_prefix"; then
7026 michael 5059 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7027     set dummy ${ac_tool_prefix}mt; ac_word=$2
7028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029     $as_echo_n "checking for $ac_word... " >&6; }
7030     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7031     $as_echo_n "(cached) " >&6
7032 michael 5052 else
7033 michael 5059 if test -n "$MANIFEST_TOOL"; then
7034     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7035 michael 5052 else
7036     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037     for as_dir in $PATH
7038     do
7039     IFS=$as_save_IFS
7040     test -z "$as_dir" && as_dir=.
7041 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7042     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 michael 5052 break 2
7046     fi
7047     done
7048 michael 5059 done
7049     IFS=$as_save_IFS
7050    
7051     fi
7052     fi
7053     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7054     if test -n "$MANIFEST_TOOL"; then
7055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7056     $as_echo "$MANIFEST_TOOL" >&6; }
7057     else
7058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059     $as_echo "no" >&6; }
7060     fi
7061    
7062    
7063     fi
7064     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7065     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7066     # Extract the first word of "mt", so it can be a program name with args.
7067     set dummy mt; ac_word=$2
7068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069     $as_echo_n "checking for $ac_word... " >&6; }
7070     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7071     $as_echo_n "(cached) " >&6
7072     else
7073     if test -n "$ac_ct_MANIFEST_TOOL"; then
7074     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7075     else
7076     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077     for as_dir in $PATH
7078     do
7079     IFS=$as_save_IFS
7080     test -z "$as_dir" && as_dir=.
7081     for ac_exec_ext in '' $ac_executable_extensions; do
7082     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085     break 2
7086     fi
7087 michael 5052 done
7088 michael 5059 done
7089 michael 5052 IFS=$as_save_IFS
7090    
7091     fi
7092     fi
7093 michael 5059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7094     if test -n "$ac_ct_MANIFEST_TOOL"; then
7095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7096     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7097 michael 5052 else
7098 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099     $as_echo "no" >&6; }
7100 michael 5052 fi
7101    
7102 michael 5059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7103     MANIFEST_TOOL=":"
7104     else
7105     case $cross_compiling:$ac_tool_warned in
7106     yes:)
7107     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109     ac_tool_warned=yes ;;
7110     esac
7111     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7112     fi
7113     else
7114     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7115     fi
7116 michael 5052
7117 michael 5059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7119     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7120     if ${lt_cv_path_mainfest_tool+:} false; then :
7121     $as_echo_n "(cached) " >&6
7122     else
7123     lt_cv_path_mainfest_tool=no
7124     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7125     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7126     cat conftest.err >&5
7127     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7128     lt_cv_path_mainfest_tool=yes
7129     fi
7130     rm -f conftest*
7131 michael 5052 fi
7132 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7133     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7134     if test yes != "$lt_cv_path_mainfest_tool"; then
7135     MANIFEST_TOOL=:
7136     fi
7137    
7138    
7139    
7140    
7141    
7142    
7143     case $host_os in
7144     rhapsody* | darwin*)
7145     if test -n "$ac_tool_prefix"; then
7146     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7147     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149     $as_echo_n "checking for $ac_word... " >&6; }
7150     if ${ac_cv_prog_DSYMUTIL+:} false; then :
7151     $as_echo_n "(cached) " >&6
7152 michael 5052 else
7153 michael 5059 if test -n "$DSYMUTIL"; then
7154     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7155 michael 5052 else
7156     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157     for as_dir in $PATH
7158     do
7159     IFS=$as_save_IFS
7160     test -z "$as_dir" && as_dir=.
7161 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7162     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 michael 5052 break 2
7166     fi
7167     done
7168 michael 5059 done
7169     IFS=$as_save_IFS
7170    
7171     fi
7172     fi
7173     DSYMUTIL=$ac_cv_prog_DSYMUTIL
7174     if test -n "$DSYMUTIL"; then
7175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7176     $as_echo "$DSYMUTIL" >&6; }
7177     else
7178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179     $as_echo "no" >&6; }
7180     fi
7181    
7182    
7183     fi
7184     if test -z "$ac_cv_prog_DSYMUTIL"; then
7185     ac_ct_DSYMUTIL=$DSYMUTIL
7186     # Extract the first word of "dsymutil", so it can be a program name with args.
7187     set dummy dsymutil; ac_word=$2
7188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189     $as_echo_n "checking for $ac_word... " >&6; }
7190     if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7191     $as_echo_n "(cached) " >&6
7192     else
7193     if test -n "$ac_ct_DSYMUTIL"; then
7194     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7195     else
7196     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197     for as_dir in $PATH
7198     do
7199     IFS=$as_save_IFS
7200     test -z "$as_dir" && as_dir=.
7201     for ac_exec_ext in '' $ac_executable_extensions; do
7202     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206     fi
7207 michael 5052 done
7208 michael 5059 done
7209 michael 5052 IFS=$as_save_IFS
7210    
7211     fi
7212     fi
7213 michael 5059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7214     if test -n "$ac_ct_DSYMUTIL"; then
7215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7216     $as_echo "$ac_ct_DSYMUTIL" >&6; }
7217 michael 5052 else
7218 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219     $as_echo "no" >&6; }
7220 michael 5052 fi
7221    
7222 michael 5059 if test "x$ac_ct_DSYMUTIL" = x; then
7223     DSYMUTIL=":"
7224 michael 5052 else
7225     case $cross_compiling:$ac_tool_warned in
7226     yes:)
7227 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 michael 5052 ac_tool_warned=yes ;;
7230     esac
7231 michael 5059 DSYMUTIL=$ac_ct_DSYMUTIL
7232 michael 5052 fi
7233     else
7234 michael 5059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7235 michael 5052 fi
7236    
7237 michael 5059 if test -n "$ac_tool_prefix"; then
7238     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7239     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241     $as_echo_n "checking for $ac_word... " >&6; }
7242     if ${ac_cv_prog_NMEDIT+:} false; then :
7243     $as_echo_n "(cached) " >&6
7244 michael 5052 else
7245 michael 5059 if test -n "$NMEDIT"; then
7246     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7247 michael 5052 else
7248     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249     for as_dir in $PATH
7250     do
7251     IFS=$as_save_IFS
7252     test -z "$as_dir" && as_dir=.
7253 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7254     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 michael 5052 break 2
7258     fi
7259     done
7260 michael 5059 done
7261 michael 5052 IFS=$as_save_IFS
7262    
7263     fi
7264     fi
7265 michael 5059 NMEDIT=$ac_cv_prog_NMEDIT
7266     if test -n "$NMEDIT"; then
7267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7268     $as_echo "$NMEDIT" >&6; }
7269 michael 5052 else
7270 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271     $as_echo "no" >&6; }
7272 michael 5052 fi
7273    
7274    
7275     fi
7276 michael 5059 if test -z "$ac_cv_prog_NMEDIT"; then
7277     ac_ct_NMEDIT=$NMEDIT
7278     # Extract the first word of "nmedit", so it can be a program name with args.
7279     set dummy nmedit; ac_word=$2
7280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281     $as_echo_n "checking for $ac_word... " >&6; }
7282     if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7283     $as_echo_n "(cached) " >&6
7284 michael 5052 else
7285 michael 5059 if test -n "$ac_ct_NMEDIT"; then
7286     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7287 michael 5052 else
7288     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289     for as_dir in $PATH
7290     do
7291     IFS=$as_save_IFS
7292     test -z "$as_dir" && as_dir=.
7293 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7294     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 michael 5052 break 2
7298     fi
7299     done
7300 michael 5059 done
7301 michael 5052 IFS=$as_save_IFS
7302    
7303     fi
7304     fi
7305 michael 5059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7306     if test -n "$ac_ct_NMEDIT"; then
7307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7308     $as_echo "$ac_ct_NMEDIT" >&6; }
7309 michael 5052 else
7310 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311     $as_echo "no" >&6; }
7312 michael 5052 fi
7313    
7314 michael 5059 if test "x$ac_ct_NMEDIT" = x; then
7315     NMEDIT=":"
7316 michael 5052 else
7317     case $cross_compiling:$ac_tool_warned in
7318     yes:)
7319 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 michael 5052 ac_tool_warned=yes ;;
7322     esac
7323 michael 5059 NMEDIT=$ac_ct_NMEDIT
7324 michael 5052 fi
7325     else
7326 michael 5059 NMEDIT="$ac_cv_prog_NMEDIT"
7327 michael 5052 fi
7328    
7329 michael 5059 if test -n "$ac_tool_prefix"; then
7330     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7331     set dummy ${ac_tool_prefix}lipo; ac_word=$2
7332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333     $as_echo_n "checking for $ac_word... " >&6; }
7334     if ${ac_cv_prog_LIPO+:} false; then :
7335     $as_echo_n "(cached) " >&6
7336 michael 5052 else
7337 michael 5059 if test -n "$LIPO"; then
7338     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7339 michael 5052 else
7340     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341     for as_dir in $PATH
7342     do
7343     IFS=$as_save_IFS
7344     test -z "$as_dir" && as_dir=.
7345 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7346     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 michael 5052 break 2
7350     fi
7351     done
7352 michael 5059 done
7353     IFS=$as_save_IFS
7354    
7355     fi
7356     fi
7357     LIPO=$ac_cv_prog_LIPO
7358     if test -n "$LIPO"; then
7359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7360     $as_echo "$LIPO" >&6; }
7361     else
7362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363     $as_echo "no" >&6; }
7364     fi
7365    
7366    
7367     fi
7368     if test -z "$ac_cv_prog_LIPO"; then
7369     ac_ct_LIPO=$LIPO
7370     # Extract the first word of "lipo", so it can be a program name with args.
7371     set dummy lipo; ac_word=$2
7372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373     $as_echo_n "checking for $ac_word... " >&6; }
7374     if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7375     $as_echo_n "(cached) " >&6
7376     else
7377     if test -n "$ac_ct_LIPO"; then
7378     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7379     else
7380     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381     for as_dir in $PATH
7382     do
7383     IFS=$as_save_IFS
7384     test -z "$as_dir" && as_dir=.
7385     for ac_exec_ext in '' $ac_executable_extensions; do
7386     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387     ac_cv_prog_ac_ct_LIPO="lipo"
7388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389     break 2
7390     fi
7391 michael 5052 done
7392 michael 5059 done
7393 michael 5052 IFS=$as_save_IFS
7394    
7395     fi
7396     fi
7397 michael 5059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7398     if test -n "$ac_ct_LIPO"; then
7399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7400     $as_echo "$ac_ct_LIPO" >&6; }
7401 michael 5052 else
7402 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403     $as_echo "no" >&6; }
7404 michael 5052 fi
7405    
7406 michael 5059 if test "x$ac_ct_LIPO" = x; then
7407     LIPO=":"
7408     else
7409     case $cross_compiling:$ac_tool_warned in
7410     yes:)
7411     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413     ac_tool_warned=yes ;;
7414     esac
7415     LIPO=$ac_ct_LIPO
7416     fi
7417     else
7418     LIPO="$ac_cv_prog_LIPO"
7419     fi
7420 michael 5052
7421 michael 5059 if test -n "$ac_tool_prefix"; then
7422     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7423     set dummy ${ac_tool_prefix}otool; ac_word=$2
7424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425     $as_echo_n "checking for $ac_word... " >&6; }
7426     if ${ac_cv_prog_OTOOL+:} false; then :
7427     $as_echo_n "(cached) " >&6
7428     else
7429     if test -n "$OTOOL"; then
7430     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7431     else
7432     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433     for as_dir in $PATH
7434     do
7435     IFS=$as_save_IFS
7436     test -z "$as_dir" && as_dir=.
7437     for ac_exec_ext in '' $ac_executable_extensions; do
7438     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441     break 2
7442     fi
7443     done
7444     done
7445     IFS=$as_save_IFS
7446    
7447 michael 5052 fi
7448 michael 5059 fi
7449     OTOOL=$ac_cv_prog_OTOOL
7450     if test -n "$OTOOL"; then
7451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7452     $as_echo "$OTOOL" >&6; }
7453 michael 5052 else
7454 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455     $as_echo "no" >&6; }
7456     fi
7457    
7458    
7459     fi
7460     if test -z "$ac_cv_prog_OTOOL"; then
7461     ac_ct_OTOOL=$OTOOL
7462     # Extract the first word of "otool", so it can be a program name with args.
7463     set dummy otool; ac_word=$2
7464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465     $as_echo_n "checking for $ac_word... " >&6; }
7466     if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7467     $as_echo_n "(cached) " >&6
7468 michael 5052 else
7469 michael 5059 if test -n "$ac_ct_OTOOL"; then
7470     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7471     else
7472 michael 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473     for as_dir in $PATH
7474     do
7475     IFS=$as_save_IFS
7476     test -z "$as_dir" && as_dir=.
7477 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7478     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479     ac_cv_prog_ac_ct_OTOOL="otool"
7480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 michael 5052 break 2
7482     fi
7483     done
7484 michael 5059 done
7485     IFS=$as_save_IFS
7486    
7487     fi
7488     fi
7489     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7490     if test -n "$ac_ct_OTOOL"; then
7491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7492     $as_echo "$ac_ct_OTOOL" >&6; }
7493     else
7494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495     $as_echo "no" >&6; }
7496     fi
7497    
7498     if test "x$ac_ct_OTOOL" = x; then
7499     OTOOL=":"
7500     else
7501     case $cross_compiling:$ac_tool_warned in
7502     yes:)
7503     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505     ac_tool_warned=yes ;;
7506     esac
7507     OTOOL=$ac_ct_OTOOL
7508     fi
7509     else
7510     OTOOL="$ac_cv_prog_OTOOL"
7511     fi
7512    
7513     if test -n "$ac_tool_prefix"; then
7514     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7515     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517     $as_echo_n "checking for $ac_word... " >&6; }
7518     if ${ac_cv_prog_OTOOL64+:} false; then :
7519     $as_echo_n "(cached) " >&6
7520     else
7521     if test -n "$OTOOL64"; then
7522     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7523     else
7524     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525     for as_dir in $PATH
7526     do
7527     IFS=$as_save_IFS
7528     test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534     fi
7535 michael 5052 done
7536 michael 5059 done
7537 michael 5052 IFS=$as_save_IFS
7538    
7539     fi
7540     fi
7541 michael 5059 OTOOL64=$ac_cv_prog_OTOOL64
7542     if test -n "$OTOOL64"; then
7543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7544     $as_echo "$OTOOL64" >&6; }
7545 michael 5052 else
7546 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547     $as_echo "no" >&6; }
7548 michael 5052 fi
7549    
7550 michael 5059
7551     fi
7552     if test -z "$ac_cv_prog_OTOOL64"; then
7553     ac_ct_OTOOL64=$OTOOL64
7554     # Extract the first word of "otool64", so it can be a program name with args.
7555     set dummy otool64; ac_word=$2
7556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557     $as_echo_n "checking for $ac_word... " >&6; }
7558     if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7559     $as_echo_n "(cached) " >&6
7560     else
7561     if test -n "$ac_ct_OTOOL64"; then
7562     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7563     else
7564     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565     for as_dir in $PATH
7566     do
7567     IFS=$as_save_IFS
7568     test -z "$as_dir" && as_dir=.
7569     for ac_exec_ext in '' $ac_executable_extensions; do
7570     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571     ac_cv_prog_ac_ct_OTOOL64="otool64"
7572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574     fi
7575     done
7576     done
7577     IFS=$as_save_IFS
7578    
7579     fi
7580     fi
7581     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7582     if test -n "$ac_ct_OTOOL64"; then
7583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7584     $as_echo "$ac_ct_OTOOL64" >&6; }
7585     else
7586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587     $as_echo "no" >&6; }
7588     fi
7589    
7590     if test "x$ac_ct_OTOOL64" = x; then
7591     OTOOL64=":"
7592 michael 5052 else
7593     case $cross_compiling:$ac_tool_warned in
7594     yes:)
7595 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 michael 5052 ac_tool_warned=yes ;;
7598     esac
7599 michael 5059 OTOOL64=$ac_ct_OTOOL64
7600 michael 5052 fi
7601     else
7602 michael 5059 OTOOL64="$ac_cv_prog_OTOOL64"
7603 michael 5052 fi
7604    
7605    
7606    
7607 michael 5059
7608    
7609    
7610    
7611    
7612    
7613    
7614    
7615    
7616    
7617    
7618    
7619    
7620    
7621    
7622    
7623    
7624    
7625    
7626    
7627    
7628    
7629    
7630    
7631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7632     $as_echo_n "checking for -single_module linker flag... " >&6; }
7633     if ${lt_cv_apple_cc_single_mod+:} false; then :
7634     $as_echo_n "(cached) " >&6
7635     else
7636     lt_cv_apple_cc_single_mod=no
7637     if test -z "$LT_MULTI_MODULE"; then
7638     # By default we will add the -single_module flag. You can override
7639     # by either setting the environment variable LT_MULTI_MODULE
7640     # non-empty at configure time, or by adding -multi_module to the
7641     # link flags.
7642     rm -rf libconftest.dylib*
7643     echo "int foo(void){return 1;}" > conftest.c
7644     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7645     -dynamiclib -Wl,-single_module conftest.c" >&5
7646     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7647     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7648     _lt_result=$?
7649     # If there is a non-empty error log, and "single_module"
7650     # appears in it, assume the flag caused a linker warning
7651     if test -s conftest.err && $GREP single_module conftest.err; then
7652     cat conftest.err >&5
7653     # Otherwise, if the output was created with a 0 exit code from
7654     # the compiler, it worked.
7655     elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7656     lt_cv_apple_cc_single_mod=yes
7657     else
7658     cat conftest.err >&5
7659     fi
7660     rm -rf libconftest.dylib*
7661     rm -f conftest.*
7662     fi
7663     fi
7664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7665     $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7666    
7667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7668     $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7669     if ${lt_cv_ld_exported_symbols_list+:} false; then :
7670     $as_echo_n "(cached) " >&6
7671     else
7672     lt_cv_ld_exported_symbols_list=no
7673     save_LDFLAGS=$LDFLAGS
7674     echo "_main" > conftest.sym
7675     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7676     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677     /* end confdefs.h. */
7678    
7679     int
7680     main ()
7681     {
7682    
7683     ;
7684     return 0;
7685     }
7686     _ACEOF
7687     if ac_fn_c_try_link "$LINENO"; then :
7688     lt_cv_ld_exported_symbols_list=yes
7689     else
7690     lt_cv_ld_exported_symbols_list=no
7691     fi
7692     rm -f core conftest.err conftest.$ac_objext \
7693     conftest$ac_exeext conftest.$ac_ext
7694     LDFLAGS=$save_LDFLAGS
7695    
7696     fi
7697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7698     $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7699    
7700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7701     $as_echo_n "checking for -force_load linker flag... " >&6; }
7702     if ${lt_cv_ld_force_load+:} false; then :
7703     $as_echo_n "(cached) " >&6
7704     else
7705     lt_cv_ld_force_load=no
7706     cat > conftest.c << _LT_EOF
7707     int forced_loaded() { return 2;}
7708     _LT_EOF
7709     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7710     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7711     echo "$AR cru libconftest.a conftest.o" >&5
7712     $AR cru libconftest.a conftest.o 2>&5
7713     echo "$RANLIB libconftest.a" >&5
7714     $RANLIB libconftest.a 2>&5
7715     cat > conftest.c << _LT_EOF
7716     int main() { return 0;}
7717     _LT_EOF
7718     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7719     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7720     _lt_result=$?
7721     if test -s conftest.err && $GREP force_load conftest.err; then
7722     cat conftest.err >&5
7723     elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7724     lt_cv_ld_force_load=yes
7725     else
7726     cat conftest.err >&5
7727     fi
7728     rm -f conftest.err libconftest.a conftest conftest.c
7729     rm -rf conftest.dSYM
7730    
7731     fi
7732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7733     $as_echo "$lt_cv_ld_force_load" >&6; }
7734     case $host_os in
7735     rhapsody* | darwin1.[012])
7736     _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7737     darwin1.*)
7738     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7739     darwin*) # darwin 5.x on
7740     # if running on 10.5 or later, the deployment target defaults
7741     # to the OS version, if on x86, and 10.4, the deployment
7742     # target defaults to 10.4. Don't you love it?
7743     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7744     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7745     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7746     10.[012][,.]*)
7747     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7748     10.*)
7749     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7750     esac
7751     ;;
7752     esac
7753     if test yes = "$lt_cv_apple_cc_single_mod"; then
7754     _lt_dar_single_mod='$single_module'
7755     fi
7756     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7757     _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7758     else
7759     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7760     fi
7761     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7762     _lt_dsymutil='~$DSYMUTIL $lib || :'
7763     else
7764     _lt_dsymutil=
7765     fi
7766     ;;
7767     esac
7768    
7769     ac_ext=c
7770     ac_cpp='$CPP $CPPFLAGS'
7771     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7772     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7773     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7775     $as_echo_n "checking how to run the C preprocessor... " >&6; }
7776     # On Suns, sometimes $CPP names a directory.
7777     if test -n "$CPP" && test -d "$CPP"; then
7778     CPP=
7779     fi
7780     if test -z "$CPP"; then
7781     if ${ac_cv_prog_CPP+:} false; then :
7782     $as_echo_n "(cached) " >&6
7783     else
7784     # Double quotes because CPP needs to be expanded
7785     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7786     do
7787     ac_preproc_ok=false
7788     for ac_c_preproc_warn_flag in '' yes
7789     do
7790     # Use a header file that comes with gcc, so configuring glibc
7791     # with a fresh cross-compiler works.
7792     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7793     # <limits.h> exists even on freestanding compilers.
7794     # On the NeXT, cc -E runs the code through the compiler's parser,
7795     # not just through cpp. "Syntax error" is here to catch this case.
7796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797     /* end confdefs.h. */
7798     #ifdef __STDC__
7799     # include <limits.h>
7800     #else
7801     # include <assert.h>
7802     #endif
7803     Syntax error
7804     _ACEOF
7805     if ac_fn_c_try_cpp "$LINENO"; then :
7806    
7807     else
7808     # Broken: fails on valid input.
7809     continue
7810     fi
7811     rm -f conftest.err conftest.i conftest.$ac_ext
7812    
7813     # OK, works on sane cases. Now check whether nonexistent headers
7814     # can be detected and how.
7815     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816     /* end confdefs.h. */
7817     #include <ac_nonexistent.h>
7818     _ACEOF
7819     if ac_fn_c_try_cpp "$LINENO"; then :
7820     # Broken: success on invalid input.
7821     continue
7822     else
7823     # Passes both tests.
7824     ac_preproc_ok=:
7825     break
7826     fi
7827     rm -f conftest.err conftest.i conftest.$ac_ext
7828    
7829     done
7830     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7831     rm -f conftest.i conftest.err conftest.$ac_ext
7832     if $ac_preproc_ok; then :
7833     break
7834     fi
7835    
7836     done
7837     ac_cv_prog_CPP=$CPP
7838    
7839     fi
7840     CPP=$ac_cv_prog_CPP
7841     else
7842     ac_cv_prog_CPP=$CPP
7843     fi
7844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7845     $as_echo "$CPP" >&6; }
7846     ac_preproc_ok=false
7847     for ac_c_preproc_warn_flag in '' yes
7848     do
7849     # Use a header file that comes with gcc, so configuring glibc
7850     # with a fresh cross-compiler works.
7851     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7852     # <limits.h> exists even on freestanding compilers.
7853     # On the NeXT, cc -E runs the code through the compiler's parser,
7854     # not just through cpp. "Syntax error" is here to catch this case.
7855     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856     /* end confdefs.h. */
7857     #ifdef __STDC__
7858     # include <limits.h>
7859     #else
7860     # include <assert.h>
7861     #endif
7862     Syntax error
7863     _ACEOF
7864     if ac_fn_c_try_cpp "$LINENO"; then :
7865    
7866     else
7867     # Broken: fails on valid input.
7868     continue
7869     fi
7870     rm -f conftest.err conftest.i conftest.$ac_ext
7871    
7872     # OK, works on sane cases. Now check whether nonexistent headers
7873     # can be detected and how.
7874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875     /* end confdefs.h. */
7876     #include <ac_nonexistent.h>
7877     _ACEOF
7878     if ac_fn_c_try_cpp "$LINENO"; then :
7879     # Broken: success on invalid input.
7880     continue
7881     else
7882     # Passes both tests.
7883     ac_preproc_ok=:
7884     break
7885     fi
7886     rm -f conftest.err conftest.i conftest.$ac_ext
7887    
7888     done
7889     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7890     rm -f conftest.i conftest.err conftest.$ac_ext
7891     if $ac_preproc_ok; then :
7892    
7893     else
7894     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7895     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7896     as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7897     See \`config.log' for more details" "$LINENO" 5; }
7898     fi
7899    
7900     ac_ext=c
7901     ac_cpp='$CPP $CPPFLAGS'
7902     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905    
7906    
7907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7908     $as_echo_n "checking for ANSI C header files... " >&6; }
7909     if ${ac_cv_header_stdc+:} false; then :
7910     $as_echo_n "(cached) " >&6
7911     else
7912     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913     /* end confdefs.h. */
7914     #include <stdlib.h>
7915     #include <stdarg.h>
7916     #include <string.h>
7917     #include <float.h>
7918    
7919     int
7920     main ()
7921     {
7922    
7923     ;
7924     return 0;
7925     }
7926     _ACEOF
7927     if ac_fn_c_try_compile "$LINENO"; then :
7928     ac_cv_header_stdc=yes
7929     else
7930     ac_cv_header_stdc=no
7931     fi
7932     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933    
7934     if test $ac_cv_header_stdc = yes; then
7935     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7936     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937     /* end confdefs.h. */
7938     #include <string.h>
7939    
7940     _ACEOF
7941     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7942     $EGREP "memchr" >/dev/null 2>&1; then :
7943    
7944     else
7945     ac_cv_header_stdc=no
7946     fi
7947     rm -f conftest*
7948    
7949     fi
7950    
7951     if test $ac_cv_header_stdc = yes; then
7952     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7953     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954     /* end confdefs.h. */
7955     #include <stdlib.h>
7956    
7957     _ACEOF
7958     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7959     $EGREP "free" >/dev/null 2>&1; then :
7960    
7961     else
7962     ac_cv_header_stdc=no
7963     fi
7964     rm -f conftest*
7965    
7966     fi
7967    
7968     if test $ac_cv_header_stdc = yes; then
7969     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7970     if test "$cross_compiling" = yes; then :
7971     :
7972     else
7973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974     /* end confdefs.h. */
7975     #include <ctype.h>
7976     #include <stdlib.h>
7977     #if ((' ' & 0x0FF) == 0x020)
7978     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7979     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7980     #else
7981     # define ISLOWER(c) \
7982     (('a' <= (c) && (c) <= 'i') \
7983     || ('j' <= (c) && (c) <= 'r') \
7984     || ('s' <= (c) && (c) <= 'z'))
7985     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7986     #endif
7987    
7988     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7989     int
7990     main ()
7991     {
7992     int i;
7993     for (i = 0; i < 256; i++)
7994     if (XOR (islower (i), ISLOWER (i))
7995     || toupper (i) != TOUPPER (i))
7996     return 2;
7997     return 0;
7998     }
7999     _ACEOF
8000     if ac_fn_c_try_run "$LINENO"; then :
8001    
8002     else
8003     ac_cv_header_stdc=no
8004     fi
8005     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8006     conftest.$ac_objext conftest.beam conftest.$ac_ext
8007     fi
8008    
8009     fi
8010     fi
8011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8012     $as_echo "$ac_cv_header_stdc" >&6; }
8013     if test $ac_cv_header_stdc = yes; then
8014    
8015     $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8016    
8017     fi
8018    
8019     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8020     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8021     inttypes.h stdint.h unistd.h
8022     do :
8023     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8024     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8025     "
8026     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8027     cat >>confdefs.h <<_ACEOF
8028     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8029     _ACEOF
8030    
8031     fi
8032    
8033     done
8034    
8035    
8036     for ac_header in dlfcn.h
8037     do :
8038     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8039     "
8040     if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8041     cat >>confdefs.h <<_ACEOF
8042     #define HAVE_DLFCN_H 1
8043     _ACEOF
8044    
8045     fi
8046    
8047     done
8048    
8049    
8050    
8051    
8052    
8053     # Set options
8054    
8055    
8056    
8057     enable_dlopen=no
8058    
8059    
8060     enable_win32_dll=no
8061    
8062    
8063     # Check whether --enable-shared was given.
8064     if test "${enable_shared+set}" = set; then :
8065     enableval=$enable_shared; p=${PACKAGE-default}
8066     case $enableval in
8067     yes) enable_shared=yes ;;
8068     no) enable_shared=no ;;
8069     *)
8070     enable_shared=no
8071     # Look at the argument we got. We use all the common list separators.
8072     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8073     for pkg in $enableval; do
8074     IFS=$lt_save_ifs
8075     if test "X$pkg" = "X$p"; then
8076     enable_shared=yes
8077     fi
8078     done
8079     IFS=$lt_save_ifs
8080     ;;
8081     esac
8082     else
8083     enable_shared=yes
8084     fi
8085    
8086    
8087    
8088    
8089    
8090    
8091    
8092    
8093    
8094     # Check whether --enable-static was given.
8095     if test "${enable_static+set}" = set; then :
8096     enableval=$enable_static; p=${PACKAGE-default}
8097     case $enableval in
8098     yes) enable_static=yes ;;
8099     no) enable_static=no ;;
8100     *)
8101     enable_static=no
8102     # Look at the argument we got. We use all the common list separators.
8103     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8104     for pkg in $enableval; do
8105     IFS=$lt_save_ifs
8106     if test "X$pkg" = "X$p"; then
8107     enable_static=yes
8108     fi
8109     done
8110     IFS=$lt_save_ifs
8111     ;;
8112     esac
8113     else
8114     enable_static=yes
8115     fi
8116    
8117    
8118    
8119    
8120    
8121    
8122    
8123    
8124    
8125    
8126     # Check whether --with-pic was given.
8127     if test "${with_pic+set}" = set; then :
8128     withval=$with_pic; lt_p=${PACKAGE-default}
8129     case $withval in
8130     yes|no) pic_mode=$withval ;;
8131     *)
8132     pic_mode=default
8133     # Look at the argument we got. We use all the common list separators.
8134     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8135     for lt_pkg in $withval; do
8136     IFS=$lt_save_ifs
8137     if test "X$lt_pkg" = "X$lt_p"; then
8138     pic_mode=yes
8139     fi
8140     done
8141     IFS=$lt_save_ifs
8142     ;;
8143     esac
8144     else
8145     pic_mode=default
8146     fi
8147    
8148    
8149    
8150    
8151    
8152    
8153    
8154    
8155     # Check whether --enable-fast-install was given.
8156     if test "${enable_fast_install+set}" = set; then :
8157     enableval=$enable_fast_install; p=${PACKAGE-default}
8158     case $enableval in
8159     yes) enable_fast_install=yes ;;
8160     no) enable_fast_install=no ;;
8161     *)
8162     enable_fast_install=no
8163     # Look at the argument we got. We use all the common list separators.
8164     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8165     for pkg in $enableval; do
8166     IFS=$lt_save_ifs
8167     if test "X$pkg" = "X$p"; then
8168     enable_fast_install=yes
8169     fi
8170     done
8171     IFS=$lt_save_ifs
8172     ;;
8173     esac
8174     else
8175     enable_fast_install=yes
8176     fi
8177    
8178    
8179    
8180    
8181    
8182    
8183    
8184    
8185     shared_archive_member_spec=
8186     case $host,$enable_shared in
8187     power*-*-aix[5-9]*,yes)
8188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8189     $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8190    
8191     # Check whether --with-aix-soname was given.
8192     if test "${with_aix_soname+set}" = set; then :
8193     withval=$with_aix_soname; case $withval in
8194     aix|svr4|both)
8195     ;;
8196     *)
8197     as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8198     ;;
8199     esac
8200     lt_cv_with_aix_soname=$with_aix_soname
8201     else
8202     if ${lt_cv_with_aix_soname+:} false; then :
8203     $as_echo_n "(cached) " >&6
8204     else
8205     lt_cv_with_aix_soname=aix
8206     fi
8207    
8208     with_aix_soname=$lt_cv_with_aix_soname
8209     fi
8210    
8211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8212     $as_echo "$with_aix_soname" >&6; }
8213     if test aix != "$with_aix_soname"; then
8214     # For the AIX way of multilib, we name the shared archive member
8215     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8216     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8217     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8218     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8219     if test 64 = "${OBJECT_MODE-32}"; then
8220     shared_archive_member_spec=shr_64
8221     else
8222     shared_archive_member_spec=shr
8223     fi
8224     fi
8225     ;;
8226     *)
8227     with_aix_soname=aix
8228     ;;
8229     esac
8230    
8231    
8232    
8233    
8234    
8235    
8236    
8237    
8238    
8239    
8240     # This can be used to rebuild libtool when needed
8241     LIBTOOL_DEPS=$ltmain
8242    
8243     # Always use our own libtool.
8244     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8245    
8246    
8247    
8248    
8249    
8250    
8251    
8252    
8253    
8254    
8255    
8256    
8257    
8258    
8259    
8260    
8261    
8262    
8263    
8264    
8265    
8266    
8267    
8268    
8269    
8270    
8271    
8272    
8273    
8274    
8275     test -z "$LN_S" && LN_S="ln -s"
8276    
8277    
8278    
8279    
8280    
8281    
8282    
8283    
8284    
8285    
8286    
8287    
8288    
8289    
8290     if test -n "${ZSH_VERSION+set}"; then
8291     setopt NO_GLOB_SUBST
8292     fi
8293    
8294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8295     $as_echo_n "checking for objdir... " >&6; }
8296     if ${lt_cv_objdir+:} false; then :
8297     $as_echo_n "(cached) " >&6
8298     else
8299     rm -f .libs 2>/dev/null
8300     mkdir .libs 2>/dev/null
8301     if test -d .libs; then
8302     lt_cv_objdir=.libs
8303     else
8304     # MS-DOS does not allow filenames that begin with a dot.
8305     lt_cv_objdir=_libs
8306     fi
8307     rmdir .libs 2>/dev/null
8308     fi
8309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8310     $as_echo "$lt_cv_objdir" >&6; }
8311     objdir=$lt_cv_objdir
8312    
8313    
8314    
8315    
8316    
8317     cat >>confdefs.h <<_ACEOF
8318     #define LT_OBJDIR "$lt_cv_objdir/"
8319     _ACEOF
8320    
8321    
8322    
8323    
8324     case $host_os in
8325     aix3*)
8326     # AIX sometimes has problems with the GCC collect2 program. For some
8327     # reason, if we set the COLLECT_NAMES environment variable, the problems
8328     # vanish in a puff of smoke.
8329     if test set != "${COLLECT_NAMES+set}"; then
8330     COLLECT_NAMES=
8331     export COLLECT_NAMES
8332     fi
8333     ;;
8334     esac
8335    
8336     # Global variables:
8337     ofile=libtool
8338     can_build_shared=yes
8339    
8340     # All known linkers require a '.a' archive for static linking (except MSVC,
8341     # which needs '.lib').
8342     libext=a
8343    
8344     with_gnu_ld=$lt_cv_prog_gnu_ld
8345    
8346     old_CC=$CC
8347     old_CFLAGS=$CFLAGS
8348    
8349 michael 5052 # Set sane defaults for various variables
8350     test -z "$CC" && CC=cc
8351     test -z "$LTCC" && LTCC=$CC
8352     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8353     test -z "$LD" && LD=ld
8354     test -z "$ac_objext" && ac_objext=o
8355    
8356     for cc_temp in $compiler""; do
8357     case $cc_temp in
8358     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8359     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8360     \-*) ;;
8361     *) break;;
8362     esac
8363     done
8364 michael 5059 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8365 michael 5052
8366    
8367     # Only perform the check for file, if the check method requires it
8368 michael 5059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8369 michael 5052 case $deplibs_check_method in
8370     file_magic*)
8371     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8372 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8373     $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8374     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8375     $as_echo_n "(cached) " >&6
8376 michael 5052 else
8377     case $MAGIC_CMD in
8378     [\\/*] | ?:[\\/]*)
8379 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8380 michael 5052 ;;
8381     *)
8382 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8383     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8384 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8385     for ac_dir in $ac_dummy; do
8386 michael 5059 IFS=$lt_save_ifs
8387 michael 5052 test -z "$ac_dir" && ac_dir=.
8388 michael 5059 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8389     lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8390 michael 5052 if test -n "$file_magic_test_file"; then
8391     case $deplibs_check_method in
8392     "file_magic "*)
8393     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8394 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8395 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8396     $EGREP "$file_magic_regex" > /dev/null; then
8397     :
8398     else
8399 michael 5059 cat <<_LT_EOF 1>&2
8400 michael 5052
8401     *** Warning: the command libtool uses to detect shared libraries,
8402     *** $file_magic_cmd, produces output that libtool cannot recognize.
8403     *** The result is that libtool may fail to recognize shared libraries
8404     *** as such. This will affect the creation of libtool libraries that
8405     *** depend on shared libraries, but programs linked with such libtool
8406     *** libraries will work regardless of this problem. Nevertheless, you
8407     *** may want to report the problem to your system manager and/or to
8408     *** bug-libtool@gnu.org
8409    
8410 michael 5059 _LT_EOF
8411 michael 5052 fi ;;
8412     esac
8413     fi
8414     break
8415     fi
8416     done
8417 michael 5059 IFS=$lt_save_ifs
8418     MAGIC_CMD=$lt_save_MAGIC_CMD
8419 michael 5052 ;;
8420     esac
8421     fi
8422    
8423 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8424 michael 5052 if test -n "$MAGIC_CMD"; then
8425 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8426     $as_echo "$MAGIC_CMD" >&6; }
8427 michael 5052 else
8428 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429     $as_echo "no" >&6; }
8430 michael 5052 fi
8431    
8432 michael 5059
8433    
8434    
8435    
8436 michael 5052 if test -z "$lt_cv_path_MAGIC_CMD"; then
8437     if test -n "$ac_tool_prefix"; then
8438 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8439     $as_echo_n "checking for file... " >&6; }
8440     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8441     $as_echo_n "(cached) " >&6
8442 michael 5052 else
8443     case $MAGIC_CMD in
8444     [\\/*] | ?:[\\/]*)
8445 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8446 michael 5052 ;;
8447     *)
8448 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8449     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8450 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8451     for ac_dir in $ac_dummy; do
8452 michael 5059 IFS=$lt_save_ifs
8453 michael 5052 test -z "$ac_dir" && ac_dir=.
8454 michael 5059 if test -f "$ac_dir/file"; then
8455     lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8456 michael 5052 if test -n "$file_magic_test_file"; then
8457     case $deplibs_check_method in
8458     "file_magic "*)
8459     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8460 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8461 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8462     $EGREP "$file_magic_regex" > /dev/null; then
8463     :
8464     else
8465 michael 5059 cat <<_LT_EOF 1>&2
8466 michael 5052
8467     *** Warning: the command libtool uses to detect shared libraries,
8468     *** $file_magic_cmd, produces output that libtool cannot recognize.
8469     *** The result is that libtool may fail to recognize shared libraries
8470     *** as such. This will affect the creation of libtool libraries that
8471     *** depend on shared libraries, but programs linked with such libtool
8472     *** libraries will work regardless of this problem. Nevertheless, you
8473     *** may want to report the problem to your system manager and/or to
8474     *** bug-libtool@gnu.org
8475    
8476 michael 5059 _LT_EOF
8477 michael 5052 fi ;;
8478     esac
8479     fi
8480     break
8481     fi
8482     done
8483 michael 5059 IFS=$lt_save_ifs
8484     MAGIC_CMD=$lt_save_MAGIC_CMD
8485 michael 5052 ;;
8486     esac
8487     fi
8488    
8489 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8490 michael 5052 if test -n "$MAGIC_CMD"; then
8491 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8492     $as_echo "$MAGIC_CMD" >&6; }
8493 michael 5052 else
8494 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495     $as_echo "no" >&6; }
8496 michael 5052 fi
8497    
8498 michael 5059
8499 michael 5052 else
8500     MAGIC_CMD=:
8501     fi
8502     fi
8503    
8504     fi
8505     ;;
8506     esac
8507    
8508 michael 5059 # Use C for the default configuration in the libtool script
8509 michael 5052
8510 michael 5059 lt_save_CC=$CC
8511 michael 5052 ac_ext=c
8512     ac_cpp='$CPP $CPPFLAGS'
8513     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8514     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8515     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8516    
8517    
8518     # Source file extension for C test sources.
8519     ac_ext=c
8520    
8521     # Object file extension for compiled C test sources.
8522     objext=o
8523     objext=$objext
8524    
8525     # Code to be used in simple compile tests
8526 michael 5059 lt_simple_compile_test_code="int some_variable = 0;"
8527 michael 5052
8528     # Code to be used in simple link tests
8529 michael 5059 lt_simple_link_test_code='int main(){return(0);}'
8530 michael 5052
8531    
8532 michael 5059
8533    
8534    
8535    
8536    
8537 michael 5052 # If no C compiler was specified, use CC.
8538     LTCC=${LTCC-"$CC"}
8539    
8540     # If no C compiler flags were specified, use CFLAGS.
8541     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8542    
8543     # Allow CC to be a program name with arguments.
8544     compiler=$CC
8545    
8546 michael 5059 # Save the default compiler, since it gets overwritten when the other
8547     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8548     compiler_DEFAULT=$CC
8549 michael 5052
8550     # save warnings/boilerplate of simple test code
8551     ac_outfile=conftest.$ac_objext
8552 michael 5059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8553 michael 5052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8554     _lt_compiler_boilerplate=`cat conftest.err`
8555 michael 5059 $RM conftest*
8556 michael 5052
8557     ac_outfile=conftest.$ac_objext
8558 michael 5059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8559 michael 5052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8560     _lt_linker_boilerplate=`cat conftest.err`
8561 michael 5059 $RM -r conftest*
8562 michael 5052
8563    
8564 michael 5059 if test -n "$compiler"; then
8565 michael 5052
8566     lt_prog_compiler_no_builtin_flag=
8567    
8568 michael 5059 if test yes = "$GCC"; then
8569     case $cc_basename in
8570     nvcc*)
8571     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8572     *)
8573     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8574     esac
8575 michael 5052
8576 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8577     $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8578     if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8579     $as_echo_n "(cached) " >&6
8580 michael 5052 else
8581     lt_cv_prog_compiler_rtti_exceptions=no
8582 michael 5059 ac_outfile=conftest.$ac_objext
8583     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8584     lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8585 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8586     # (2) before a word containing "conftest.", or (3) at the end.
8587     # Note that $ac_compile itself does not contain backslashes and begins
8588     # with a dollar sign (not a hyphen), so the echo should work correctly.
8589     # The option is referenced via a variable to avoid confusing sed.
8590     lt_compile=`echo "$ac_compile" | $SED \
8591     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8592     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593     -e 's:$: $lt_compiler_flag:'`
8594 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8595 michael 5052 (eval "$lt_compile" 2>conftest.err)
8596     ac_status=$?
8597     cat conftest.err >&5
8598 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8600     # The compiler can only warn and ignore the option if not recognized
8601     # So say no if there are warnings other than the usual output.
8602 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8603 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8604     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8605     lt_cv_prog_compiler_rtti_exceptions=yes
8606     fi
8607     fi
8608 michael 5059 $RM conftest*
8609 michael 5052
8610     fi
8611 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8612     $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8613 michael 5052
8614 michael 5059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8615 michael 5052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8616     else
8617     :
8618     fi
8619    
8620     fi
8621    
8622 michael 5059
8623    
8624    
8625    
8626    
8627     lt_prog_compiler_wl=
8628 michael 5052 lt_prog_compiler_pic=
8629     lt_prog_compiler_static=
8630    
8631    
8632 michael 5059 if test yes = "$GCC"; then
8633 michael 5052 lt_prog_compiler_wl='-Wl,'
8634     lt_prog_compiler_static='-static'
8635    
8636     case $host_os in
8637     aix*)
8638     # All AIX code is PIC.
8639 michael 5059 if test ia64 = "$host_cpu"; then
8640 michael 5052 # AIX 5 now supports IA64 processor
8641     lt_prog_compiler_static='-Bstatic'
8642     fi
8643 michael 5059 lt_prog_compiler_pic='-fPIC'
8644 michael 5052 ;;
8645    
8646     amigaos*)
8647 michael 5059 case $host_cpu in
8648     powerpc)
8649     # see comment about AmigaOS4 .so support
8650     lt_prog_compiler_pic='-fPIC'
8651     ;;
8652     m68k)
8653     # FIXME: we need at least 68020 code to build shared libraries, but
8654     # adding the '-m68020' flag to GCC prevents building anything better,
8655     # like '-m68040'.
8656     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8657     ;;
8658     esac
8659 michael 5052 ;;
8660    
8661 michael 5059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8662 michael 5052 # PIC is the default for these OSes.
8663     ;;
8664    
8665 michael 5059 mingw* | cygwin* | pw32* | os2* | cegcc*)
8666 michael 5052 # This hack is so that the source file can tell whether it is being
8667     # built for inclusion in a dll (and should export symbols for example).
8668 michael 5059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8669     # (--disable-auto-import) libraries
8670 michael 5052 lt_prog_compiler_pic='-DDLL_EXPORT'
8671 michael 5059 case $host_os in
8672     os2*)
8673     lt_prog_compiler_static='$wl-static'
8674     ;;
8675     esac
8676 michael 5052 ;;
8677    
8678     darwin* | rhapsody*)
8679     # PIC is the default on this platform
8680     # Common symbols not allowed in MH_DYLIB files
8681     lt_prog_compiler_pic='-fno-common'
8682     ;;
8683    
8684 michael 5059 haiku*)
8685     # PIC is the default for Haiku.
8686     # The "-static" flag exists, but is broken.
8687     lt_prog_compiler_static=
8688     ;;
8689    
8690     hpux*)
8691     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8692     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8693     # sets the default TLS model and affects inlining.
8694     case $host_cpu in
8695     hppa*64*)
8696     # +Z the default
8697     ;;
8698     *)
8699     lt_prog_compiler_pic='-fPIC'
8700     ;;
8701     esac
8702     ;;
8703    
8704     interix[3-9]*)
8705 michael 5052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8706     # Instead, we relocate shared libraries at runtime.
8707     ;;
8708    
8709     msdosdjgpp*)
8710     # Just because we use GCC doesn't mean we suddenly get shared libraries
8711     # on systems that don't support them.
8712     lt_prog_compiler_can_build_shared=no
8713     enable_shared=no
8714     ;;
8715    
8716 michael 5059 *nto* | *qnx*)
8717     # QNX uses GNU C++, but need to define -shared option too, otherwise
8718     # it will coredump.
8719     lt_prog_compiler_pic='-fPIC -shared'
8720     ;;
8721    
8722 michael 5052 sysv4*MP*)
8723     if test -d /usr/nec; then
8724     lt_prog_compiler_pic=-Kconform_pic
8725     fi
8726     ;;
8727    
8728     *)
8729     lt_prog_compiler_pic='-fPIC'
8730     ;;
8731     esac
8732 michael 5059
8733     case $cc_basename in
8734     nvcc*) # Cuda Compiler Driver 2.2
8735     lt_prog_compiler_wl='-Xlinker '
8736     if test -n "$lt_prog_compiler_pic"; then
8737     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8738     fi
8739     ;;
8740     esac
8741 michael 5052 else
8742     # PORTME Check for flag to pass linker flags through the system compiler.
8743     case $host_os in
8744     aix*)
8745     lt_prog_compiler_wl='-Wl,'
8746 michael 5059 if test ia64 = "$host_cpu"; then
8747 michael 5052 # AIX 5 now supports IA64 processor
8748     lt_prog_compiler_static='-Bstatic'
8749     else
8750     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8751     fi
8752     ;;
8753    
8754 michael 5059 darwin* | rhapsody*)
8755     # PIC is the default on this platform
8756     # Common symbols not allowed in MH_DYLIB files
8757     lt_prog_compiler_pic='-fno-common'
8758     case $cc_basename in
8759     nagfor*)
8760     # NAG Fortran compiler
8761     lt_prog_compiler_wl='-Wl,-Wl,,'
8762     lt_prog_compiler_pic='-PIC'
8763     lt_prog_compiler_static='-Bstatic'
8764     ;;
8765     esac
8766     ;;
8767    
8768     mingw* | cygwin* | pw32* | os2* | cegcc*)
8769 michael 5052 # This hack is so that the source file can tell whether it is being
8770     # built for inclusion in a dll (and should export symbols for example).
8771     lt_prog_compiler_pic='-DDLL_EXPORT'
8772 michael 5059 case $host_os in
8773     os2*)
8774     lt_prog_compiler_static='$wl-static'
8775     ;;
8776     esac
8777 michael 5052 ;;
8778    
8779     hpux9* | hpux10* | hpux11*)
8780     lt_prog_compiler_wl='-Wl,'
8781     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8782     # not for PA HP-UX.
8783     case $host_cpu in
8784     hppa*64*|ia64*)
8785     # +Z the default
8786     ;;
8787     *)
8788     lt_prog_compiler_pic='+Z'
8789     ;;
8790     esac
8791     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8792 michael 5059 lt_prog_compiler_static='$wl-a ${wl}archive'
8793 michael 5052 ;;
8794    
8795     irix5* | irix6* | nonstopux*)
8796     lt_prog_compiler_wl='-Wl,'
8797     # PIC (with -KPIC) is the default.
8798     lt_prog_compiler_static='-non_shared'
8799     ;;
8800    
8801 michael 5059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8802 michael 5052 case $cc_basename in
8803 michael 5059 # old Intel for x86_64, which still supported -KPIC.
8804     ecc*)
8805 michael 5052 lt_prog_compiler_wl='-Wl,'
8806     lt_prog_compiler_pic='-KPIC'
8807     lt_prog_compiler_static='-static'
8808     ;;
8809 michael 5059 # icc used to be incompatible with GCC.
8810     # ICC 10 doesn't accept -KPIC any more.
8811     icc* | ifort*)
8812     lt_prog_compiler_wl='-Wl,'
8813     lt_prog_compiler_pic='-fPIC'
8814     lt_prog_compiler_static='-static'
8815     ;;
8816     # Lahey Fortran 8.1.
8817     lf95*)
8818     lt_prog_compiler_wl='-Wl,'
8819     lt_prog_compiler_pic='--shared'
8820     lt_prog_compiler_static='--static'
8821     ;;
8822     nagfor*)
8823     # NAG Fortran compiler
8824     lt_prog_compiler_wl='-Wl,-Wl,,'
8825     lt_prog_compiler_pic='-PIC'
8826     lt_prog_compiler_static='-Bstatic'
8827     ;;
8828     tcc*)
8829     # Fabrice Bellard et al's Tiny C Compiler
8830     lt_prog_compiler_wl='-Wl,'
8831     lt_prog_compiler_pic='-fPIC'
8832     lt_prog_compiler_static='-static'
8833     ;;
8834     pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8835 michael 5052 # Portland Group compilers (*not* the Pentium gcc compiler,
8836     # which looks to be a dead project)
8837     lt_prog_compiler_wl='-Wl,'
8838     lt_prog_compiler_pic='-fpic'
8839     lt_prog_compiler_static='-Bstatic'
8840     ;;
8841     ccc*)
8842     lt_prog_compiler_wl='-Wl,'
8843     # All Alpha code is PIC.
8844     lt_prog_compiler_static='-non_shared'
8845     ;;
8846 michael 5059 xl* | bgxl* | bgf* | mpixl*)
8847     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8848     lt_prog_compiler_wl='-Wl,'
8849     lt_prog_compiler_pic='-qpic'
8850     lt_prog_compiler_static='-qstaticlink'
8851     ;;
8852     *)
8853     case `$CC -V 2>&1 | sed 5q` in
8854     *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8855     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8856     lt_prog_compiler_pic='-KPIC'
8857     lt_prog_compiler_static='-Bstatic'
8858     lt_prog_compiler_wl=''
8859     ;;
8860     *Sun\ F* | *Sun*Fortran*)
8861     lt_prog_compiler_pic='-KPIC'
8862     lt_prog_compiler_static='-Bstatic'
8863     lt_prog_compiler_wl='-Qoption ld '
8864     ;;
8865     *Sun\ C*)
8866     # Sun C 5.9
8867     lt_prog_compiler_pic='-KPIC'
8868     lt_prog_compiler_static='-Bstatic'
8869     lt_prog_compiler_wl='-Wl,'
8870     ;;
8871     *Intel*\ [CF]*Compiler*)
8872     lt_prog_compiler_wl='-Wl,'
8873     lt_prog_compiler_pic='-fPIC'
8874     lt_prog_compiler_static='-static'
8875     ;;
8876     *Portland\ Group*)
8877     lt_prog_compiler_wl='-Wl,'
8878     lt_prog_compiler_pic='-fpic'
8879     lt_prog_compiler_static='-Bstatic'
8880     ;;
8881     esac
8882     ;;
8883 michael 5052 esac
8884     ;;
8885    
8886 michael 5059 newsos6)
8887     lt_prog_compiler_pic='-KPIC'
8888     lt_prog_compiler_static='-Bstatic'
8889     ;;
8890    
8891     *nto* | *qnx*)
8892     # QNX uses GNU C++, but need to define -shared option too, otherwise
8893     # it will coredump.
8894     lt_prog_compiler_pic='-fPIC -shared'
8895     ;;
8896    
8897 michael 5052 osf3* | osf4* | osf5*)
8898     lt_prog_compiler_wl='-Wl,'
8899     # All OSF/1 code is PIC.
8900     lt_prog_compiler_static='-non_shared'
8901     ;;
8902    
8903 michael 5059 rdos*)
8904     lt_prog_compiler_static='-non_shared'
8905     ;;
8906    
8907 michael 5052 solaris*)
8908     lt_prog_compiler_pic='-KPIC'
8909     lt_prog_compiler_static='-Bstatic'
8910     case $cc_basename in
8911 michael 5059 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8912 michael 5052 lt_prog_compiler_wl='-Qoption ld ';;
8913     *)
8914     lt_prog_compiler_wl='-Wl,';;
8915     esac
8916     ;;
8917    
8918     sunos4*)
8919     lt_prog_compiler_wl='-Qoption ld '
8920     lt_prog_compiler_pic='-PIC'
8921     lt_prog_compiler_static='-Bstatic'
8922     ;;
8923    
8924     sysv4 | sysv4.2uw2* | sysv4.3*)
8925     lt_prog_compiler_wl='-Wl,'
8926     lt_prog_compiler_pic='-KPIC'
8927     lt_prog_compiler_static='-Bstatic'
8928     ;;
8929    
8930     sysv4*MP*)
8931 michael 5059 if test -d /usr/nec; then
8932 michael 5052 lt_prog_compiler_pic='-Kconform_pic'
8933     lt_prog_compiler_static='-Bstatic'
8934     fi
8935     ;;
8936    
8937     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8938     lt_prog_compiler_wl='-Wl,'
8939     lt_prog_compiler_pic='-KPIC'
8940     lt_prog_compiler_static='-Bstatic'
8941     ;;
8942    
8943     unicos*)
8944     lt_prog_compiler_wl='-Wl,'
8945     lt_prog_compiler_can_build_shared=no
8946     ;;
8947    
8948     uts4*)
8949     lt_prog_compiler_pic='-pic'
8950     lt_prog_compiler_static='-Bstatic'
8951     ;;
8952    
8953     *)
8954     lt_prog_compiler_can_build_shared=no
8955     ;;
8956     esac
8957     fi
8958    
8959 michael 5059 case $host_os in
8960     # For platforms that do not support PIC, -DPIC is meaningless:
8961     *djgpp*)
8962     lt_prog_compiler_pic=
8963     ;;
8964     *)
8965     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8966     ;;
8967     esac
8968 michael 5052
8969 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8970     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8971     if ${lt_cv_prog_compiler_pic+:} false; then :
8972     $as_echo_n "(cached) " >&6
8973     else
8974     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8975     fi
8976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8977     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8978     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8979    
8980 michael 5052 #
8981     # Check to make sure the PIC flag actually works.
8982     #
8983     if test -n "$lt_prog_compiler_pic"; then
8984 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8985     $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8986     if ${lt_cv_prog_compiler_pic_works+:} false; then :
8987     $as_echo_n "(cached) " >&6
8988 michael 5052 else
8989 michael 5059 lt_cv_prog_compiler_pic_works=no
8990     ac_outfile=conftest.$ac_objext
8991     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992     lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8993 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8994     # (2) before a word containing "conftest.", or (3) at the end.
8995     # Note that $ac_compile itself does not contain backslashes and begins
8996     # with a dollar sign (not a hyphen), so the echo should work correctly.
8997     # The option is referenced via a variable to avoid confusing sed.
8998     lt_compile=`echo "$ac_compile" | $SED \
8999     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9000     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9001     -e 's:$: $lt_compiler_flag:'`
9002 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9003 michael 5052 (eval "$lt_compile" 2>conftest.err)
9004     ac_status=$?
9005     cat conftest.err >&5
9006 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
9008     # The compiler can only warn and ignore the option if not recognized
9009     # So say no if there are warnings other than the usual output.
9010 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9011 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9013 michael 5059 lt_cv_prog_compiler_pic_works=yes
9014 michael 5052 fi
9015     fi
9016 michael 5059 $RM conftest*
9017 michael 5052
9018     fi
9019 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9020     $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9021 michael 5052
9022 michael 5059 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9023 michael 5052 case $lt_prog_compiler_pic in
9024     "" | " "*) ;;
9025     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9026     esac
9027     else
9028     lt_prog_compiler_pic=
9029     lt_prog_compiler_can_build_shared=no
9030     fi
9031    
9032     fi
9033    
9034 michael 5059
9035    
9036    
9037    
9038    
9039    
9040    
9041    
9042    
9043    
9044 michael 5052 #
9045     # Check to make sure the static flag actually works.
9046     #
9047     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9048 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9049     $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9050     if ${lt_cv_prog_compiler_static_works+:} false; then :
9051     $as_echo_n "(cached) " >&6
9052 michael 5052 else
9053 michael 5059 lt_cv_prog_compiler_static_works=no
9054     save_LDFLAGS=$LDFLAGS
9055 michael 5052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9056 michael 5059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9057 michael 5052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9058     # The linker can only warn and ignore the option if not recognized
9059     # So say no if there are warnings
9060     if test -s conftest.err; then
9061     # Append any errors to the config.log.
9062     cat conftest.err 1>&5
9063 michael 5059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9064 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9065     if diff conftest.exp conftest.er2 >/dev/null; then
9066 michael 5059 lt_cv_prog_compiler_static_works=yes
9067 michael 5052 fi
9068     else
9069 michael 5059 lt_cv_prog_compiler_static_works=yes
9070 michael 5052 fi
9071     fi
9072 michael 5059 $RM -r conftest*
9073     LDFLAGS=$save_LDFLAGS
9074 michael 5052
9075     fi
9076 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9077     $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9078 michael 5052
9079 michael 5059 if test yes = "$lt_cv_prog_compiler_static_works"; then
9080 michael 5052 :
9081     else
9082     lt_prog_compiler_static=
9083     fi
9084    
9085    
9086 michael 5059
9087    
9088    
9089    
9090    
9091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9092     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9093     if ${lt_cv_prog_compiler_c_o+:} false; then :
9094     $as_echo_n "(cached) " >&6
9095 michael 5052 else
9096     lt_cv_prog_compiler_c_o=no
9097 michael 5059 $RM -r conftest 2>/dev/null
9098 michael 5052 mkdir conftest
9099     cd conftest
9100     mkdir out
9101 michael 5059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9102 michael 5052
9103     lt_compiler_flag="-o out/conftest2.$ac_objext"
9104     # Insert the option either (1) after the last *FLAGS variable, or
9105     # (2) before a word containing "conftest.", or (3) at the end.
9106     # Note that $ac_compile itself does not contain backslashes and begins
9107     # with a dollar sign (not a hyphen), so the echo should work correctly.
9108     lt_compile=`echo "$ac_compile" | $SED \
9109     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9110     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9111     -e 's:$: $lt_compiler_flag:'`
9112 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9113 michael 5052 (eval "$lt_compile" 2>out/conftest.err)
9114     ac_status=$?
9115     cat out/conftest.err >&5
9116 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 michael 5052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9118     then
9119     # The compiler can only warn and ignore the option if not recognized
9120     # So say no if there are warnings
9121 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9122 michael 5052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9123     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9124     lt_cv_prog_compiler_c_o=yes
9125     fi
9126     fi
9127     chmod u+w . 2>&5
9128 michael 5059 $RM conftest*
9129 michael 5052 # SGI C++ compiler will create directory out/ii_files/ for
9130     # template instantiation
9131 michael 5059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9132     $RM out/* && rmdir out
9133 michael 5052 cd ..
9134 michael 5059 $RM -r conftest
9135     $RM conftest*
9136 michael 5052
9137     fi
9138 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9139     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9140 michael 5052
9141    
9142 michael 5059
9143    
9144    
9145    
9146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9147     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9148     if ${lt_cv_prog_compiler_c_o+:} false; then :
9149     $as_echo_n "(cached) " >&6
9150     else
9151     lt_cv_prog_compiler_c_o=no
9152     $RM -r conftest 2>/dev/null
9153     mkdir conftest
9154     cd conftest
9155     mkdir out
9156     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9157    
9158     lt_compiler_flag="-o out/conftest2.$ac_objext"
9159     # Insert the option either (1) after the last *FLAGS variable, or
9160     # (2) before a word containing "conftest.", or (3) at the end.
9161     # Note that $ac_compile itself does not contain backslashes and begins
9162     # with a dollar sign (not a hyphen), so the echo should work correctly.
9163     lt_compile=`echo "$ac_compile" | $SED \
9164     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9165     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9166     -e 's:$: $lt_compiler_flag:'`
9167     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9168     (eval "$lt_compile" 2>out/conftest.err)
9169     ac_status=$?
9170     cat out/conftest.err >&5
9171     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172     if (exit $ac_status) && test -s out/conftest2.$ac_objext
9173     then
9174     # The compiler can only warn and ignore the option if not recognized
9175     # So say no if there are warnings
9176     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9177     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9178     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9179     lt_cv_prog_compiler_c_o=yes
9180     fi
9181     fi
9182     chmod u+w . 2>&5
9183     $RM conftest*
9184     # SGI C++ compiler will create directory out/ii_files/ for
9185     # template instantiation
9186     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9187     $RM out/* && rmdir out
9188     cd ..
9189     $RM -r conftest
9190     $RM conftest*
9191    
9192     fi
9193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9194     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9195    
9196    
9197    
9198    
9199     hard_links=nottested
9200     if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9201 michael 5052 # do not overwrite the value of need_locks provided by the user
9202 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9203     $as_echo_n "checking if we can lock with hard links... " >&6; }
9204 michael 5052 hard_links=yes
9205 michael 5059 $RM conftest*
9206 michael 5052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9207     touch conftest.a
9208     ln conftest.a conftest.b 2>&5 || hard_links=no
9209     ln conftest.a conftest.b 2>/dev/null && hard_links=no
9210 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9211     $as_echo "$hard_links" >&6; }
9212     if test no = "$hard_links"; then
9213     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9214     $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9215 michael 5052 need_locks=warn
9216     fi
9217     else
9218     need_locks=no
9219     fi
9220    
9221    
9222 michael 5059
9223    
9224    
9225    
9226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9227     $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9228    
9229 michael 5052 runpath_var=
9230     allow_undefined_flag=
9231 michael 5059 always_export_symbols=no
9232 michael 5052 archive_cmds=
9233     archive_expsym_cmds=
9234 michael 5059 compiler_needs_object=no
9235     enable_shared_with_static_runtimes=no
9236 michael 5052 export_dynamic_flag_spec=
9237 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9238     hardcode_automatic=no
9239     hardcode_direct=no
9240     hardcode_direct_absolute=no
9241 michael 5052 hardcode_libdir_flag_spec=
9242     hardcode_libdir_separator=
9243     hardcode_minus_L=no
9244     hardcode_shlibpath_var=unsupported
9245 michael 5059 inherit_rpath=no
9246 michael 5052 link_all_deplibs=unknown
9247     module_cmds=
9248     module_expsym_cmds=
9249 michael 5059 old_archive_from_new_cmds=
9250     old_archive_from_expsyms_cmds=
9251     thread_safe_flag_spec=
9252     whole_archive_flag_spec=
9253 michael 5052 # include_expsyms should be a list of space-separated symbols to be *always*
9254     # included in the symbol list
9255     include_expsyms=
9256     # exclude_expsyms can be an extended regexp of symbols to exclude
9257 michael 5059 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9258     # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9259     # as well as any symbol that contains 'd'.
9260     exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9261 michael 5052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9262     # platforms (ab)use it in PIC code, but their linkers get confused if
9263     # the symbol is explicitly referenced. Since portable code cannot
9264     # rely on this symbol name, it's probably fine to never include it in
9265     # preloaded symbol tables.
9266 michael 5059 # Exclude shared library initialization/finalization symbols.
9267 michael 5052 extract_expsyms_cmds=
9268    
9269     case $host_os in
9270 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9271 michael 5052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9272     # When not using gcc, we currently assume that we are using
9273     # Microsoft Visual C++.
9274 michael 5059 if test yes != "$GCC"; then
9275 michael 5052 with_gnu_ld=no
9276     fi
9277     ;;
9278     interix*)
9279     # we just hope/assume this is gcc and not c89 (= MSVC++)
9280     with_gnu_ld=yes
9281     ;;
9282 michael 5059 openbsd* | bitrig*)
9283 michael 5052 with_gnu_ld=no
9284     ;;
9285     esac
9286    
9287     ld_shlibs=yes
9288 michael 5059
9289     # On some targets, GNU ld is compatible enough with the native linker
9290     # that we're better off using the native interface for both.
9291     lt_use_gnu_ld_interface=no
9292     if test yes = "$with_gnu_ld"; then
9293     case $host_os in
9294     aix*)
9295     # The AIX port of GNU ld has always aspired to compatibility
9296     # with the native linker. However, as the warning in the GNU ld
9297     # block says, versions before 2.19.5* couldn't really create working
9298     # shared libraries, regardless of the interface used.
9299     case `$LD -v 2>&1` in
9300     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9301     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9302     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9303     *)
9304     lt_use_gnu_ld_interface=yes
9305     ;;
9306     esac
9307     ;;
9308     *)
9309     lt_use_gnu_ld_interface=yes
9310     ;;
9311     esac
9312     fi
9313    
9314     if test yes = "$lt_use_gnu_ld_interface"; then
9315 michael 5052 # If archive_cmds runs LD, not CC, wlarc should be empty
9316 michael 5059 wlarc='$wl'
9317 michael 5052
9318     # Set some defaults for GNU ld with shared library support. These
9319     # are reset later if shared libraries are not supported. Putting them
9320     # here allows them to be overridden if necessary.
9321     runpath_var=LD_RUN_PATH
9322 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9323     export_dynamic_flag_spec='$wl--export-dynamic'
9324 michael 5052 # ancient GNU ld didn't support --whole-archive et. al.
9325 michael 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9326     whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9327     else
9328     whole_archive_flag_spec=
9329 michael 5052 fi
9330     supports_anon_versioning=no
9331 michael 5059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9332     *GNU\ gold*) supports_anon_versioning=yes ;;
9333 michael 5052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9334     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9335     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9336     *\ 2.11.*) ;; # other 2.11 versions
9337     *) supports_anon_versioning=yes ;;
9338     esac
9339    
9340     # See if GNU ld supports shared libraries.
9341     case $host_os in
9342 michael 5059 aix[3-9]*)
9343 michael 5052 # On AIX/PPC, the GNU linker is very broken
9344 michael 5059 if test ia64 != "$host_cpu"; then
9345 michael 5052 ld_shlibs=no
9346 michael 5059 cat <<_LT_EOF 1>&2
9347 michael 5052
9348 michael 5059 *** Warning: the GNU linker, at least up to release 2.19, is reported
9349 michael 5052 *** to be unable to reliably create shared libraries on AIX.
9350     *** Therefore, libtool is disabling shared libraries support. If you
9351 michael 5059 *** really care for shared libraries, you may want to install binutils
9352     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9353     *** You will then need to restart the configuration process.
9354 michael 5052
9355 michael 5059 _LT_EOF
9356 michael 5052 fi
9357     ;;
9358    
9359     amigaos*)
9360 michael 5059 case $host_cpu in
9361     powerpc)
9362     # see comment about AmigaOS4 .so support
9363     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9364     archive_expsym_cmds=''
9365     ;;
9366     m68k)
9367     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)'
9368     hardcode_libdir_flag_spec='-L$libdir'
9369     hardcode_minus_L=yes
9370     ;;
9371     esac
9372 michael 5052 ;;
9373    
9374     beos*)
9375 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376 michael 5052 allow_undefined_flag=unsupported
9377     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9378     # support --undefined. This deserves some investigation. FIXME
9379 michael 5059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9380 michael 5052 else
9381     ld_shlibs=no
9382     fi
9383     ;;
9384    
9385 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9386     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9387 michael 5052 # as there is no search path for DLLs.
9388     hardcode_libdir_flag_spec='-L$libdir'
9389 michael 5059 export_dynamic_flag_spec='$wl--export-all-symbols'
9390 michael 5052 allow_undefined_flag=unsupported
9391     always_export_symbols=no
9392     enable_shared_with_static_runtimes=yes
9393 michael 5059 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'
9394     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9395 michael 5052
9396 michael 5059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9397     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9398     # If the export-symbols file already is a .def file, use it as
9399     # is; otherwise, prepend EXPORTS...
9400     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9401     cp $export_symbols $output_objdir/$soname.def;
9402     else
9403     echo EXPORTS > $output_objdir/$soname.def;
9404     cat $export_symbols >> $output_objdir/$soname.def;
9405     fi~
9406     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9407 michael 5052 else
9408     ld_shlibs=no
9409     fi
9410     ;;
9411    
9412 michael 5059 haiku*)
9413     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9414     link_all_deplibs=yes
9415     ;;
9416    
9417     os2*)
9418     hardcode_libdir_flag_spec='-L$libdir'
9419     hardcode_minus_L=yes
9420     allow_undefined_flag=unsupported
9421     shrext_cmds=.dll
9422     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9423     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9424     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9425     $ECHO EXPORTS >> $output_objdir/$libname.def~
9426     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9427     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9428     emximp -o $lib $output_objdir/$libname.def'
9429     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9430     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9431     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9432     $ECHO EXPORTS >> $output_objdir/$libname.def~
9433     prefix_cmds="$SED"~
9434     if test EXPORTS = "`$SED 1q $export_symbols`"; then
9435     prefix_cmds="$prefix_cmds -e 1d";
9436     fi~
9437     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9438     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9439     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9440     emximp -o $lib $output_objdir/$libname.def'
9441     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9442     enable_shared_with_static_runtimes=yes
9443     ;;
9444    
9445     interix[3-9]*)
9446 michael 5052 hardcode_direct=no
9447     hardcode_shlibpath_var=no
9448 michael 5059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9449     export_dynamic_flag_spec='$wl-E'
9450 michael 5052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9451     # Instead, shared libraries are loaded at an image base (0x10000000 by
9452     # default) and relocated if they conflict, which is a slow very memory
9453     # consuming and fragmenting process. To avoid this, we pick a random,
9454     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9455     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9456 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9457     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'
9458 michael 5052 ;;
9459    
9460 michael 5059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9461     tmp_diet=no
9462     if test linux-dietlibc = "$host_os"; then
9463     case $cc_basename in
9464     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9465     esac
9466     fi
9467     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9468     && test no = "$tmp_diet"
9469     then
9470     tmp_addflag=' $pic_flag'
9471     tmp_sharedflag='-shared'
9472 michael 5052 case $cc_basename,$host_cpu in
9473 michael 5059 pgcc*) # Portland Group C compiler
9474     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'
9475 michael 5052 tmp_addflag=' $pic_flag'
9476     ;;
9477 michael 5059 pgf77* | pgf90* | pgf95* | pgfortran*)
9478     # Portland Group f77 and f90 compilers
9479     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'
9480 michael 5052 tmp_addflag=' $pic_flag -Mnomain' ;;
9481 michael 5059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9482 michael 5052 tmp_addflag=' -i_dynamic' ;;
9483     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9484     tmp_addflag=' -i_dynamic -nofor_main' ;;
9485     ifc* | ifort*) # Intel Fortran compiler
9486     tmp_addflag=' -nofor_main' ;;
9487 michael 5059 lf95*) # Lahey Fortran 8.1
9488     whole_archive_flag_spec=
9489     tmp_sharedflag='--shared' ;;
9490     nagfor*) # NAGFOR 5.3
9491     tmp_sharedflag='-Wl,-shared' ;;
9492     xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9493     tmp_sharedflag='-qmkshrobj'
9494     tmp_addflag= ;;
9495     nvcc*) # Cuda Compiler Driver 2.2
9496     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'
9497     compiler_needs_object=yes
9498     ;;
9499 michael 5052 esac
9500 michael 5059 case `$CC -V 2>&1 | sed 5q` in
9501     *Sun\ C*) # Sun C 5.9
9502     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'
9503     compiler_needs_object=yes
9504     tmp_sharedflag='-G' ;;
9505     *Sun\ F*) # Sun Fortran 8.3
9506     tmp_sharedflag='-G' ;;
9507     esac
9508     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9509 michael 5052
9510 michael 5059 if test yes = "$supports_anon_versioning"; then
9511     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9512     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9513     echo "local: *; };" >> $output_objdir/$libname.ver~
9514     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9515     fi
9516    
9517     case $cc_basename in
9518     tcc*)
9519     export_dynamic_flag_spec='-rdynamic'
9520     ;;
9521     xlf* | bgf* | bgxlf* | mpixlf*)
9522     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9523     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9524     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9525     archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9526     if test yes = "$supports_anon_versioning"; then
9527     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9528     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9529     echo "local: *; };" >> $output_objdir/$libname.ver~
9530     $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9531     fi
9532     ;;
9533     esac
9534 michael 5052 else
9535 michael 5059 ld_shlibs=no
9536 michael 5052 fi
9537     ;;
9538    
9539 michael 5059 netbsd*)
9540     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9541 michael 5052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9542     wlarc=
9543     else
9544 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9545     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9546 michael 5052 fi
9547     ;;
9548    
9549     solaris*)
9550 michael 5059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9551 michael 5052 ld_shlibs=no
9552 michael 5059 cat <<_LT_EOF 1>&2
9553 michael 5052
9554     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9555     *** create shared libraries on Solaris systems. Therefore, libtool
9556     *** is disabling shared libraries support. We urge you to upgrade GNU
9557     *** binutils to release 2.9.1 or newer. Another option is to modify
9558     *** your PATH or compiler configuration so that the native linker is
9559     *** used, and then restart.
9560    
9561 michael 5059 _LT_EOF
9562     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9563     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9564     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9565 michael 5052 else
9566     ld_shlibs=no
9567     fi
9568     ;;
9569    
9570     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9571     case `$LD -v 2>&1` in
9572     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9573     ld_shlibs=no
9574     cat <<_LT_EOF 1>&2
9575    
9576 michael 5059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9577 michael 5052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9578     *** is disabling shared libraries support. We urge you to upgrade GNU
9579     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9580     *** your PATH or compiler configuration so that the native linker is
9581     *** used, and then restart.
9582    
9583     _LT_EOF
9584     ;;
9585     *)
9586 michael 5059 # For security reasons, it is highly recommended that you always
9587     # use absolute paths for naming shared libraries, and exclude the
9588     # DT_RUNPATH tag from executables and libraries. But doing so
9589     # requires that you compile everything twice, which is a pain.
9590     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9591     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9592     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9593     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9594 michael 5052 else
9595     ld_shlibs=no
9596     fi
9597     ;;
9598     esac
9599     ;;
9600    
9601     sunos4*)
9602     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9603     wlarc=
9604     hardcode_direct=yes
9605     hardcode_shlibpath_var=no
9606     ;;
9607    
9608     *)
9609 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9610     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9611     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9612 michael 5052 else
9613     ld_shlibs=no
9614     fi
9615     ;;
9616     esac
9617    
9618 michael 5059 if test no = "$ld_shlibs"; then
9619 michael 5052 runpath_var=
9620     hardcode_libdir_flag_spec=
9621     export_dynamic_flag_spec=
9622     whole_archive_flag_spec=
9623     fi
9624     else
9625     # PORTME fill in a description of your system's linker (not GNU ld)
9626     case $host_os in
9627     aix3*)
9628     allow_undefined_flag=unsupported
9629     always_export_symbols=yes
9630     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'
9631     # Note: this linker hardcodes the directories in LIBPATH if there
9632     # are no directories specified by -L.
9633     hardcode_minus_L=yes
9634 michael 5059 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9635 michael 5052 # Neither direct hardcoding nor static linking is supported with a
9636     # broken collect2.
9637     hardcode_direct=unsupported
9638     fi
9639     ;;
9640    
9641 michael 5059 aix[4-9]*)
9642     if test ia64 = "$host_cpu"; then
9643 michael 5052 # On IA64, the linker does run time linking by default, so we don't
9644     # have to do anything special.
9645     aix_use_runtimelinking=no
9646     exp_sym_flag='-Bexport'
9647 michael 5059 no_entry_flag=
9648 michael 5052 else
9649     # If we're using GNU nm, then we don't want the "-C" option.
9650 michael 5059 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9651     # Without the "-l" option, or with the "-B" option, AIX nm treats
9652     # weak defined symbols like other global defined symbols, whereas
9653     # GNU nm marks them as "W".
9654     # While the 'weak' keyword is ignored in the Export File, we need
9655     # it in the Import File for the 'aix-soname' feature, so we have
9656     # to replace the "-B" option with "-P" for AIX nm.
9657     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9658     export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9659 michael 5052 else
9660 michael 5059 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9661 michael 5052 fi
9662     aix_use_runtimelinking=no
9663    
9664     # Test if we are trying to use run time linking or normal
9665     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9666 michael 5059 # have runtime linking enabled, and use it for executables.
9667     # For shared libraries, we enable/disable runtime linking
9668     # depending on the kind of the shared library created -
9669     # when "with_aix_soname,aix_use_runtimelinking" is:
9670     # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9671     # "aix,yes" lib.so shared, rtl:yes, for executables
9672     # lib.a static archive
9673     # "both,no" lib.so.V(shr.o) shared, rtl:yes
9674     # lib.a(lib.so.V) shared, rtl:no, for executables
9675     # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9676     # lib.a(lib.so.V) shared, rtl:no
9677     # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9678     # lib.a static archive
9679     case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9680 michael 5052 for ld_flag in $LDFLAGS; do
9681 michael 5059 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9682     aix_use_runtimelinking=yes
9683     break
9684     fi
9685 michael 5052 done
9686 michael 5059 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9687     # With aix-soname=svr4, we create the lib.so.V shared archives only,
9688     # so we don't have lib.a shared libs to link our executables.
9689     # We have to force runtime linking in this case.
9690     aix_use_runtimelinking=yes
9691     LDFLAGS="$LDFLAGS -Wl,-brtl"
9692     fi
9693 michael 5052 ;;
9694     esac
9695    
9696     exp_sym_flag='-bexport'
9697     no_entry_flag='-bnoentry'
9698     fi
9699    
9700     # When large executables or shared objects are built, AIX ld can
9701     # have problems creating the table of contents. If linking a library
9702     # or program results in "error TOC overflow" add -mminimal-toc to
9703     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9704     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9705    
9706     archive_cmds=''
9707     hardcode_direct=yes
9708 michael 5059 hardcode_direct_absolute=yes
9709 michael 5052 hardcode_libdir_separator=':'
9710     link_all_deplibs=yes
9711 michael 5059 file_list_spec='$wl-f,'
9712     case $with_aix_soname,$aix_use_runtimelinking in
9713     aix,*) ;; # traditional, no import file
9714     svr4,* | *,yes) # use import file
9715     # The Import File defines what to hardcode.
9716     hardcode_direct=no
9717     hardcode_direct_absolute=no
9718     ;;
9719     esac
9720 michael 5052
9721 michael 5059 if test yes = "$GCC"; then
9722 michael 5052 case $host_os in aix4.[012]|aix4.[012].*)
9723     # We only want to do this on AIX 4.2 and lower, the check
9724     # below for broken collect2 doesn't work under 4.3+
9725 michael 5059 collect2name=`$CC -print-prog-name=collect2`
9726     if test -f "$collect2name" &&
9727     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9728 michael 5052 then
9729 michael 5059 # We have reworked collect2
9730     :
9731 michael 5052 else
9732 michael 5059 # We have old collect2
9733     hardcode_direct=unsupported
9734     # It fails to find uninstalled libraries when the uninstalled
9735     # path is not listed in the libpath. Setting hardcode_minus_L
9736     # to unsupported forces relinking
9737     hardcode_minus_L=yes
9738     hardcode_libdir_flag_spec='-L$libdir'
9739     hardcode_libdir_separator=
9740 michael 5052 fi
9741     ;;
9742     esac
9743     shared_flag='-shared'
9744 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9745     shared_flag="$shared_flag "'$wl-G'
9746 michael 5052 fi
9747 michael 5059 # Need to ensure runtime linking is disabled for the traditional
9748     # shared library, or the linker may eventually find shared libraries
9749     # /with/ Import File - we do not want to mix them.
9750     shared_flag_aix='-shared'
9751     shared_flag_svr4='-shared $wl-G'
9752 michael 5052 else
9753     # not using gcc
9754 michael 5059 if test ia64 = "$host_cpu"; then
9755     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9756     # chokes on -Wl,-G. The following line is correct:
9757 michael 5052 shared_flag='-G'
9758     else
9759 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9760     shared_flag='$wl-G'
9761 michael 5052 else
9762 michael 5059 shared_flag='$wl-bM:SRE'
9763 michael 5052 fi
9764 michael 5059 shared_flag_aix='$wl-bM:SRE'
9765     shared_flag_svr4='$wl-G'
9766 michael 5052 fi
9767     fi
9768    
9769 michael 5059 export_dynamic_flag_spec='$wl-bexpall'
9770 michael 5052 # It seems that -bexpall does not export symbols beginning with
9771     # underscore (_), so it is better to generate a list of symbols to export.
9772     always_export_symbols=yes
9773 michael 5059 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9774 michael 5052 # Warning - without using the other runtime loading flags (-brtl),
9775     # -berok will link without error, but may produce a broken library.
9776     allow_undefined_flag='-berok'
9777 michael 5059 # Determine the default libpath from the value encoded in an
9778     # empty executable.
9779     if test set = "${lt_cv_aix_libpath+set}"; then
9780     aix_libpath=$lt_cv_aix_libpath
9781     else
9782     if ${lt_cv_aix_libpath_+:} false; then :
9783     $as_echo_n "(cached) " >&6
9784     else
9785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 michael 5052 /* end confdefs.h. */
9787    
9788     int
9789     main ()
9790     {
9791    
9792     ;
9793     return 0;
9794     }
9795     _ACEOF
9796 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9797 michael 5052
9798 michael 5059 lt_aix_libpath_sed='
9799     /Import File Strings/,/^$/ {
9800     /^0/ {
9801     s/^0 *\([^ ]*\) *$/\1/
9802     p
9803     }
9804     }'
9805     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9806     # Check for a 64-bit object if we didn't find anything.
9807     if test -z "$lt_cv_aix_libpath_"; then
9808     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9809     fi
9810     fi
9811     rm -f core conftest.err conftest.$ac_objext \
9812     conftest$ac_exeext conftest.$ac_ext
9813     if test -z "$lt_cv_aix_libpath_"; then
9814     lt_cv_aix_libpath_=/usr/lib:/lib
9815     fi
9816 michael 5052
9817 michael 5059 fi
9818 michael 5052
9819 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9820 michael 5052 fi
9821    
9822 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9823     archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9824     else
9825     if test ia64 = "$host_cpu"; then
9826     hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9827 michael 5052 allow_undefined_flag="-z nodefs"
9828 michael 5059 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"
9829 michael 5052 else
9830 michael 5059 # Determine the default libpath from the value encoded in an
9831     # empty executable.
9832     if test set = "${lt_cv_aix_libpath+set}"; then
9833     aix_libpath=$lt_cv_aix_libpath
9834     else
9835     if ${lt_cv_aix_libpath_+:} false; then :
9836     $as_echo_n "(cached) " >&6
9837     else
9838     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 michael 5052 /* end confdefs.h. */
9840    
9841     int
9842     main ()
9843     {
9844    
9845     ;
9846     return 0;
9847     }
9848     _ACEOF
9849 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9850 michael 5052
9851 michael 5059 lt_aix_libpath_sed='
9852     /Import File Strings/,/^$/ {
9853     /^0/ {
9854     s/^0 *\([^ ]*\) *$/\1/
9855     p
9856     }
9857     }'
9858     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9859     # Check for a 64-bit object if we didn't find anything.
9860     if test -z "$lt_cv_aix_libpath_"; then
9861     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9862     fi
9863     fi
9864     rm -f core conftest.err conftest.$ac_objext \
9865     conftest$ac_exeext conftest.$ac_ext
9866     if test -z "$lt_cv_aix_libpath_"; then
9867     lt_cv_aix_libpath_=/usr/lib:/lib
9868     fi
9869 michael 5052
9870 michael 5059 fi
9871 michael 5052
9872 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9873 michael 5052 fi
9874    
9875 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9876 michael 5052 # Warning - without using the other run time loading flags,
9877     # -berok will link without error, but may produce a broken library.
9878 michael 5059 no_undefined_flag=' $wl-bernotok'
9879     allow_undefined_flag=' $wl-berok'
9880     if test yes = "$with_gnu_ld"; then
9881     # We only use this code for GNU lds that support --whole-archive.
9882     whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9883     else
9884     # Exported symbols can be pulled into shared objects from archives
9885     whole_archive_flag_spec='$convenience'
9886     fi
9887 michael 5052 archive_cmds_need_lc=yes
9888 michael 5059 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9889     # -brtl affects multiple linker settings, -berok does not and is overridden later
9890     compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9891     if test svr4 != "$with_aix_soname"; then
9892     # This is similar to how AIX traditionally builds its shared libraries.
9893     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9894     fi
9895     if test aix != "$with_aix_soname"; then
9896     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9897     else
9898     # used by -dlpreopen to get the symbols
9899     archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9900     fi
9901     archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9902 michael 5052 fi
9903     fi
9904     ;;
9905    
9906     amigaos*)
9907 michael 5059 case $host_cpu in
9908     powerpc)
9909     # see comment about AmigaOS4 .so support
9910     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9911     archive_expsym_cmds=''
9912     ;;
9913     m68k)
9914     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)'
9915     hardcode_libdir_flag_spec='-L$libdir'
9916     hardcode_minus_L=yes
9917     ;;
9918     esac
9919 michael 5052 ;;
9920    
9921     bsdi[45]*)
9922     export_dynamic_flag_spec=-rdynamic
9923     ;;
9924    
9925 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9926 michael 5052 # When not using gcc, we currently assume that we are using
9927     # Microsoft Visual C++.
9928     # hardcode_libdir_flag_spec is actually meaningless, as there is
9929     # no search path for DLLs.
9930 michael 5059 case $cc_basename in
9931     cl*)
9932     # Native MSVC
9933     hardcode_libdir_flag_spec=' '
9934     allow_undefined_flag=unsupported
9935     always_export_symbols=yes
9936     file_list_spec='@'
9937     # Tell ltmain to make .lib files, not .a files.
9938     libext=lib
9939     # Tell ltmain to make .dll files, not .so files.
9940     shrext_cmds=.dll
9941     # FIXME: Setting linknames here is a bad hack.
9942     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9943     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9944     cp "$export_symbols" "$output_objdir/$soname.def";
9945     echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9946     else
9947     $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9948     fi~
9949     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9950     linknames='
9951     # The linker will not automatically build a static lib if we build a DLL.
9952     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9953     enable_shared_with_static_runtimes=yes
9954     exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9955     export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9956     # Don't use ranlib
9957     old_postinstall_cmds='chmod 644 $oldlib'
9958     postlink_cmds='lt_outputfile="@OUTPUT@"~
9959     lt_tool_outputfile="@TOOL_OUTPUT@"~
9960     case $lt_outputfile in
9961     *.exe|*.EXE) ;;
9962     *)
9963     lt_outputfile=$lt_outputfile.exe
9964     lt_tool_outputfile=$lt_tool_outputfile.exe
9965     ;;
9966     esac~
9967     if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9968     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9969     $RM "$lt_outputfile.manifest";
9970     fi'
9971     ;;
9972     *)
9973     # Assume MSVC wrapper
9974     hardcode_libdir_flag_spec=' '
9975     allow_undefined_flag=unsupported
9976     # Tell ltmain to make .lib files, not .a files.
9977     libext=lib
9978     # Tell ltmain to make .dll files, not .so files.
9979     shrext_cmds=.dll
9980     # FIXME: Setting linknames here is a bad hack.
9981     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9982     # The linker will automatically build a .lib file if we build a DLL.
9983     old_archive_from_new_cmds='true'
9984     # FIXME: Should let the user specify the lib program.
9985     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9986     enable_shared_with_static_runtimes=yes
9987     ;;
9988     esac
9989 michael 5052 ;;
9990    
9991     darwin* | rhapsody*)
9992 michael 5059
9993    
9994     archive_cmds_need_lc=no
9995     hardcode_direct=no
9996     hardcode_automatic=yes
9997     hardcode_shlibpath_var=unsupported
9998     if test yes = "$lt_cv_ld_force_load"; then
9999     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\"`'
10000    
10001     else
10002     whole_archive_flag_spec=''
10003     fi
10004     link_all_deplibs=yes
10005     allow_undefined_flag=$_lt_dar_allow_undefined
10006     case $cc_basename in
10007     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10008     *) _lt_dar_can_shared=$GCC ;;
10009     esac
10010     if test yes = "$_lt_dar_can_shared"; then
10011     output_verbose_link_cmd=func_echo_all
10012     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10013     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10014     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"
10015     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"
10016    
10017     else
10018     ld_shlibs=no
10019     fi
10020    
10021 michael 5052 ;;
10022    
10023     dgux*)
10024     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10025     hardcode_libdir_flag_spec='-L$libdir'
10026     hardcode_shlibpath_var=no
10027     ;;
10028    
10029     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10030     # support. Future versions do this automatically, but an explicit c++rt0.o
10031     # does not break anything, and helps significantly (at the cost of a little
10032     # extra space).
10033     freebsd2.2*)
10034     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10035     hardcode_libdir_flag_spec='-R$libdir'
10036     hardcode_direct=yes
10037     hardcode_shlibpath_var=no
10038     ;;
10039    
10040     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10041 michael 5059 freebsd2.*)
10042 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10043     hardcode_direct=yes
10044     hardcode_minus_L=yes
10045     hardcode_shlibpath_var=no
10046     ;;
10047    
10048     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10049     freebsd* | dragonfly*)
10050 michael 5059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10051 michael 5052 hardcode_libdir_flag_spec='-R$libdir'
10052     hardcode_direct=yes
10053     hardcode_shlibpath_var=no
10054     ;;
10055    
10056     hpux9*)
10057 michael 5059 if test yes = "$GCC"; then
10058     archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10059 michael 5052 else
10060 michael 5059 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10061 michael 5052 fi
10062 michael 5059 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10063 michael 5052 hardcode_libdir_separator=:
10064     hardcode_direct=yes
10065    
10066     # hardcode_minus_L: Not really in the search PATH,
10067     # but as the default location of the library.
10068     hardcode_minus_L=yes
10069 michael 5059 export_dynamic_flag_spec='$wl-E'
10070 michael 5052 ;;
10071    
10072     hpux10*)
10073 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
10074     archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10075 michael 5052 else
10076     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10077     fi
10078 michael 5059 if test no = "$with_gnu_ld"; then
10079     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10080 michael 5052 hardcode_libdir_separator=:
10081     hardcode_direct=yes
10082 michael 5059 hardcode_direct_absolute=yes
10083     export_dynamic_flag_spec='$wl-E'
10084 michael 5052 # hardcode_minus_L: Not really in the search PATH,
10085     # but as the default location of the library.
10086     hardcode_minus_L=yes
10087     fi
10088     ;;
10089    
10090     hpux11*)
10091 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
10092 michael 5052 case $host_cpu in
10093     hppa*64*)
10094 michael 5059 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 michael 5052 ;;
10096     ia64*)
10097 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10098 michael 5052 ;;
10099     *)
10100 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10101 michael 5052 ;;
10102     esac
10103     else
10104     case $host_cpu in
10105     hppa*64*)
10106 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 michael 5052 ;;
10108     ia64*)
10109 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10110 michael 5052 ;;
10111     *)
10112 michael 5059
10113     # Older versions of the 11.00 compiler do not understand -b yet
10114     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10116     $as_echo_n "checking if $CC understands -b... " >&6; }
10117     if ${lt_cv_prog_compiler__b+:} false; then :
10118     $as_echo_n "(cached) " >&6
10119     else
10120     lt_cv_prog_compiler__b=no
10121     save_LDFLAGS=$LDFLAGS
10122     LDFLAGS="$LDFLAGS -b"
10123     echo "$lt_simple_link_test_code" > conftest.$ac_ext
10124     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10125     # The linker can only warn and ignore the option if not recognized
10126     # So say no if there are warnings
10127     if test -s conftest.err; then
10128     # Append any errors to the config.log.
10129     cat conftest.err 1>&5
10130     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10131     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10132     if diff conftest.exp conftest.er2 >/dev/null; then
10133     lt_cv_prog_compiler__b=yes
10134     fi
10135     else
10136     lt_cv_prog_compiler__b=yes
10137     fi
10138     fi
10139     $RM -r conftest*
10140     LDFLAGS=$save_LDFLAGS
10141    
10142     fi
10143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10144     $as_echo "$lt_cv_prog_compiler__b" >&6; }
10145    
10146     if test yes = "$lt_cv_prog_compiler__b"; then
10147     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10148     else
10149     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10150     fi
10151    
10152 michael 5052 ;;
10153     esac
10154     fi
10155 michael 5059 if test no = "$with_gnu_ld"; then
10156     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10157 michael 5052 hardcode_libdir_separator=:
10158    
10159     case $host_cpu in
10160     hppa*64*|ia64*)
10161     hardcode_direct=no
10162     hardcode_shlibpath_var=no
10163     ;;
10164     *)
10165     hardcode_direct=yes
10166 michael 5059 hardcode_direct_absolute=yes
10167     export_dynamic_flag_spec='$wl-E'
10168 michael 5052
10169     # hardcode_minus_L: Not really in the search PATH,
10170     # but as the default location of the library.
10171     hardcode_minus_L=yes
10172     ;;
10173     esac
10174     fi
10175     ;;
10176    
10177     irix5* | irix6* | nonstopux*)
10178 michael 5059 if test yes = "$GCC"; then
10179     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'
10180     # Try to use the -exported_symbol ld option, if it does not
10181     # work, assume that -exports_file does not work either and
10182     # implicitly export all symbols.
10183     # This should be the same for all languages, so no per-tag cache variable.
10184     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10185     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10186     if ${lt_cv_irix_exported_symbol+:} false; then :
10187     $as_echo_n "(cached) " >&6
10188     else
10189     save_LDFLAGS=$LDFLAGS
10190     LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192     /* end confdefs.h. */
10193     int foo (void) { return 0; }
10194     _ACEOF
10195     if ac_fn_c_try_link "$LINENO"; then :
10196     lt_cv_irix_exported_symbol=yes
10197     else
10198     lt_cv_irix_exported_symbol=no
10199     fi
10200     rm -f core conftest.err conftest.$ac_objext \
10201     conftest$ac_exeext conftest.$ac_ext
10202     LDFLAGS=$save_LDFLAGS
10203     fi
10204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10205     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10206     if test yes = "$lt_cv_irix_exported_symbol"; then
10207     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'
10208     fi
10209 michael 5052 else
10210 michael 5059 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'
10211     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'
10212 michael 5052 fi
10213 michael 5059 archive_cmds_need_lc='no'
10214     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10215 michael 5052 hardcode_libdir_separator=:
10216 michael 5059 inherit_rpath=yes
10217 michael 5052 link_all_deplibs=yes
10218     ;;
10219    
10220 michael 5059 linux*)
10221     case $cc_basename in
10222     tcc*)
10223     # Fabrice Bellard et al's Tiny C Compiler
10224     ld_shlibs=yes
10225     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10226     ;;
10227     esac
10228     ;;
10229    
10230     netbsd*)
10231     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10232 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10233     else
10234     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10235     fi
10236     hardcode_libdir_flag_spec='-R$libdir'
10237     hardcode_direct=yes
10238     hardcode_shlibpath_var=no
10239     ;;
10240    
10241     newsos6)
10242     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243     hardcode_direct=yes
10244 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10245 michael 5052 hardcode_libdir_separator=:
10246     hardcode_shlibpath_var=no
10247     ;;
10248    
10249 michael 5059 *nto* | *qnx*)
10250     ;;
10251    
10252     openbsd* | bitrig*)
10253     if test -f /usr/libexec/ld.so; then
10254     hardcode_direct=yes
10255     hardcode_shlibpath_var=no
10256     hardcode_direct_absolute=yes
10257     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10258     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10259     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10260     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10261     export_dynamic_flag_spec='$wl-E'
10262     else
10263     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10264     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10265     fi
10266 michael 5052 else
10267 michael 5059 ld_shlibs=no
10268 michael 5052 fi
10269     ;;
10270    
10271     os2*)
10272     hardcode_libdir_flag_spec='-L$libdir'
10273     hardcode_minus_L=yes
10274     allow_undefined_flag=unsupported
10275 michael 5059 shrext_cmds=.dll
10276     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10277     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10278     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10279     $ECHO EXPORTS >> $output_objdir/$libname.def~
10280     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10281     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10282     emximp -o $lib $output_objdir/$libname.def'
10283     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10284     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10285     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10286     $ECHO EXPORTS >> $output_objdir/$libname.def~
10287     prefix_cmds="$SED"~
10288     if test EXPORTS = "`$SED 1q $export_symbols`"; then
10289     prefix_cmds="$prefix_cmds -e 1d";
10290     fi~
10291     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10292     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10293     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10294     emximp -o $lib $output_objdir/$libname.def'
10295     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10296     enable_shared_with_static_runtimes=yes
10297 michael 5052 ;;
10298    
10299     osf3*)
10300 michael 5059 if test yes = "$GCC"; then
10301     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10302     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'
10303 michael 5052 else
10304     allow_undefined_flag=' -expect_unresolved \*'
10305 michael 5059 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'
10306 michael 5052 fi
10307 michael 5059 archive_cmds_need_lc='no'
10308     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10309 michael 5052 hardcode_libdir_separator=:
10310     ;;
10311    
10312     osf4* | osf5*) # as osf3* with the addition of -msym flag
10313 michael 5059 if test yes = "$GCC"; then
10314     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10315     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'
10316     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10317 michael 5052 else
10318     allow_undefined_flag=' -expect_unresolved \*'
10319 michael 5059 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'
10320     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~
10321     $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'
10322 michael 5052
10323     # Both c and cxx compiler support -rpath directly
10324     hardcode_libdir_flag_spec='-rpath $libdir'
10325     fi
10326 michael 5059 archive_cmds_need_lc='no'
10327 michael 5052 hardcode_libdir_separator=:
10328     ;;
10329    
10330     solaris*)
10331 michael 5059 no_undefined_flag=' -z defs'
10332     if test yes = "$GCC"; then
10333     wlarc='$wl'
10334     archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10335     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10336     $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'
10337 michael 5052 else
10338 michael 5059 case `$CC -V 2>&1` in
10339     *"Compilers 5.0"*)
10340     wlarc=''
10341     archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10343     $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10344     ;;
10345     *)
10346     wlarc='$wl'
10347     archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10348     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10349     $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10350     ;;
10351     esac
10352 michael 5052 fi
10353     hardcode_libdir_flag_spec='-R$libdir'
10354     hardcode_shlibpath_var=no
10355     case $host_os in
10356     solaris2.[0-5] | solaris2.[0-5].*) ;;
10357     *)
10358 michael 5059 # The compiler driver will combine and reorder linker options,
10359     # but understands '-z linker_flag'. GCC discards it without '$wl',
10360     # but is careful enough not to reorder.
10361     # Supported since Solaris 2.6 (maybe 2.5.1?)
10362     if test yes = "$GCC"; then
10363     whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10364     else
10365     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10366     fi
10367     ;;
10368 michael 5052 esac
10369     link_all_deplibs=yes
10370     ;;
10371    
10372     sunos4*)
10373 michael 5059 if test sequent = "$host_vendor"; then
10374 michael 5052 # Use $CC to link under sequent, because it throws in some extra .o
10375     # files that make .init and .fini sections work.
10376 michael 5059 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10377 michael 5052 else
10378     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10379     fi
10380     hardcode_libdir_flag_spec='-L$libdir'
10381     hardcode_direct=yes
10382     hardcode_minus_L=yes
10383     hardcode_shlibpath_var=no
10384     ;;
10385    
10386     sysv4)
10387     case $host_vendor in
10388     sni)
10389     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390     hardcode_direct=yes # is this really true???
10391     ;;
10392     siemens)
10393     ## LD is ld it makes a PLAMLIB
10394     ## CC just makes a GrossModule.
10395     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10396     reload_cmds='$CC -r -o $output$reload_objs'
10397     hardcode_direct=no
10398     ;;
10399     motorola)
10400     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10402     ;;
10403     esac
10404     runpath_var='LD_RUN_PATH'
10405     hardcode_shlibpath_var=no
10406     ;;
10407    
10408     sysv4.3*)
10409     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410     hardcode_shlibpath_var=no
10411     export_dynamic_flag_spec='-Bexport'
10412     ;;
10413    
10414     sysv4*MP*)
10415     if test -d /usr/nec; then
10416     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10417     hardcode_shlibpath_var=no
10418     runpath_var=LD_RUN_PATH
10419     hardcode_runpath_var=yes
10420     ld_shlibs=yes
10421     fi
10422     ;;
10423    
10424 michael 5059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10425     no_undefined_flag='$wl-z,text'
10426 michael 5052 archive_cmds_need_lc=no
10427     hardcode_shlibpath_var=no
10428     runpath_var='LD_RUN_PATH'
10429    
10430 michael 5059 if test yes = "$GCC"; then
10431     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 michael 5052 else
10434 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10435     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 michael 5052 fi
10437     ;;
10438    
10439     sysv5* | sco3.2v5* | sco5v6*)
10440 michael 5059 # Note: We CANNOT use -z defs as we might desire, because we do not
10441 michael 5052 # link with -lc, and that would cause any symbols used from libc to
10442     # always be unresolved, which means just about no library would
10443     # ever link correctly. If we're not using GNU ld we use -z text
10444     # though, which does catch some bad symbols but isn't as heavy-handed
10445     # as -z defs.
10446 michael 5059 no_undefined_flag='$wl-z,text'
10447     allow_undefined_flag='$wl-z,nodefs'
10448 michael 5052 archive_cmds_need_lc=no
10449     hardcode_shlibpath_var=no
10450 michael 5059 hardcode_libdir_flag_spec='$wl-R,$libdir'
10451 michael 5052 hardcode_libdir_separator=':'
10452     link_all_deplibs=yes
10453 michael 5059 export_dynamic_flag_spec='$wl-Bexport'
10454 michael 5052 runpath_var='LD_RUN_PATH'
10455    
10456 michael 5059 if test yes = "$GCC"; then
10457     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 michael 5052 else
10460 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10461     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 michael 5052 fi
10463     ;;
10464    
10465     uts4*)
10466     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467     hardcode_libdir_flag_spec='-L$libdir'
10468     hardcode_shlibpath_var=no
10469     ;;
10470    
10471     *)
10472     ld_shlibs=no
10473     ;;
10474     esac
10475 michael 5059
10476     if test sni = "$host_vendor"; then
10477     case $host in
10478     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10479     export_dynamic_flag_spec='$wl-Blargedynsym'
10480     ;;
10481     esac
10482     fi
10483 michael 5052 fi
10484    
10485 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10486     $as_echo "$ld_shlibs" >&6; }
10487     test no = "$ld_shlibs" && can_build_shared=no
10488 michael 5052
10489 michael 5059 with_gnu_ld=$with_gnu_ld
10490    
10491    
10492    
10493    
10494    
10495    
10496    
10497    
10498    
10499    
10500    
10501    
10502    
10503    
10504    
10505 michael 5052 #
10506     # Do we need to explicitly link libc?
10507     #
10508     case "x$archive_cmds_need_lc" in
10509     x|xyes)
10510     # Assume -lc should be added
10511     archive_cmds_need_lc=yes
10512    
10513 michael 5059 if test yes,yes = "$GCC,$enable_shared"; then
10514 michael 5052 case $archive_cmds in
10515     *'~'*)
10516     # FIXME: we may have to deal with multi-command sequences.
10517     ;;
10518     '$CC '*)
10519     # Test whether the compiler implicitly links with -lc since on some
10520     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10521     # to ld, don't add -lc before -lgcc.
10522 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10523     $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10524     if ${lt_cv_archive_cmds_need_lc+:} false; then :
10525     $as_echo_n "(cached) " >&6
10526     else
10527     $RM conftest*
10528     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10529 michael 5052
10530 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10531 michael 5052 (eval $ac_compile) 2>&5
10532     ac_status=$?
10533 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10534     test $ac_status = 0; } 2>conftest.err; then
10535     soname=conftest
10536     lib=conftest
10537     libobjs=conftest.$ac_objext
10538     deplibs=
10539     wl=$lt_prog_compiler_wl
10540     pic_flag=$lt_prog_compiler_pic
10541     compiler_flags=-v
10542     linker_flags=-v
10543     verstring=
10544     output_objdir=.
10545     libname=conftest
10546     lt_save_allow_undefined_flag=$allow_undefined_flag
10547     allow_undefined_flag=
10548     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10549     (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10550 michael 5052 ac_status=$?
10551 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10552     test $ac_status = 0; }
10553     then
10554     lt_cv_archive_cmds_need_lc=no
10555     else
10556     lt_cv_archive_cmds_need_lc=yes
10557     fi
10558     allow_undefined_flag=$lt_save_allow_undefined_flag
10559     else
10560     cat conftest.err 1>&5
10561     fi
10562     $RM conftest*
10563    
10564     fi
10565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10566     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10567     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10568 michael 5052 ;;
10569     esac
10570     fi
10571     ;;
10572     esac
10573    
10574 michael 5059
10575    
10576    
10577    
10578    
10579    
10580    
10581    
10582    
10583    
10584    
10585    
10586    
10587    
10588    
10589    
10590    
10591    
10592    
10593    
10594    
10595    
10596    
10597    
10598    
10599    
10600    
10601    
10602    
10603    
10604    
10605    
10606    
10607    
10608    
10609    
10610    
10611    
10612    
10613    
10614    
10615    
10616    
10617    
10618    
10619    
10620    
10621    
10622    
10623    
10624    
10625    
10626    
10627    
10628    
10629    
10630    
10631    
10632    
10633    
10634    
10635    
10636    
10637    
10638    
10639    
10640    
10641    
10642    
10643    
10644    
10645    
10646    
10647    
10648    
10649    
10650    
10651    
10652    
10653    
10654    
10655    
10656    
10657    
10658    
10659    
10660    
10661    
10662    
10663    
10664    
10665    
10666    
10667    
10668    
10669    
10670    
10671    
10672    
10673    
10674    
10675    
10676    
10677    
10678    
10679    
10680    
10681    
10682    
10683    
10684    
10685    
10686    
10687    
10688    
10689    
10690    
10691    
10692    
10693    
10694    
10695    
10696    
10697    
10698    
10699    
10700    
10701    
10702    
10703    
10704    
10705    
10706    
10707    
10708    
10709    
10710    
10711    
10712    
10713    
10714    
10715    
10716    
10717    
10718    
10719    
10720    
10721    
10722    
10723    
10724    
10725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10726     $as_echo_n "checking dynamic linker characteristics... " >&6; }
10727    
10728     if test yes = "$GCC"; then
10729     case $host_os in
10730     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10731     *) lt_awk_arg='/^libraries:/' ;;
10732     esac
10733     case $host_os in
10734     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10735     *) lt_sed_strip_eq='s|=/|/|g' ;;
10736     esac
10737     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10738     case $lt_search_path_spec in
10739     *\;*)
10740     # if the path contains ";" then we assume it to be the separator
10741     # otherwise default to the standard path separator (i.e. ":") - it is
10742     # assumed that no part of a normal pathname contains ";" but that should
10743     # okay in the real world where ";" in dirpaths is itself problematic.
10744     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10745     ;;
10746     *)
10747     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10748     ;;
10749     esac
10750     # Ok, now we have the path, separated by spaces, we can step through it
10751     # and add multilib dir if necessary...
10752     lt_tmp_lt_search_path_spec=
10753     lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10754     # ...but if some path component already ends with the multilib dir we assume
10755     # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10756     case "$lt_multi_os_dir; $lt_search_path_spec " in
10757     "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10758     lt_multi_os_dir=
10759     ;;
10760     esac
10761     for lt_sys_path in $lt_search_path_spec; do
10762     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10763     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10764     elif test -n "$lt_multi_os_dir"; then
10765     test -d "$lt_sys_path" && \
10766     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10767     fi
10768     done
10769     lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10770     BEGIN {RS = " "; FS = "/|\n";} {
10771     lt_foo = "";
10772     lt_count = 0;
10773     for (lt_i = NF; lt_i > 0; lt_i--) {
10774     if ($lt_i != "" && $lt_i != ".") {
10775     if ($lt_i == "..") {
10776     lt_count++;
10777     } else {
10778     if (lt_count == 0) {
10779     lt_foo = "/" $lt_i lt_foo;
10780     } else {
10781     lt_count--;
10782     }
10783     }
10784     }
10785     }
10786     if (lt_foo != "") { lt_freq[lt_foo]++; }
10787     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10788     }'`
10789     # AWK program above erroneously prepends '/' to C:/dos/paths
10790     # for these hosts.
10791     case $host_os in
10792     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10793     $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10794     esac
10795     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10796     else
10797     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10798     fi
10799 michael 5052 library_names_spec=
10800     libname_spec='lib$name'
10801     soname_spec=
10802 michael 5059 shrext_cmds=.so
10803 michael 5052 postinstall_cmds=
10804     postuninstall_cmds=
10805     finish_cmds=
10806     finish_eval=
10807     shlibpath_var=
10808     shlibpath_overrides_runpath=unknown
10809     version_type=none
10810     dynamic_linker="$host_os ld.so"
10811     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10812     need_lib_prefix=unknown
10813     hardcode_into_libs=no
10814    
10815     # when you set need_version to no, make sure it does not cause -set_version
10816     # flags to be left without arguments
10817     need_version=unknown
10818    
10819     case $host_os in
10820     aix3*)
10821 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10822     library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10823 michael 5052 shlibpath_var=LIBPATH
10824    
10825     # AIX 3 has no versioning support, so we append a major version to the name.
10826 michael 5059 soname_spec='$libname$release$shared_ext$major'
10827 michael 5052 ;;
10828    
10829 michael 5059 aix[4-9]*)
10830     version_type=linux # correct to gnu/linux during the next big refactor
10831 michael 5052 need_lib_prefix=no
10832     need_version=no
10833     hardcode_into_libs=yes
10834 michael 5059 if test ia64 = "$host_cpu"; then
10835 michael 5052 # AIX 5 supports IA64
10836 michael 5059 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10837 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10838     else
10839     # With GCC up to 2.95.x, collect2 would create an import file
10840     # for dependence libraries. The import file would start with
10841 michael 5059 # the line '#! .'. This would cause the generated library to
10842     # depend on '.', always an invalid library. This was fixed in
10843 michael 5052 # development snapshots of GCC prior to 3.0.
10844     case $host_os in
10845     aix4 | aix4.[01] | aix4.[01].*)
10846     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10847     echo ' yes '
10848 michael 5059 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10849 michael 5052 :
10850     else
10851     can_build_shared=no
10852     fi
10853     ;;
10854     esac
10855 michael 5059 # Using Import Files as archive members, it is possible to support
10856     # filename-based versioning of shared library archives on AIX. While
10857     # this would work for both with and without runtime linking, it will
10858     # prevent static linking of such archives. So we do filename-based
10859     # shared library versioning with .so extension only, which is used
10860     # when both runtime linking and shared linking is enabled.
10861     # Unfortunately, runtime linking may impact performance, so we do
10862     # not want this to be the default eventually. Also, we use the
10863     # versioned .so libs for executables only if there is the -brtl
10864     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10865     # To allow for filename-based versioning support, we need to create
10866     # libNAME.so.V as an archive file, containing:
10867     # *) an Import File, referring to the versioned filename of the
10868     # archive as well as the shared archive member, telling the
10869     # bitwidth (32 or 64) of that shared object, and providing the
10870     # list of exported symbols of that shared object, eventually
10871     # decorated with the 'weak' keyword
10872     # *) the shared object with the F_LOADONLY flag set, to really avoid
10873     # it being seen by the linker.
10874     # At run time we better use the real file rather than another symlink,
10875     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10876    
10877     case $with_aix_soname,$aix_use_runtimelinking in
10878     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10879 michael 5052 # soname into executable. Probably we can add versioning support to
10880     # collect2, so additional links can be useful in future.
10881 michael 5059 aix,yes) # traditional libtool
10882     dynamic_linker='AIX unversionable lib.so'
10883 michael 5052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10884     # instead of lib<name>.a to let people know that these are not
10885     # typical AIX shared libraries.
10886 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10887     ;;
10888     aix,no) # traditional AIX only
10889     dynamic_linker='AIX lib.a(lib.so.V)'
10890 michael 5052 # We preserve .a as extension for shared libraries through AIX4.2
10891     # and later when we are not doing run time linking.
10892 michael 5059 library_names_spec='$libname$release.a $libname.a'
10893     soname_spec='$libname$release$shared_ext$major'
10894     ;;
10895     svr4,*) # full svr4 only
10896     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10897     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10898     # We do not specify a path in Import Files, so LIBPATH fires.
10899     shlibpath_overrides_runpath=yes
10900     ;;
10901     *,yes) # both, prefer svr4
10902     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10903     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10904     # unpreferred sharedlib libNAME.a needs extra handling
10905     postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10906     postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10907     # We do not specify a path in Import Files, so LIBPATH fires.
10908     shlibpath_overrides_runpath=yes
10909     ;;
10910     *,no) # both, prefer aix
10911     dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10912     library_names_spec='$libname$release.a $libname.a'
10913     soname_spec='$libname$release$shared_ext$major'
10914     # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10915     postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10916     postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10917     ;;
10918     esac
10919 michael 5052 shlibpath_var=LIBPATH
10920     fi
10921     ;;
10922    
10923     amigaos*)
10924 michael 5059 case $host_cpu in
10925     powerpc)
10926     # Since July 2007 AmigaOS4 officially supports .so libraries.
10927     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10928     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10929     ;;
10930     m68k)
10931     library_names_spec='$libname.ixlibrary $libname.a'
10932     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10933     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10934     ;;
10935     esac
10936 michael 5052 ;;
10937    
10938     beos*)
10939 michael 5059 library_names_spec='$libname$shared_ext'
10940 michael 5052 dynamic_linker="$host_os ld.so"
10941     shlibpath_var=LIBRARY_PATH
10942     ;;
10943    
10944     bsdi[45]*)
10945 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10946 michael 5052 need_version=no
10947 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10948     soname_spec='$libname$release$shared_ext$major'
10949 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10950     shlibpath_var=LD_LIBRARY_PATH
10951     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10952     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10953     # the default ld.so.conf also contains /usr/contrib/lib and
10954     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10955     # libtool to hard-code these into programs
10956     ;;
10957    
10958 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
10959 michael 5052 version_type=windows
10960 michael 5059 shrext_cmds=.dll
10961 michael 5052 need_version=no
10962     need_lib_prefix=no
10963    
10964 michael 5059 case $GCC,$cc_basename in
10965     yes,*)
10966     # gcc
10967 michael 5052 library_names_spec='$libname.dll.a'
10968     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10969 michael 5059 postinstall_cmds='base_file=`basename \$file`~
10970     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10971 michael 5052 dldir=$destdir/`dirname \$dlpath`~
10972     test -d \$dldir || mkdir -p \$dldir~
10973     $install_prog $dir/$dlname \$dldir/$dlname~
10974 michael 5059 chmod a+x \$dldir/$dlname~
10975     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10976     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10977     fi'
10978 michael 5052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10979     dlpath=$dir/\$dldll~
10980 michael 5059 $RM \$dlpath'
10981 michael 5052 shlibpath_overrides_runpath=yes
10982    
10983     case $host_os in
10984     cygwin*)
10985     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10986 michael 5059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10987    
10988     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10989 michael 5052 ;;
10990 michael 5059 mingw* | cegcc*)
10991 michael 5052 # MinGW DLLs use traditional 'lib' prefix
10992 michael 5059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10993 michael 5052 ;;
10994     pw32*)
10995     # pw32 DLLs use 'pw' prefix rather than 'lib'
10996 michael 5059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10997 michael 5052 ;;
10998     esac
10999 michael 5059 dynamic_linker='Win32 ld.exe'
11000 michael 5052 ;;
11001    
11002 michael 5059 *,cl*)
11003     # Native MSVC
11004     libname_spec='$name'
11005     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11006     library_names_spec='$libname.dll.lib'
11007    
11008     case $build_os in
11009     mingw*)
11010     sys_lib_search_path_spec=
11011     lt_save_ifs=$IFS
11012     IFS=';'
11013     for lt_path in $LIB
11014     do
11015     IFS=$lt_save_ifs
11016     # Let DOS variable expansion print the short 8.3 style file name.
11017     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11018     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11019     done
11020     IFS=$lt_save_ifs
11021     # Convert to MSYS style.
11022     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11023     ;;
11024     cygwin*)
11025     # Convert to unix form, then to dos form, then back to unix form
11026     # but this time dos style (no spaces!) so that the unix form looks
11027     # like /cygdrive/c/PROGRA~1:/cygdr...
11028     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11029     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11030     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11031     ;;
11032     *)
11033     sys_lib_search_path_spec=$LIB
11034     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11035     # It is most probably a Windows format PATH.
11036     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11037     else
11038     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11039     fi
11040     # FIXME: find the short name or the path components, as spaces are
11041     # common. (e.g. "Program Files" -> "PROGRA~1")
11042     ;;
11043     esac
11044    
11045     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11046     postinstall_cmds='base_file=`basename \$file`~
11047     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11048     dldir=$destdir/`dirname \$dlpath`~
11049     test -d \$dldir || mkdir -p \$dldir~
11050     $install_prog $dir/$dlname \$dldir/$dlname'
11051     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11052     dlpath=$dir/\$dldll~
11053     $RM \$dlpath'
11054     shlibpath_overrides_runpath=yes
11055     dynamic_linker='Win32 link.exe'
11056     ;;
11057    
11058 michael 5052 *)
11059 michael 5059 # Assume MSVC wrapper
11060     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11061     dynamic_linker='Win32 ld.exe'
11062 michael 5052 ;;
11063     esac
11064     # FIXME: first we should search . and the directory the executable is in
11065     shlibpath_var=PATH
11066     ;;
11067    
11068     darwin* | rhapsody*)
11069     dynamic_linker="$host_os dyld"
11070     version_type=darwin
11071     need_lib_prefix=no
11072     need_version=no
11073 michael 5059 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11074     soname_spec='$libname$release$major$shared_ext'
11075 michael 5052 shlibpath_overrides_runpath=yes
11076     shlibpath_var=DYLD_LIBRARY_PATH
11077     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11078 michael 5059
11079     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11080 michael 5052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11081     ;;
11082    
11083     dgux*)
11084 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11085 michael 5052 need_lib_prefix=no
11086     need_version=no
11087 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11088     soname_spec='$libname$release$shared_ext$major'
11089 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11090     ;;
11091    
11092     freebsd* | dragonfly*)
11093     # DragonFly does not have aout. When/if they implement a new
11094     # versioning mechanism, adjust this.
11095     if test -x /usr/bin/objformat; then
11096     objformat=`/usr/bin/objformat`
11097     else
11098     case $host_os in
11099 michael 5059 freebsd[23].*) objformat=aout ;;
11100 michael 5052 *) objformat=elf ;;
11101     esac
11102     fi
11103     version_type=freebsd-$objformat
11104     case $version_type in
11105     freebsd-elf*)
11106 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11107 michael 5052 need_version=no
11108     need_lib_prefix=no
11109     ;;
11110     freebsd-*)
11111 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11112 michael 5052 need_version=yes
11113     ;;
11114     esac
11115     shlibpath_var=LD_LIBRARY_PATH
11116     case $host_os in
11117 michael 5059 freebsd2.*)
11118 michael 5052 shlibpath_overrides_runpath=yes
11119     ;;
11120     freebsd3.[01]* | freebsdelf3.[01]*)
11121     shlibpath_overrides_runpath=yes
11122     hardcode_into_libs=yes
11123     ;;
11124     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11125     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11126     shlibpath_overrides_runpath=no
11127     hardcode_into_libs=yes
11128     ;;
11129 michael 5059 *) # from 4.6 on, and DragonFly
11130 michael 5052 shlibpath_overrides_runpath=yes
11131     hardcode_into_libs=yes
11132     ;;
11133     esac
11134     ;;
11135    
11136 michael 5059 haiku*)
11137     version_type=linux # correct to gnu/linux during the next big refactor
11138 michael 5052 need_lib_prefix=no
11139     need_version=no
11140 michael 5059 dynamic_linker="$host_os runtime_loader"
11141     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142     soname_spec='$libname$release$shared_ext$major'
11143     shlibpath_var=LIBRARY_PATH
11144     shlibpath_overrides_runpath=no
11145     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11146 michael 5052 hardcode_into_libs=yes
11147     ;;
11148    
11149     hpux9* | hpux10* | hpux11*)
11150     # Give a soname corresponding to the major version so that dld.sl refuses to
11151     # link against other versions.
11152     version_type=sunos
11153     need_lib_prefix=no
11154     need_version=no
11155     case $host_cpu in
11156     ia64*)
11157     shrext_cmds='.so'
11158     hardcode_into_libs=yes
11159     dynamic_linker="$host_os dld.so"
11160     shlibpath_var=LD_LIBRARY_PATH
11161     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11162 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11163     soname_spec='$libname$release$shared_ext$major'
11164     if test 32 = "$HPUX_IA64_MODE"; then
11165 michael 5052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11166     else
11167     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11168     fi
11169     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11170     ;;
11171 michael 5059 hppa*64*)
11172 michael 5052 shrext_cmds='.sl'
11173 michael 5059 hardcode_into_libs=yes
11174 michael 5052 dynamic_linker="$host_os dld.sl"
11175 michael 5059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11176     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11177     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11178     soname_spec='$libname$release$shared_ext$major'
11179     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11180     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11181     ;;
11182     *)
11183     shrext_cmds='.sl'
11184     dynamic_linker="$host_os dld.sl"
11185 michael 5052 shlibpath_var=SHLIB_PATH
11186     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11187 michael 5059 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 michael 5052 ;;
11190     esac
11191 michael 5059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11192 michael 5052 postinstall_cmds='chmod 555 $lib'
11193 michael 5059 # or fails outright, so override atomically:
11194     install_override_mode=555
11195 michael 5052 ;;
11196    
11197 michael 5059 interix[3-9]*)
11198     version_type=linux # correct to gnu/linux during the next big refactor
11199 michael 5052 need_lib_prefix=no
11200     need_version=no
11201 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11202     soname_spec='$libname$release$shared_ext$major'
11203 michael 5052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11204     shlibpath_var=LD_LIBRARY_PATH
11205     shlibpath_overrides_runpath=no
11206     hardcode_into_libs=yes
11207     ;;
11208    
11209     irix5* | irix6* | nonstopux*)
11210     case $host_os in
11211     nonstopux*) version_type=nonstopux ;;
11212     *)
11213 michael 5059 if test yes = "$lt_cv_prog_gnu_ld"; then
11214     version_type=linux # correct to gnu/linux during the next big refactor
11215 michael 5052 else
11216     version_type=irix
11217     fi ;;
11218     esac
11219     need_lib_prefix=no
11220     need_version=no
11221 michael 5059 soname_spec='$libname$release$shared_ext$major'
11222     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11223 michael 5052 case $host_os in
11224     irix5* | nonstopux*)
11225     libsuff= shlibsuff=
11226     ;;
11227     *)
11228     case $LD in # libtool.m4 will add one of these switches to LD
11229     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11230     libsuff= shlibsuff= libmagic=32-bit;;
11231     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11232     libsuff=32 shlibsuff=N32 libmagic=N32;;
11233     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11234     libsuff=64 shlibsuff=64 libmagic=64-bit;;
11235     *) libsuff= shlibsuff= libmagic=never-match;;
11236     esac
11237     ;;
11238     esac
11239     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11240     shlibpath_overrides_runpath=no
11241 michael 5059 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11242     sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11243 michael 5052 hardcode_into_libs=yes
11244     ;;
11245    
11246     # No shared lib support for Linux oldld, aout, or coff.
11247     linux*oldld* | linux*aout* | linux*coff*)
11248     dynamic_linker=no
11249     ;;
11250    
11251 michael 5059 linux*android*)
11252     version_type=none # Android doesn't support versioned libraries.
11253 michael 5052 need_lib_prefix=no
11254     need_version=no
11255 michael 5059 library_names_spec='$libname$release$shared_ext'
11256     soname_spec='$libname$release$shared_ext'
11257     finish_cmds=
11258     shlibpath_var=LD_LIBRARY_PATH
11259     shlibpath_overrides_runpath=yes
11260    
11261     # This implies no fast_install, which is unacceptable.
11262     # Some rework will be needed to allow for fast_install
11263     # before this can be enabled.
11264     hardcode_into_libs=yes
11265    
11266     dynamic_linker='Android linker'
11267     # Don't embed -rpath directories since the linker doesn't support them.
11268     hardcode_libdir_flag_spec='-L$libdir'
11269     ;;
11270    
11271     # This must be glibc/ELF.
11272     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11273     version_type=linux # correct to gnu/linux during the next big refactor
11274     need_lib_prefix=no
11275     need_version=no
11276     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11277     soname_spec='$libname$release$shared_ext$major'
11278 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11279     shlibpath_var=LD_LIBRARY_PATH
11280     shlibpath_overrides_runpath=no
11281 michael 5059
11282     # Some binutils ld are patched to set DT_RUNPATH
11283     if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11284     $as_echo_n "(cached) " >&6
11285     else
11286     lt_cv_shlibpath_overrides_runpath=no
11287     save_LDFLAGS=$LDFLAGS
11288     save_libdir=$libdir
11289     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11290     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292     /* end confdefs.h. */
11293    
11294     int
11295     main ()
11296     {
11297    
11298     ;
11299     return 0;
11300     }
11301     _ACEOF
11302     if ac_fn_c_try_link "$LINENO"; then :
11303     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11304     lt_cv_shlibpath_overrides_runpath=yes
11305     fi
11306     fi
11307     rm -f core conftest.err conftest.$ac_objext \
11308     conftest$ac_exeext conftest.$ac_ext
11309     LDFLAGS=$save_LDFLAGS
11310     libdir=$save_libdir
11311    
11312     fi
11313    
11314     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11315    
11316 michael 5052 # This implies no fast_install, which is unacceptable.
11317     # Some rework will be needed to allow for fast_install
11318     # before this can be enabled.
11319     hardcode_into_libs=yes
11320    
11321     # Append ld.so.conf contents to the search path
11322     if test -f /etc/ld.so.conf; then
11323 michael 5059 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' ' '`
11324 michael 5052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11325     fi
11326    
11327     # We used to test for /lib/ld.so.1 and disable shared libraries on
11328     # powerpc, because MkLinux only supported shared libraries with the
11329     # GNU dynamic linker. Since this was broken with cross compilers,
11330     # most powerpc-linux boxes support dynamic linking these days and
11331     # people can always --disable-shared, the test was removed, and we
11332     # assume the GNU/Linux dynamic linker is in use.
11333     dynamic_linker='GNU/Linux ld.so'
11334     ;;
11335    
11336     netbsd*)
11337     version_type=sunos
11338     need_lib_prefix=no
11339     need_version=no
11340 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11341     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11342 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11343     dynamic_linker='NetBSD (a.out) ld.so'
11344     else
11345 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11346     soname_spec='$libname$release$shared_ext$major'
11347 michael 5052 dynamic_linker='NetBSD ld.elf_so'
11348     fi
11349     shlibpath_var=LD_LIBRARY_PATH
11350     shlibpath_overrides_runpath=yes
11351     hardcode_into_libs=yes
11352     ;;
11353    
11354     newsos6)
11355 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11356     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11357 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11358     shlibpath_overrides_runpath=yes
11359     ;;
11360    
11361 michael 5059 *nto* | *qnx*)
11362     version_type=qnx
11363 michael 5052 need_lib_prefix=no
11364     need_version=no
11365 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11366     soname_spec='$libname$release$shared_ext$major'
11367 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11368 michael 5059 shlibpath_overrides_runpath=no
11369     hardcode_into_libs=yes
11370     dynamic_linker='ldqnx.so'
11371 michael 5052 ;;
11372    
11373 michael 5059 openbsd* | bitrig*)
11374 michael 5052 version_type=sunos
11375 michael 5059 sys_lib_dlsearch_path_spec=/usr/lib
11376 michael 5052 need_lib_prefix=no
11377 michael 5059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11378     need_version=no
11379     else
11380     need_version=yes
11381     fi
11382     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11383 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11384     shlibpath_var=LD_LIBRARY_PATH
11385 michael 5059 shlibpath_overrides_runpath=yes
11386 michael 5052 ;;
11387    
11388     os2*)
11389     libname_spec='$name'
11390 michael 5059 version_type=windows
11391     shrext_cmds=.dll
11392     need_version=no
11393 michael 5052 need_lib_prefix=no
11394 michael 5059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11395     soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11396     v=$($ECHO $release$versuffix | tr -d .-);
11397     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11398     $ECHO $n$v`$shared_ext'
11399     library_names_spec='${libname}_dll.$libext'
11400 michael 5052 dynamic_linker='OS/2 ld.exe'
11401 michael 5059 shlibpath_var=BEGINLIBPATH
11402     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11403     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11404     postinstall_cmds='base_file=`basename \$file`~
11405     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11406     dldir=$destdir/`dirname \$dlpath`~
11407     test -d \$dldir || mkdir -p \$dldir~
11408     $install_prog $dir/$dlname \$dldir/$dlname~
11409     chmod a+x \$dldir/$dlname~
11410     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11411     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11412     fi'
11413     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11414     dlpath=$dir/\$dldll~
11415     $RM \$dlpath'
11416 michael 5052 ;;
11417    
11418     osf3* | osf4* | osf5*)
11419     version_type=osf
11420     need_lib_prefix=no
11421     need_version=no
11422 michael 5059 soname_spec='$libname$release$shared_ext$major'
11423     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11425     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11426 michael 5059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11427 michael 5052 ;;
11428    
11429 michael 5059 rdos*)
11430     dynamic_linker=no
11431     ;;
11432    
11433 michael 5052 solaris*)
11434 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11435 michael 5052 need_lib_prefix=no
11436     need_version=no
11437 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438     soname_spec='$libname$release$shared_ext$major'
11439 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11440     shlibpath_overrides_runpath=yes
11441     hardcode_into_libs=yes
11442     # ldd complains unless libraries are executable
11443     postinstall_cmds='chmod +x $lib'
11444     ;;
11445    
11446     sunos4*)
11447     version_type=sunos
11448 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11449 michael 5052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11450     shlibpath_var=LD_LIBRARY_PATH
11451     shlibpath_overrides_runpath=yes
11452 michael 5059 if test yes = "$with_gnu_ld"; then
11453 michael 5052 need_lib_prefix=no
11454     fi
11455     need_version=yes
11456     ;;
11457    
11458     sysv4 | sysv4.3*)
11459 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11460     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11461     soname_spec='$libname$release$shared_ext$major'
11462 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11463     case $host_vendor in
11464     sni)
11465     shlibpath_overrides_runpath=no
11466     need_lib_prefix=no
11467     runpath_var=LD_RUN_PATH
11468     ;;
11469     siemens)
11470     need_lib_prefix=no
11471     ;;
11472     motorola)
11473     need_lib_prefix=no
11474     need_version=no
11475     shlibpath_overrides_runpath=no
11476     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11477     ;;
11478     esac
11479     ;;
11480    
11481     sysv4*MP*)
11482 michael 5059 if test -d /usr/nec; then
11483     version_type=linux # correct to gnu/linux during the next big refactor
11484     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11485     soname_spec='$libname$shared_ext.$major'
11486 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11487     fi
11488     ;;
11489    
11490     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11491 michael 5059 version_type=sco
11492 michael 5052 need_lib_prefix=no
11493     need_version=no
11494 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11495     soname_spec='$libname$release$shared_ext$major'
11496 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11497 michael 5059 shlibpath_overrides_runpath=yes
11498 michael 5052 hardcode_into_libs=yes
11499 michael 5059 if test yes = "$with_gnu_ld"; then
11500 michael 5052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11501     else
11502     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11503     case $host_os in
11504     sco3.2v5*)
11505     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11506     ;;
11507     esac
11508     fi
11509     sys_lib_dlsearch_path_spec='/usr/lib'
11510     ;;
11511    
11512 michael 5059 tpf*)
11513     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11514     version_type=linux # correct to gnu/linux during the next big refactor
11515     need_lib_prefix=no
11516     need_version=no
11517     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518     shlibpath_var=LD_LIBRARY_PATH
11519     shlibpath_overrides_runpath=no
11520     hardcode_into_libs=yes
11521     ;;
11522    
11523 michael 5052 uts4*)
11524 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11525     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526     soname_spec='$libname$release$shared_ext$major'
11527 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11528     ;;
11529    
11530     *)
11531     dynamic_linker=no
11532     ;;
11533     esac
11534 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11535     $as_echo "$dynamic_linker" >&6; }
11536     test no = "$dynamic_linker" && can_build_shared=no
11537 michael 5052
11538     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11539 michael 5059 if test yes = "$GCC"; then
11540 michael 5052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11541     fi
11542    
11543 michael 5059 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11544     sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11545     fi
11546     if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11547     sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11548     fi
11549    
11550    
11551    
11552    
11553    
11554    
11555    
11556    
11557    
11558    
11559    
11560    
11561    
11562    
11563    
11564    
11565    
11566    
11567    
11568    
11569    
11570    
11571    
11572    
11573    
11574    
11575    
11576    
11577    
11578    
11579    
11580    
11581    
11582    
11583    
11584    
11585    
11586    
11587    
11588    
11589    
11590    
11591    
11592    
11593    
11594    
11595    
11596    
11597    
11598    
11599    
11600    
11601    
11602    
11603    
11604    
11605    
11606    
11607    
11608    
11609    
11610    
11611    
11612    
11613    
11614    
11615    
11616    
11617    
11618    
11619    
11620    
11621    
11622    
11623    
11624    
11625    
11626    
11627    
11628    
11629    
11630    
11631    
11632    
11633    
11634    
11635    
11636    
11637    
11638    
11639    
11640    
11641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11642     $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11643 michael 5052 hardcode_action=
11644 michael 5059 if test -n "$hardcode_libdir_flag_spec" ||
11645     test -n "$runpath_var" ||
11646     test yes = "$hardcode_automatic"; then
11647 michael 5052
11648 michael 5059 # We can hardcode non-existent directories.
11649     if test no != "$hardcode_direct" &&
11650 michael 5052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11651     # have to relink, otherwise we might link with an installed library
11652     # when we should be linking with a yet-to-be-installed one
11653 michael 5059 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11654     test no != "$hardcode_minus_L"; then
11655 michael 5052 # Linking always hardcodes the temporary library directory.
11656     hardcode_action=relink
11657     else
11658     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11659     hardcode_action=immediate
11660     fi
11661     else
11662     # We cannot hardcode anything, or else we can only hardcode existing
11663     # directories.
11664     hardcode_action=unsupported
11665     fi
11666 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11667     $as_echo "$hardcode_action" >&6; }
11668 michael 5052
11669 michael 5059 if test relink = "$hardcode_action" ||
11670     test yes = "$inherit_rpath"; then
11671 michael 5052 # Fast installation is not supported
11672     enable_fast_install=no
11673 michael 5059 elif test yes = "$shlibpath_overrides_runpath" ||
11674     test no = "$enable_shared"; then
11675 michael 5052 # Fast installation is not necessary
11676     enable_fast_install=needless
11677     fi
11678    
11679    
11680 michael 5059
11681    
11682    
11683    
11684     if test yes != "$enable_dlopen"; then
11685 michael 5052 enable_dlopen=unknown
11686     enable_dlopen_self=unknown
11687     enable_dlopen_self_static=unknown
11688     else
11689     lt_cv_dlopen=no
11690     lt_cv_dlopen_libs=
11691    
11692     case $host_os in
11693     beos*)
11694 michael 5059 lt_cv_dlopen=load_add_on
11695 michael 5052 lt_cv_dlopen_libs=
11696     lt_cv_dlopen_self=yes
11697     ;;
11698    
11699 michael 5059 mingw* | pw32* | cegcc*)
11700     lt_cv_dlopen=LoadLibrary
11701 michael 5052 lt_cv_dlopen_libs=
11702 michael 5059 ;;
11703 michael 5052
11704     cygwin*)
11705 michael 5059 lt_cv_dlopen=dlopen
11706 michael 5052 lt_cv_dlopen_libs=
11707 michael 5059 ;;
11708 michael 5052
11709     darwin*)
11710 michael 5059 # if libdl is installed we need to link against it
11711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11712     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11713     if ${ac_cv_lib_dl_dlopen+:} false; then :
11714     $as_echo_n "(cached) " >&6
11715 michael 5052 else
11716     ac_check_lib_save_LIBS=$LIBS
11717     LIBS="-ldl $LIBS"
11718 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 michael 5052 /* end confdefs.h. */
11720    
11721     /* Override any GCC internal prototype to avoid an error.
11722     Use char because int might match the return type of a GCC
11723     builtin and then its argument prototype would still apply. */
11724     #ifdef __cplusplus
11725     extern "C"
11726     #endif
11727     char dlopen ();
11728     int
11729     main ()
11730     {
11731     return dlopen ();
11732     ;
11733     return 0;
11734     }
11735     _ACEOF
11736 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11737 michael 5052 ac_cv_lib_dl_dlopen=yes
11738     else
11739 michael 5059 ac_cv_lib_dl_dlopen=no
11740 michael 5052 fi
11741     rm -f core conftest.err conftest.$ac_objext \
11742 michael 5059 conftest$ac_exeext conftest.$ac_ext
11743 michael 5052 LIBS=$ac_check_lib_save_LIBS
11744     fi
11745 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11746     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11747     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11748     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11749 michael 5052 else
11750    
11751 michael 5059 lt_cv_dlopen=dyld
11752 michael 5052 lt_cv_dlopen_libs=
11753     lt_cv_dlopen_self=yes
11754    
11755     fi
11756    
11757 michael 5059 ;;
11758 michael 5052
11759 michael 5059 tpf*)
11760     # Don't try to run any link tests for TPF. We know it's impossible
11761     # because TPF is a cross-compiler, and we know how we open DSOs.
11762     lt_cv_dlopen=dlopen
11763     lt_cv_dlopen_libs=
11764     lt_cv_dlopen_self=no
11765     ;;
11766    
11767 michael 5052 *)
11768 michael 5059 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11769     if test "x$ac_cv_func_shl_load" = xyes; then :
11770     lt_cv_dlopen=shl_load
11771 michael 5052 else
11772 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11773     $as_echo_n "checking for shl_load in -ldld... " >&6; }
11774     if ${ac_cv_lib_dld_shl_load+:} false; then :
11775     $as_echo_n "(cached) " >&6
11776 michael 5052 else
11777     ac_check_lib_save_LIBS=$LIBS
11778     LIBS="-ldld $LIBS"
11779 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 michael 5052 /* end confdefs.h. */
11781    
11782     /* Override any GCC internal prototype to avoid an error.
11783     Use char because int might match the return type of a GCC
11784     builtin and then its argument prototype would still apply. */
11785     #ifdef __cplusplus
11786     extern "C"
11787     #endif
11788     char shl_load ();
11789     int
11790     main ()
11791     {
11792     return shl_load ();
11793     ;
11794     return 0;
11795     }
11796     _ACEOF
11797 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11798 michael 5052 ac_cv_lib_dld_shl_load=yes
11799     else
11800 michael 5059 ac_cv_lib_dld_shl_load=no
11801 michael 5052 fi
11802     rm -f core conftest.err conftest.$ac_objext \
11803 michael 5059 conftest$ac_exeext conftest.$ac_ext
11804 michael 5052 LIBS=$ac_check_lib_save_LIBS
11805     fi
11806 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11807     $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11808     if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11809     lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11810 michael 5052 else
11811 michael 5059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11812     if test "x$ac_cv_func_dlopen" = xyes; then :
11813     lt_cv_dlopen=dlopen
11814 michael 5052 else
11815 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11816     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11817     if ${ac_cv_lib_dl_dlopen+:} false; then :
11818     $as_echo_n "(cached) " >&6
11819 michael 5052 else
11820     ac_check_lib_save_LIBS=$LIBS
11821     LIBS="-ldl $LIBS"
11822 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 michael 5052 /* end confdefs.h. */
11824    
11825     /* Override any GCC internal prototype to avoid an error.
11826     Use char because int might match the return type of a GCC
11827     builtin and then its argument prototype would still apply. */
11828     #ifdef __cplusplus
11829     extern "C"
11830     #endif
11831     char dlopen ();
11832     int
11833     main ()
11834     {
11835     return dlopen ();
11836     ;
11837     return 0;
11838     }
11839     _ACEOF
11840 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11841 michael 5052 ac_cv_lib_dl_dlopen=yes
11842     else
11843 michael 5059 ac_cv_lib_dl_dlopen=no
11844 michael 5052 fi
11845     rm -f core conftest.err conftest.$ac_objext \
11846 michael 5059 conftest$ac_exeext conftest.$ac_ext
11847 michael 5052 LIBS=$ac_check_lib_save_LIBS
11848     fi
11849 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11850     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11851     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11852     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11853 michael 5052 else
11854 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11855     $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11856     if ${ac_cv_lib_svld_dlopen+:} false; then :
11857     $as_echo_n "(cached) " >&6
11858 michael 5052 else
11859     ac_check_lib_save_LIBS=$LIBS
11860     LIBS="-lsvld $LIBS"
11861 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 michael 5052 /* end confdefs.h. */
11863    
11864     /* Override any GCC internal prototype to avoid an error.
11865     Use char because int might match the return type of a GCC
11866     builtin and then its argument prototype would still apply. */
11867     #ifdef __cplusplus
11868     extern "C"
11869     #endif
11870     char dlopen ();
11871     int
11872     main ()
11873     {
11874     return dlopen ();
11875     ;
11876     return 0;
11877     }
11878     _ACEOF
11879 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11880 michael 5052 ac_cv_lib_svld_dlopen=yes
11881     else
11882 michael 5059 ac_cv_lib_svld_dlopen=no
11883 michael 5052 fi
11884     rm -f core conftest.err conftest.$ac_objext \
11885 michael 5059 conftest$ac_exeext conftest.$ac_ext
11886 michael 5052 LIBS=$ac_check_lib_save_LIBS
11887     fi
11888 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11889     $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11890     if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11891     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11892 michael 5052 else
11893 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11894     $as_echo_n "checking for dld_link in -ldld... " >&6; }
11895     if ${ac_cv_lib_dld_dld_link+:} false; then :
11896     $as_echo_n "(cached) " >&6
11897 michael 5052 else
11898     ac_check_lib_save_LIBS=$LIBS
11899     LIBS="-ldld $LIBS"
11900 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 michael 5052 /* end confdefs.h. */
11902    
11903     /* Override any GCC internal prototype to avoid an error.
11904     Use char because int might match the return type of a GCC
11905     builtin and then its argument prototype would still apply. */
11906     #ifdef __cplusplus
11907     extern "C"
11908     #endif
11909     char dld_link ();
11910     int
11911     main ()
11912     {
11913     return dld_link ();
11914     ;
11915     return 0;
11916     }
11917     _ACEOF
11918 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11919 michael 5052 ac_cv_lib_dld_dld_link=yes
11920     else
11921 michael 5059 ac_cv_lib_dld_dld_link=no
11922 michael 5052 fi
11923     rm -f core conftest.err conftest.$ac_objext \
11924 michael 5059 conftest$ac_exeext conftest.$ac_ext
11925 michael 5052 LIBS=$ac_check_lib_save_LIBS
11926     fi
11927 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11928     $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11929     if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11930     lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11931 michael 5052 fi
11932    
11933    
11934     fi
11935    
11936    
11937     fi
11938    
11939    
11940     fi
11941    
11942    
11943     fi
11944    
11945    
11946     fi
11947    
11948     ;;
11949     esac
11950    
11951 michael 5059 if test no = "$lt_cv_dlopen"; then
11952     enable_dlopen=no
11953     else
11954 michael 5052 enable_dlopen=yes
11955     fi
11956    
11957     case $lt_cv_dlopen in
11958     dlopen)
11959 michael 5059 save_CPPFLAGS=$CPPFLAGS
11960     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11961 michael 5052
11962 michael 5059 save_LDFLAGS=$LDFLAGS
11963 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11964    
11965 michael 5059 save_LIBS=$LIBS
11966 michael 5052 LIBS="$lt_cv_dlopen_libs $LIBS"
11967    
11968 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11969     $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11970     if ${lt_cv_dlopen_self+:} false; then :
11971     $as_echo_n "(cached) " >&6
11972 michael 5052 else
11973 michael 5059 if test yes = "$cross_compiling"; then :
11974 michael 5052 lt_cv_dlopen_self=cross
11975     else
11976     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11977     lt_status=$lt_dlunknown
11978 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11979     #line $LINENO "configure"
11980 michael 5052 #include "confdefs.h"
11981    
11982     #if HAVE_DLFCN_H
11983     #include <dlfcn.h>
11984     #endif
11985    
11986     #include <stdio.h>
11987    
11988     #ifdef RTLD_GLOBAL
11989     # define LT_DLGLOBAL RTLD_GLOBAL
11990     #else
11991     # ifdef DL_GLOBAL
11992     # define LT_DLGLOBAL DL_GLOBAL
11993     # else
11994     # define LT_DLGLOBAL 0
11995     # endif
11996     #endif
11997    
11998     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11999     find out it does not work in some platform. */
12000     #ifndef LT_DLLAZY_OR_NOW
12001     # ifdef RTLD_LAZY
12002     # define LT_DLLAZY_OR_NOW RTLD_LAZY
12003     # else
12004     # ifdef DL_LAZY
12005     # define LT_DLLAZY_OR_NOW DL_LAZY
12006     # else
12007     # ifdef RTLD_NOW
12008     # define LT_DLLAZY_OR_NOW RTLD_NOW
12009     # else
12010     # ifdef DL_NOW
12011     # define LT_DLLAZY_OR_NOW DL_NOW
12012     # else
12013     # define LT_DLLAZY_OR_NOW 0
12014     # endif
12015     # endif
12016     # endif
12017     # endif
12018     #endif
12019    
12020 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
12021     correspondingly for the symbols needed. */
12022     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12023     int fnord () __attribute__((visibility("default")));
12024 michael 5052 #endif
12025    
12026 michael 5059 int fnord () { return 42; }
12027 michael 5052 int main ()
12028     {
12029     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12030     int status = $lt_dlunknown;
12031    
12032     if (self)
12033     {
12034     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12035 michael 5059 else
12036     {
12037     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12038     else puts (dlerror ());
12039     }
12040 michael 5052 /* dlclose (self); */
12041     }
12042     else
12043     puts (dlerror ());
12044    
12045 michael 5059 return status;
12046 michael 5052 }
12047 michael 5059 _LT_EOF
12048     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12049 michael 5052 (eval $ac_link) 2>&5
12050     ac_status=$?
12051 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12052     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12053 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
12054     lt_status=$?
12055     case x$lt_status in
12056     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12057     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12058     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12059     esac
12060     else :
12061     # compilation failed
12062     lt_cv_dlopen_self=no
12063     fi
12064     fi
12065     rm -fr conftest*
12066    
12067    
12068     fi
12069 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12070     $as_echo "$lt_cv_dlopen_self" >&6; }
12071 michael 5052
12072 michael 5059 if test yes = "$lt_cv_dlopen_self"; then
12073 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12074 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12075     $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12076     if ${lt_cv_dlopen_self_static+:} false; then :
12077     $as_echo_n "(cached) " >&6
12078 michael 5052 else
12079 michael 5059 if test yes = "$cross_compiling"; then :
12080 michael 5052 lt_cv_dlopen_self_static=cross
12081     else
12082     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12083     lt_status=$lt_dlunknown
12084 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
12085     #line $LINENO "configure"
12086 michael 5052 #include "confdefs.h"
12087    
12088     #if HAVE_DLFCN_H
12089     #include <dlfcn.h>
12090     #endif
12091    
12092     #include <stdio.h>
12093    
12094     #ifdef RTLD_GLOBAL
12095     # define LT_DLGLOBAL RTLD_GLOBAL
12096     #else
12097     # ifdef DL_GLOBAL
12098     # define LT_DLGLOBAL DL_GLOBAL
12099     # else
12100     # define LT_DLGLOBAL 0
12101     # endif
12102     #endif
12103    
12104     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12105     find out it does not work in some platform. */
12106     #ifndef LT_DLLAZY_OR_NOW
12107     # ifdef RTLD_LAZY
12108     # define LT_DLLAZY_OR_NOW RTLD_LAZY
12109     # else
12110     # ifdef DL_LAZY
12111     # define LT_DLLAZY_OR_NOW DL_LAZY
12112     # else
12113     # ifdef RTLD_NOW
12114     # define LT_DLLAZY_OR_NOW RTLD_NOW
12115     # else
12116     # ifdef DL_NOW
12117     # define LT_DLLAZY_OR_NOW DL_NOW
12118     # else
12119     # define LT_DLLAZY_OR_NOW 0
12120     # endif
12121     # endif
12122     # endif
12123     # endif
12124     #endif
12125    
12126 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
12127     correspondingly for the symbols needed. */
12128     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12129     int fnord () __attribute__((visibility("default")));
12130 michael 5052 #endif
12131    
12132 michael 5059 int fnord () { return 42; }
12133 michael 5052 int main ()
12134     {
12135     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12136     int status = $lt_dlunknown;
12137    
12138     if (self)
12139     {
12140     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12141 michael 5059 else
12142     {
12143     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12144     else puts (dlerror ());
12145     }
12146 michael 5052 /* dlclose (self); */
12147     }
12148     else
12149     puts (dlerror ());
12150    
12151 michael 5059 return status;
12152 michael 5052 }
12153 michael 5059 _LT_EOF
12154     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12155 michael 5052 (eval $ac_link) 2>&5
12156     ac_status=$?
12157 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12158     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12159 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
12160     lt_status=$?
12161     case x$lt_status in
12162     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12163     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12164     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12165     esac
12166     else :
12167     # compilation failed
12168     lt_cv_dlopen_self_static=no
12169     fi
12170     fi
12171     rm -fr conftest*
12172    
12173    
12174     fi
12175 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12176     $as_echo "$lt_cv_dlopen_self_static" >&6; }
12177 michael 5052 fi
12178    
12179 michael 5059 CPPFLAGS=$save_CPPFLAGS
12180     LDFLAGS=$save_LDFLAGS
12181     LIBS=$save_LIBS
12182 michael 5052 ;;
12183     esac
12184    
12185     case $lt_cv_dlopen_self in
12186     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12187     *) enable_dlopen_self=unknown ;;
12188     esac
12189    
12190     case $lt_cv_dlopen_self_static in
12191     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12192     *) enable_dlopen_self_static=unknown ;;
12193     esac
12194     fi
12195    
12196    
12197    
12198    
12199    
12200    
12201    
12202    
12203    
12204    
12205    
12206    
12207    
12208    
12209    
12210    
12211    
12212 michael 5059 striplib=
12213     old_striplib=
12214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12215     $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12216     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12217     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12218     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12219     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220     $as_echo "yes" >&6; }
12221 michael 5052 else
12222 michael 5059 # FIXME - insert some real tests, host_os isn't really good enough
12223 michael 5052 case $host_os in
12224 michael 5059 darwin*)
12225     if test -n "$STRIP"; then
12226     striplib="$STRIP -x"
12227     old_striplib="$STRIP -S"
12228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229     $as_echo "yes" >&6; }
12230 michael 5052 else
12231 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232     $as_echo "no" >&6; }
12233 michael 5052 fi
12234     ;;
12235     *)
12236 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237     $as_echo "no" >&6; }
12238 michael 5052 ;;
12239     esac
12240     fi
12241    
12242    
12243    
12244    
12245    
12246    
12247    
12248    
12249    
12250    
12251    
12252    
12253 michael 5059 # Report what library types will actually be built
12254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12255     $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12257     $as_echo "$can_build_shared" >&6; }
12258 michael 5052
12259 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12260     $as_echo_n "checking whether to build shared libraries... " >&6; }
12261     test no = "$can_build_shared" && enable_shared=no
12262 michael 5052
12263 michael 5059 # On AIX, shared libraries and static libraries use the same namespace, and
12264     # are all built from PIC.
12265 michael 5052 case $host_os in
12266 michael 5059 aix3*)
12267     test yes = "$enable_shared" && enable_static=no
12268     if test -n "$RANLIB"; then
12269     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12270     postinstall_cmds='$RANLIB $lib'
12271 michael 5052 fi
12272     ;;
12273    
12274 michael 5059 aix[4-9]*)
12275     if test ia64 != "$host_cpu"; then
12276     case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12277     yes,aix,yes) ;; # shared object as lib.so file only
12278     yes,svr4,*) ;; # shared object as lib.so archive member only
12279     yes,*) enable_static=no ;; # shared object in lib.a archive as well
12280 michael 5052 esac
12281     fi
12282     ;;
12283     esac
12284 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12285     $as_echo "$enable_shared" >&6; }
12286 michael 5052
12287 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12288     $as_echo_n "checking whether to build static libraries... " >&6; }
12289     # Make sure either enable_shared or enable_static is yes.
12290     test yes = "$enable_shared" || enable_static=yes
12291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12292     $as_echo "$enable_static" >&6; }
12293 michael 5052
12294    
12295    
12296    
12297     fi
12298     ac_ext=c
12299     ac_cpp='$CPP $CPPFLAGS'
12300     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12301     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12302     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12303    
12304 michael 5059 CC=$lt_save_CC
12305 michael 5052
12306    
12307    
12308    
12309    
12310    
12311    
12312    
12313    
12314    
12315    
12316    
12317    
12318    
12319    
12320 michael 5059 ac_config_commands="$ac_config_commands libtool"
12321 michael 5052
12322    
12323    
12324    
12325 michael 5059 # Only expand once:
12326 michael 5052
12327    
12328    
12329    
12330 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12331     $as_echo_n "checking for ANSI C header files... " >&6; }
12332     if ${ac_cv_header_stdc+:} false; then :
12333     $as_echo_n "(cached) " >&6
12334 michael 5052 else
12335 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 michael 5052 /* end confdefs.h. */
12337     #include <stdlib.h>
12338     #include <stdarg.h>
12339     #include <string.h>
12340     #include <float.h>
12341    
12342     int
12343     main ()
12344     {
12345    
12346     ;
12347     return 0;
12348     }
12349     _ACEOF
12350 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12351 michael 5052 ac_cv_header_stdc=yes
12352     else
12353 michael 5059 ac_cv_header_stdc=no
12354 michael 5052 fi
12355     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356    
12357     if test $ac_cv_header_stdc = yes; then
12358     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12359 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 michael 5052 /* end confdefs.h. */
12361     #include <string.h>
12362    
12363     _ACEOF
12364     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12365 michael 5059 $EGREP "memchr" >/dev/null 2>&1; then :
12366    
12367 michael 5052 else
12368     ac_cv_header_stdc=no
12369     fi
12370     rm -f conftest*
12371    
12372     fi
12373    
12374     if test $ac_cv_header_stdc = yes; then
12375     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12376 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 michael 5052 /* end confdefs.h. */
12378     #include <stdlib.h>
12379    
12380     _ACEOF
12381     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12382 michael 5059 $EGREP "free" >/dev/null 2>&1; then :
12383    
12384 michael 5052 else
12385     ac_cv_header_stdc=no
12386     fi
12387     rm -f conftest*
12388    
12389     fi
12390    
12391     if test $ac_cv_header_stdc = yes; then
12392     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12393 michael 5059 if test "$cross_compiling" = yes; then :
12394 michael 5052 :
12395     else
12396 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 michael 5052 /* end confdefs.h. */
12398     #include <ctype.h>
12399     #include <stdlib.h>
12400     #if ((' ' & 0x0FF) == 0x020)
12401     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12402     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12403     #else
12404     # define ISLOWER(c) \
12405     (('a' <= (c) && (c) <= 'i') \
12406     || ('j' <= (c) && (c) <= 'r') \
12407     || ('s' <= (c) && (c) <= 'z'))
12408     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12409     #endif
12410    
12411     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12412     int
12413     main ()
12414     {
12415     int i;
12416     for (i = 0; i < 256; i++)
12417     if (XOR (islower (i), ISLOWER (i))
12418     || toupper (i) != TOUPPER (i))
12419     return 2;
12420     return 0;
12421     }
12422     _ACEOF
12423 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
12424    
12425 michael 5052 else
12426 michael 5059 ac_cv_header_stdc=no
12427 michael 5052 fi
12428 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12429     conftest.$ac_objext conftest.beam conftest.$ac_ext
12430 michael 5052 fi
12431    
12432     fi
12433     fi
12434 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12435     $as_echo "$ac_cv_header_stdc" >&6; }
12436 michael 5052 if test $ac_cv_header_stdc = yes; then
12437    
12438 michael 5059 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12439 michael 5052
12440     fi
12441    
12442    
12443     for ac_header in sys/poll.h
12444 michael 5059 do :
12445     ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
12446     if test "x$ac_cv_header_sys_poll_h" = xyes; then :
12447 michael 5052 cat >>confdefs.h <<_ACEOF
12448 michael 5059 #define HAVE_SYS_POLL_H 1
12449 michael 5052 _ACEOF
12450     have_poll_sys_h=yes
12451     else
12452     have_sys_poll_h=no
12453     fi
12454    
12455     done
12456    
12457    
12458     for ac_header in fcntl.h sys/time.h unistd.h strings.h
12459 michael 5059 do :
12460     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12461     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12462     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12463 michael 5052 cat >>confdefs.h <<_ACEOF
12464 michael 5059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12465 michael 5052 _ACEOF
12466    
12467     fi
12468    
12469     done
12470    
12471    
12472 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12473     $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12474     if ${ac_cv_c_const+:} false; then :
12475     $as_echo_n "(cached) " >&6
12476 michael 5052 else
12477 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 michael 5052 /* end confdefs.h. */
12479    
12480     int
12481     main ()
12482     {
12483 michael 5059
12484 michael 5052 #ifndef __cplusplus
12485 michael 5059 /* Ultrix mips cc rejects this sort of thing. */
12486 michael 5052 typedef int charset[2];
12487 michael 5059 const charset cs = { 0, 0 };
12488 michael 5052 /* SunOS 4.1.1 cc rejects this. */
12489 michael 5059 char const *const *pcpcc;
12490     char **ppc;
12491 michael 5052 /* NEC SVR4.0.2 mips cc rejects this. */
12492     struct point {int x, y;};
12493     static struct point const zero = {0,0};
12494     /* AIX XL C 1.02.0.0 rejects this.
12495     It does not let you subtract one const X* pointer from another in
12496     an arm of an if-expression whose if-part is not a constant
12497     expression */
12498     const char *g = "string";
12499 michael 5059 pcpcc = &g + (g ? g-g : 0);
12500 michael 5052 /* HPUX 7.0 cc rejects these. */
12501 michael 5059 ++pcpcc;
12502     ppc = (char**) pcpcc;
12503     pcpcc = (char const *const *) ppc;
12504     { /* SCO 3.2v4 cc rejects this sort of thing. */
12505     char tx;
12506     char *t = &tx;
12507 michael 5052 char const *s = 0 ? (char *) 0 : (char const *) 0;
12508    
12509     *t++ = 0;
12510     if (s) return 0;
12511     }
12512     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12513     int x[] = {25, 17};
12514     const int *foo = &x[0];
12515     ++foo;
12516     }
12517     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12518     typedef const int *iptr;
12519     iptr p = 0;
12520     ++p;
12521     }
12522 michael 5059 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12523 michael 5052 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12524 michael 5059 struct s { int j; const int *ap[3]; } bx;
12525     struct s *b = &bx; b->j = 5;
12526 michael 5052 }
12527     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12528     const int foo = 10;
12529     if (!foo) return 0;
12530     }
12531 michael 5059 return !cs[0] && !zero.x;
12532 michael 5052 #endif
12533    
12534     ;
12535     return 0;
12536     }
12537     _ACEOF
12538 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12539 michael 5052 ac_cv_c_const=yes
12540     else
12541 michael 5059 ac_cv_c_const=no
12542 michael 5052 fi
12543     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12544     fi
12545 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12546     $as_echo "$ac_cv_c_const" >&6; }
12547 michael 5052 if test $ac_cv_c_const = no; then
12548    
12549 michael 5059 $as_echo "#define const /**/" >>confdefs.h
12550 michael 5052
12551     fi
12552    
12553 michael 5059 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12554     if test "x$ac_cv_type_size_t" = xyes; then :
12555 michael 5052
12556     else
12557    
12558     cat >>confdefs.h <<_ACEOF
12559     #define size_t unsigned int
12560     _ACEOF
12561    
12562     fi
12563    
12564 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12565     $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12566     if ${ac_cv_header_time+:} false; then :
12567     $as_echo_n "(cached) " >&6
12568 michael 5052 else
12569 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 michael 5052 /* end confdefs.h. */
12571     #include <sys/types.h>
12572     #include <sys/time.h>
12573     #include <time.h>
12574    
12575     int
12576     main ()
12577     {
12578     if ((struct tm *) 0)
12579     return 0;
12580     ;
12581     return 0;
12582     }
12583     _ACEOF
12584 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12585 michael 5052 ac_cv_header_time=yes
12586     else
12587 michael 5059 ac_cv_header_time=no
12588 michael 5052 fi
12589     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590     fi
12591 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12592     $as_echo "$ac_cv_header_time" >&6; }
12593 michael 5052 if test $ac_cv_header_time = yes; then
12594    
12595 michael 5059 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12596 michael 5052
12597     fi
12598    
12599 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12600     $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12601     if ${ac_cv_struct_tm+:} false; then :
12602     $as_echo_n "(cached) " >&6
12603 michael 5052 else
12604 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 michael 5052 /* end confdefs.h. */
12606     #include <sys/types.h>
12607     #include <time.h>
12608    
12609     int
12610     main ()
12611     {
12612 michael 5059 struct tm tm;
12613     int *p = &tm.tm_sec;
12614     return !p;
12615 michael 5052 ;
12616     return 0;
12617     }
12618     _ACEOF
12619 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12620 michael 5052 ac_cv_struct_tm=time.h
12621     else
12622 michael 5059 ac_cv_struct_tm=sys/time.h
12623 michael 5052 fi
12624     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625     fi
12626 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12627     $as_echo "$ac_cv_struct_tm" >&6; }
12628 michael 5052 if test $ac_cv_struct_tm = sys/time.h; then
12629    
12630 michael 5059 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12631 michael 5052
12632     fi
12633    
12634    
12635 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12636     $as_echo_n "checking return type of signal handlers... " >&6; }
12637     if ${ac_cv_type_signal+:} false; then :
12638     $as_echo_n "(cached) " >&6
12639 michael 5052 else
12640 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 michael 5052 /* end confdefs.h. */
12642     #include <sys/types.h>
12643     #include <signal.h>
12644    
12645     int
12646     main ()
12647     {
12648     return *(signal (0, 0)) (0) == 1;
12649     ;
12650     return 0;
12651     }
12652     _ACEOF
12653 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12654 michael 5052 ac_cv_type_signal=int
12655     else
12656 michael 5059 ac_cv_type_signal=void
12657 michael 5052 fi
12658     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659     fi
12660 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12661     $as_echo "$ac_cv_type_signal" >&6; }
12662 michael 5052
12663     cat >>confdefs.h <<_ACEOF
12664     #define RETSIGTYPE $ac_cv_type_signal
12665     _ACEOF
12666    
12667    
12668     for ac_func in strftime
12669 michael 5059 do :
12670     ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12671     if test "x$ac_cv_func_strftime" = xyes; then :
12672 michael 5052 cat >>confdefs.h <<_ACEOF
12673 michael 5059 #define HAVE_STRFTIME 1
12674 michael 5052 _ACEOF
12675    
12676     else
12677     # strftime is in -lintl on SCO UNIX.
12678 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12679     $as_echo_n "checking for strftime in -lintl... " >&6; }
12680     if ${ac_cv_lib_intl_strftime+:} false; then :
12681     $as_echo_n "(cached) " >&6
12682 michael 5052 else
12683     ac_check_lib_save_LIBS=$LIBS
12684     LIBS="-lintl $LIBS"
12685 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 michael 5052 /* end confdefs.h. */
12687    
12688     /* Override any GCC internal prototype to avoid an error.
12689     Use char because int might match the return type of a GCC
12690     builtin and then its argument prototype would still apply. */
12691     #ifdef __cplusplus
12692     extern "C"
12693     #endif
12694     char strftime ();
12695     int
12696     main ()
12697     {
12698     return strftime ();
12699     ;
12700     return 0;
12701     }
12702     _ACEOF
12703 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12704 michael 5052 ac_cv_lib_intl_strftime=yes
12705     else
12706 michael 5059 ac_cv_lib_intl_strftime=no
12707 michael 5052 fi
12708     rm -f core conftest.err conftest.$ac_objext \
12709 michael 5059 conftest$ac_exeext conftest.$ac_ext
12710 michael 5052 LIBS=$ac_check_lib_save_LIBS
12711     fi
12712 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12713     $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12714     if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12715     $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12716 michael 5052
12717     LIBS="-lintl $LIBS"
12718     fi
12719    
12720     fi
12721     done
12722    
12723    
12724    
12725     for ac_prog in 'bison -y' byacc
12726     do
12727     # Extract the first word of "$ac_prog", so it can be a program name with args.
12728     set dummy $ac_prog; ac_word=$2
12729 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730     $as_echo_n "checking for $ac_word... " >&6; }
12731     if ${ac_cv_prog_YACC+:} false; then :
12732     $as_echo_n "(cached) " >&6
12733 michael 5052 else
12734     if test -n "$YACC"; then
12735     ac_cv_prog_YACC="$YACC" # Let the user override the test.
12736     else
12737     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738     for as_dir in $PATH
12739     do
12740     IFS=$as_save_IFS
12741     test -z "$as_dir" && as_dir=.
12742 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12743     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12744 michael 5052 ac_cv_prog_YACC="$ac_prog"
12745 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 michael 5052 break 2
12747     fi
12748     done
12749 michael 5059 done
12750 michael 5052 IFS=$as_save_IFS
12751    
12752     fi
12753     fi
12754     YACC=$ac_cv_prog_YACC
12755     if test -n "$YACC"; then
12756 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12757     $as_echo "$YACC" >&6; }
12758 michael 5052 else
12759 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760     $as_echo "no" >&6; }
12761 michael 5052 fi
12762    
12763    
12764     test -n "$YACC" && break
12765     done
12766     test -n "$YACC" || YACC="yacc"
12767    
12768    
12769     for ac_prog in flex lex
12770     do
12771     # Extract the first word of "$ac_prog", so it can be a program name with args.
12772     set dummy $ac_prog; ac_word=$2
12773 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774     $as_echo_n "checking for $ac_word... " >&6; }
12775     if ${ac_cv_prog_LEX+:} false; then :
12776     $as_echo_n "(cached) " >&6
12777 michael 5052 else
12778     if test -n "$LEX"; then
12779     ac_cv_prog_LEX="$LEX" # Let the user override the test.
12780     else
12781     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782     for as_dir in $PATH
12783     do
12784     IFS=$as_save_IFS
12785     test -z "$as_dir" && as_dir=.
12786 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12787     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12788 michael 5052 ac_cv_prog_LEX="$ac_prog"
12789 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 michael 5052 break 2
12791     fi
12792     done
12793 michael 5059 done
12794 michael 5052 IFS=$as_save_IFS
12795    
12796     fi
12797     fi
12798     LEX=$ac_cv_prog_LEX
12799     if test -n "$LEX"; then
12800 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12801     $as_echo "$LEX" >&6; }
12802 michael 5052 else
12803 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804     $as_echo "no" >&6; }
12805 michael 5052 fi
12806    
12807    
12808     test -n "$LEX" && break
12809     done
12810     test -n "$LEX" || LEX=":"
12811    
12812 michael 5059 if test "x$LEX" != "x:"; then
12813     cat >conftest.l <<_ACEOF
12814     %%
12815     a { ECHO; }
12816     b { REJECT; }
12817     c { yymore (); }
12818     d { yyless (1); }
12819     e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12820     yyless ((input () != 0)); }
12821     f { unput (yytext[0]); }
12822     . { BEGIN INITIAL; }
12823     %%
12824     #ifdef YYTEXT_POINTER
12825     extern char *yytext;
12826 michael 5052 #endif
12827     int
12828 michael 5059 main (void)
12829 michael 5052 {
12830 michael 5059 return ! yylex () + ! yywrap ();
12831 michael 5052 }
12832     _ACEOF
12833 michael 5059 { { ac_try="$LEX conftest.l"
12834 michael 5052 case "(($ac_try" in
12835     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836     *) ac_try_echo=$ac_try;;
12837     esac
12838 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12839     $as_echo "$ac_try_echo"; } >&5
12840     (eval "$LEX conftest.l") 2>&5
12841 michael 5052 ac_status=$?
12842 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12843     test $ac_status = 0; }
12844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12845     $as_echo_n "checking lex output file root... " >&6; }
12846     if ${ac_cv_prog_lex_root+:} false; then :
12847     $as_echo_n "(cached) " >&6
12848 michael 5052 else
12849    
12850 michael 5059 if test -f lex.yy.c; then
12851     ac_cv_prog_lex_root=lex.yy
12852     elif test -f lexyy.c; then
12853     ac_cv_prog_lex_root=lexyy
12854     else
12855     as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12856 michael 5052 fi
12857 michael 5059 fi
12858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12859     $as_echo "$ac_cv_prog_lex_root" >&6; }
12860     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12861 michael 5052
12862 michael 5059 if test -z "${LEXLIB+set}"; then
12863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12864     $as_echo_n "checking lex library... " >&6; }
12865     if ${ac_cv_lib_lex+:} false; then :
12866     $as_echo_n "(cached) " >&6
12867 michael 5052 else
12868 michael 5059
12869     ac_save_LIBS=$LIBS
12870     ac_cv_lib_lex='none needed'
12871     for ac_lib in '' -lfl -ll; do
12872     LIBS="$ac_lib $ac_save_LIBS"
12873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 michael 5052 /* end confdefs.h. */
12875 michael 5059 `cat $LEX_OUTPUT_ROOT.c`
12876 michael 5052 _ACEOF
12877 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12878     ac_cv_lib_lex=$ac_lib
12879 michael 5052 fi
12880     rm -f core conftest.err conftest.$ac_objext \
12881 michael 5059 conftest$ac_exeext conftest.$ac_ext
12882     test "$ac_cv_lib_lex" != 'none needed' && break
12883     done
12884     LIBS=$ac_save_LIBS
12885 michael 5052
12886     fi
12887 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12888     $as_echo "$ac_cv_lib_lex" >&6; }
12889     test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12890 michael 5052 fi
12891    
12892    
12893 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12894     $as_echo_n "checking whether yytext is a pointer... " >&6; }
12895     if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12896     $as_echo_n "(cached) " >&6
12897 michael 5052 else
12898     # POSIX says lex can declare yytext either as a pointer or an array; the
12899 michael 5059 # default is implementation-dependent. Figure out which it is, since
12900 michael 5052 # not all implementations provide the %pointer and %array declarations.
12901     ac_cv_prog_lex_yytext_pointer=no
12902     ac_save_LIBS=$LIBS
12903 michael 5059 LIBS="$LEXLIB $ac_save_LIBS"
12904     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905     /* end confdefs.h. */
12906    
12907     #define YYTEXT_POINTER 1
12908 michael 5052 `cat $LEX_OUTPUT_ROOT.c`
12909     _ACEOF
12910 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12911 michael 5052 ac_cv_prog_lex_yytext_pointer=yes
12912     fi
12913     rm -f core conftest.err conftest.$ac_objext \
12914 michael 5059 conftest$ac_exeext conftest.$ac_ext
12915 michael 5052 LIBS=$ac_save_LIBS
12916    
12917     fi
12918 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12919     $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12920 michael 5052 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12921    
12922 michael 5059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12923 michael 5052
12924     fi
12925 michael 5059 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12926 michael 5052
12927     fi
12928     if test "$LEX" = :; then
12929     LEX=${am_missing_run}flex
12930     fi
12931    
12932 michael 5059 ETR_SOCKET_NSL
12933 michael 5052
12934 michael 5059 for ac_func in inet_aton inet_pton socket strdup strstr
12935     do :
12936     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12937     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12938     if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12939     cat >>confdefs.h <<_ACEOF
12940     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12941 michael 5052 _ACEOF
12942    
12943     fi
12944 michael 5059 done
12945 michael 5052
12946    
12947 michael 5059 for ac_func in gethostbyname gethostbyname2
12948     do :
12949     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12950     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12951     if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12952 michael 5052 cat >>confdefs.h <<_ACEOF
12953 michael 5059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12954 michael 5052 _ACEOF
12955    
12956     fi
12957     done
12958    
12959    
12960 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12961     $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12962     if ${ac_cv_c_bigendian+:} false; then :
12963     $as_echo_n "(cached) " >&6
12964 michael 5052 else
12965 michael 5059 ac_cv_c_bigendian=unknown
12966     # See if we're dealing with a universal compiler.
12967     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 michael 5052 /* end confdefs.h. */
12969 michael 5059 #ifndef __APPLE_CC__
12970     not a universal capable compiler
12971     #endif
12972     typedef int dummy;
12973 michael 5052
12974     _ACEOF
12975 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12976 michael 5052
12977 michael 5059 # Check for potential -arch flags. It is not universal unless
12978     # there are at least two -arch flags with different values.
12979     ac_arch=
12980     ac_prev=
12981     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12982     if test -n "$ac_prev"; then
12983     case $ac_word in
12984     i?86 | x86_64 | ppc | ppc64)
12985     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12986     ac_arch=$ac_word
12987     else
12988     ac_cv_c_bigendian=universal
12989     break
12990     fi
12991     ;;
12992     esac
12993     ac_prev=
12994     elif test "x$ac_word" = "x-arch"; then
12995     ac_prev=arch
12996     fi
12997     done
12998 michael 5052 fi
12999 michael 5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000     if test $ac_cv_c_bigendian = unknown; then
13001     # See if sys/param.h defines the BYTE_ORDER macro.
13002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 michael 5052 /* end confdefs.h. */
13004     #include <sys/types.h>
13005 michael 5059 #include <sys/param.h>
13006 michael 5052
13007     int
13008     main ()
13009     {
13010 michael 5059 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13011     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13012     && LITTLE_ENDIAN)
13013     bogus endian macros
13014     #endif
13015 michael 5052
13016     ;
13017     return 0;
13018     }
13019     _ACEOF
13020 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
13021 michael 5052 # It does; now see whether it defined to BIG_ENDIAN or not.
13022 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 michael 5052 /* end confdefs.h. */
13024     #include <sys/types.h>
13025 michael 5059 #include <sys/param.h>
13026 michael 5052
13027     int
13028     main ()
13029     {
13030     #if BYTE_ORDER != BIG_ENDIAN
13031 michael 5059 not big endian
13032     #endif
13033 michael 5052
13034     ;
13035     return 0;
13036     }
13037     _ACEOF
13038 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
13039 michael 5052 ac_cv_c_bigendian=yes
13040     else
13041     ac_cv_c_bigendian=no
13042     fi
13043     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044     fi
13045     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046 michael 5059 fi
13047     if test $ac_cv_c_bigendian = unknown; then
13048     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13049     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 michael 5052 /* end confdefs.h. */
13051 michael 5059 #include <limits.h>
13052 michael 5052
13053     int
13054     main ()
13055     {
13056 michael 5059 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13057     bogus endian macros
13058     #endif
13059 michael 5052
13060     ;
13061     return 0;
13062     }
13063     _ACEOF
13064 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
13065     # It does; now see whether it defined to _BIG_ENDIAN or not.
13066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 michael 5052 /* end confdefs.h. */
13068 michael 5059 #include <limits.h>
13069 michael 5052
13070     int
13071     main ()
13072     {
13073 michael 5059 #ifndef _BIG_ENDIAN
13074     not big endian
13075     #endif
13076 michael 5052
13077     ;
13078     return 0;
13079     }
13080     _ACEOF
13081 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
13082     ac_cv_c_bigendian=yes
13083 michael 5052 else
13084 michael 5059 ac_cv_c_bigendian=no
13085 michael 5052 fi
13086     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087     fi
13088     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 michael 5059 fi
13090     if test $ac_cv_c_bigendian = unknown; then
13091     # Compile a test program.
13092     if test "$cross_compiling" = yes; then :
13093     # Try to guess by grepping values from an object file.
13094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095     /* end confdefs.h. */
13096     short int ascii_mm[] =
13097     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13098     short int ascii_ii[] =
13099     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13100     int use_ascii (int i) {
13101     return ascii_mm[i] + ascii_ii[i];
13102     }
13103     short int ebcdic_ii[] =
13104     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13105     short int ebcdic_mm[] =
13106     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13107     int use_ebcdic (int i) {
13108     return ebcdic_mm[i] + ebcdic_ii[i];
13109     }
13110     extern int foo;
13111 michael 5052
13112     int
13113     main ()
13114     {
13115 michael 5059 return use_ascii (foo) == use_ebcdic (foo);
13116 michael 5052 ;
13117     return 0;
13118     }
13119     _ACEOF
13120 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
13121     if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13122     ac_cv_c_bigendian=yes
13123     fi
13124     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13125     if test "$ac_cv_c_bigendian" = unknown; then
13126     ac_cv_c_bigendian=no
13127     else
13128     # finding both strings is unlikely to happen, but who knows?
13129     ac_cv_c_bigendian=unknown
13130     fi
13131     fi
13132 michael 5052 fi
13133     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134     else
13135 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 michael 5052 /* end confdefs.h. */
13137     $ac_includes_default
13138     int
13139     main ()
13140     {
13141    
13142 michael 5059 /* Are we little or big endian? From Harbison&Steele. */
13143     union
13144     {
13145     long int l;
13146     char c[sizeof (long int)];
13147     } u;
13148     u.l = 1;
13149     return u.c[sizeof (long int) - 1] == 1;
13150 michael 5052
13151     ;
13152     return 0;
13153     }
13154     _ACEOF
13155 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
13156     ac_cv_c_bigendian=no
13157 michael 5052 else
13158 michael 5059 ac_cv_c_bigendian=yes
13159 michael 5052 fi
13160 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13161     conftest.$ac_objext conftest.beam conftest.$ac_ext
13162 michael 5052 fi
13163 michael 5059
13164     fi
13165 michael 5052 fi
13166 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13167     $as_echo "$ac_cv_c_bigendian" >&6; }
13168     case $ac_cv_c_bigendian in #(
13169     yes)
13170     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13171     ;; #(
13172     no)
13173     ;; #(
13174     universal)
13175 michael 5052
13176 michael 5059 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13177 michael 5052
13178 michael 5059 ;; #(
13179     *)
13180     as_fn_error $? "unknown endianness
13181     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13182     esac
13183 michael 5052
13184    
13185 michael 5059 # The cast to long int works around a bug in the HP C Compiler
13186     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13187     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13188     # This bug is HP SR number 8606223364.
13189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13190     $as_echo_n "checking size of int... " >&6; }
13191     if ${ac_cv_sizeof_int+:} false; then :
13192     $as_echo_n "(cached) " >&6
13193 michael 5052 else
13194 michael 5059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13195 michael 5052
13196     else
13197 michael 5059 if test "$ac_cv_type_int" = yes; then
13198     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13199     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13200     as_fn_error 77 "cannot compute sizeof (int)
13201     See \`config.log' for more details" "$LINENO" 5; }
13202     else
13203     ac_cv_sizeof_int=0
13204     fi
13205     fi
13206 michael 5052
13207     fi
13208 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13209     $as_echo "$ac_cv_sizeof_int" >&6; }
13210 michael 5052
13211    
13212    
13213 michael 5059 cat >>confdefs.h <<_ACEOF
13214     #define SIZEOF_INT $ac_cv_sizeof_int
13215 michael 5052 _ACEOF
13216    
13217 michael 5059
13218     # The cast to long int works around a bug in the HP C Compiler
13219     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13220     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13221     # This bug is HP SR number 8606223364.
13222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13223     $as_echo_n "checking size of short... " >&6; }
13224     if ${ac_cv_sizeof_short+:} false; then :
13225     $as_echo_n "(cached) " >&6
13226 michael 5052 else
13227 michael 5059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13228 michael 5052
13229     else
13230 michael 5059 if test "$ac_cv_type_short" = yes; then
13231     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13232     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13233     as_fn_error 77 "cannot compute sizeof (short)
13234     See \`config.log' for more details" "$LINENO" 5; }
13235     else
13236     ac_cv_sizeof_short=0
13237     fi
13238 michael 5052 fi
13239    
13240     fi
13241 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13242     $as_echo "$ac_cv_sizeof_short" >&6; }
13243 michael 5052
13244    
13245    
13246     cat >>confdefs.h <<_ACEOF
13247     #define SIZEOF_SHORT $ac_cv_sizeof_short
13248     _ACEOF
13249    
13250    
13251 michael 5059 # The cast to long int works around a bug in the HP C Compiler
13252     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13253     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13254     # This bug is HP SR number 8606223364.
13255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13256     $as_echo_n "checking size of long... " >&6; }
13257     if ${ac_cv_sizeof_long+:} false; then :
13258     $as_echo_n "(cached) " >&6
13259 michael 5052 else
13260 michael 5059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13261 michael 5052
13262     else
13263     if test "$ac_cv_type_long" = yes; then
13264 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13265     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13266     as_fn_error 77 "cannot compute sizeof (long)
13267     See \`config.log' for more details" "$LINENO" 5; }
13268     else
13269     ac_cv_sizeof_long=0
13270     fi
13271 michael 5052 fi
13272    
13273     fi
13274 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13275     $as_echo "$ac_cv_sizeof_long" >&6; }
13276 michael 5052
13277    
13278    
13279     cat >>confdefs.h <<_ACEOF
13280     #define SIZEOF_LONG $ac_cv_sizeof_long
13281     _ACEOF
13282    
13283    
13284    
13285    
13286    
13287    
13288    
13289    
13290 michael 5059
13291 michael 5052 subdirs="$subdirs src/libopm"
13292    
13293    
13294    
13295     # Check whether --with-werror was given.
13296 michael 5059 if test "${with_werror+set}" = set; then :
13297 michael 5052 withval=$with_werror; CFLAGS="$CFLAGS -Werror"
13298     fi
13299    
13300    
13301     ac_config_files="$ac_config_files Makefile src/Makefile"
13302    
13303     cat >confcache <<\_ACEOF
13304     # This file is a shell script that caches the results of configure
13305     # tests run on this system so they can be shared between configure
13306     # scripts and configure runs, see configure's option --config-cache.
13307     # It is not useful on other systems. If it contains results you don't
13308     # want to keep, you may remove or edit it.
13309     #
13310     # config.status only pays attention to the cache file if you give it
13311     # the --recheck option to rerun configure.
13312     #
13313     # `ac_cv_env_foo' variables (set or unset) will be overridden when
13314     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13315     # following values.
13316    
13317     _ACEOF
13318    
13319     # The following way of writing the cache mishandles newlines in values,
13320     # but we know of no workaround that is simple, portable, and efficient.
13321     # So, we kill variables containing newlines.
13322     # Ultrix sh set writes to stderr and can't be redirected directly,
13323     # and sets the high bit in the cache file unless we assign to the vars.
13324     (
13325     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13326     eval ac_val=\$$ac_var
13327     case $ac_val in #(
13328     *${as_nl}*)
13329     case $ac_var in #(
13330 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13331     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13332 michael 5052 esac
13333     case $ac_var in #(
13334     _ | IFS | as_nl) ;; #(
13335 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13336     *) { eval $ac_var=; unset $ac_var;} ;;
13337 michael 5052 esac ;;
13338     esac
13339     done
13340    
13341     (set) 2>&1 |
13342     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13343     *${as_nl}ac_space=\ *)
13344 michael 5059 # `set' does not quote correctly, so add quotes: double-quote
13345     # substitution turns \\\\ into \\, and sed turns \\ into \.
13346 michael 5052 sed -n \
13347     "s/'/'\\\\''/g;
13348     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13349     ;; #(
13350     *)
13351     # `set' quotes correctly as required by POSIX, so do not add quotes.
13352     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13353     ;;
13354     esac |
13355     sort
13356     ) |
13357     sed '
13358     /^ac_cv_env_/b end
13359     t clear
13360     :clear
13361     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13362     t end
13363     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13364     :end' >>confcache
13365     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13366     if test -w "$cache_file"; then
13367 michael 5059 if test "x$cache_file" != "x/dev/null"; then
13368     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13369     $as_echo "$as_me: updating cache $cache_file" >&6;}
13370     if test ! -f "$cache_file" || test -h "$cache_file"; then
13371     cat confcache >"$cache_file"
13372     else
13373     case $cache_file in #(
13374     */* | ?:*)
13375     mv -f confcache "$cache_file"$$ &&
13376     mv -f "$cache_file"$$ "$cache_file" ;; #(
13377     *)
13378     mv -f confcache "$cache_file" ;;
13379     esac
13380     fi
13381     fi
13382 michael 5052 else
13383 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13384     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13385 michael 5052 fi
13386     fi
13387     rm -f confcache
13388    
13389     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13390     # Let make expand exec_prefix.
13391     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13392    
13393     DEFS=-DHAVE_CONFIG_H
13394    
13395     ac_libobjs=
13396     ac_ltlibobjs=
13397     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13398     # 1. Remove the extension, and $U if already installed.
13399     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13400 michael 5059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13401 michael 5052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13402     # will be set to the directory where LIBOBJS objects are built.
13403 michael 5059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13404     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13405 michael 5052 done
13406     LIBOBJS=$ac_libobjs
13407    
13408     LTLIBOBJS=$ac_ltlibobjs
13409    
13410    
13411 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13412     $as_echo_n "checking that generated files are newer than configure... " >&6; }
13413     if test -n "$am_sleep_pid"; then
13414     # Hide warnings about reused PIDs.
13415     wait $am_sleep_pid 2>/dev/null
13416     fi
13417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13418     $as_echo "done" >&6; }
13419     if test -n "$EXEEXT"; then
13420     am__EXEEXT_TRUE=
13421     am__EXEEXT_FALSE='#'
13422     else
13423     am__EXEEXT_TRUE='#'
13424     am__EXEEXT_FALSE=
13425     fi
13426    
13427 michael 5052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13428 michael 5059 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13429     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13430 michael 5052 fi
13431     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13432 michael 5059 as_fn_error $? "conditional \"AMDEP\" was never defined.
13433     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13434 michael 5052 fi
13435     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13436 michael 5059 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13437     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13438 michael 5052 fi
13439    
13440 michael 5059
13441     : "${CONFIG_STATUS=./config.status}"
13442     ac_write_fail=0
13443 michael 5052 ac_clean_files_save=$ac_clean_files
13444     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13445 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13446     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13447     as_write_fail=0
13448     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13449 michael 5052 #! $SHELL
13450     # Generated by $as_me.
13451     # Run this file to recreate the current configuration.
13452     # Compiler output produced by configure, useful for debugging
13453     # configure, is in config.log if it exists.
13454    
13455     debug=false
13456     ac_cs_recheck=false
13457     ac_cs_silent=false
13458 michael 5059
13459 michael 5052 SHELL=\${CONFIG_SHELL-$SHELL}
13460 michael 5059 export SHELL
13461     _ASEOF
13462     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13463     ## -------------------- ##
13464     ## M4sh Initialization. ##
13465     ## -------------------- ##
13466 michael 5052
13467 michael 5059 # Be more Bourne compatible
13468     DUALCASE=1; export DUALCASE # for MKS sh
13469     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13470 michael 5052 emulate sh
13471     NULLCMD=:
13472 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13473 michael 5052 # is contrary to our usage. Disable this feature.
13474     alias -g '${1+"$@"}'='"$@"'
13475     setopt NO_GLOB_SUBST
13476     else
13477 michael 5059 case `(set -o) 2>/dev/null` in #(
13478     *posix*) :
13479     set -o posix ;; #(
13480     *) :
13481     ;;
13482     esac
13483 michael 5052 fi
13484    
13485    
13486 michael 5059 as_nl='
13487     '
13488     export as_nl
13489     # Printing a long string crashes Solaris 7 /usr/bin/printf.
13490     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13491     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13492     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13493     # Prefer a ksh shell builtin over an external printf program on Solaris,
13494     # but without wasting forks for bash or zsh.
13495     if test -z "$BASH_VERSION$ZSH_VERSION" \
13496     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13497     as_echo='print -r --'
13498     as_echo_n='print -rn --'
13499     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13500     as_echo='printf %s\n'
13501     as_echo_n='printf %s'
13502     else
13503     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13504     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13505     as_echo_n='/usr/ucb/echo -n'
13506 michael 5052 else
13507 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13508     as_echo_n_body='eval
13509     arg=$1;
13510     case $arg in #(
13511     *"$as_nl"*)
13512     expr "X$arg" : "X\\(.*\\)$as_nl";
13513     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13514     esac;
13515     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13516     '
13517     export as_echo_n_body
13518     as_echo_n='sh -c $as_echo_n_body as_echo'
13519 michael 5052 fi
13520 michael 5059 export as_echo_body
13521     as_echo='sh -c $as_echo_body as_echo'
13522 michael 5052 fi
13523    
13524 michael 5059 # The user is always right.
13525     if test "${PATH_SEPARATOR+set}" != set; then
13526     PATH_SEPARATOR=:
13527     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13528     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13529     PATH_SEPARATOR=';'
13530     }
13531 michael 5052 fi
13532    
13533    
13534     # IFS
13535     # We need space, tab and new line, in precisely that order. Quoting is
13536     # there to prevent editors from complaining about space-tab.
13537     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13538     # splitting by setting IFS to empty value.)
13539     IFS=" "" $as_nl"
13540    
13541     # Find who we are. Look in the path if we contain no directory separator.
13542 michael 5059 as_myself=
13543     case $0 in #((
13544 michael 5052 *[\\/]* ) as_myself=$0 ;;
13545     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546     for as_dir in $PATH
13547     do
13548     IFS=$as_save_IFS
13549     test -z "$as_dir" && as_dir=.
13550 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13551     done
13552 michael 5052 IFS=$as_save_IFS
13553    
13554     ;;
13555     esac
13556     # We did not find ourselves, most probably we were run as `sh COMMAND'
13557     # in which case we are not to be found in the path.
13558     if test "x$as_myself" = x; then
13559     as_myself=$0
13560     fi
13561     if test ! -f "$as_myself"; then
13562 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13563     exit 1
13564 michael 5052 fi
13565    
13566 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
13567     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13568     # suppresses any "Segmentation fault" message there. '((' could
13569     # trigger a bug in pdksh 5.2.14.
13570     for as_var in BASH_ENV ENV MAIL MAILPATH
13571     do eval test x\${$as_var+set} = xset \
13572     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13573 michael 5052 done
13574     PS1='$ '
13575     PS2='> '
13576     PS4='+ '
13577    
13578     # NLS nuisances.
13579 michael 5059 LC_ALL=C
13580     export LC_ALL
13581     LANGUAGE=C
13582     export LANGUAGE
13583    
13584     # CDPATH.
13585     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13586    
13587    
13588     # as_fn_error STATUS ERROR [LINENO LOG_FD]
13589     # ----------------------------------------
13590     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13591     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13592     # script with STATUS, using 1 if that was 0.
13593     as_fn_error ()
13594     {
13595     as_status=$1; test $as_status -eq 0 && as_status=1
13596     if test "$4"; then
13597     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13598     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13599 michael 5052 fi
13600 michael 5059 $as_echo "$as_me: error: $2" >&2
13601     as_fn_exit $as_status
13602     } # as_fn_error
13603 michael 5052
13604 michael 5059
13605     # as_fn_set_status STATUS
13606     # -----------------------
13607     # Set $? to STATUS, without forking.
13608     as_fn_set_status ()
13609     {
13610     return $1
13611     } # as_fn_set_status
13612    
13613     # as_fn_exit STATUS
13614     # -----------------
13615     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13616     as_fn_exit ()
13617     {
13618     set +e
13619     as_fn_set_status $1
13620     exit $1
13621     } # as_fn_exit
13622    
13623     # as_fn_unset VAR
13624     # ---------------
13625     # Portably unset VAR.
13626     as_fn_unset ()
13627     {
13628     { eval $1=; unset $1;}
13629     }
13630     as_unset=as_fn_unset
13631     # as_fn_append VAR VALUE
13632     # ----------------------
13633     # Append the text in VALUE to the end of the definition contained in VAR. Take
13634     # advantage of any shell optimizations that allow amortized linear growth over
13635     # repeated appends, instead of the typical quadratic growth present in naive
13636     # implementations.
13637     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13638     eval 'as_fn_append ()
13639     {
13640     eval $1+=\$2
13641     }'
13642     else
13643     as_fn_append ()
13644     {
13645     eval $1=\$$1\$2
13646     }
13647     fi # as_fn_append
13648    
13649     # as_fn_arith ARG...
13650     # ------------------
13651     # Perform arithmetic evaluation on the ARGs, and store the result in the
13652     # global $as_val. Take advantage of shells that can avoid forks. The arguments
13653     # must be portable across $(()) and expr.
13654     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13655     eval 'as_fn_arith ()
13656     {
13657     as_val=$(( $* ))
13658     }'
13659     else
13660     as_fn_arith ()
13661     {
13662     as_val=`expr "$@" || test $? -eq 1`
13663     }
13664     fi # as_fn_arith
13665    
13666    
13667 michael 5052 if expr a : '\(a\)' >/dev/null 2>&1 &&
13668     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13669     as_expr=expr
13670     else
13671     as_expr=false
13672     fi
13673    
13674     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13675     as_basename=basename
13676     else
13677     as_basename=false
13678     fi
13679    
13680 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13681     as_dirname=dirname
13682     else
13683     as_dirname=false
13684     fi
13685 michael 5052
13686     as_me=`$as_basename -- "$0" ||
13687     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13688     X"$0" : 'X\(//\)$' \| \
13689     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13690 michael 5059 $as_echo X/"$0" |
13691 michael 5052 sed '/^.*\/\([^/][^/]*\)\/*$/{
13692     s//\1/
13693     q
13694     }
13695     /^X\/\(\/\/\)$/{
13696     s//\1/
13697     q
13698     }
13699     /^X\/\(\/\).*/{
13700     s//\1/
13701     q
13702     }
13703     s/.*/./; q'`
13704    
13705 michael 5059 # Avoid depending upon Character Ranges.
13706     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13707     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13708     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13709     as_cr_digits='0123456789'
13710     as_cr_alnum=$as_cr_Letters$as_cr_digits
13711 michael 5052
13712     ECHO_C= ECHO_N= ECHO_T=
13713 michael 5059 case `echo -n x` in #(((((
13714 michael 5052 -n*)
13715 michael 5059 case `echo 'xy\c'` in
13716 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13717 michael 5059 xy) ECHO_C='\c';;
13718     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13719     ECHO_T=' ';;
13720 michael 5052 esac;;
13721     *)
13722     ECHO_N='-n';;
13723     esac
13724    
13725     rm -f conf$$ conf$$.exe conf$$.file
13726     if test -d conf$$.dir; then
13727     rm -f conf$$.dir/conf$$.file
13728     else
13729     rm -f conf$$.dir
13730 michael 5059 mkdir conf$$.dir 2>/dev/null
13731 michael 5052 fi
13732 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
13733     if ln -s conf$$.file conf$$ 2>/dev/null; then
13734     as_ln_s='ln -s'
13735     # ... but there are two gotchas:
13736     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13737     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13738     # In both cases, we have to default to `cp -pR'.
13739     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13740     as_ln_s='cp -pR'
13741     elif ln conf$$.file conf$$ 2>/dev/null; then
13742     as_ln_s=ln
13743     else
13744     as_ln_s='cp -pR'
13745     fi
13746 michael 5052 else
13747 michael 5059 as_ln_s='cp -pR'
13748 michael 5052 fi
13749     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13750     rmdir conf$$.dir 2>/dev/null
13751    
13752 michael 5059
13753     # as_fn_mkdir_p
13754     # -------------
13755     # Create "$as_dir" as a directory, including parents if necessary.
13756     as_fn_mkdir_p ()
13757     {
13758    
13759     case $as_dir in #(
13760     -*) as_dir=./$as_dir;;
13761     esac
13762     test -d "$as_dir" || eval $as_mkdir_p || {
13763     as_dirs=
13764     while :; do
13765     case $as_dir in #(
13766     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13767     *) as_qdir=$as_dir;;
13768     esac
13769     as_dirs="'$as_qdir' $as_dirs"
13770     as_dir=`$as_dirname -- "$as_dir" ||
13771     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13772     X"$as_dir" : 'X\(//\)[^/]' \| \
13773     X"$as_dir" : 'X\(//\)$' \| \
13774     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13775     $as_echo X"$as_dir" |
13776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13777     s//\1/
13778     q
13779     }
13780     /^X\(\/\/\)[^/].*/{
13781     s//\1/
13782     q
13783     }
13784     /^X\(\/\/\)$/{
13785     s//\1/
13786     q
13787     }
13788     /^X\(\/\).*/{
13789     s//\1/
13790     q
13791     }
13792     s/.*/./; q'`
13793     test -d "$as_dir" && break
13794     done
13795     test -z "$as_dirs" || eval "mkdir $as_dirs"
13796     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13797    
13798    
13799     } # as_fn_mkdir_p
13800 michael 5052 if mkdir -p . 2>/dev/null; then
13801 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
13802 michael 5052 else
13803     test -d ./-p && rmdir ./-p
13804     as_mkdir_p=false
13805     fi
13806    
13807    
13808 michael 5059 # as_fn_executable_p FILE
13809     # -----------------------
13810     # Test if FILE is an executable regular file.
13811     as_fn_executable_p ()
13812     {
13813     test -f "$1" && test -x "$1"
13814     } # as_fn_executable_p
13815     as_test_x='test -x'
13816     as_executable_p=as_fn_executable_p
13817    
13818 michael 5052 # Sed expression to map a string onto a valid CPP name.
13819     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13820    
13821     # Sed expression to map a string onto a valid variable name.
13822     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13823    
13824    
13825     exec 6>&1
13826 michael 5059 ## ----------------------------------- ##
13827     ## Main body of $CONFIG_STATUS script. ##
13828     ## ----------------------------------- ##
13829     _ASEOF
13830     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13831 michael 5052
13832 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13833     # Save the log message, to keep $0 and so on meaningful, and to
13834 michael 5052 # report actual input values of CONFIG_FILES etc. instead of their
13835     # values after options handling.
13836     ac_log="
13837     This file was extended by bopm $as_me 3.1.3, which was
13838 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
13839 michael 5052
13840     CONFIG_FILES = $CONFIG_FILES
13841     CONFIG_HEADERS = $CONFIG_HEADERS
13842     CONFIG_LINKS = $CONFIG_LINKS
13843     CONFIG_COMMANDS = $CONFIG_COMMANDS
13844     $ $0 $@
13845    
13846     on `(hostname || uname -n) 2>/dev/null | sed 1q`
13847     "
13848    
13849     _ACEOF
13850    
13851 michael 5059 case $ac_config_files in *"
13852     "*) set x $ac_config_files; shift; ac_config_files=$*;;
13853     esac
13854    
13855     case $ac_config_headers in *"
13856     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13857     esac
13858    
13859    
13860     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13861 michael 5052 # Files that config.status was made for.
13862     config_files="$ac_config_files"
13863     config_headers="$ac_config_headers"
13864     config_commands="$ac_config_commands"
13865    
13866     _ACEOF
13867    
13868 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13869 michael 5052 ac_cs_usage="\
13870 michael 5059 \`$as_me' instantiates files and other configuration actions
13871     from templates according to the current configuration. Unless the files
13872     and actions are specified as TAGs, all are instantiated by default.
13873 michael 5052
13874 michael 5059 Usage: $0 [OPTION]... [TAG]...
13875 michael 5052
13876     -h, --help print this help, then exit
13877 michael 5059 -V, --version print version number and configuration settings, then exit
13878     --config print configuration, then exit
13879     -q, --quiet, --silent
13880     do not print progress messages
13881 michael 5052 -d, --debug don't remove temporary files
13882     --recheck update $as_me by reconfiguring in the same conditions
13883 michael 5059 --file=FILE[:TEMPLATE]
13884     instantiate the configuration file FILE
13885     --header=FILE[:TEMPLATE]
13886     instantiate the configuration header FILE
13887 michael 5052
13888     Configuration files:
13889     $config_files
13890    
13891     Configuration headers:
13892     $config_headers
13893    
13894     Configuration commands:
13895     $config_commands
13896    
13897 michael 5059 Report bugs to the package provider."
13898 michael 5052
13899     _ACEOF
13900 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13901     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13902 michael 5052 ac_cs_version="\\
13903     bopm config.status 3.1.3
13904 michael 5059 configured by $0, generated by GNU Autoconf 2.69,
13905     with options \\"\$ac_cs_config\\"
13906 michael 5052
13907 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
13908 michael 5052 This config.status script is free software; the Free Software Foundation
13909     gives unlimited permission to copy, distribute and modify it."
13910    
13911     ac_pwd='$ac_pwd'
13912     srcdir='$srcdir'
13913     INSTALL='$INSTALL'
13914 michael 5059 MKDIR_P='$MKDIR_P'
13915     AWK='$AWK'
13916     test -n "\$AWK" || AWK=awk
13917 michael 5052 _ACEOF
13918    
13919 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13920     # The default lists apply if the user does not specify any file.
13921 michael 5052 ac_need_defaults=:
13922     while test $# != 0
13923     do
13924     case $1 in
13925 michael 5059 --*=?*)
13926 michael 5052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13927     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13928     ac_shift=:
13929     ;;
13930 michael 5059 --*=)
13931     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13932     ac_optarg=
13933     ac_shift=:
13934     ;;
13935 michael 5052 *)
13936     ac_option=$1
13937     ac_optarg=$2
13938     ac_shift=shift
13939     ;;
13940     esac
13941    
13942     case $ac_option in
13943     # Handling of the options.
13944     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13945     ac_cs_recheck=: ;;
13946     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13947 michael 5059 $as_echo "$ac_cs_version"; exit ;;
13948     --config | --confi | --conf | --con | --co | --c )
13949     $as_echo "$ac_cs_config"; exit ;;
13950 michael 5052 --debug | --debu | --deb | --de | --d | -d )
13951     debug=: ;;
13952     --file | --fil | --fi | --f )
13953     $ac_shift
13954 michael 5059 case $ac_optarg in
13955     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13956     '') as_fn_error $? "missing file argument" ;;
13957     esac
13958     as_fn_append CONFIG_FILES " '$ac_optarg'"
13959 michael 5052 ac_need_defaults=false;;
13960     --header | --heade | --head | --hea )
13961     $ac_shift
13962 michael 5059 case $ac_optarg in
13963     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13964     esac
13965     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13966 michael 5052 ac_need_defaults=false;;
13967     --he | --h)
13968     # Conflict between --help and --header
13969 michael 5059 as_fn_error $? "ambiguous option: \`$1'
13970     Try \`$0 --help' for more information.";;
13971 michael 5052 --help | --hel | -h )
13972 michael 5059 $as_echo "$ac_cs_usage"; exit ;;
13973 michael 5052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13974     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13975     ac_cs_silent=: ;;
13976    
13977     # This is an error.
13978 michael 5059 -*) as_fn_error $? "unrecognized option: \`$1'
13979     Try \`$0 --help' for more information." ;;
13980 michael 5052
13981 michael 5059 *) as_fn_append ac_config_targets " $1"
13982 michael 5052 ac_need_defaults=false ;;
13983    
13984     esac
13985     shift
13986     done
13987    
13988     ac_configure_extra_args=
13989    
13990     if $ac_cs_silent; then
13991     exec 6>/dev/null
13992     ac_configure_extra_args="$ac_configure_extra_args --silent"
13993     fi
13994    
13995     _ACEOF
13996 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13997 michael 5052 if \$ac_cs_recheck; then
13998 michael 5059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13999     shift
14000     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14001     CONFIG_SHELL='$SHELL'
14002 michael 5052 export CONFIG_SHELL
14003 michael 5059 exec "\$@"
14004 michael 5052 fi
14005    
14006     _ACEOF
14007 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14008 michael 5052 exec 5>>config.log
14009     {
14010     echo
14011     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14012     ## Running $as_me. ##
14013     _ASBOX
14014 michael 5059 $as_echo "$ac_log"
14015 michael 5052 } >&5
14016    
14017     _ACEOF
14018 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14019 michael 5052 #
14020     # INIT-COMMANDS
14021     #
14022     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14023    
14024 michael 5059
14025     # The HP-UX ksh and POSIX shell print the target directory to stdout
14026     # if CDPATH is set.
14027     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14028    
14029     sed_quote_subst='$sed_quote_subst'
14030     double_quote_subst='$double_quote_subst'
14031     delay_variable_subst='$delay_variable_subst'
14032     macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14033     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14034     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14035     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14036     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14037     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14038     shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14039     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14040     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14041     PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14042     host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14043     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14044     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14045     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14046     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14047     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14048     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14049     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14050     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14051     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14052     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14053     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14054     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14055     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14056     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14057     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14058     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14059     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14060     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14061     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14062     lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14063     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14064     reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14065     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14066     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14067     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14068     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14069     file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14070     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14071     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14072     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14073     AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14074     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14075     archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14076     STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14077     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14078     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14079     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14080     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14081     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14082     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14083     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14084     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14085     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14086     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14087     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14088     lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14089     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14090     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"`'
14091     lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14092     nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14093     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14094     lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14095     objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14096     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14097     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14098     lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14099     lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14100     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14101     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14102     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14103     MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14104     DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14105     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14106     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14107     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14108     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14109     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14110     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14111     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14112     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14113     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14114     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14115     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14116     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14117     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14118     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14119     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14120     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14121     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14122     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14123     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14124     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14125     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14126     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14127     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14128     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14129     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14130     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14131     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14132     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14133     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14134     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14135     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14136     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14137     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14138     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14139     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14140     postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14141     file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14142     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14143     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14144     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14145     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14146     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14147     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14148     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14149     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14150     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14151     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14152     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14153     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14154     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14155     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14156     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14157     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14158     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14159     sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14160     hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14161     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14162     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14163     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14164     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14165     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14166    
14167     LTCC='$LTCC'
14168     LTCFLAGS='$LTCFLAGS'
14169     compiler='$compiler_DEFAULT'
14170    
14171     # A function that is used when there is no print builtin or printf.
14172     func_fallback_echo ()
14173     {
14174     eval 'cat <<_LTECHO_EOF
14175     \$1
14176     _LTECHO_EOF'
14177     }
14178    
14179     # Quote evaled strings.
14180     for var in SHELL \
14181     ECHO \
14182     PATH_SEPARATOR \
14183     SED \
14184     GREP \
14185     EGREP \
14186     FGREP \
14187     LD \
14188     NM \
14189     LN_S \
14190     lt_SP2NL \
14191     lt_NL2SP \
14192     reload_flag \
14193     OBJDUMP \
14194     deplibs_check_method \
14195     file_magic_cmd \
14196     file_magic_glob \
14197     want_nocaseglob \
14198     DLLTOOL \
14199     sharedlib_from_linklib_cmd \
14200     AR \
14201     AR_FLAGS \
14202     archiver_list_spec \
14203     STRIP \
14204     RANLIB \
14205     CC \
14206     CFLAGS \
14207     compiler \
14208     lt_cv_sys_global_symbol_pipe \
14209     lt_cv_sys_global_symbol_to_cdecl \
14210     lt_cv_sys_global_symbol_to_import \
14211     lt_cv_sys_global_symbol_to_c_name_address \
14212     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14213     lt_cv_nm_interface \
14214     nm_file_list_spec \
14215     lt_cv_truncate_bin \
14216     lt_prog_compiler_no_builtin_flag \
14217     lt_prog_compiler_pic \
14218     lt_prog_compiler_wl \
14219     lt_prog_compiler_static \
14220     lt_cv_prog_compiler_c_o \
14221     need_locks \
14222     MANIFEST_TOOL \
14223     DSYMUTIL \
14224     NMEDIT \
14225     LIPO \
14226     OTOOL \
14227     OTOOL64 \
14228     shrext_cmds \
14229     export_dynamic_flag_spec \
14230     whole_archive_flag_spec \
14231     compiler_needs_object \
14232     with_gnu_ld \
14233     allow_undefined_flag \
14234     no_undefined_flag \
14235     hardcode_libdir_flag_spec \
14236     hardcode_libdir_separator \
14237     exclude_expsyms \
14238     include_expsyms \
14239     file_list_spec \
14240     variables_saved_for_relink \
14241     libname_spec \
14242     library_names_spec \
14243     soname_spec \
14244     install_override_mode \
14245     finish_eval \
14246     old_striplib \
14247     striplib; do
14248     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14249     *[\\\\\\\`\\"\\\$]*)
14250     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14251     ;;
14252     *)
14253     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14254     ;;
14255     esac
14256     done
14257    
14258     # Double-quote double-evaled strings.
14259     for var in reload_cmds \
14260     old_postinstall_cmds \
14261     old_postuninstall_cmds \
14262     old_archive_cmds \
14263     extract_expsyms_cmds \
14264     old_archive_from_new_cmds \
14265     old_archive_from_expsyms_cmds \
14266     archive_cmds \
14267     archive_expsym_cmds \
14268     module_cmds \
14269     module_expsym_cmds \
14270     export_symbols_cmds \
14271     prelink_cmds \
14272     postlink_cmds \
14273     postinstall_cmds \
14274     postuninstall_cmds \
14275     finish_cmds \
14276     sys_lib_search_path_spec \
14277     sys_lib_dlsearch_path_spec; do
14278     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14279     *[\\\\\\\`\\"\\\$]*)
14280     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14281     ;;
14282     *)
14283     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14284     ;;
14285     esac
14286     done
14287    
14288     ac_aux_dir='$ac_aux_dir'
14289    
14290     # See if we are running on zsh, and set the options that allow our
14291     # commands through without removal of \ escapes INIT.
14292     if test -n "\${ZSH_VERSION+set}"; then
14293     setopt NO_GLOB_SUBST
14294     fi
14295    
14296    
14297     PACKAGE='$PACKAGE'
14298     VERSION='$VERSION'
14299     RM='$RM'
14300     ofile='$ofile'
14301    
14302    
14303    
14304    
14305 michael 5052 _ACEOF
14306    
14307 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14308 michael 5052
14309     # Handling of arguments.
14310     for ac_config_target in $ac_config_targets
14311     do
14312     case $ac_config_target in
14313     "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
14314     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14315 michael 5059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14316 michael 5052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14317     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14318    
14319 michael 5059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14320 michael 5052 esac
14321     done
14322    
14323    
14324     # If the user did not use the arguments to specify the items to instantiate,
14325     # then the envvar interface is used. Set only those that are not.
14326     # We use the long form for the default assignment because of an extremely
14327     # bizarre bug on SunOS 4.1.3.
14328     if $ac_need_defaults; then
14329     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14330     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14331     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14332     fi
14333    
14334     # Have a temporary directory for convenience. Make it in the build tree
14335     # simply because there is no reason against having it here, and in addition,
14336     # creating and moving files from /tmp can sometimes cause problems.
14337     # Hook for its removal unless debugging.
14338     # Note that there is a small window in which the directory will not be cleaned:
14339     # after its creation but before its name has been assigned to `$tmp'.
14340     $debug ||
14341     {
14342 michael 5059 tmp= ac_tmp=
14343 michael 5052 trap 'exit_status=$?
14344 michael 5059 : "${ac_tmp:=$tmp}"
14345     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14346 michael 5052 ' 0
14347 michael 5059 trap 'as_fn_exit 1' 1 2 13 15
14348 michael 5052 }
14349     # Create a (secure) tmp directory for tmp files.
14350    
14351     {
14352     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14353 michael 5059 test -d "$tmp"
14354 michael 5052 } ||
14355     {
14356     tmp=./conf$$-$RANDOM
14357     (umask 077 && mkdir "$tmp")
14358 michael 5059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14359     ac_tmp=$tmp
14360 michael 5052
14361 michael 5059 # Set up the scripts for CONFIG_FILES section.
14362     # No need to generate them if there are no CONFIG_FILES.
14363     # This happens for instance with `./config.status config.h'.
14364 michael 5052 if test -n "$CONFIG_FILES"; then
14365    
14366 michael 5059
14367     ac_cr=`echo X | tr X '\015'`
14368     # On cygwin, bash can eat \r inside `` if the user requested igncr.
14369     # But we know of no other shell where ac_cr would be empty at this
14370     # point, so we can use a bashism as a fallback.
14371     if test "x$ac_cr" = x; then
14372     eval ac_cr=\$\'\\r\'
14373     fi
14374     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14375     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14376     ac_cs_awk_cr='\\r'
14377     else
14378     ac_cs_awk_cr=$ac_cr
14379     fi
14380    
14381     echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14382 michael 5052 _ACEOF
14383    
14384    
14385 michael 5059 {
14386     echo "cat >conf$$subs.awk <<_ACEOF" &&
14387     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14388     echo "_ACEOF"
14389     } >conf$$subs.sh ||
14390     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14391     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14392 michael 5052 ac_delim='%!_!# '
14393     for ac_last_try in false false false false false :; do
14394 michael 5059 . ./conf$$subs.sh ||
14395     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14396 michael 5052
14397 michael 5059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14398     if test $ac_delim_n = $ac_delim_num; then
14399 michael 5052 break
14400     elif $ac_last_try; then
14401 michael 5059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14402 michael 5052 else
14403     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14404     fi
14405     done
14406 michael 5059 rm -f conf$$subs.sh
14407 michael 5052
14408 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14409     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14410     _ACEOF
14411     sed -n '
14412     h
14413     s/^/S["/; s/!.*/"]=/
14414     p
14415     g
14416     s/^[^!]*!//
14417     :repl
14418     t repl
14419     s/'"$ac_delim"'$//
14420     t delim
14421     :nl
14422     h
14423     s/\(.\{148\}\)..*/\1/
14424     t more1
14425     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14426     p
14427     n
14428     b repl
14429     :more1
14430     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14431     p
14432     g
14433     s/.\{148\}//
14434     t nl
14435     :delim
14436     h
14437     s/\(.\{148\}\)..*/\1/
14438     t more2
14439     s/["\\]/\\&/g; s/^/"/; s/$/"/
14440     p
14441     b
14442     :more2
14443     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14444     p
14445     g
14446     s/.\{148\}//
14447     t delim
14448     ' <conf$$subs.awk | sed '
14449     /^[^""]/{
14450     N
14451     s/\n//
14452     }
14453     ' >>$CONFIG_STATUS || ac_write_fail=1
14454     rm -f conf$$subs.awk
14455     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14456     _ACAWK
14457     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14458     for (key in S) S_is_set[key] = 1
14459     FS = ""
14460 michael 5052
14461 michael 5059 }
14462     {
14463     line = $ 0
14464     nfields = split(line, field, "@")
14465     substed = 0
14466     len = length(field[1])
14467     for (i = 2; i < nfields; i++) {
14468     key = field[i]
14469     keylen = length(key)
14470     if (S_is_set[key]) {
14471     value = S[key]
14472     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14473     len += length(value) + length(field[++i])
14474     substed = 1
14475     } else
14476     len += 1 + keylen
14477     }
14478    
14479     print line
14480     }
14481    
14482     _ACAWK
14483 michael 5052 _ACEOF
14484 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14485     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14486     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14487     else
14488     cat
14489     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14490     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14491 michael 5052 _ACEOF
14492    
14493 michael 5059 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14494     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14495     # trailing colons and then remove the whole line if VPATH becomes empty
14496     # (actually we leave an empty line to preserve line numbers).
14497     if test "x$srcdir" = x.; then
14498     ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14499     h
14500     s///
14501     s/^/:/
14502     s/[ ]*$/:/
14503     s/:\$(srcdir):/:/g
14504     s/:\${srcdir}:/:/g
14505     s/:@srcdir@:/:/g
14506     s/^:*//
14507     s/:*$//
14508     x
14509     s/\(=[ ]*\).*/\1/
14510     G
14511     s/\n//
14512     s/^[^=]*=[ ]*$//
14513     }'
14514     fi
14515 michael 5052
14516 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14517     fi # test -n "$CONFIG_FILES"
14518    
14519     # Set up the scripts for CONFIG_HEADERS section.
14520     # No need to generate them if there are no CONFIG_HEADERS.
14521     # This happens for instance with `./config.status Makefile'.
14522     if test -n "$CONFIG_HEADERS"; then
14523     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14524     BEGIN {
14525 michael 5052 _ACEOF
14526    
14527 michael 5059 # Transform confdefs.h into an awk script `defines.awk', embedded as
14528     # here-document in config.status, that substitutes the proper values into
14529     # config.h.in to produce config.h.
14530    
14531     # Create a delimiter string that does not exist in confdefs.h, to ease
14532     # handling of long lines.
14533     ac_delim='%!_!# '
14534     for ac_last_try in false false :; do
14535     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14536     if test -z "$ac_tt"; then
14537 michael 5052 break
14538     elif $ac_last_try; then
14539 michael 5059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14540 michael 5052 else
14541     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14542     fi
14543     done
14544    
14545 michael 5059 # For the awk script, D is an array of macro values keyed by name,
14546     # likewise P contains macro parameters if any. Preserve backslash
14547     # newline sequences.
14548 michael 5052
14549 michael 5059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14550     sed -n '
14551     s/.\{148\}/&'"$ac_delim"'/g
14552     t rset
14553     :rset
14554     s/^[ ]*#[ ]*define[ ][ ]*/ /
14555     t def
14556     d
14557     :def
14558     s/\\$//
14559     t bsnl
14560     s/["\\]/\\&/g
14561     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14562     D["\1"]=" \3"/p
14563     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14564     d
14565     :bsnl
14566     s/["\\]/\\&/g
14567     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14568     D["\1"]=" \3\\\\\\n"\\/p
14569     t cont
14570     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14571     t cont
14572     d
14573     :cont
14574     n
14575     s/.\{148\}/&'"$ac_delim"'/g
14576     t clear
14577     :clear
14578     s/\\$//
14579     t bsnlc
14580     s/["\\]/\\&/g; s/^/"/; s/$/"/p
14581     d
14582     :bsnlc
14583     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14584     b cont
14585     ' <confdefs.h | sed '
14586     s/'"$ac_delim"'/"\\\
14587     "/g' >>$CONFIG_STATUS || ac_write_fail=1
14588    
14589     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14590     for (key in D) D_is_set[key] = 1
14591     FS = ""
14592     }
14593     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14594     line = \$ 0
14595     split(line, arg, " ")
14596     if (arg[1] == "#") {
14597     defundef = arg[2]
14598     mac1 = arg[3]
14599     } else {
14600     defundef = substr(arg[1], 2)
14601     mac1 = arg[2]
14602     }
14603     split(mac1, mac2, "(") #)
14604     macro = mac2[1]
14605     prefix = substr(line, 1, index(line, defundef) - 1)
14606     if (D_is_set[macro]) {
14607     # Preserve the white space surrounding the "#".
14608     print prefix "define", macro P[macro] D[macro]
14609     next
14610     } else {
14611     # Replace #undef with comments. This is necessary, for example,
14612     # in the case of _POSIX_SOURCE, which is predefined and required
14613     # on some systems where configure will not decide to define it.
14614     if (defundef == "undef") {
14615     print "/*", prefix defundef, macro, "*/"
14616     next
14617     }
14618     }
14619     }
14620     { print }
14621     _ACAWK
14622 michael 5052 _ACEOF
14623 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14624     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14625     fi # test -n "$CONFIG_HEADERS"
14626 michael 5052
14627    
14628 michael 5059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14629     shift
14630     for ac_tag
14631 michael 5052 do
14632     case $ac_tag in
14633     :[FHLC]) ac_mode=$ac_tag; continue;;
14634     esac
14635     case $ac_mode$ac_tag in
14636     :[FHL]*:*);;
14637 michael 5059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14638 michael 5052 :[FH]-) ac_tag=-:-;;
14639     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14640     esac
14641     ac_save_IFS=$IFS
14642     IFS=:
14643     set x $ac_tag
14644     IFS=$ac_save_IFS
14645     shift
14646     ac_file=$1
14647     shift
14648    
14649     case $ac_mode in
14650     :L) ac_source=$1;;
14651     :[FH])
14652     ac_file_inputs=
14653     for ac_f
14654     do
14655     case $ac_f in
14656 michael 5059 -) ac_f="$ac_tmp/stdin";;
14657 michael 5052 *) # Look for the file first in the build tree, then in the source tree
14658     # (if the path is not absolute). The absolute path cannot be DOS-style,
14659     # because $ac_f cannot contain `:'.
14660     test -f "$ac_f" ||
14661     case $ac_f in
14662     [\\/$]*) false;;
14663     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14664     esac ||
14665 michael 5059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14666 michael 5052 esac
14667 michael 5059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14668     as_fn_append ac_file_inputs " '$ac_f'"
14669 michael 5052 done
14670    
14671     # Let's still pretend it is `configure' which instantiates (i.e., don't
14672     # use $as_me), people would be surprised to read:
14673     # /* config.h. Generated by config.status. */
14674 michael 5059 configure_input='Generated from '`
14675     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14676     `' by configure.'
14677 michael 5052 if test x"$ac_file" != x-; then
14678     configure_input="$ac_file. $configure_input"
14679 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14680     $as_echo "$as_me: creating $ac_file" >&6;}
14681 michael 5052 fi
14682 michael 5059 # Neutralize special characters interpreted by sed in replacement strings.
14683     case $configure_input in #(
14684     *\&* | *\|* | *\\* )
14685     ac_sed_conf_input=`$as_echo "$configure_input" |
14686     sed 's/[\\\\&|]/\\\\&/g'`;; #(
14687     *) ac_sed_conf_input=$configure_input;;
14688     esac
14689 michael 5052
14690     case $ac_tag in
14691 michael 5059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14692     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14693 michael 5052 esac
14694     ;;
14695     esac
14696    
14697     ac_dir=`$as_dirname -- "$ac_file" ||
14698     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14699     X"$ac_file" : 'X\(//\)[^/]' \| \
14700     X"$ac_file" : 'X\(//\)$' \| \
14701     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14702 michael 5059 $as_echo X"$ac_file" |
14703 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14704     s//\1/
14705     q
14706     }
14707     /^X\(\/\/\)[^/].*/{
14708     s//\1/
14709     q
14710     }
14711     /^X\(\/\/\)$/{
14712     s//\1/
14713     q
14714     }
14715     /^X\(\/\).*/{
14716     s//\1/
14717     q
14718     }
14719     s/.*/./; q'`
14720 michael 5059 as_dir="$ac_dir"; as_fn_mkdir_p
14721 michael 5052 ac_builddir=.
14722    
14723     case "$ac_dir" in
14724     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14725     *)
14726 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14727 michael 5052 # A ".." for each directory in $ac_dir_suffix.
14728 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14729 michael 5052 case $ac_top_builddir_sub in
14730     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14731     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14732     esac ;;
14733     esac
14734     ac_abs_top_builddir=$ac_pwd
14735     ac_abs_builddir=$ac_pwd$ac_dir_suffix
14736     # for backward compatibility:
14737     ac_top_builddir=$ac_top_build_prefix
14738    
14739     case $srcdir in
14740     .) # We are building in place.
14741     ac_srcdir=.
14742     ac_top_srcdir=$ac_top_builddir_sub
14743     ac_abs_top_srcdir=$ac_pwd ;;
14744     [\\/]* | ?:[\\/]* ) # Absolute name.
14745     ac_srcdir=$srcdir$ac_dir_suffix;
14746     ac_top_srcdir=$srcdir
14747     ac_abs_top_srcdir=$srcdir ;;
14748     *) # Relative name.
14749     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14750     ac_top_srcdir=$ac_top_build_prefix$srcdir
14751     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14752     esac
14753     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14754    
14755    
14756     case $ac_mode in
14757     :F)
14758     #
14759     # CONFIG_FILE
14760     #
14761    
14762     case $INSTALL in
14763     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14764     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14765     esac
14766 michael 5059 ac_MKDIR_P=$MKDIR_P
14767     case $MKDIR_P in
14768     [\\/$]* | ?:[\\/]* ) ;;
14769     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14770     esac
14771 michael 5052 _ACEOF
14772    
14773 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14774 michael 5052 # If the template does not know about datarootdir, expand it.
14775     # FIXME: This hack should be removed a few years after 2.60.
14776     ac_datarootdir_hack=; ac_datarootdir_seen=
14777 michael 5059 ac_sed_dataroot='
14778     /datarootdir/ {
14779 michael 5052 p
14780     q
14781     }
14782     /@datadir@/p
14783     /@docdir@/p
14784     /@infodir@/p
14785     /@localedir@/p
14786 michael 5059 /@mandir@/p'
14787     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14788 michael 5052 *datarootdir*) ac_datarootdir_seen=yes;;
14789     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14790 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14791     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14792 michael 5052 _ACEOF
14793 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14794 michael 5052 ac_datarootdir_hack='
14795     s&@datadir@&$datadir&g
14796     s&@docdir@&$docdir&g
14797     s&@infodir@&$infodir&g
14798     s&@localedir@&$localedir&g
14799     s&@mandir@&$mandir&g
14800 michael 5059 s&\\\${datarootdir}&$datarootdir&g' ;;
14801 michael 5052 esac
14802     _ACEOF
14803    
14804     # Neutralize VPATH when `$srcdir' = `.'.
14805     # Shell code in configure.ac might set extrasub.
14806     # FIXME: do we really want to maintain this feature?
14807 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14808     ac_sed_extra="$ac_vpsub
14809 michael 5052 $extrasub
14810     _ACEOF
14811 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14812 michael 5052 :t
14813     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14814 michael 5059 s|@configure_input@|$ac_sed_conf_input|;t t
14815 michael 5052 s&@top_builddir@&$ac_top_builddir_sub&;t t
14816 michael 5059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14817 michael 5052 s&@srcdir@&$ac_srcdir&;t t
14818     s&@abs_srcdir@&$ac_abs_srcdir&;t t
14819     s&@top_srcdir@&$ac_top_srcdir&;t t
14820     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14821     s&@builddir@&$ac_builddir&;t t
14822     s&@abs_builddir@&$ac_abs_builddir&;t t
14823     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14824     s&@INSTALL@&$ac_INSTALL&;t t
14825 michael 5059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14826 michael 5052 $ac_datarootdir_hack
14827 michael 5059 "
14828     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14829     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14830 michael 5052
14831     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14832 michael 5059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14833     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14834     "$ac_tmp/out"`; test -z "$ac_out"; } &&
14835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14836     which seems to be undefined. Please make sure it is defined" >&5
14837     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14838     which seems to be undefined. Please make sure it is defined" >&2;}
14839 michael 5052
14840 michael 5059 rm -f "$ac_tmp/stdin"
14841 michael 5052 case $ac_file in
14842 michael 5059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14843     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14844     esac \
14845     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14846 michael 5052 ;;
14847     :H)
14848     #
14849     # CONFIG_HEADER
14850     #
14851     if test x"$ac_file" != x-; then
14852 michael 5059 {
14853     $as_echo "/* $configure_input */" \
14854     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14855     } >"$ac_tmp/config.h" \
14856     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14857     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14858     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14859     $as_echo "$as_me: $ac_file is unchanged" >&6;}
14860 michael 5052 else
14861 michael 5059 rm -f "$ac_file"
14862     mv "$ac_tmp/config.h" "$ac_file" \
14863     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14864 michael 5052 fi
14865     else
14866 michael 5059 $as_echo "/* $configure_input */" \
14867     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14868     || as_fn_error $? "could not create -" "$LINENO" 5
14869 michael 5052 fi
14870 michael 5059 # Compute "$ac_file"'s index in $config_headers.
14871     _am_arg="$ac_file"
14872 michael 5052 _am_stamp_count=1
14873     for _am_header in $config_headers :; do
14874     case $_am_header in
14875 michael 5059 $_am_arg | $_am_arg:* )
14876 michael 5052 break ;;
14877     * )
14878     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14879     esac
14880     done
14881 michael 5059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14882     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14883     X"$_am_arg" : 'X\(//\)[^/]' \| \
14884     X"$_am_arg" : 'X\(//\)$' \| \
14885     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14886     $as_echo X"$_am_arg" |
14887 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14888     s//\1/
14889     q
14890     }
14891     /^X\(\/\/\)[^/].*/{
14892     s//\1/
14893     q
14894     }
14895     /^X\(\/\/\)$/{
14896     s//\1/
14897     q
14898     }
14899     /^X\(\/\).*/{
14900     s//\1/
14901     q
14902     }
14903     s/.*/./; q'`/stamp-h$_am_stamp_count
14904     ;;
14905    
14906 michael 5059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14907     $as_echo "$as_me: executing $ac_file commands" >&6;}
14908 michael 5052 ;;
14909     esac
14910    
14911    
14912     case $ac_file$ac_mode in
14913 michael 5059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14914     # Older Autoconf quotes --file arguments for eval, but not when files
14915     # are listed without --file. Let's play safe and only enable the eval
14916     # if we detect the quoting.
14917     case $CONFIG_FILES in
14918     *\'*) eval set x "$CONFIG_FILES" ;;
14919     *) set x $CONFIG_FILES ;;
14920     esac
14921     shift
14922     for mf
14923     do
14924     # Strip MF so we end up with the name of the file.
14925     mf=`echo "$mf" | sed -e 's/:.*$//'`
14926     # Check whether this is an Automake generated Makefile or not.
14927     # We used to match only the files named 'Makefile.in', but
14928     # some people rename them; so instead we look at the file content.
14929     # Grep'ing the first line is not enough: some people post-process
14930     # each Makefile.in and add a new line on top of each file to say so.
14931     # Grep'ing the whole file is not good either: AIX grep has a line
14932     # limit of 2048, but all sed's we know have understand at least 4000.
14933     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14934     dirpart=`$as_dirname -- "$mf" ||
14935 michael 5052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14936     X"$mf" : 'X\(//\)[^/]' \| \
14937     X"$mf" : 'X\(//\)$' \| \
14938     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14939 michael 5059 $as_echo X"$mf" |
14940 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14941     s//\1/
14942     q
14943     }
14944     /^X\(\/\/\)[^/].*/{
14945     s//\1/
14946     q
14947     }
14948     /^X\(\/\/\)$/{
14949     s//\1/
14950     q
14951     }
14952     /^X\(\/\).*/{
14953     s//\1/
14954     q
14955     }
14956     s/.*/./; q'`
14957 michael 5059 else
14958     continue
14959     fi
14960     # Extract the definition of DEPDIR, am__include, and am__quote
14961     # from the Makefile without running 'make'.
14962     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14963     test -z "$DEPDIR" && continue
14964     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14965     test -z "$am__include" && continue
14966     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14967     # Find all dependency output files, they are included files with
14968     # $(DEPDIR) in their names. We invoke sed twice because it is the
14969     # simplest approach to changing $(DEPDIR) to its actual value in the
14970     # expansion.
14971     for file in `sed -n "
14972     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14973     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14974     # Make sure the directory exists.
14975     test -f "$dirpart/$file" && continue
14976     fdir=`$as_dirname -- "$file" ||
14977 michael 5052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14978     X"$file" : 'X\(//\)[^/]' \| \
14979     X"$file" : 'X\(//\)$' \| \
14980     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14981 michael 5059 $as_echo X"$file" |
14982 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14983     s//\1/
14984     q
14985     }
14986     /^X\(\/\/\)[^/].*/{
14987     s//\1/
14988     q
14989     }
14990     /^X\(\/\/\)$/{
14991     s//\1/
14992     q
14993     }
14994     /^X\(\/\).*/{
14995     s//\1/
14996     q
14997     }
14998     s/.*/./; q'`
14999 michael 5059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15000     # echo "creating $dirpart/$file"
15001     echo '# dummy' > "$dirpart/$file"
15002 michael 5052 done
15003     done
15004 michael 5059 }
15005 michael 5052 ;;
15006 michael 5059 "libtool":C)
15007 michael 5052
15008 michael 5059 # See if we are running on zsh, and set the options that allow our
15009     # commands through without removal of \ escapes.
15010     if test -n "${ZSH_VERSION+set}"; then
15011     setopt NO_GLOB_SUBST
15012     fi
15013    
15014     cfgfile=${ofile}T
15015     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15016     $RM "$cfgfile"
15017    
15018     cat <<_LT_EOF >> "$cfgfile"
15019     #! $SHELL
15020     # Generated automatically by $as_me ($PACKAGE) $VERSION
15021     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15022     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15023    
15024     # Provide generalized library-building support services.
15025     # Written by Gordon Matzigkeit, 1996
15026    
15027     # Copyright (C) 2014 Free Software Foundation, Inc.
15028     # This is free software; see the source for copying conditions. There is NO
15029     # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15030    
15031     # GNU Libtool is free software; you can redistribute it and/or modify
15032     # it under the terms of the GNU General Public License as published by
15033     # the Free Software Foundation; either version 2 of of the License, or
15034     # (at your option) any later version.
15035     #
15036     # As a special exception to the GNU General Public License, if you
15037     # distribute this file as part of a program or library that is built
15038     # using GNU Libtool, you may include this file under the same
15039     # distribution terms that you use for the rest of that program.
15040     #
15041     # GNU Libtool is distributed in the hope that it will be useful, but
15042     # WITHOUT ANY WARRANTY; without even the implied warranty of
15043     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15044     # GNU General Public License for more details.
15045     #
15046     # You should have received a copy of the GNU General Public License
15047     # along with this program. If not, see <http://www.gnu.org/licenses/>.
15048    
15049    
15050     # The names of the tagged configurations supported by this script.
15051     available_tags=''
15052    
15053     # ### BEGIN LIBTOOL CONFIG
15054    
15055     # Which release of libtool.m4 was used?
15056     macro_version=$macro_version
15057     macro_revision=$macro_revision
15058    
15059     # Whether or not to build shared libraries.
15060     build_libtool_libs=$enable_shared
15061    
15062     # Whether or not to build static libraries.
15063     build_old_libs=$enable_static
15064    
15065     # What type of objects to build.
15066     pic_mode=$pic_mode
15067    
15068     # Whether or not to optimize for fast installation.
15069     fast_install=$enable_fast_install
15070    
15071     # Shared archive member basename,for filename based shared library versioning on AIX.
15072     shared_archive_member_spec=$shared_archive_member_spec
15073    
15074     # Shell to use when invoking shell scripts.
15075     SHELL=$lt_SHELL
15076    
15077     # An echo program that protects backslashes.
15078     ECHO=$lt_ECHO
15079    
15080     # The PATH separator for the build system.
15081     PATH_SEPARATOR=$lt_PATH_SEPARATOR
15082    
15083     # The host system.
15084     host_alias=$host_alias
15085     host=$host
15086     host_os=$host_os
15087    
15088     # The build system.
15089     build_alias=$build_alias
15090     build=$build
15091     build_os=$build_os
15092    
15093     # A sed program that does not truncate output.
15094     SED=$lt_SED
15095    
15096     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15097     Xsed="\$SED -e 1s/^X//"
15098    
15099     # A grep program that handles long lines.
15100     GREP=$lt_GREP
15101    
15102     # An ERE matcher.
15103     EGREP=$lt_EGREP
15104    
15105     # A literal string matcher.
15106     FGREP=$lt_FGREP
15107    
15108     # A BSD- or MS-compatible name lister.
15109     NM=$lt_NM
15110    
15111     # Whether we need soft or hard links.
15112     LN_S=$lt_LN_S
15113    
15114     # What is the maximum length of a command?
15115     max_cmd_len=$max_cmd_len
15116    
15117     # Object file suffix (normally "o").
15118     objext=$ac_objext
15119    
15120     # Executable file suffix (normally "").
15121     exeext=$exeext
15122    
15123     # whether the shell understands "unset".
15124     lt_unset=$lt_unset
15125    
15126     # turn spaces into newlines.
15127     SP2NL=$lt_lt_SP2NL
15128    
15129     # turn newlines into spaces.
15130     NL2SP=$lt_lt_NL2SP
15131    
15132     # convert \$build file names to \$host format.
15133     to_host_file_cmd=$lt_cv_to_host_file_cmd
15134    
15135     # convert \$build files to toolchain format.
15136     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15137    
15138     # An object symbol dumper.
15139     OBJDUMP=$lt_OBJDUMP
15140    
15141     # Method to check whether dependent libraries are shared objects.
15142     deplibs_check_method=$lt_deplibs_check_method
15143    
15144     # Command to use when deplibs_check_method = "file_magic".
15145     file_magic_cmd=$lt_file_magic_cmd
15146    
15147     # How to find potential files when deplibs_check_method = "file_magic".
15148     file_magic_glob=$lt_file_magic_glob
15149    
15150     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15151     want_nocaseglob=$lt_want_nocaseglob
15152    
15153     # DLL creation program.
15154     DLLTOOL=$lt_DLLTOOL
15155    
15156     # Command to associate shared and link libraries.
15157     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15158    
15159     # The archiver.
15160     AR=$lt_AR
15161    
15162     # Flags to create an archive.
15163     AR_FLAGS=$lt_AR_FLAGS
15164    
15165     # How to feed a file listing to the archiver.
15166     archiver_list_spec=$lt_archiver_list_spec
15167    
15168     # A symbol stripping program.
15169     STRIP=$lt_STRIP
15170    
15171     # Commands used to install an old-style archive.
15172     RANLIB=$lt_RANLIB
15173     old_postinstall_cmds=$lt_old_postinstall_cmds
15174     old_postuninstall_cmds=$lt_old_postuninstall_cmds
15175    
15176     # Whether to use a lock for old archive extraction.
15177     lock_old_archive_extraction=$lock_old_archive_extraction
15178    
15179     # A C compiler.
15180     LTCC=$lt_CC
15181    
15182     # LTCC compiler flags.
15183     LTCFLAGS=$lt_CFLAGS
15184    
15185     # Take the output of nm and produce a listing of raw symbols and C names.
15186     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15187    
15188     # Transform the output of nm in a proper C declaration.
15189     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15190    
15191     # Transform the output of nm into a list of symbols to manually relocate.
15192     global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15193    
15194     # Transform the output of nm in a C name address pair.
15195     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15196    
15197     # Transform the output of nm in a C name address pair when lib prefix is needed.
15198     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15199    
15200     # The name lister interface.
15201     nm_interface=$lt_lt_cv_nm_interface
15202    
15203     # Specify filename containing input files for \$NM.
15204     nm_file_list_spec=$lt_nm_file_list_spec
15205    
15206     # The root where to search for dependent libraries,and where our libraries should be installed.
15207     lt_sysroot=$lt_sysroot
15208    
15209     # Command to truncate a binary pipe.
15210     lt_truncate_bin=$lt_lt_cv_truncate_bin
15211    
15212     # The name of the directory that contains temporary libtool files.
15213     objdir=$objdir
15214    
15215     # Used to examine libraries when file_magic_cmd begins with "file".
15216     MAGIC_CMD=$MAGIC_CMD
15217    
15218     # Must we lock files when doing compilation?
15219     need_locks=$lt_need_locks
15220    
15221     # Manifest tool.
15222     MANIFEST_TOOL=$lt_MANIFEST_TOOL
15223    
15224     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15225     DSYMUTIL=$lt_DSYMUTIL
15226    
15227     # Tool to change global to local symbols on Mac OS X.
15228     NMEDIT=$lt_NMEDIT
15229    
15230     # Tool to manipulate fat objects and archives on Mac OS X.
15231     LIPO=$lt_LIPO
15232    
15233     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15234     OTOOL=$lt_OTOOL
15235    
15236     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15237     OTOOL64=$lt_OTOOL64
15238    
15239     # Old archive suffix (normally "a").
15240     libext=$libext
15241    
15242     # Shared library suffix (normally ".so").
15243     shrext_cmds=$lt_shrext_cmds
15244    
15245     # The commands to extract the exported symbol list from a shared archive.
15246     extract_expsyms_cmds=$lt_extract_expsyms_cmds
15247    
15248     # Variables whose values should be saved in libtool wrapper scripts and
15249     # restored at link time.
15250     variables_saved_for_relink=$lt_variables_saved_for_relink
15251    
15252     # Do we need the "lib" prefix for modules?
15253     need_lib_prefix=$need_lib_prefix
15254    
15255     # Do we need a version for libraries?
15256     need_version=$need_version
15257    
15258     # Library versioning type.
15259     version_type=$version_type
15260    
15261     # Shared library runtime path variable.
15262     runpath_var=$runpath_var
15263    
15264     # Shared library path variable.
15265     shlibpath_var=$shlibpath_var
15266    
15267     # Is shlibpath searched before the hard-coded library search path?
15268     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15269    
15270     # Format of library name prefix.
15271     libname_spec=$lt_libname_spec
15272    
15273     # List of archive names. First name is the real one, the rest are links.
15274     # The last name is the one that the linker finds with -lNAME
15275     library_names_spec=$lt_library_names_spec
15276    
15277     # The coded name of the library, if different from the real name.
15278     soname_spec=$lt_soname_spec
15279    
15280     # Permission mode override for installation of shared libraries.
15281     install_override_mode=$lt_install_override_mode
15282    
15283     # Command to use after installation of a shared archive.
15284     postinstall_cmds=$lt_postinstall_cmds
15285    
15286     # Command to use after uninstallation of a shared archive.
15287     postuninstall_cmds=$lt_postuninstall_cmds
15288    
15289     # Commands used to finish a libtool library installation in a directory.
15290     finish_cmds=$lt_finish_cmds
15291    
15292     # As "finish_cmds", except a single script fragment to be evaled but
15293     # not shown.
15294     finish_eval=$lt_finish_eval
15295    
15296     # Whether we should hardcode library paths into libraries.
15297     hardcode_into_libs=$hardcode_into_libs
15298    
15299     # Compile-time system search path for libraries.
15300     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15301    
15302     # Run-time system search path for libraries.
15303     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15304    
15305     # Whether dlopen is supported.
15306     dlopen_support=$enable_dlopen
15307    
15308     # Whether dlopen of programs is supported.
15309     dlopen_self=$enable_dlopen_self
15310    
15311     # Whether dlopen of statically linked programs is supported.
15312     dlopen_self_static=$enable_dlopen_self_static
15313    
15314     # Commands to strip libraries.
15315     old_striplib=$lt_old_striplib
15316     striplib=$lt_striplib
15317    
15318    
15319     # The linker used to build libraries.
15320     LD=$lt_LD
15321    
15322     # How to create reloadable object files.
15323     reload_flag=$lt_reload_flag
15324     reload_cmds=$lt_reload_cmds
15325    
15326     # Commands used to build an old-style archive.
15327     old_archive_cmds=$lt_old_archive_cmds
15328    
15329     # A language specific compiler.
15330     CC=$lt_compiler
15331    
15332     # Is the compiler the GNU compiler?
15333     with_gcc=$GCC
15334    
15335     # Compiler flag to turn off builtin functions.
15336     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15337    
15338     # Additional compiler flags for building library objects.
15339     pic_flag=$lt_lt_prog_compiler_pic
15340    
15341     # How to pass a linker flag through the compiler.
15342     wl=$lt_lt_prog_compiler_wl
15343    
15344     # Compiler flag to prevent dynamic linking.
15345     link_static_flag=$lt_lt_prog_compiler_static
15346    
15347     # Does compiler simultaneously support -c and -o options?
15348     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15349    
15350     # Whether or not to add -lc for building shared libraries.
15351     build_libtool_need_lc=$archive_cmds_need_lc
15352    
15353     # Whether or not to disallow shared libs when runtime libs are static.
15354     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15355    
15356     # Compiler flag to allow reflexive dlopens.
15357     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15358    
15359     # Compiler flag to generate shared objects directly from archives.
15360     whole_archive_flag_spec=$lt_whole_archive_flag_spec
15361    
15362     # Whether the compiler copes with passing no objects directly.
15363     compiler_needs_object=$lt_compiler_needs_object
15364    
15365     # Create an old-style archive from a shared archive.
15366     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15367    
15368     # Create a temporary old-style archive to link instead of a shared archive.
15369     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15370    
15371     # Commands used to build a shared archive.
15372     archive_cmds=$lt_archive_cmds
15373     archive_expsym_cmds=$lt_archive_expsym_cmds
15374    
15375     # Commands used to build a loadable module if different from building
15376     # a shared archive.
15377     module_cmds=$lt_module_cmds
15378     module_expsym_cmds=$lt_module_expsym_cmds
15379    
15380     # Whether we are building with GNU ld or not.
15381     with_gnu_ld=$lt_with_gnu_ld
15382    
15383     # Flag that allows shared libraries with undefined symbols to be built.
15384     allow_undefined_flag=$lt_allow_undefined_flag
15385    
15386     # Flag that enforces no undefined symbols.
15387     no_undefined_flag=$lt_no_undefined_flag
15388    
15389     # Flag to hardcode \$libdir into a binary during linking.
15390     # This must work even if \$libdir does not exist
15391     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15392    
15393     # Whether we need a single "-rpath" flag with a separated argument.
15394     hardcode_libdir_separator=$lt_hardcode_libdir_separator
15395    
15396     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15397     # DIR into the resulting binary.
15398     hardcode_direct=$hardcode_direct
15399    
15400     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15401     # DIR into the resulting binary and the resulting library dependency is
15402     # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15403     # library is relocated.
15404     hardcode_direct_absolute=$hardcode_direct_absolute
15405    
15406     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15407     # into the resulting binary.
15408     hardcode_minus_L=$hardcode_minus_L
15409    
15410     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15411     # into the resulting binary.
15412     hardcode_shlibpath_var=$hardcode_shlibpath_var
15413    
15414     # Set to "yes" if building a shared library automatically hardcodes DIR
15415     # into the library and all subsequent libraries and executables linked
15416     # against it.
15417     hardcode_automatic=$hardcode_automatic
15418    
15419     # Set to yes if linker adds runtime paths of dependent libraries
15420     # to runtime path list.
15421     inherit_rpath=$inherit_rpath
15422    
15423     # Whether libtool must link a program against all its dependency libraries.
15424     link_all_deplibs=$link_all_deplibs
15425    
15426     # Set to "yes" if exported symbols are required.
15427     always_export_symbols=$always_export_symbols
15428    
15429     # The commands to list exported symbols.
15430     export_symbols_cmds=$lt_export_symbols_cmds
15431    
15432     # Symbols that should not be listed in the preloaded symbols.
15433     exclude_expsyms=$lt_exclude_expsyms
15434    
15435     # Symbols that must always be exported.
15436     include_expsyms=$lt_include_expsyms
15437    
15438     # Commands necessary for linking programs (against libraries) with templates.
15439     prelink_cmds=$lt_prelink_cmds
15440    
15441     # Commands necessary for finishing linking programs.
15442     postlink_cmds=$lt_postlink_cmds
15443    
15444     # Specify filename containing input files.
15445     file_list_spec=$lt_file_list_spec
15446    
15447     # How to hardcode a shared library path into an executable.
15448     hardcode_action=$hardcode_action
15449    
15450     # ### END LIBTOOL CONFIG
15451    
15452     _LT_EOF
15453    
15454     case $host_os in
15455     aix3*)
15456     cat <<\_LT_EOF >> "$cfgfile"
15457     # AIX sometimes has problems with the GCC collect2 program. For some
15458     # reason, if we set the COLLECT_NAMES environment variable, the problems
15459     # vanish in a puff of smoke.
15460     if test set != "${COLLECT_NAMES+set}"; then
15461     COLLECT_NAMES=
15462     export COLLECT_NAMES
15463     fi
15464     _LT_EOF
15465     ;;
15466 michael 5052 esac
15467 michael 5059
15468    
15469     ltmain=$ac_aux_dir/ltmain.sh
15470    
15471    
15472     # We use sed instead of cat because bash on DJGPP gets confused if
15473     # if finds mixed CR/LF and LF-only lines. Since sed operates in
15474     # text mode, it properly converts lines to CR/LF. This bash problem
15475     # is reportedly fixed, but why not run on old versions too?
15476     sed '$q' "$ltmain" >> "$cfgfile" \
15477     || (rm -f "$cfgfile"; exit 1)
15478    
15479     mv -f "$cfgfile" "$ofile" ||
15480     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15481     chmod +x "$ofile"
15482    
15483     ;;
15484    
15485     esac
15486 michael 5052 done # for ac_tag
15487    
15488    
15489 michael 5059 as_fn_exit 0
15490 michael 5052 _ACEOF
15491     ac_clean_files=$ac_clean_files_save
15492    
15493 michael 5059 test $ac_write_fail = 0 ||
15494     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15495 michael 5052
15496 michael 5059
15497 michael 5052 # configure is writing to config.log, and then calls config.status.
15498     # config.status does its own redirection, appending to config.log.
15499     # Unfortunately, on DOS this fails, as config.log is still kept open
15500     # by configure, so config.status won't be able to write to it; its
15501     # output is simply discarded. So we exec the FD to /dev/null,
15502     # effectively closing config.log, so it can be properly (re)opened and
15503     # appended to by config.status. When coming back to configure, we
15504     # need to make the FD available again.
15505     if test "$no_create" != yes; then
15506     ac_cs_success=:
15507     ac_config_status_args=
15508     test "$silent" = yes &&
15509     ac_config_status_args="$ac_config_status_args --quiet"
15510     exec 5>/dev/null
15511     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15512     exec 5>>config.log
15513     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15514     # would make configure fail if this is the last instruction.
15515 michael 5059 $ac_cs_success || as_fn_exit 1
15516 michael 5052 fi
15517    
15518     #
15519     # CONFIG_SUBDIRS section.
15520     #
15521     if test "$no_recursion" != yes; then
15522    
15523 michael 5059 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15524     # so they do not pile up.
15525 michael 5052 ac_sub_configure_args=
15526     ac_prev=
15527     eval "set x $ac_configure_args"
15528     shift
15529     for ac_arg
15530     do
15531     if test -n "$ac_prev"; then
15532     ac_prev=
15533     continue
15534     fi
15535     case $ac_arg in
15536     -cache-file | --cache-file | --cache-fil | --cache-fi \
15537     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15538     ac_prev=cache_file ;;
15539     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15540     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15541     | --c=*)
15542     ;;
15543     --config-cache | -C)
15544     ;;
15545     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15546     ac_prev=srcdir ;;
15547     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15548     ;;
15549     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15550     ac_prev=prefix ;;
15551     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15552     ;;
15553 michael 5059 --disable-option-checking)
15554     ;;
15555 michael 5052 *)
15556     case $ac_arg in
15557 michael 5059 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15558 michael 5052 esac
15559 michael 5059 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15560 michael 5052 esac
15561     done
15562    
15563     # Always prepend --prefix to ensure using the same prefix
15564     # in subdir configurations.
15565     ac_arg="--prefix=$prefix"
15566     case $ac_arg in
15567 michael 5059 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15568 michael 5052 esac
15569 michael 5059 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15570 michael 5052
15571 michael 5059 # Pass --silent
15572     if test "$silent" = yes; then
15573     ac_sub_configure_args="--silent $ac_sub_configure_args"
15574     fi
15575    
15576     # Always prepend --disable-option-checking to silence warnings, since
15577     # different subdirs can have different --enable and --with options.
15578     ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15579    
15580 michael 5052 ac_popdir=`pwd`
15581     for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15582    
15583     # Do not complain, so a configure script can configure whichever
15584     # parts of a large source tree are present.
15585     test -d "$srcdir/$ac_dir" || continue
15586    
15587     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15588 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15589     $as_echo "$ac_msg" >&6
15590     as_dir="$ac_dir"; as_fn_mkdir_p
15591 michael 5052 ac_builddir=.
15592    
15593     case "$ac_dir" in
15594     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15595     *)
15596 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15597 michael 5052 # A ".." for each directory in $ac_dir_suffix.
15598 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15599 michael 5052 case $ac_top_builddir_sub in
15600     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15601     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15602     esac ;;
15603     esac
15604     ac_abs_top_builddir=$ac_pwd
15605     ac_abs_builddir=$ac_pwd$ac_dir_suffix
15606     # for backward compatibility:
15607     ac_top_builddir=$ac_top_build_prefix
15608    
15609     case $srcdir in
15610     .) # We are building in place.
15611     ac_srcdir=.
15612     ac_top_srcdir=$ac_top_builddir_sub
15613     ac_abs_top_srcdir=$ac_pwd ;;
15614     [\\/]* | ?:[\\/]* ) # Absolute name.
15615     ac_srcdir=$srcdir$ac_dir_suffix;
15616     ac_top_srcdir=$srcdir
15617     ac_abs_top_srcdir=$srcdir ;;
15618     *) # Relative name.
15619     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15620     ac_top_srcdir=$ac_top_build_prefix$srcdir
15621     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15622     esac
15623     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15624    
15625    
15626     cd "$ac_dir"
15627    
15628     # Check for guested configure; otherwise get Cygnus style configure.
15629     if test -f "$ac_srcdir/configure.gnu"; then
15630     ac_sub_configure=$ac_srcdir/configure.gnu
15631     elif test -f "$ac_srcdir/configure"; then
15632     ac_sub_configure=$ac_srcdir/configure
15633     elif test -f "$ac_srcdir/configure.in"; then
15634     # This should be Cygnus configure.
15635     ac_sub_configure=$ac_aux_dir/configure
15636     else
15637 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15638     $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15639 michael 5052 ac_sub_configure=
15640     fi
15641    
15642     # The recursion is here.
15643     if test -n "$ac_sub_configure"; then
15644     # Make the cache file name correct relative to the subdirectory.
15645     case $cache_file in
15646     [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15647     *) # Relative name.
15648     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15649     esac
15650    
15651 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15652     $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15653 michael 5052 # The eval makes quoting arguments work.
15654     eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15655     --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15656 michael 5059 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15657 michael 5052 fi
15658    
15659     cd "$ac_popdir"
15660     done
15661     fi
15662 michael 5059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15664     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15665     fi
15666 michael 5052
15667    
15668    
15669     echo "##############################################################################"
15670     echo "Everything is now configured, but you can find some more (infrequently"
15671     echo "changed) options in options.h. To compile BOPM now, just type make. It"
15672     echo "requires GNU Make, which may be installed as gmake on your system."
15673     echo
15674     echo "bopm will be installed in ${prefix}. To change this, run:"
15675     echo " ./configure --prefix=DIRECTORY"
15676     echo "##############################################################################"
15677     echo

Properties

Name Value
svn:executable