ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 5260
Committed: Thu Jan 1 17:53:18 2015 UTC (11 years, 6 months ago) by michael
File size: 447469 byte(s)
Log Message:
- More cleanups to the build system. Remove stuff we don't need

File Contents

# User Rev Content
1 michael 5052 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 michael 5061 # Generated by GNU Autoconf 2.69 for hopm 1.0.0beta1.
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 michael 5061 PACKAGE_NAME='hopm'
589     PACKAGE_TARNAME='hopm'
590     PACKAGE_VERSION='1.0.0beta1'
591     PACKAGE_STRING='hopm 1.0.0beta1'
592 michael 5052 PACKAGE_BUGREPORT=''
593 michael 5059 PACKAGE_URL=''
594 michael 5052
595     ac_unique_file="src/opercmd.h"
596 michael 5061 ac_default_prefix=\${HOME}/hopm
597 michael 5052 # 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 ac_subst_vars='am__EXEEXT_FALSE
634     am__EXEEXT_TRUE
635     LTLIBOBJS
636 michael 5052 LIBOBJS
637     LEXLIB
638     LEX_OUTPUT_ROOT
639 michael 5059 LEX
640     YFLAGS
641     YACC
642     CPP
643     OTOOL64
644     OTOOL
645     LIPO
646     NMEDIT
647     DSYMUTIL
648     MANIFEST_TOOL
649     RANLIB
650     ac_ct_AR
651     AR
652     DLLTOOL
653     OBJDUMP
654     LN_S
655     NM
656     ac_ct_DUMPBIN
657     DUMPBIN
658     LD
659     FGREP
660     EGREP
661     GREP
662     SED
663     host_os
664     host_vendor
665     host_cpu
666     host
667     build_os
668     build_vendor
669     build_cpu
670     build
671     LIBTOOL
672     am__fastdepCC_FALSE
673     am__fastdepCC_TRUE
674     CCDEPMODE
675     am__nodep
676     AMDEPBACKSLASH
677     AMDEP_FALSE
678     AMDEP_TRUE
679     am__quote
680     am__include
681     DEPDIR
682     OBJEXT
683     EXEEXT
684     ac_ct_CC
685     CPPFLAGS
686     LDFLAGS
687     CFLAGS
688     CC
689     MAINT
690     MAINTAINER_MODE_FALSE
691     MAINTAINER_MODE_TRUE
692     AM_BACKSLASH
693     AM_DEFAULT_VERBOSITY
694     AM_DEFAULT_V
695     AM_V
696     am__untar
697     am__tar
698     AMTAR
699     am__leading_dot
700     SET_MAKE
701     AWK
702     mkdir_p
703     MKDIR_P
704     INSTALL_STRIP_PROGRAM
705     STRIP
706     install_sh
707     MAKEINFO
708     AUTOHEADER
709     AUTOMAKE
710     AUTOCONF
711     ACLOCAL
712     VERSION
713     PACKAGE
714     CYGPATH_W
715     am__isrc
716     INSTALL_DATA
717     INSTALL_SCRIPT
718     INSTALL_PROGRAM
719     target_alias
720     host_alias
721     build_alias
722     LIBS
723     ECHO_T
724     ECHO_N
725     ECHO_C
726     DEFS
727     mandir
728     localedir
729     libdir
730     psdir
731     pdfdir
732     dvidir
733     htmldir
734     infodir
735     docdir
736     oldincludedir
737     includedir
738     localstatedir
739     sharedstatedir
740     sysconfdir
741     datadir
742     datarootdir
743     libexecdir
744     sbindir
745     bindir
746     program_transform_name
747     prefix
748     exec_prefix
749     PACKAGE_URL
750     PACKAGE_BUGREPORT
751     PACKAGE_STRING
752     PACKAGE_VERSION
753     PACKAGE_TARNAME
754     PACKAGE_NAME
755     PATH_SEPARATOR
756     SHELL'
757 michael 5052 ac_subst_files=''
758 michael 5059 ac_user_opts='
759     enable_option_checking
760     enable_silent_rules
761     enable_maintainer_mode
762     enable_dependency_tracking
763     enable_shared
764     enable_static
765     with_pic
766     enable_fast_install
767     with_aix_soname
768     with_gnu_ld
769     with_sysroot
770     enable_libtool_lock
771     '
772 michael 5052 ac_precious_vars='build_alias
773     host_alias
774     target_alias
775     CC
776     CFLAGS
777     LDFLAGS
778 michael 5059 LIBS
779 michael 5052 CPPFLAGS
780     CPP
781     YACC
782     YFLAGS'
783    
784 michael 5260
785 michael 5052 # Initialize some variables set by options.
786     ac_init_help=
787     ac_init_version=false
788 michael 5059 ac_unrecognized_opts=
789     ac_unrecognized_sep=
790 michael 5052 # The variables have the same names as the options, with
791     # dashes changed to underlines.
792     cache_file=/dev/null
793     exec_prefix=NONE
794     no_create=
795     no_recursion=
796     prefix=NONE
797     program_prefix=NONE
798     program_suffix=NONE
799     program_transform_name=s,x,x,
800     silent=
801     site=
802     srcdir=
803     verbose=
804     x_includes=NONE
805     x_libraries=NONE
806    
807     # Installation directory options.
808     # These are left unexpanded so users can "make install exec_prefix=/foo"
809     # and all the variables that are supposed to be based on exec_prefix
810     # by default will actually change.
811     # Use braces instead of parens because sh, perl, etc. also accept them.
812     # (The list follows the same order as the GNU Coding Standards.)
813     bindir='${exec_prefix}/bin'
814     sbindir='${exec_prefix}/sbin'
815     libexecdir='${exec_prefix}/libexec'
816     datarootdir='${prefix}/share'
817     datadir='${datarootdir}'
818     sysconfdir='${prefix}/etc'
819     sharedstatedir='${prefix}/com'
820     localstatedir='${prefix}/var'
821     includedir='${prefix}/include'
822     oldincludedir='/usr/include'
823     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824     infodir='${datarootdir}/info'
825     htmldir='${docdir}'
826     dvidir='${docdir}'
827     pdfdir='${docdir}'
828     psdir='${docdir}'
829     libdir='${exec_prefix}/lib'
830     localedir='${datarootdir}/locale'
831     mandir='${datarootdir}/man'
832    
833     ac_prev=
834     ac_dashdash=
835     for ac_option
836     do
837     # If the previous option needs an argument, assign it.
838     if test -n "$ac_prev"; then
839     eval $ac_prev=\$ac_option
840     ac_prev=
841     continue
842     fi
843    
844     case $ac_option in
845 michael 5059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846     *=) ac_optarg= ;;
847     *) ac_optarg=yes ;;
848 michael 5052 esac
849    
850     # Accept the important Cygnus configure options, so we can diagnose typos.
851    
852     case $ac_dashdash$ac_option in
853     --)
854     ac_dashdash=yes ;;
855    
856     -bindir | --bindir | --bindi | --bind | --bin | --bi)
857     ac_prev=bindir ;;
858     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859     bindir=$ac_optarg ;;
860    
861     -build | --build | --buil | --bui | --bu)
862     ac_prev=build_alias ;;
863     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864     build_alias=$ac_optarg ;;
865    
866     -cache-file | --cache-file | --cache-fil | --cache-fi \
867     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868     ac_prev=cache_file ;;
869     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871     cache_file=$ac_optarg ;;
872    
873     --config-cache | -C)
874     cache_file=config.cache ;;
875    
876     -datadir | --datadir | --datadi | --datad)
877     ac_prev=datadir ;;
878     -datadir=* | --datadir=* | --datadi=* | --datad=*)
879     datadir=$ac_optarg ;;
880    
881     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882     | --dataroo | --dataro | --datar)
883     ac_prev=datarootdir ;;
884     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886     datarootdir=$ac_optarg ;;
887    
888     -disable-* | --disable-*)
889 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 michael 5052 # Reject names that are not valid shell variable names.
891 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892     as_fn_error $? "invalid feature name: $ac_useropt"
893     ac_useropt_orig=$ac_useropt
894     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895     case $ac_user_opts in
896     *"
897     "enable_$ac_useropt"
898     "*) ;;
899     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900     ac_unrecognized_sep=', ';;
901     esac
902     eval enable_$ac_useropt=no ;;
903 michael 5052
904     -docdir | --docdir | --docdi | --doc | --do)
905     ac_prev=docdir ;;
906     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907     docdir=$ac_optarg ;;
908    
909     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910     ac_prev=dvidir ;;
911     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912     dvidir=$ac_optarg ;;
913    
914     -enable-* | --enable-*)
915 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 michael 5052 # Reject names that are not valid shell variable names.
917 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918     as_fn_error $? "invalid feature name: $ac_useropt"
919     ac_useropt_orig=$ac_useropt
920     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921     case $ac_user_opts in
922     *"
923     "enable_$ac_useropt"
924     "*) ;;
925     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926     ac_unrecognized_sep=', ';;
927     esac
928     eval enable_$ac_useropt=\$ac_optarg ;;
929 michael 5052
930     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932     | --exec | --exe | --ex)
933     ac_prev=exec_prefix ;;
934     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936     | --exec=* | --exe=* | --ex=*)
937     exec_prefix=$ac_optarg ;;
938    
939     -gas | --gas | --ga | --g)
940     # Obsolete; use --with-gas.
941     with_gas=yes ;;
942    
943     -help | --help | --hel | --he | -h)
944     ac_init_help=long ;;
945     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946     ac_init_help=recursive ;;
947     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948     ac_init_help=short ;;
949    
950     -host | --host | --hos | --ho)
951     ac_prev=host_alias ;;
952     -host=* | --host=* | --hos=* | --ho=*)
953     host_alias=$ac_optarg ;;
954    
955     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956     ac_prev=htmldir ;;
957     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958     | --ht=*)
959     htmldir=$ac_optarg ;;
960    
961     -includedir | --includedir | --includedi | --included | --include \
962     | --includ | --inclu | --incl | --inc)
963     ac_prev=includedir ;;
964     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965     | --includ=* | --inclu=* | --incl=* | --inc=*)
966     includedir=$ac_optarg ;;
967    
968     -infodir | --infodir | --infodi | --infod | --info | --inf)
969     ac_prev=infodir ;;
970     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971     infodir=$ac_optarg ;;
972    
973     -libdir | --libdir | --libdi | --libd)
974     ac_prev=libdir ;;
975     -libdir=* | --libdir=* | --libdi=* | --libd=*)
976     libdir=$ac_optarg ;;
977    
978     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979     | --libexe | --libex | --libe)
980     ac_prev=libexecdir ;;
981     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982     | --libexe=* | --libex=* | --libe=*)
983     libexecdir=$ac_optarg ;;
984    
985     -localedir | --localedir | --localedi | --localed | --locale)
986     ac_prev=localedir ;;
987     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988     localedir=$ac_optarg ;;
989    
990     -localstatedir | --localstatedir | --localstatedi | --localstated \
991     | --localstate | --localstat | --localsta | --localst | --locals)
992     ac_prev=localstatedir ;;
993     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995     localstatedir=$ac_optarg ;;
996    
997     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998     ac_prev=mandir ;;
999     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000     mandir=$ac_optarg ;;
1001    
1002     -nfp | --nfp | --nf)
1003     # Obsolete; use --without-fp.
1004     with_fp=no ;;
1005    
1006     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007     | --no-cr | --no-c | -n)
1008     no_create=yes ;;
1009    
1010     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012     no_recursion=yes ;;
1013    
1014     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016     | --oldin | --oldi | --old | --ol | --o)
1017     ac_prev=oldincludedir ;;
1018     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021     oldincludedir=$ac_optarg ;;
1022    
1023     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024     ac_prev=prefix ;;
1025     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026     prefix=$ac_optarg ;;
1027    
1028     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029     | --program-pre | --program-pr | --program-p)
1030     ac_prev=program_prefix ;;
1031     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033     program_prefix=$ac_optarg ;;
1034    
1035     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036     | --program-suf | --program-su | --program-s)
1037     ac_prev=program_suffix ;;
1038     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040     program_suffix=$ac_optarg ;;
1041    
1042     -program-transform-name | --program-transform-name \
1043     | --program-transform-nam | --program-transform-na \
1044     | --program-transform-n | --program-transform- \
1045     | --program-transform | --program-transfor \
1046     | --program-transfo | --program-transf \
1047     | --program-trans | --program-tran \
1048     | --progr-tra | --program-tr | --program-t)
1049     ac_prev=program_transform_name ;;
1050     -program-transform-name=* | --program-transform-name=* \
1051     | --program-transform-nam=* | --program-transform-na=* \
1052     | --program-transform-n=* | --program-transform-=* \
1053     | --program-transform=* | --program-transfor=* \
1054     | --program-transfo=* | --program-transf=* \
1055     | --program-trans=* | --program-tran=* \
1056     | --progr-tra=* | --program-tr=* | --program-t=*)
1057     program_transform_name=$ac_optarg ;;
1058    
1059     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060     ac_prev=pdfdir ;;
1061     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062     pdfdir=$ac_optarg ;;
1063    
1064     -psdir | --psdir | --psdi | --psd | --ps)
1065     ac_prev=psdir ;;
1066     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067     psdir=$ac_optarg ;;
1068    
1069     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070     | -silent | --silent | --silen | --sile | --sil)
1071     silent=yes ;;
1072    
1073     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074     ac_prev=sbindir ;;
1075     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076     | --sbi=* | --sb=*)
1077     sbindir=$ac_optarg ;;
1078    
1079     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081     | --sharedst | --shareds | --shared | --share | --shar \
1082     | --sha | --sh)
1083     ac_prev=sharedstatedir ;;
1084     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087     | --sha=* | --sh=*)
1088     sharedstatedir=$ac_optarg ;;
1089    
1090     -site | --site | --sit)
1091     ac_prev=site ;;
1092     -site=* | --site=* | --sit=*)
1093     site=$ac_optarg ;;
1094    
1095     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096     ac_prev=srcdir ;;
1097     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098     srcdir=$ac_optarg ;;
1099    
1100     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101     | --syscon | --sysco | --sysc | --sys | --sy)
1102     ac_prev=sysconfdir ;;
1103     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105     sysconfdir=$ac_optarg ;;
1106    
1107     -target | --target | --targe | --targ | --tar | --ta | --t)
1108     ac_prev=target_alias ;;
1109     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110     target_alias=$ac_optarg ;;
1111    
1112     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113     verbose=yes ;;
1114    
1115     -version | --version | --versio | --versi | --vers | -V)
1116     ac_init_version=: ;;
1117    
1118     -with-* | --with-*)
1119 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 michael 5052 # Reject names that are not valid shell variable names.
1121 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122     as_fn_error $? "invalid package name: $ac_useropt"
1123     ac_useropt_orig=$ac_useropt
1124     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125     case $ac_user_opts in
1126     *"
1127     "with_$ac_useropt"
1128     "*) ;;
1129     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130     ac_unrecognized_sep=', ';;
1131     esac
1132     eval with_$ac_useropt=\$ac_optarg ;;
1133 michael 5052
1134     -without-* | --without-*)
1135 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 michael 5052 # Reject names that are not valid shell variable names.
1137 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138     as_fn_error $? "invalid package name: $ac_useropt"
1139     ac_useropt_orig=$ac_useropt
1140     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141     case $ac_user_opts in
1142     *"
1143     "with_$ac_useropt"
1144     "*) ;;
1145     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146     ac_unrecognized_sep=', ';;
1147     esac
1148     eval with_$ac_useropt=no ;;
1149 michael 5052
1150     --x)
1151     # Obsolete; use --with-x.
1152     with_x=yes ;;
1153    
1154     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155     | --x-incl | --x-inc | --x-in | --x-i)
1156     ac_prev=x_includes ;;
1157     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159     x_includes=$ac_optarg ;;
1160    
1161     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163     ac_prev=x_libraries ;;
1164     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166     x_libraries=$ac_optarg ;;
1167    
1168 michael 5059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169     Try \`$0 --help' for more information"
1170 michael 5052 ;;
1171    
1172     *=*)
1173     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174     # Reject names that are not valid shell variable names.
1175 michael 5059 case $ac_envvar in #(
1176     '' | [0-9]* | *[!_$as_cr_alnum]* )
1177     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178     esac
1179 michael 5052 eval $ac_envvar=\$ac_optarg
1180     export $ac_envvar ;;
1181    
1182     *)
1183     # FIXME: should be removed in autoconf 3.0.
1184 michael 5059 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 michael 5052 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 michael 5059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 michael 5052 ;;
1189    
1190     esac
1191     done
1192    
1193     if test -n "$ac_prev"; then
1194     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 michael 5059 as_fn_error $? "missing argument to $ac_option"
1196 michael 5052 fi
1197    
1198 michael 5059 if test -n "$ac_unrecognized_opts"; then
1199     case $enable_option_checking in
1200     no) ;;
1201     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203     esac
1204     fi
1205    
1206     # Check all directory arguments for consistency.
1207 michael 5052 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208     datadir sysconfdir sharedstatedir localstatedir includedir \
1209     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210     libdir localedir mandir
1211     do
1212     eval ac_val=\$$ac_var
1213 michael 5059 # Remove trailing slashes.
1214 michael 5052 case $ac_val in
1215 michael 5059 */ )
1216     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217     eval $ac_var=\$ac_val;;
1218     esac
1219     # Be sure to have absolute directory names.
1220     case $ac_val in
1221 michael 5052 [\\/$]* | ?:[\\/]* ) continue;;
1222     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223     esac
1224 michael 5059 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 michael 5052 done
1226    
1227     # There might be people who depend on the old broken behavior: `$host'
1228     # used to hold the argument of --host etc.
1229     # FIXME: To remove some day.
1230     build=$build_alias
1231     host=$host_alias
1232     target=$target_alias
1233    
1234     # FIXME: To remove some day.
1235     if test "x$host_alias" != x; then
1236     if test "x$build_alias" = x; then
1237     cross_compiling=maybe
1238     elif test "x$build_alias" != "x$host_alias"; then
1239     cross_compiling=yes
1240     fi
1241     fi
1242    
1243     ac_tool_prefix=
1244     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245    
1246     test "$silent" = yes && exec 6>/dev/null
1247    
1248    
1249     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250     ac_ls_di=`ls -di .` &&
1251     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 michael 5059 as_fn_error $? "working directory cannot be determined"
1253 michael 5052 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 michael 5059 as_fn_error $? "pwd does not report name of working directory"
1255 michael 5052
1256    
1257     # Find the source files, if location was not specified.
1258     if test -z "$srcdir"; then
1259     ac_srcdir_defaulted=yes
1260     # Try the directory containing this script, then the parent directory.
1261 michael 5059 ac_confdir=`$as_dirname -- "$as_myself" ||
1262     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263     X"$as_myself" : 'X\(//\)[^/]' \| \
1264     X"$as_myself" : 'X\(//\)$' \| \
1265     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266     $as_echo X"$as_myself" |
1267 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268     s//\1/
1269     q
1270     }
1271     /^X\(\/\/\)[^/].*/{
1272     s//\1/
1273     q
1274     }
1275     /^X\(\/\/\)$/{
1276     s//\1/
1277     q
1278     }
1279     /^X\(\/\).*/{
1280     s//\1/
1281     q
1282     }
1283     s/.*/./; q'`
1284     srcdir=$ac_confdir
1285     if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287     fi
1288     else
1289     ac_srcdir_defaulted=no
1290     fi
1291     if test ! -r "$srcdir/$ac_unique_file"; then
1292     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 michael 5059 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 michael 5052 fi
1295     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296     ac_abs_confdir=`(
1297 michael 5059 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 michael 5052 pwd)`
1299     # When building in place, set srcdir=.
1300     if test "$ac_abs_confdir" = "$ac_pwd"; then
1301     srcdir=.
1302     fi
1303     # Remove unnecessary trailing slashes from srcdir.
1304     # Double slashes in file names in object file debugging info
1305     # mess up M-x gdb in Emacs.
1306     case $srcdir in
1307     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308     esac
1309     for ac_var in $ac_precious_vars; do
1310     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311     eval ac_env_${ac_var}_value=\$${ac_var}
1312     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314     done
1315    
1316     #
1317     # Report the --help message.
1318     #
1319     if test "$ac_init_help" = "long"; then
1320     # Omit some internal or obsolete options to make the list less imposing.
1321     # This message is too long to be a string in the A/UX 3.1 sh.
1322     cat <<_ACEOF
1323 michael 5061 \`configure' configures hopm 1.0.0beta1 to adapt to many kinds of systems.
1324 michael 5052
1325     Usage: $0 [OPTION]... [VAR=VALUE]...
1326    
1327     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328     VAR=VALUE. See below for descriptions of some of the useful variables.
1329    
1330     Defaults for the options are specified in brackets.
1331    
1332     Configuration:
1333     -h, --help display this help and exit
1334     --help=short display options specific to this package
1335     --help=recursive display the short help of all the included packages
1336     -V, --version display version information and exit
1337 michael 5059 -q, --quiet, --silent do not print \`checking ...' messages
1338 michael 5052 --cache-file=FILE cache test results in FILE [disabled]
1339     -C, --config-cache alias for \`--cache-file=config.cache'
1340     -n, --no-create do not create output files
1341     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342    
1343     Installation directories:
1344     --prefix=PREFIX install architecture-independent files in PREFIX
1345 michael 5059 [$ac_default_prefix]
1346 michael 5052 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 michael 5059 [PREFIX]
1348 michael 5052
1349     By default, \`make install' will install all the files in
1350     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352     for instance \`--prefix=\$HOME'.
1353    
1354     For better control, use the options below.
1355    
1356     Fine tuning of the installation directories:
1357 michael 5059 --bindir=DIR user executables [EPREFIX/bin]
1358     --sbindir=DIR system admin executables [EPREFIX/sbin]
1359     --libexecdir=DIR program executables [EPREFIX/libexec]
1360     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363     --libdir=DIR object code libraries [EPREFIX/lib]
1364     --includedir=DIR C header files [PREFIX/include]
1365     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368     --infodir=DIR info documentation [DATAROOTDIR/info]
1369     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370     --mandir=DIR man documentation [DATAROOTDIR/man]
1371 michael 5061 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1372 michael 5059 --htmldir=DIR html documentation [DOCDIR]
1373     --dvidir=DIR dvi documentation [DOCDIR]
1374     --pdfdir=DIR pdf documentation [DOCDIR]
1375     --psdir=DIR ps documentation [DOCDIR]
1376 michael 5052 _ACEOF
1377    
1378     cat <<\_ACEOF
1379    
1380     Program names:
1381     --program-prefix=PREFIX prepend PREFIX to installed program names
1382     --program-suffix=SUFFIX append SUFFIX to installed program names
1383     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384    
1385     System types:
1386     --build=BUILD configure for building on BUILD [guessed]
1387     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388     _ACEOF
1389     fi
1390    
1391     if test -n "$ac_init_help"; then
1392     case $ac_init_help in
1393 michael 5061 short | recursive ) echo "Configuration of hopm 1.0.0beta1:";;
1394 michael 5052 esac
1395     cat <<\_ACEOF
1396    
1397     Optional Features:
1398 michael 5059 --disable-option-checking ignore unrecognized --enable/--with options
1399 michael 5052 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 michael 5059 --enable-silent-rules less verbose build output (undo: "make V=1")
1402     --disable-silent-rules verbose build output (undo: "make V=0")
1403     --enable-maintainer-mode
1404     enable make rules and dependencies not useful (and
1405     sometimes confusing) to the casual installer
1406     --enable-dependency-tracking
1407     do not reject slow dependency extractors
1408     --disable-dependency-tracking
1409     speeds up one-time build
1410 michael 5052 --enable-shared[=PKGS] build shared libraries [default=yes]
1411     --enable-static[=PKGS] build static libraries [default=yes]
1412     --enable-fast-install[=PKGS]
1413     optimize for fast installation [default=yes]
1414     --disable-libtool-lock avoid locking (might break parallel builds)
1415    
1416     Optional Packages:
1417     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 michael 5059 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1420     both]
1421     --with-aix-soname=aix|svr4|both
1422     shared library versioning (aka "SONAME") variant to
1423     provide on AIX, [default=aix].
1424 michael 5052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 michael 5059 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1426     compiler's sysroot if not specified).
1427 michael 5052
1428     Some influential environment variables:
1429     CC C compiler command
1430     CFLAGS C compiler flags
1431     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432     nonstandard directory <lib dir>
1433 michael 5059 LIBS libraries to pass to the linker, e.g. -l<library>
1434     CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 michael 5052 you have headers in a nonstandard directory <include dir>
1436     CPP C preprocessor
1437 michael 5059 YACC The `Yet Another Compiler Compiler' implementation to use.
1438     Defaults to the first program found out of: `bison -y', `byacc',
1439     `yacc'.
1440 michael 5052 YFLAGS The list of arguments that will be passed by default to $YACC.
1441     This script will default YFLAGS to the empty string to avoid a
1442     default value of `-d' given by some make applications.
1443    
1444     Use these variables to override the choices made by `configure' or to help
1445     it to find libraries and programs with nonstandard names/locations.
1446    
1447 michael 5059 Report bugs to the package provider.
1448 michael 5052 _ACEOF
1449     ac_status=$?
1450     fi
1451    
1452     if test "$ac_init_help" = "recursive"; then
1453     # If there are subdirs, report their specific --help.
1454     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 michael 5059 test -d "$ac_dir" ||
1456     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457     continue
1458 michael 5052 ac_builddir=.
1459    
1460     case "$ac_dir" in
1461     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462     *)
1463 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 michael 5052 # A ".." for each directory in $ac_dir_suffix.
1465 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 michael 5052 case $ac_top_builddir_sub in
1467     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469     esac ;;
1470     esac
1471     ac_abs_top_builddir=$ac_pwd
1472     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473     # for backward compatibility:
1474     ac_top_builddir=$ac_top_build_prefix
1475    
1476     case $srcdir in
1477     .) # We are building in place.
1478     ac_srcdir=.
1479     ac_top_srcdir=$ac_top_builddir_sub
1480     ac_abs_top_srcdir=$ac_pwd ;;
1481     [\\/]* | ?:[\\/]* ) # Absolute name.
1482     ac_srcdir=$srcdir$ac_dir_suffix;
1483     ac_top_srcdir=$srcdir
1484     ac_abs_top_srcdir=$srcdir ;;
1485     *) # Relative name.
1486     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487     ac_top_srcdir=$ac_top_build_prefix$srcdir
1488     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489     esac
1490     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491    
1492     cd "$ac_dir" || { ac_status=$?; continue; }
1493     # Check for guested configure.
1494     if test -f "$ac_srcdir/configure.gnu"; then
1495     echo &&
1496     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497     elif test -f "$ac_srcdir/configure"; then
1498     echo &&
1499     $SHELL "$ac_srcdir/configure" --help=recursive
1500     else
1501 michael 5059 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 michael 5052 fi || ac_status=$?
1503     cd "$ac_pwd" || { ac_status=$?; break; }
1504     done
1505     fi
1506    
1507     test -n "$ac_init_help" && exit $ac_status
1508     if $ac_init_version; then
1509     cat <<\_ACEOF
1510 michael 5061 hopm configure 1.0.0beta1
1511 michael 5059 generated by GNU Autoconf 2.69
1512 michael 5052
1513 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
1514 michael 5052 This configure script is free software; the Free Software Foundation
1515     gives unlimited permission to copy, distribute and modify it.
1516     _ACEOF
1517     exit
1518     fi
1519 michael 5059
1520     ## ------------------------ ##
1521     ## Autoconf initialization. ##
1522     ## ------------------------ ##
1523    
1524     # ac_fn_c_try_compile LINENO
1525     # --------------------------
1526     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527     ac_fn_c_try_compile ()
1528     {
1529     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530     rm -f conftest.$ac_objext
1531     if { { ac_try="$ac_compile"
1532     case "(($ac_try" in
1533     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534     *) ac_try_echo=$ac_try;;
1535     esac
1536     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537     $as_echo "$ac_try_echo"; } >&5
1538     (eval "$ac_compile") 2>conftest.err
1539     ac_status=$?
1540     if test -s conftest.err; then
1541     grep -v '^ *+' conftest.err >conftest.er1
1542     cat conftest.er1 >&5
1543     mv -f conftest.er1 conftest.err
1544     fi
1545     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546     test $ac_status = 0; } && {
1547     test -z "$ac_c_werror_flag" ||
1548     test ! -s conftest.err
1549     } && test -s conftest.$ac_objext; then :
1550     ac_retval=0
1551     else
1552     $as_echo "$as_me: failed program was:" >&5
1553     sed 's/^/| /' conftest.$ac_ext >&5
1554    
1555     ac_retval=1
1556     fi
1557     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558     as_fn_set_status $ac_retval
1559    
1560     } # ac_fn_c_try_compile
1561    
1562     # ac_fn_c_try_link LINENO
1563     # -----------------------
1564     # Try to link conftest.$ac_ext, and return whether this succeeded.
1565     ac_fn_c_try_link ()
1566     {
1567     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568     rm -f conftest.$ac_objext conftest$ac_exeext
1569     if { { ac_try="$ac_link"
1570     case "(($ac_try" in
1571     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572     *) ac_try_echo=$ac_try;;
1573     esac
1574     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575     $as_echo "$ac_try_echo"; } >&5
1576     (eval "$ac_link") 2>conftest.err
1577     ac_status=$?
1578     if test -s conftest.err; then
1579     grep -v '^ *+' conftest.err >conftest.er1
1580     cat conftest.er1 >&5
1581     mv -f conftest.er1 conftest.err
1582     fi
1583     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584     test $ac_status = 0; } && {
1585     test -z "$ac_c_werror_flag" ||
1586     test ! -s conftest.err
1587     } && test -s conftest$ac_exeext && {
1588     test "$cross_compiling" = yes ||
1589     test -x conftest$ac_exeext
1590     }; then :
1591     ac_retval=0
1592     else
1593     $as_echo "$as_me: failed program was:" >&5
1594     sed 's/^/| /' conftest.$ac_ext >&5
1595    
1596     ac_retval=1
1597     fi
1598     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600     # interfere with the next link command; also delete a directory that is
1601     # left behind by Apple's compiler. We do this before executing the actions.
1602     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604     as_fn_set_status $ac_retval
1605    
1606     } # ac_fn_c_try_link
1607    
1608     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609     # -------------------------------------------------------
1610     # Tests whether HEADER exists and can be compiled using the include files in
1611     # INCLUDES, setting the cache variable VAR accordingly.
1612     ac_fn_c_check_header_compile ()
1613     {
1614     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616     $as_echo_n "checking for $2... " >&6; }
1617     if eval \${$3+:} false; then :
1618     $as_echo_n "(cached) " >&6
1619     else
1620     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621     /* end confdefs.h. */
1622     $4
1623     #include <$2>
1624     _ACEOF
1625     if ac_fn_c_try_compile "$LINENO"; then :
1626     eval "$3=yes"
1627     else
1628     eval "$3=no"
1629     fi
1630     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631     fi
1632     eval ac_res=\$$3
1633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634     $as_echo "$ac_res" >&6; }
1635     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636    
1637     } # ac_fn_c_check_header_compile
1638    
1639     # ac_fn_c_try_cpp LINENO
1640     # ----------------------
1641     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642     ac_fn_c_try_cpp ()
1643     {
1644     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645     if { { ac_try="$ac_cpp conftest.$ac_ext"
1646     case "(($ac_try" in
1647     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648     *) ac_try_echo=$ac_try;;
1649     esac
1650     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651     $as_echo "$ac_try_echo"; } >&5
1652     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653     ac_status=$?
1654     if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658     fi
1659     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660     test $ac_status = 0; } > conftest.i && {
1661     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662     test ! -s conftest.err
1663     }; then :
1664     ac_retval=0
1665     else
1666     $as_echo "$as_me: failed program was:" >&5
1667     sed 's/^/| /' conftest.$ac_ext >&5
1668    
1669     ac_retval=1
1670     fi
1671     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672     as_fn_set_status $ac_retval
1673    
1674     } # ac_fn_c_try_cpp
1675    
1676     # ac_fn_c_try_run LINENO
1677     # ----------------------
1678     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679     # that executables *can* be run.
1680     ac_fn_c_try_run ()
1681     {
1682     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683     if { { ac_try="$ac_link"
1684     case "(($ac_try" in
1685     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686     *) ac_try_echo=$ac_try;;
1687     esac
1688     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689     $as_echo "$ac_try_echo"; } >&5
1690     (eval "$ac_link") 2>&5
1691     ac_status=$?
1692     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694     { { case "(($ac_try" in
1695     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696     *) ac_try_echo=$ac_try;;
1697     esac
1698     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699     $as_echo "$ac_try_echo"; } >&5
1700     (eval "$ac_try") 2>&5
1701     ac_status=$?
1702     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703     test $ac_status = 0; }; }; then :
1704     ac_retval=0
1705     else
1706     $as_echo "$as_me: program exited with status $ac_status" >&5
1707     $as_echo "$as_me: failed program was:" >&5
1708     sed 's/^/| /' conftest.$ac_ext >&5
1709    
1710     ac_retval=$ac_status
1711     fi
1712     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714     as_fn_set_status $ac_retval
1715    
1716     } # ac_fn_c_try_run
1717    
1718     # ac_fn_c_check_func LINENO FUNC VAR
1719     # ----------------------------------
1720     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721     ac_fn_c_check_func ()
1722     {
1723     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725     $as_echo_n "checking for $2... " >&6; }
1726     if eval \${$3+:} false; then :
1727     $as_echo_n "(cached) " >&6
1728     else
1729     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730     /* end confdefs.h. */
1731     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1733     #define $2 innocuous_$2
1734    
1735     /* System header to define __stub macros and hopefully few prototypes,
1736     which can conflict with char $2 (); below.
1737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738     <limits.h> exists even on freestanding compilers. */
1739    
1740     #ifdef __STDC__
1741     # include <limits.h>
1742     #else
1743     # include <assert.h>
1744     #endif
1745    
1746     #undef $2
1747    
1748     /* Override any GCC internal prototype to avoid an error.
1749     Use char because int might match the return type of a GCC
1750     builtin and then its argument prototype would still apply. */
1751     #ifdef __cplusplus
1752     extern "C"
1753     #endif
1754     char $2 ();
1755     /* The GNU C library defines this for functions which it implements
1756     to always fail with ENOSYS. Some functions are actually named
1757     something starting with __ and the normal name is an alias. */
1758     #if defined __stub_$2 || defined __stub___$2
1759     choke me
1760     #endif
1761    
1762     int
1763     main ()
1764     {
1765     return $2 ();
1766     ;
1767     return 0;
1768     }
1769     _ACEOF
1770     if ac_fn_c_try_link "$LINENO"; then :
1771     eval "$3=yes"
1772     else
1773     eval "$3=no"
1774     fi
1775     rm -f core conftest.err conftest.$ac_objext \
1776     conftest$ac_exeext conftest.$ac_ext
1777     fi
1778     eval ac_res=\$$3
1779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780     $as_echo "$ac_res" >&6; }
1781     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782    
1783     } # ac_fn_c_check_func
1784    
1785     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786     # -------------------------------------------------------
1787     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788     # the include files in INCLUDES and setting the cache variable VAR
1789     # accordingly.
1790     ac_fn_c_check_header_mongrel ()
1791     {
1792     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793     if eval \${$3+:} false; then :
1794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795     $as_echo_n "checking for $2... " >&6; }
1796     if eval \${$3+:} false; then :
1797     $as_echo_n "(cached) " >&6
1798     fi
1799     eval ac_res=\$$3
1800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801     $as_echo "$ac_res" >&6; }
1802     else
1803     # Is the header compilable?
1804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805     $as_echo_n "checking $2 usability... " >&6; }
1806     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807     /* end confdefs.h. */
1808     $4
1809     #include <$2>
1810     _ACEOF
1811     if ac_fn_c_try_compile "$LINENO"; then :
1812     ac_header_compiler=yes
1813     else
1814     ac_header_compiler=no
1815     fi
1816     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818     $as_echo "$ac_header_compiler" >&6; }
1819    
1820     # Is the header present?
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822     $as_echo_n "checking $2 presence... " >&6; }
1823     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824     /* end confdefs.h. */
1825     #include <$2>
1826     _ACEOF
1827     if ac_fn_c_try_cpp "$LINENO"; then :
1828     ac_header_preproc=yes
1829     else
1830     ac_header_preproc=no
1831     fi
1832     rm -f conftest.err conftest.i conftest.$ac_ext
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834     $as_echo "$ac_header_preproc" >&6; }
1835    
1836     # So? What about this header?
1837     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838     yes:no: )
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843     ;;
1844     no:yes:* )
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855     ;;
1856     esac
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858     $as_echo_n "checking for $2... " >&6; }
1859     if eval \${$3+:} false; then :
1860     $as_echo_n "(cached) " >&6
1861     else
1862     eval "$3=\$ac_header_compiler"
1863     fi
1864     eval ac_res=\$$3
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866     $as_echo "$ac_res" >&6; }
1867     fi
1868     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869    
1870     } # ac_fn_c_check_header_mongrel
1871 michael 5052 cat >config.log <<_ACEOF
1872     This file contains any messages produced by compilers while
1873     running configure, to aid debugging if configure makes a mistake.
1874    
1875 michael 5061 It was created by hopm $as_me 1.0.0beta1, which was
1876 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
1877 michael 5052
1878     $ $0 $@
1879    
1880     _ACEOF
1881     exec 5>>config.log
1882     {
1883     cat <<_ASUNAME
1884     ## --------- ##
1885     ## Platform. ##
1886     ## --------- ##
1887    
1888     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893    
1894     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896    
1897     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1904    
1905     _ASUNAME
1906    
1907     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908     for as_dir in $PATH
1909     do
1910     IFS=$as_save_IFS
1911     test -z "$as_dir" && as_dir=.
1912 michael 5059 $as_echo "PATH: $as_dir"
1913     done
1914 michael 5052 IFS=$as_save_IFS
1915    
1916     } >&5
1917    
1918     cat >&5 <<_ACEOF
1919    
1920    
1921     ## ----------- ##
1922     ## Core tests. ##
1923     ## ----------- ##
1924    
1925     _ACEOF
1926    
1927    
1928     # Keep a trace of the command line.
1929     # Strip out --no-create and --no-recursion so they do not pile up.
1930     # Strip out --silent because we don't want to record it for future runs.
1931     # Also quote any args containing shell meta-characters.
1932     # Make two passes to allow for proper duplicate-argument suppression.
1933     ac_configure_args=
1934     ac_configure_args0=
1935     ac_configure_args1=
1936     ac_must_keep_next=false
1937     for ac_pass in 1 2
1938     do
1939     for ac_arg
1940     do
1941     case $ac_arg in
1942     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944     | -silent | --silent | --silen | --sile | --sil)
1945     continue ;;
1946     *\'*)
1947 michael 5059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 michael 5052 esac
1949     case $ac_pass in
1950 michael 5059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 michael 5052 2)
1952 michael 5059 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 michael 5052 if test $ac_must_keep_next = true; then
1954     ac_must_keep_next=false # Got value, back to normal.
1955     else
1956     case $ac_arg in
1957     *=* | --config-cache | -C | -disable-* | --disable-* \
1958     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960     | -with-* | --with-* | -without-* | --without-* | --x)
1961     case "$ac_configure_args0 " in
1962     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963     esac
1964     ;;
1965     -* ) ac_must_keep_next=true ;;
1966     esac
1967     fi
1968 michael 5059 as_fn_append ac_configure_args " '$ac_arg'"
1969 michael 5052 ;;
1970     esac
1971     done
1972     done
1973 michael 5059 { ac_configure_args0=; unset ac_configure_args0;}
1974     { ac_configure_args1=; unset ac_configure_args1;}
1975 michael 5052
1976     # When interrupted or exit'd, cleanup temporary files, and complete
1977     # config.log. We remove comments because anyway the quotes in there
1978     # would cause problems or look ugly.
1979     # WARNING: Use '\'' to represent an apostrophe within the trap.
1980     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981     trap 'exit_status=$?
1982     # Save into config.log some information that might help in debugging.
1983     {
1984     echo
1985    
1986 michael 5059 $as_echo "## ---------------- ##
1987 michael 5052 ## Cache variables. ##
1988 michael 5059 ## ---------------- ##"
1989 michael 5052 echo
1990     # The following way of writing the cache mishandles newlines in values,
1991     (
1992     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993     eval ac_val=\$$ac_var
1994     case $ac_val in #(
1995     *${as_nl}*)
1996     case $ac_var in #(
1997 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999 michael 5052 esac
2000     case $ac_var in #(
2001     _ | IFS | as_nl) ;; #(
2002 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003     *) { eval $ac_var=; unset $ac_var;} ;;
2004 michael 5052 esac ;;
2005     esac
2006     done
2007     (set) 2>&1 |
2008     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009     *${as_nl}ac_space=\ *)
2010     sed -n \
2011     "s/'\''/'\''\\\\'\'''\''/g;
2012     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013     ;; #(
2014     *)
2015     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016     ;;
2017     esac |
2018     sort
2019     )
2020     echo
2021    
2022 michael 5059 $as_echo "## ----------------- ##
2023 michael 5052 ## Output variables. ##
2024 michael 5059 ## ----------------- ##"
2025 michael 5052 echo
2026     for ac_var in $ac_subst_vars
2027     do
2028     eval ac_val=\$$ac_var
2029     case $ac_val in
2030 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 michael 5052 esac
2032 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
2033 michael 5052 done | sort
2034     echo
2035    
2036     if test -n "$ac_subst_files"; then
2037 michael 5059 $as_echo "## ------------------- ##
2038 michael 5052 ## File substitutions. ##
2039 michael 5059 ## ------------------- ##"
2040 michael 5052 echo
2041     for ac_var in $ac_subst_files
2042     do
2043     eval ac_val=\$$ac_var
2044     case $ac_val in
2045 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 michael 5052 esac
2047 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
2048 michael 5052 done | sort
2049     echo
2050     fi
2051    
2052     if test -s confdefs.h; then
2053 michael 5059 $as_echo "## ----------- ##
2054 michael 5052 ## confdefs.h. ##
2055 michael 5059 ## ----------- ##"
2056 michael 5052 echo
2057     cat confdefs.h
2058     echo
2059     fi
2060     test "$ac_signal" != 0 &&
2061 michael 5059 $as_echo "$as_me: caught signal $ac_signal"
2062     $as_echo "$as_me: exit $exit_status"
2063 michael 5052 } >&5
2064     rm -f core *.core core.conftest.* &&
2065     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066     exit $exit_status
2067     ' 0
2068     for ac_signal in 1 2 13 15; do
2069 michael 5059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 michael 5052 done
2071     ac_signal=0
2072    
2073     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074     rm -f -r conftest* confdefs.h
2075    
2076 michael 5059 $as_echo "/* confdefs.h */" > confdefs.h
2077    
2078 michael 5052 # Predefined preprocessor variables.
2079    
2080     cat >>confdefs.h <<_ACEOF
2081     #define PACKAGE_NAME "$PACKAGE_NAME"
2082     _ACEOF
2083    
2084     cat >>confdefs.h <<_ACEOF
2085     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086     _ACEOF
2087    
2088     cat >>confdefs.h <<_ACEOF
2089     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090     _ACEOF
2091    
2092     cat >>confdefs.h <<_ACEOF
2093     #define PACKAGE_STRING "$PACKAGE_STRING"
2094     _ACEOF
2095    
2096     cat >>confdefs.h <<_ACEOF
2097     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098     _ACEOF
2099    
2100 michael 5059 cat >>confdefs.h <<_ACEOF
2101     #define PACKAGE_URL "$PACKAGE_URL"
2102     _ACEOF
2103 michael 5052
2104 michael 5059
2105 michael 5052 # Let the site file select an alternate cache file if it wants to.
2106 michael 5059 # Prefer an explicitly selected file to automatically selected ones.
2107     ac_site_file1=NONE
2108     ac_site_file2=NONE
2109 michael 5052 if test -n "$CONFIG_SITE"; then
2110 michael 5059 # We do not want a PATH search for config.site.
2111     case $CONFIG_SITE in #((
2112     -*) ac_site_file1=./$CONFIG_SITE;;
2113     */*) ac_site_file1=$CONFIG_SITE;;
2114     *) ac_site_file1=./$CONFIG_SITE;;
2115     esac
2116 michael 5052 elif test "x$prefix" != xNONE; then
2117 michael 5059 ac_site_file1=$prefix/share/config.site
2118     ac_site_file2=$prefix/etc/config.site
2119 michael 5052 else
2120 michael 5059 ac_site_file1=$ac_default_prefix/share/config.site
2121     ac_site_file2=$ac_default_prefix/etc/config.site
2122 michael 5052 fi
2123 michael 5059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2124 michael 5052 do
2125 michael 5059 test "x$ac_site_file" = xNONE && continue
2126     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129 michael 5052 sed 's/^/| /' "$ac_site_file" >&5
2130 michael 5059 . "$ac_site_file" \
2131     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133     as_fn_error $? "failed to load site script $ac_site_file
2134     See \`config.log' for more details" "$LINENO" 5; }
2135 michael 5052 fi
2136     done
2137    
2138     if test -r "$cache_file"; then
2139 michael 5059 # Some versions of bash will fail to source /dev/null (special files
2140     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2141     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143     $as_echo "$as_me: loading cache $cache_file" >&6;}
2144 michael 5052 case $cache_file in
2145     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146     *) . "./$cache_file";;
2147     esac
2148     fi
2149     else
2150 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151     $as_echo "$as_me: creating cache $cache_file" >&6;}
2152 michael 5052 >$cache_file
2153     fi
2154    
2155     # Check that the precious variables saved in the cache have kept the same
2156     # value.
2157     ac_cache_corrupted=false
2158     for ac_var in $ac_precious_vars; do
2159     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160     eval ac_new_set=\$ac_env_${ac_var}_set
2161     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162     eval ac_new_val=\$ac_env_${ac_var}_value
2163     case $ac_old_set,$ac_new_set in
2164     set,)
2165 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167 michael 5052 ac_cache_corrupted=: ;;
2168     ,set)
2169 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171 michael 5052 ac_cache_corrupted=: ;;
2172     ,);;
2173     *)
2174     if test "x$ac_old_val" != "x$ac_new_val"; then
2175 michael 5059 # differences in whitespace do not lead to failure.
2176     ac_old_val_w=`echo x $ac_old_val`
2177     ac_new_val_w=`echo x $ac_new_val`
2178     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181     ac_cache_corrupted=:
2182     else
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185     eval $ac_var=\$ac_old_val
2186     fi
2187     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2188     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2189     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2190     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2191 michael 5052 fi;;
2192     esac
2193     # Pass precious variables to config.status.
2194     if test "$ac_new_set" = set; then
2195     case $ac_new_val in
2196 michael 5059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 michael 5052 *) ac_arg=$ac_var=$ac_new_val ;;
2198     esac
2199     case " $ac_configure_args " in
2200     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2201 michael 5059 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202 michael 5052 esac
2203     fi
2204     done
2205     if $ac_cache_corrupted; then
2206 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210     as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 michael 5052 fi
2212 michael 5059 ## -------------------- ##
2213     ## Main body of script. ##
2214     ## -------------------- ##
2215 michael 5052
2216     ac_ext=c
2217     ac_cpp='$CPP $CPPFLAGS'
2218     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221    
2222    
2223    
2224     ac_config_headers="$ac_config_headers src/setup.h"
2225    
2226 michael 5059 am__api_version='1.14'
2227    
2228 michael 5052 ac_aux_dir=
2229     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2230     if test -f "$ac_dir/install-sh"; then
2231     ac_aux_dir=$ac_dir
2232     ac_install_sh="$ac_aux_dir/install-sh -c"
2233     break
2234     elif test -f "$ac_dir/install.sh"; then
2235     ac_aux_dir=$ac_dir
2236     ac_install_sh="$ac_aux_dir/install.sh -c"
2237     break
2238     elif test -f "$ac_dir/shtool"; then
2239     ac_aux_dir=$ac_dir
2240     ac_install_sh="$ac_aux_dir/shtool install -c"
2241     break
2242     fi
2243     done
2244     if test -z "$ac_aux_dir"; then
2245 michael 5059 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2246 michael 5052 fi
2247    
2248     # These three variables are undocumented and unsupported,
2249     # and are intended to be withdrawn in a future Autoconf release.
2250     # They can cause serious problems if a builder's source tree is in a directory
2251     # whose full name contains unusual characters.
2252     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2255    
2256    
2257     # Find a good install program. We prefer a C program (faster),
2258     # so one script is as good as another. But avoid the broken or
2259     # incompatible versions:
2260     # SysV /etc/install, /usr/sbin/install
2261     # SunOS /usr/etc/install
2262     # IRIX /sbin/install
2263     # AIX /bin/install
2264     # AmigaOS /C/install, which installs bootblocks on floppy discs
2265     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268     # OS/2's system install, which has a completely different semantic
2269     # ./install, which can be erroneously created by make from ./install.sh.
2270 michael 5059 # Reject install programs that cannot install multiple files.
2271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272     $as_echo_n "checking for a BSD-compatible install... " >&6; }
2273 michael 5052 if test -z "$INSTALL"; then
2274 michael 5059 if ${ac_cv_path_install+:} false; then :
2275     $as_echo_n "(cached) " >&6
2276 michael 5052 else
2277     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278     for as_dir in $PATH
2279     do
2280     IFS=$as_save_IFS
2281     test -z "$as_dir" && as_dir=.
2282 michael 5059 # Account for people who put trailing slashes in PATH elements.
2283     case $as_dir/ in #((
2284     ./ | .// | /[cC]/* | \
2285 michael 5052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286 michael 5059 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287 michael 5052 /usr/ucb/* ) ;;
2288     *)
2289     # OSF1 and SCO ODT 3.0 have their own names for install.
2290     # Don't use installbsd from OSF since it installs stuff as root
2291     # by default.
2292     for ac_prog in ginstall scoinst install; do
2293     for ac_exec_ext in '' $ac_executable_extensions; do
2294 michael 5059 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2295 michael 5052 if test $ac_prog = install &&
2296     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297     # AIX install. It has an incompatible calling convention.
2298     :
2299     elif test $ac_prog = install &&
2300     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301     # program-specific install script used by HP pwplus--don't use.
2302     :
2303     else
2304 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2305     echo one > conftest.one
2306     echo two > conftest.two
2307     mkdir conftest.dir
2308     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309     test -s conftest.one && test -s conftest.two &&
2310     test -s conftest.dir/conftest.one &&
2311     test -s conftest.dir/conftest.two
2312     then
2313     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314     break 3
2315     fi
2316 michael 5052 fi
2317     fi
2318     done
2319     done
2320     ;;
2321     esac
2322 michael 5059
2323     done
2324 michael 5052 IFS=$as_save_IFS
2325    
2326 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2327 michael 5052
2328     fi
2329     if test "${ac_cv_path_install+set}" = set; then
2330     INSTALL=$ac_cv_path_install
2331     else
2332     # As a last resort, use the slow shell script. Don't cache a
2333     # value for INSTALL within a source directory, because that will
2334     # break other packages using the cache if that directory is
2335     # removed, or if the value is a relative name.
2336     INSTALL=$ac_install_sh
2337     fi
2338     fi
2339 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340     $as_echo "$INSTALL" >&6; }
2341 michael 5052
2342     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343     # It thinks the first close brace ends the variable substitution.
2344     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345    
2346     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347    
2348     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349    
2350 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351     $as_echo_n "checking whether build environment is sane... " >&6; }
2352     # Reject unsafe characters in $srcdir or the absolute working directory
2353     # name. Accept space and tab only in the latter.
2354     am_lf='
2355     '
2356     case `pwd` in
2357     *[\\\"\#\$\&\'\`$am_lf]*)
2358     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2359     esac
2360     case $srcdir in
2361     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2362     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2363     esac
2364    
2365     # Do 'set' in a subshell so we don't clobber the current shell's
2366 michael 5052 # arguments. Must try -L first in case configure is actually a
2367     # symlink; some systems play weird games with the mod time of symlinks
2368     # (eg FreeBSD returns the mod time of the symlink's containing
2369     # directory).
2370     if (
2371 michael 5059 am_has_slept=no
2372     for am_try in 1 2; do
2373     echo "timestamp, slept: $am_has_slept" > conftest.file
2374     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375     if test "$*" = "X"; then
2376     # -L didn't work.
2377     set X `ls -t "$srcdir/configure" conftest.file`
2378     fi
2379     if test "$*" != "X $srcdir/configure conftest.file" \
2380     && test "$*" != "X conftest.file $srcdir/configure"; then
2381 michael 5052
2382 michael 5059 # If neither matched, then we have a broken ls. This can happen
2383     # if, for instance, CONFIG_SHELL is bash and it inherits a
2384     # broken ls alias from the environment. This has actually
2385     # happened. Such a system could not be considered "sane".
2386     as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2387     alias in your environment" "$LINENO" 5
2388     fi
2389     if test "$2" = conftest.file || test $am_try -eq 2; then
2390     break
2391     fi
2392     # Just in case.
2393     sleep 1
2394     am_has_slept=yes
2395     done
2396 michael 5052 test "$2" = conftest.file
2397     )
2398     then
2399     # Ok.
2400     :
2401     else
2402 michael 5059 as_fn_error $? "newly created file is older than distributed files!
2403     Check your system clock" "$LINENO" 5
2404 michael 5052 fi
2405 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406     $as_echo "yes" >&6; }
2407     # If we didn't sleep, we still need to ensure time stamps of config.status and
2408     # generated files are strictly newer.
2409     am_sleep_pid=
2410     if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2411     ( sleep 1 ) &
2412     am_sleep_pid=$!
2413     fi
2414    
2415     rm -f conftest.file
2416    
2417 michael 5052 test "$program_prefix" != NONE &&
2418     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2419     # Use a double $ so make ignores it.
2420     test "$program_suffix" != NONE &&
2421     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2422 michael 5059 # Double any \ or $.
2423 michael 5052 # By default was `s,x,x', remove it if useless.
2424 michael 5059 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2425     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2426 michael 5052
2427     # expand $ac_aux_dir to an absolute path
2428     am_aux_dir=`cd $ac_aux_dir && pwd`
2429    
2430 michael 5059 if test x"${MISSING+set}" != xset; then
2431     case $am_aux_dir in
2432     *\ * | *\ *)
2433     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2434     *)
2435     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2436     esac
2437     fi
2438 michael 5052 # Use eval to expand $SHELL
2439 michael 5059 if eval "$MISSING --is-lightweight"; then
2440     am_missing_run="$MISSING "
2441 michael 5052 else
2442     am_missing_run=
2443 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2444     $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2445 michael 5052 fi
2446    
2447 michael 5059 if test x"${install_sh}" != xset; then
2448     case $am_aux_dir in
2449     *\ * | *\ *)
2450     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2451     *)
2452     install_sh="\${SHELL} $am_aux_dir/install-sh"
2453     esac
2454     fi
2455    
2456     # Installed binaries are usually stripped using 'strip' when the user
2457     # run "make install-strip". However 'strip' might not be the right
2458     # tool to use in cross-compilation environments, therefore Automake
2459     # will honor the 'STRIP' environment variable to overrule this program.
2460     if test "$cross_compiling" != no; then
2461     if test -n "$ac_tool_prefix"; then
2462     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463     set dummy ${ac_tool_prefix}strip; ac_word=$2
2464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465     $as_echo_n "checking for $ac_word... " >&6; }
2466     if ${ac_cv_prog_STRIP+:} false; then :
2467     $as_echo_n "(cached) " >&6
2468 michael 5052 else
2469 michael 5059 if test -n "$STRIP"; then
2470     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471     else
2472     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473     for as_dir in $PATH
2474     do
2475     IFS=$as_save_IFS
2476     test -z "$as_dir" && as_dir=.
2477     for ac_exec_ext in '' $ac_executable_extensions; do
2478     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482     fi
2483     done
2484 michael 5052 done
2485 michael 5059 IFS=$as_save_IFS
2486    
2487     fi
2488     fi
2489     STRIP=$ac_cv_prog_STRIP
2490     if test -n "$STRIP"; then
2491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2492     $as_echo "$STRIP" >&6; }
2493     else
2494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495     $as_echo "no" >&6; }
2496     fi
2497    
2498    
2499     fi
2500     if test -z "$ac_cv_prog_STRIP"; then
2501     ac_ct_STRIP=$STRIP
2502     # Extract the first word of "strip", so it can be a program name with args.
2503     set dummy strip; ac_word=$2
2504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505     $as_echo_n "checking for $ac_word... " >&6; }
2506     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2507     $as_echo_n "(cached) " >&6
2508     else
2509     if test -n "$ac_ct_STRIP"; then
2510     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511     else
2512     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513     for as_dir in $PATH
2514     do
2515     IFS=$as_save_IFS
2516     test -z "$as_dir" && as_dir=.
2517     for ac_exec_ext in '' $ac_executable_extensions; do
2518     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519     ac_cv_prog_ac_ct_STRIP="strip"
2520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522     fi
2523     done
2524     done
2525     IFS=$as_save_IFS
2526    
2527     fi
2528     fi
2529     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530     if test -n "$ac_ct_STRIP"; then
2531     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2532     $as_echo "$ac_ct_STRIP" >&6; }
2533     else
2534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535     $as_echo "no" >&6; }
2536     fi
2537    
2538     if test "x$ac_ct_STRIP" = x; then
2539     STRIP=":"
2540 michael 5052 else
2541 michael 5059 case $cross_compiling:$ac_tool_warned in
2542     yes:)
2543     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545     ac_tool_warned=yes ;;
2546     esac
2547     STRIP=$ac_ct_STRIP
2548 michael 5052 fi
2549 michael 5059 else
2550     STRIP="$ac_cv_prog_STRIP"
2551 michael 5052 fi
2552    
2553 michael 5059 fi
2554     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2555    
2556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2557     $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2558     if test -z "$MKDIR_P"; then
2559     if ${ac_cv_path_mkdir+:} false; then :
2560     $as_echo_n "(cached) " >&6
2561     else
2562     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2564     do
2565     IFS=$as_save_IFS
2566     test -z "$as_dir" && as_dir=.
2567     for ac_prog in mkdir gmkdir; do
2568     for ac_exec_ext in '' $ac_executable_extensions; do
2569     as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2570     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2571     'mkdir (GNU coreutils) '* | \
2572     'mkdir (coreutils) '* | \
2573     'mkdir (fileutils) '4.1*)
2574     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2575     break 3;;
2576     esac
2577     done
2578     done
2579     done
2580     IFS=$as_save_IFS
2581    
2582     fi
2583    
2584     test -d ./--version && rmdir ./--version
2585     if test "${ac_cv_path_mkdir+set}" = set; then
2586     MKDIR_P="$ac_cv_path_mkdir -p"
2587     else
2588     # As a last resort, use the slow shell script. Don't cache a
2589     # value for MKDIR_P within a source directory, because that will
2590     # break other packages using the cache if that directory is
2591     # removed, or if the value is a relative name.
2592     MKDIR_P="$ac_install_sh -d"
2593     fi
2594     fi
2595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2596     $as_echo "$MKDIR_P" >&6; }
2597    
2598 michael 5052 for ac_prog in gawk mawk nawk awk
2599     do
2600     # Extract the first word of "$ac_prog", so it can be a program name with args.
2601     set dummy $ac_prog; ac_word=$2
2602 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603     $as_echo_n "checking for $ac_word... " >&6; }
2604     if ${ac_cv_prog_AWK+:} false; then :
2605     $as_echo_n "(cached) " >&6
2606 michael 5052 else
2607     if test -n "$AWK"; then
2608     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2609     else
2610     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611     for as_dir in $PATH
2612     do
2613     IFS=$as_save_IFS
2614     test -z "$as_dir" && as_dir=.
2615 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2616     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 michael 5052 ac_cv_prog_AWK="$ac_prog"
2618 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 michael 5052 break 2
2620     fi
2621     done
2622 michael 5059 done
2623 michael 5052 IFS=$as_save_IFS
2624    
2625     fi
2626     fi
2627     AWK=$ac_cv_prog_AWK
2628     if test -n "$AWK"; then
2629 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2630     $as_echo "$AWK" >&6; }
2631 michael 5052 else
2632 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633     $as_echo "no" >&6; }
2634 michael 5052 fi
2635    
2636    
2637     test -n "$AWK" && break
2638     done
2639    
2640 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2641     $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2642     set x ${MAKE-make}
2643     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2644     if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2645     $as_echo_n "(cached) " >&6
2646 michael 5052 else
2647     cat >conftest.make <<\_ACEOF
2648     SHELL = /bin/sh
2649     all:
2650     @echo '@@@%%%=$(MAKE)=@@@%%%'
2651     _ACEOF
2652 michael 5059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2653 michael 5052 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2654     *@@@%%%=?*=@@@%%%*)
2655     eval ac_cv_prog_make_${ac_make}_set=yes;;
2656     *)
2657     eval ac_cv_prog_make_${ac_make}_set=no;;
2658     esac
2659     rm -f conftest.make
2660     fi
2661     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2662 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663     $as_echo "yes" >&6; }
2664 michael 5052 SET_MAKE=
2665     else
2666 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667     $as_echo "no" >&6; }
2668 michael 5052 SET_MAKE="MAKE=${MAKE-make}"
2669     fi
2670    
2671     rm -rf .tst 2>/dev/null
2672     mkdir .tst 2>/dev/null
2673     if test -d .tst; then
2674     am__leading_dot=.
2675     else
2676     am__leading_dot=_
2677     fi
2678     rmdir .tst 2>/dev/null
2679    
2680 michael 5059 # Check whether --enable-silent-rules was given.
2681     if test "${enable_silent_rules+set}" = set; then :
2682     enableval=$enable_silent_rules;
2683 michael 5052 fi
2684    
2685 michael 5059 case $enable_silent_rules in # (((
2686     yes) AM_DEFAULT_VERBOSITY=0;;
2687     no) AM_DEFAULT_VERBOSITY=1;;
2688     *) AM_DEFAULT_VERBOSITY=1;;
2689     esac
2690     am_make=${MAKE-make}
2691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2692     $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2693     if ${am_cv_make_support_nested_variables+:} false; then :
2694     $as_echo_n "(cached) " >&6
2695     else
2696     if $as_echo 'TRUE=$(BAR$(V))
2697     BAR0=false
2698     BAR1=true
2699     V=1
2700     am__doit:
2701     @$(TRUE)
2702     .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2703     am_cv_make_support_nested_variables=yes
2704     else
2705     am_cv_make_support_nested_variables=no
2706     fi
2707     fi
2708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2709     $as_echo "$am_cv_make_support_nested_variables" >&6; }
2710     if test $am_cv_make_support_nested_variables = yes; then
2711     AM_V='$(V)'
2712     AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2713     else
2714     AM_V=$AM_DEFAULT_VERBOSITY
2715     AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2716     fi
2717     AM_BACKSLASH='\'
2718    
2719     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2720     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2721     # is not polluted with repeated "-I."
2722     am__isrc=' -I$(srcdir)'
2723     # test to see if srcdir already configured
2724     if test -f $srcdir/config.status; then
2725     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2726     fi
2727     fi
2728    
2729 michael 5052 # test whether we have cygpath
2730     if test -z "$CYGPATH_W"; then
2731     if (cygpath --version) >/dev/null 2>/dev/null; then
2732     CYGPATH_W='cygpath -w'
2733     else
2734     CYGPATH_W=echo
2735     fi
2736     fi
2737    
2738    
2739     # Define the identity of the package.
2740 michael 5061 PACKAGE='hopm'
2741     VERSION='1.0.0beta1'
2742 michael 5052
2743    
2744     cat >>confdefs.h <<_ACEOF
2745     #define PACKAGE "$PACKAGE"
2746     _ACEOF
2747    
2748    
2749     cat >>confdefs.h <<_ACEOF
2750     #define VERSION "$VERSION"
2751     _ACEOF
2752    
2753     # Some tools Automake needs.
2754    
2755     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2756    
2757    
2758     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2759    
2760    
2761     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2762    
2763    
2764     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2765    
2766    
2767     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2768    
2769 michael 5059 # For better backward compatibility. To be removed once Automake 1.9.x
2770     # dies out for good. For more background, see:
2771     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2772     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2773     mkdir_p='$(MKDIR_P)'
2774 michael 5052
2775 michael 5059 # We need awk for the "check" target. The system "awk" is bad on
2776     # some platforms.
2777     # Always define AMTAR for backward compatibility. Yes, it's still used
2778     # in the wild :-( We should find a proper way to deprecate it ...
2779     AMTAR='$${TAR-tar}'
2780 michael 5052
2781    
2782 michael 5059 # We'll loop over all known methods to create a tar archive until one works.
2783     _am_tools='gnutar pax cpio none'
2784 michael 5052
2785 michael 5059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2786 michael 5052
2787    
2788    
2789    
2790    
2791    
2792 michael 5059 # POSIX will say in a future version that running "rm -f" with no argument
2793     # is OK; and we want to be able to make that assumption in our Makefile
2794     # recipes. So use an aggressive probe to check that the usage we want is
2795     # actually supported "in the wild" to an acceptable degree.
2796     # See automake bug#10828.
2797     # To make any issue more visible, cause the running configure to be aborted
2798     # by default if the 'rm' program in use doesn't match our expectations; the
2799     # user can still override this though.
2800     if rm -f && rm -fr && rm -rf; then : OK; else
2801     cat >&2 <<'END'
2802     Oops!
2803 michael 5052
2804 michael 5059 Your 'rm' program seems unable to run without file operands specified
2805     on the command line, even when the '-f' option is present. This is contrary
2806     to the behaviour of most rm programs out there, and not conforming with
2807     the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2808 michael 5052
2809 michael 5059 Please tell bug-automake@gnu.org about your system, including the value
2810     of your $PATH and any error possibly output before this message. This
2811     can help us improve future automake versions.
2812 michael 5052
2813 michael 5059 END
2814     if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2815     echo 'Configuration will proceed anyway, since you have set the' >&2
2816     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2817     echo >&2
2818     else
2819     cat >&2 <<'END'
2820     Aborting the configuration process, to ensure you take notice of the issue.
2821 michael 5052
2822 michael 5059 You can download and install GNU coreutils to get an 'rm' implementation
2823     that behaves properly: <http://www.gnu.org/software/coreutils/>.
2824 michael 5052
2825 michael 5059 If you want to complete the configuration process using your problematic
2826     'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2827     to "yes", and re-run configure.
2828 michael 5052
2829 michael 5059 END
2830     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2831     fi
2832     fi
2833    
2834    
2835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2836     $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2837 michael 5052 # Check whether --enable-maintainer-mode was given.
2838 michael 5059 if test "${enable_maintainer_mode+set}" = set; then :
2839 michael 5052 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2840     else
2841     USE_MAINTAINER_MODE=no
2842     fi
2843    
2844 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2845     $as_echo "$USE_MAINTAINER_MODE" >&6; }
2846     if test $USE_MAINTAINER_MODE = yes; then
2847 michael 5052 MAINTAINER_MODE_TRUE=
2848     MAINTAINER_MODE_FALSE='#'
2849     else
2850     MAINTAINER_MODE_TRUE='#'
2851     MAINTAINER_MODE_FALSE=
2852     fi
2853    
2854     MAINT=$MAINTAINER_MODE_TRUE
2855    
2856    
2857    
2858 michael 5059 DEPDIR="${am__leading_dot}deps"
2859    
2860     ac_config_commands="$ac_config_commands depfiles"
2861    
2862    
2863     am_make=${MAKE-make}
2864     cat > confinc << 'END'
2865     am__doit:
2866     @echo this is the am__doit target
2867     .PHONY: am__doit
2868     END
2869     # If we don't find an include directive, just comment out the code.
2870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2871     $as_echo_n "checking for style of include used by $am_make... " >&6; }
2872     am__include="#"
2873     am__quote=
2874     _am_result=none
2875     # First try GNU make style include.
2876     echo "include confinc" > confmf
2877     # Ignore all kinds of additional output from 'make'.
2878     case `$am_make -s -f confmf 2> /dev/null` in #(
2879     *the\ am__doit\ target*)
2880     am__include=include
2881     am__quote=
2882     _am_result=GNU
2883     ;;
2884     esac
2885     # Now try BSD make style include.
2886     if test "$am__include" = "#"; then
2887     echo '.include "confinc"' > confmf
2888     case `$am_make -s -f confmf 2> /dev/null` in #(
2889     *the\ am__doit\ target*)
2890     am__include=.include
2891     am__quote="\""
2892     _am_result=BSD
2893     ;;
2894     esac
2895     fi
2896    
2897    
2898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2899     $as_echo "$_am_result" >&6; }
2900     rm -f confinc confmf
2901    
2902     # Check whether --enable-dependency-tracking was given.
2903     if test "${enable_dependency_tracking+set}" = set; then :
2904     enableval=$enable_dependency_tracking;
2905     fi
2906    
2907     if test "x$enable_dependency_tracking" != xno; then
2908     am_depcomp="$ac_aux_dir/depcomp"
2909     AMDEPBACKSLASH='\'
2910     am__nodep='_no'
2911     fi
2912     if test "x$enable_dependency_tracking" != xno; then
2913     AMDEP_TRUE=
2914     AMDEP_FALSE='#'
2915     else
2916     AMDEP_TRUE='#'
2917     AMDEP_FALSE=
2918     fi
2919    
2920    
2921 michael 5052 ac_ext=c
2922     ac_cpp='$CPP $CPPFLAGS'
2923     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926     if test -n "$ac_tool_prefix"; then
2927     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930     $as_echo_n "checking for $ac_word... " >&6; }
2931     if ${ac_cv_prog_CC+:} false; then :
2932     $as_echo_n "(cached) " >&6
2933 michael 5052 else
2934     if test -n "$CC"; then
2935     ac_cv_prog_CC="$CC" # Let the user override the test.
2936     else
2937     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938     for as_dir in $PATH
2939     do
2940     IFS=$as_save_IFS
2941     test -z "$as_dir" && as_dir=.
2942 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2943     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 michael 5052 break 2
2947     fi
2948     done
2949 michael 5059 done
2950 michael 5052 IFS=$as_save_IFS
2951    
2952     fi
2953     fi
2954     CC=$ac_cv_prog_CC
2955     if test -n "$CC"; then
2956 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957     $as_echo "$CC" >&6; }
2958 michael 5052 else
2959 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960     $as_echo "no" >&6; }
2961 michael 5052 fi
2962    
2963    
2964     fi
2965     if test -z "$ac_cv_prog_CC"; then
2966     ac_ct_CC=$CC
2967     # Extract the first word of "gcc", so it can be a program name with args.
2968     set dummy gcc; ac_word=$2
2969 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970     $as_echo_n "checking for $ac_word... " >&6; }
2971     if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972     $as_echo_n "(cached) " >&6
2973 michael 5052 else
2974     if test -n "$ac_ct_CC"; then
2975     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976     else
2977     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978     for as_dir in $PATH
2979     do
2980     IFS=$as_save_IFS
2981     test -z "$as_dir" && as_dir=.
2982 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2983     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 michael 5052 ac_cv_prog_ac_ct_CC="gcc"
2985 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 michael 5052 break 2
2987     fi
2988     done
2989 michael 5059 done
2990 michael 5052 IFS=$as_save_IFS
2991    
2992     fi
2993     fi
2994     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995     if test -n "$ac_ct_CC"; then
2996 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997     $as_echo "$ac_ct_CC" >&6; }
2998 michael 5052 else
2999 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000     $as_echo "no" >&6; }
3001 michael 5052 fi
3002    
3003     if test "x$ac_ct_CC" = x; then
3004     CC=""
3005     else
3006     case $cross_compiling:$ac_tool_warned in
3007     yes:)
3008 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 michael 5052 ac_tool_warned=yes ;;
3011     esac
3012     CC=$ac_ct_CC
3013     fi
3014     else
3015     CC="$ac_cv_prog_CC"
3016     fi
3017    
3018     if test -z "$CC"; then
3019     if test -n "$ac_tool_prefix"; then
3020     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021     set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023     $as_echo_n "checking for $ac_word... " >&6; }
3024     if ${ac_cv_prog_CC+:} false; then :
3025     $as_echo_n "(cached) " >&6
3026 michael 5052 else
3027     if test -n "$CC"; then
3028     ac_cv_prog_CC="$CC" # Let the user override the test.
3029     else
3030     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031     for as_dir in $PATH
3032     do
3033     IFS=$as_save_IFS
3034     test -z "$as_dir" && as_dir=.
3035 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3036     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}cc"
3038 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 michael 5052 break 2
3040     fi
3041     done
3042 michael 5059 done
3043 michael 5052 IFS=$as_save_IFS
3044    
3045     fi
3046     fi
3047     CC=$ac_cv_prog_CC
3048     if test -n "$CC"; then
3049 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050     $as_echo "$CC" >&6; }
3051 michael 5052 else
3052 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053     $as_echo "no" >&6; }
3054 michael 5052 fi
3055    
3056    
3057     fi
3058     fi
3059     if test -z "$CC"; then
3060     # Extract the first word of "cc", so it can be a program name with args.
3061     set dummy cc; ac_word=$2
3062 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063     $as_echo_n "checking for $ac_word... " >&6; }
3064     if ${ac_cv_prog_CC+:} false; then :
3065     $as_echo_n "(cached) " >&6
3066 michael 5052 else
3067     if test -n "$CC"; then
3068     ac_cv_prog_CC="$CC" # Let the user override the test.
3069     else
3070     ac_prog_rejected=no
3071     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072     for as_dir in $PATH
3073     do
3074     IFS=$as_save_IFS
3075     test -z "$as_dir" && as_dir=.
3076 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3077     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 michael 5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079     ac_prog_rejected=yes
3080     continue
3081     fi
3082     ac_cv_prog_CC="cc"
3083 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 michael 5052 break 2
3085     fi
3086     done
3087 michael 5059 done
3088 michael 5052 IFS=$as_save_IFS
3089    
3090     if test $ac_prog_rejected = yes; then
3091     # We found a bogon in the path, so make sure we never use it.
3092     set dummy $ac_cv_prog_CC
3093     shift
3094     if test $# != 0; then
3095     # We chose a different compiler from the bogus one.
3096     # However, it has the same basename, so the bogon will be chosen
3097     # first if we set CC to just the basename; use the full file name.
3098     shift
3099     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100     fi
3101     fi
3102     fi
3103     fi
3104     CC=$ac_cv_prog_CC
3105     if test -n "$CC"; then
3106 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107     $as_echo "$CC" >&6; }
3108 michael 5052 else
3109 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110     $as_echo "no" >&6; }
3111 michael 5052 fi
3112    
3113    
3114     fi
3115     if test -z "$CC"; then
3116     if test -n "$ac_tool_prefix"; then
3117     for ac_prog in cl.exe
3118     do
3119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122     $as_echo_n "checking for $ac_word... " >&6; }
3123     if ${ac_cv_prog_CC+:} false; then :
3124     $as_echo_n "(cached) " >&6
3125 michael 5052 else
3126     if test -n "$CC"; then
3127     ac_cv_prog_CC="$CC" # Let the user override the test.
3128     else
3129     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130     for as_dir in $PATH
3131     do
3132     IFS=$as_save_IFS
3133     test -z "$as_dir" && as_dir=.
3134 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3135     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 michael 5052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 michael 5052 break 2
3139     fi
3140     done
3141 michael 5059 done
3142 michael 5052 IFS=$as_save_IFS
3143    
3144     fi
3145     fi
3146     CC=$ac_cv_prog_CC
3147     if test -n "$CC"; then
3148 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149     $as_echo "$CC" >&6; }
3150 michael 5052 else
3151 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152     $as_echo "no" >&6; }
3153 michael 5052 fi
3154    
3155    
3156     test -n "$CC" && break
3157     done
3158     fi
3159     if test -z "$CC"; then
3160     ac_ct_CC=$CC
3161     for ac_prog in cl.exe
3162     do
3163     # Extract the first word of "$ac_prog", so it can be a program name with args.
3164     set dummy $ac_prog; ac_word=$2
3165 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166     $as_echo_n "checking for $ac_word... " >&6; }
3167     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3168     $as_echo_n "(cached) " >&6
3169 michael 5052 else
3170     if test -n "$ac_ct_CC"; then
3171     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3172     else
3173     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174     for as_dir in $PATH
3175     do
3176     IFS=$as_save_IFS
3177     test -z "$as_dir" && as_dir=.
3178 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3179     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 michael 5052 ac_cv_prog_ac_ct_CC="$ac_prog"
3181 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 michael 5052 break 2
3183     fi
3184     done
3185 michael 5059 done
3186 michael 5052 IFS=$as_save_IFS
3187    
3188     fi
3189     fi
3190     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191     if test -n "$ac_ct_CC"; then
3192 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193     $as_echo "$ac_ct_CC" >&6; }
3194 michael 5052 else
3195 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196     $as_echo "no" >&6; }
3197 michael 5052 fi
3198    
3199    
3200     test -n "$ac_ct_CC" && break
3201     done
3202    
3203     if test "x$ac_ct_CC" = x; then
3204     CC=""
3205     else
3206     case $cross_compiling:$ac_tool_warned in
3207     yes:)
3208 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 michael 5052 ac_tool_warned=yes ;;
3211     esac
3212     CC=$ac_ct_CC
3213     fi
3214     fi
3215    
3216     fi
3217    
3218    
3219 michael 5059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221     as_fn_error $? "no acceptable C compiler found in \$PATH
3222     See \`config.log' for more details" "$LINENO" 5; }
3223 michael 5052
3224     # Provide some information about the compiler.
3225 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3226     set X $ac_compile
3227     ac_compiler=$2
3228     for ac_option in --version -v -V -qversion; do
3229     { { ac_try="$ac_compiler $ac_option >&5"
3230 michael 5052 case "(($ac_try" in
3231     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232     *) ac_try_echo=$ac_try;;
3233     esac
3234 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235     $as_echo "$ac_try_echo"; } >&5
3236     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3237 michael 5052 ac_status=$?
3238 michael 5059 if test -s conftest.err; then
3239     sed '10a\
3240     ... rest of stderr output deleted ...
3241     10q' conftest.err >conftest.er1
3242     cat conftest.er1 >&5
3243     fi
3244     rm -f conftest.er1 conftest.err
3245     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246     test $ac_status = 0; }
3247     done
3248 michael 5052
3249 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 michael 5052 /* end confdefs.h. */
3251    
3252     int
3253     main ()
3254     {
3255    
3256     ;
3257     return 0;
3258     }
3259     _ACEOF
3260     ac_clean_files_save=$ac_clean_files
3261 michael 5059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3262 michael 5052 # Try to create an executable without -o first, disregard a.out.
3263     # It will help us diagnose broken compilers, and finding out an intuition
3264     # of exeext.
3265 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266     $as_echo_n "checking whether the C compiler works... " >&6; }
3267     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3268    
3269     # The possible output files:
3270     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3271    
3272 michael 5052 ac_rmfiles=
3273     for ac_file in $ac_files
3274     do
3275     case $ac_file in
3276 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 michael 5052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278     esac
3279     done
3280     rm -f $ac_rmfiles
3281    
3282 michael 5059 if { { ac_try="$ac_link_default"
3283 michael 5052 case "(($ac_try" in
3284     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285     *) ac_try_echo=$ac_try;;
3286     esac
3287 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288     $as_echo "$ac_try_echo"; } >&5
3289 michael 5052 (eval "$ac_link_default") 2>&5
3290     ac_status=$?
3291 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292     test $ac_status = 0; }; then :
3293 michael 5052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3296     # so that the user can short-circuit this test for compilers unknown to
3297     # Autoconf.
3298 michael 5059 for ac_file in $ac_files ''
3299 michael 5052 do
3300     test -f "$ac_file" || continue
3301     case $ac_file in
3302 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3303 michael 5052 ;;
3304     [ab].out )
3305     # We found the default executable, but exeext='' is most
3306     # certainly right.
3307     break;;
3308     *.* )
3309 michael 5059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3310 michael 5052 then :; else
3311     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312     fi
3313     # We set ac_cv_exeext here because the later test for it is not
3314     # safe: cross compilers may not add the suffix if given an `-o'
3315     # argument, so we may need to know it at that point already.
3316     # Even if this section looks crufty: it has the advantage of
3317     # actually working.
3318     break;;
3319     * )
3320     break;;
3321     esac
3322     done
3323     test "$ac_cv_exeext" = no && ac_cv_exeext=
3324    
3325     else
3326 michael 5059 ac_file=''
3327     fi
3328     if test -z "$ac_file"; then :
3329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330     $as_echo "no" >&6; }
3331     $as_echo "$as_me: failed program was:" >&5
3332 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3333    
3334 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336     as_fn_error 77 "C compiler cannot create executables
3337     See \`config.log' for more details" "$LINENO" 5; }
3338     else
3339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340     $as_echo "yes" >&6; }
3341 michael 5052 fi
3342 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3343     $as_echo_n "checking for C compiler default output file name... " >&6; }
3344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345     $as_echo "$ac_file" >&6; }
3346 michael 5052 ac_exeext=$ac_cv_exeext
3347    
3348 michael 5059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3349 michael 5052 ac_clean_files=$ac_clean_files_save
3350 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3351     $as_echo_n "checking for suffix of executables... " >&6; }
3352     if { { ac_try="$ac_link"
3353 michael 5052 case "(($ac_try" in
3354     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355     *) ac_try_echo=$ac_try;;
3356     esac
3357 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358     $as_echo "$ac_try_echo"; } >&5
3359 michael 5052 (eval "$ac_link") 2>&5
3360     ac_status=$?
3361 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362     test $ac_status = 0; }; then :
3363 michael 5052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3365     # work properly (i.e., refer to `conftest.exe'), while it won't with
3366     # `rm'.
3367     for ac_file in conftest.exe conftest conftest.*; do
3368     test -f "$ac_file" || continue
3369     case $ac_file in
3370 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371 michael 5052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372     break;;
3373     * ) break;;
3374     esac
3375     done
3376     else
3377 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379     as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3380     See \`config.log' for more details" "$LINENO" 5; }
3381 michael 5052 fi
3382 michael 5059 rm -f conftest conftest$ac_cv_exeext
3383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3384     $as_echo "$ac_cv_exeext" >&6; }
3385 michael 5052
3386     rm -f conftest.$ac_ext
3387     EXEEXT=$ac_cv_exeext
3388     ac_exeext=$EXEEXT
3389 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390     /* end confdefs.h. */
3391     #include <stdio.h>
3392     int
3393     main ()
3394     {
3395     FILE *f = fopen ("conftest.out", "w");
3396     return ferror (f) || fclose (f) != 0;
3397    
3398     ;
3399     return 0;
3400     }
3401     _ACEOF
3402     ac_clean_files="$ac_clean_files conftest.out"
3403     # Check that the compiler produces executables we can run. If not, either
3404     # the compiler is broken, or we cross compile.
3405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3406     $as_echo_n "checking whether we are cross compiling... " >&6; }
3407     if test "$cross_compiling" != yes; then
3408     { { ac_try="$ac_link"
3409     case "(($ac_try" in
3410     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411     *) ac_try_echo=$ac_try;;
3412     esac
3413     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414     $as_echo "$ac_try_echo"; } >&5
3415     (eval "$ac_link") 2>&5
3416     ac_status=$?
3417     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418     test $ac_status = 0; }
3419     if { ac_try='./conftest$ac_cv_exeext'
3420     { { case "(($ac_try" in
3421     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422     *) ac_try_echo=$ac_try;;
3423     esac
3424     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425     $as_echo "$ac_try_echo"; } >&5
3426     (eval "$ac_try") 2>&5
3427     ac_status=$?
3428     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429     test $ac_status = 0; }; }; then
3430     cross_compiling=no
3431     else
3432     if test "$cross_compiling" = maybe; then
3433     cross_compiling=yes
3434     else
3435     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437     as_fn_error $? "cannot run C compiled programs.
3438     If you meant to cross compile, use \`--host'.
3439     See \`config.log' for more details" "$LINENO" 5; }
3440     fi
3441     fi
3442     fi
3443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3444     $as_echo "$cross_compiling" >&6; }
3445    
3446     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3447     ac_clean_files=$ac_clean_files_save
3448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3449     $as_echo_n "checking for suffix of object files... " >&6; }
3450     if ${ac_cv_objext+:} false; then :
3451     $as_echo_n "(cached) " >&6
3452 michael 5052 else
3453 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 michael 5052 /* end confdefs.h. */
3455    
3456     int
3457     main ()
3458     {
3459    
3460     ;
3461     return 0;
3462     }
3463     _ACEOF
3464     rm -f conftest.o conftest.obj
3465 michael 5059 if { { ac_try="$ac_compile"
3466 michael 5052 case "(($ac_try" in
3467     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468     *) ac_try_echo=$ac_try;;
3469     esac
3470 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471     $as_echo "$ac_try_echo"; } >&5
3472 michael 5052 (eval "$ac_compile") 2>&5
3473     ac_status=$?
3474 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475     test $ac_status = 0; }; then :
3476 michael 5052 for ac_file in conftest.o conftest.obj conftest.*; do
3477     test -f "$ac_file" || continue;
3478     case $ac_file in
3479 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3480 michael 5052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481     break;;
3482     esac
3483     done
3484     else
3485 michael 5059 $as_echo "$as_me: failed program was:" >&5
3486 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3487    
3488 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490     as_fn_error $? "cannot compute suffix of object files: cannot compile
3491     See \`config.log' for more details" "$LINENO" 5; }
3492 michael 5052 fi
3493     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3494     fi
3495 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3496     $as_echo "$ac_cv_objext" >&6; }
3497 michael 5052 OBJEXT=$ac_cv_objext
3498     ac_objext=$OBJEXT
3499 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3500     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3501     if ${ac_cv_c_compiler_gnu+:} false; then :
3502     $as_echo_n "(cached) " >&6
3503 michael 5052 else
3504 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 michael 5052 /* end confdefs.h. */
3506    
3507     int
3508     main ()
3509     {
3510     #ifndef __GNUC__
3511     choke me
3512     #endif
3513    
3514     ;
3515     return 0;
3516     }
3517     _ACEOF
3518 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3519 michael 5052 ac_compiler_gnu=yes
3520     else
3521 michael 5059 ac_compiler_gnu=no
3522 michael 5052 fi
3523     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525    
3526     fi
3527 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3528     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3529     if test $ac_compiler_gnu = yes; then
3530     GCC=yes
3531     else
3532     GCC=
3533     fi
3534 michael 5052 ac_test_CFLAGS=${CFLAGS+set}
3535     ac_save_CFLAGS=$CFLAGS
3536 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3537     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3538     if ${ac_cv_prog_cc_g+:} false; then :
3539     $as_echo_n "(cached) " >&6
3540 michael 5052 else
3541     ac_save_c_werror_flag=$ac_c_werror_flag
3542     ac_c_werror_flag=yes
3543     ac_cv_prog_cc_g=no
3544     CFLAGS="-g"
3545 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 michael 5052 /* end confdefs.h. */
3547    
3548     int
3549     main ()
3550     {
3551    
3552     ;
3553     return 0;
3554     }
3555     _ACEOF
3556 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3557 michael 5052 ac_cv_prog_cc_g=yes
3558     else
3559 michael 5059 CFLAGS=""
3560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 michael 5052 /* end confdefs.h. */
3562    
3563     int
3564     main ()
3565     {
3566    
3567     ;
3568     return 0;
3569     }
3570     _ACEOF
3571 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3572    
3573 michael 5052 else
3574 michael 5059 ac_c_werror_flag=$ac_save_c_werror_flag
3575 michael 5052 CFLAGS="-g"
3576 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 michael 5052 /* end confdefs.h. */
3578    
3579     int
3580     main ()
3581     {
3582    
3583     ;
3584     return 0;
3585     }
3586     _ACEOF
3587 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3588 michael 5052 ac_cv_prog_cc_g=yes
3589     fi
3590     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591     fi
3592     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593     fi
3594     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595     ac_c_werror_flag=$ac_save_c_werror_flag
3596     fi
3597 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3598     $as_echo "$ac_cv_prog_cc_g" >&6; }
3599 michael 5052 if test "$ac_test_CFLAGS" = set; then
3600     CFLAGS=$ac_save_CFLAGS
3601     elif test $ac_cv_prog_cc_g = yes; then
3602     if test "$GCC" = yes; then
3603     CFLAGS="-g -O2"
3604     else
3605     CFLAGS="-g"
3606     fi
3607     else
3608     if test "$GCC" = yes; then
3609     CFLAGS="-O2"
3610     else
3611     CFLAGS=
3612     fi
3613     fi
3614 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3615     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3616     if ${ac_cv_prog_cc_c89+:} false; then :
3617     $as_echo_n "(cached) " >&6
3618 michael 5052 else
3619     ac_cv_prog_cc_c89=no
3620     ac_save_CC=$CC
3621 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 michael 5052 /* end confdefs.h. */
3623     #include <stdarg.h>
3624     #include <stdio.h>
3625 michael 5059 struct stat;
3626 michael 5052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627     struct buf { int x; };
3628     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629     static char *e (p, i)
3630     char **p;
3631     int i;
3632     {
3633     return p[i];
3634     }
3635     static char *f (char * (*g) (char **, int), char **p, ...)
3636     {
3637     char *s;
3638     va_list v;
3639     va_start (v,p);
3640     s = g (p, va_arg (v,int));
3641     va_end (v);
3642     return s;
3643     }
3644    
3645     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3646     function prototypes and stuff, but not '\xHH' hex character constants.
3647     These don't provoke an error unfortunately, instead are silently treated
3648     as 'x'. The following induces an error, until -std is added to get
3649     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3650     array size at least. It's necessary to write '\x00'==0 to get something
3651     that's true only with -std. */
3652     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3653    
3654     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655     inside strings and character constants. */
3656     #define FOO(x) 'x'
3657     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3658    
3659     int test (int i, double x);
3660     struct s1 {int (*f) (int a);};
3661     struct s2 {int (*f) (double a);};
3662     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663     int argc;
3664     char **argv;
3665     int
3666     main ()
3667     {
3668     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669     ;
3670     return 0;
3671     }
3672     _ACEOF
3673     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3675     do
3676     CC="$ac_save_CC $ac_arg"
3677 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3678 michael 5052 ac_cv_prog_cc_c89=$ac_arg
3679     fi
3680     rm -f core conftest.err conftest.$ac_objext
3681     test "x$ac_cv_prog_cc_c89" != "xno" && break
3682     done
3683     rm -f conftest.$ac_ext
3684     CC=$ac_save_CC
3685    
3686     fi
3687     # AC_CACHE_VAL
3688     case "x$ac_cv_prog_cc_c89" in
3689     x)
3690 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691     $as_echo "none needed" >&6; } ;;
3692 michael 5052 xno)
3693 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694     $as_echo "unsupported" >&6; } ;;
3695 michael 5052 *)
3696     CC="$CC $ac_cv_prog_cc_c89"
3697 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 michael 5052 esac
3700 michael 5059 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701 michael 5052
3702 michael 5059 fi
3703 michael 5052
3704     ac_ext=c
3705     ac_cpp='$CPP $CPPFLAGS'
3706     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709    
3710 michael 5059 ac_ext=c
3711     ac_cpp='$CPP $CPPFLAGS'
3712     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3716     $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3717     if ${am_cv_prog_cc_c_o+:} false; then :
3718     $as_echo_n "(cached) " >&6
3719     else
3720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721     /* end confdefs.h. */
3722 michael 5052
3723 michael 5059 int
3724     main ()
3725     {
3726 michael 5052
3727 michael 5059 ;
3728     return 0;
3729     }
3730     _ACEOF
3731     # Make sure it works both with $CC and with simple cc.
3732     # Following AC_PROG_CC_C_O, we do the test twice because some
3733     # compilers refuse to overwrite an existing .o file with -o,
3734     # though they will create one.
3735     am_cv_prog_cc_c_o=yes
3736     for am_i in 1 2; do
3737     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3738     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3739     ac_status=$?
3740     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741     (exit $ac_status); } \
3742     && test -f conftest2.$ac_objext; then
3743     : OK
3744     else
3745     am_cv_prog_cc_c_o=no
3746     break
3747     fi
3748     done
3749     rm -f core conftest*
3750     unset am_i
3751 michael 5052 fi
3752 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3753     $as_echo "$am_cv_prog_cc_c_o" >&6; }
3754     if test "$am_cv_prog_cc_c_o" != yes; then
3755     # Losing compiler, so override with the script.
3756     # FIXME: It is wrong to rewrite CC.
3757     # But if we don't then we get into trouble of one sort or another.
3758     # A longer-term fix would be to have automake use am__CC in this case,
3759     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3760     CC="$am_aux_dir/compile $CC"
3761 michael 5052 fi
3762 michael 5059 ac_ext=c
3763     ac_cpp='$CPP $CPPFLAGS'
3764     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 michael 5052
3768    
3769     depcc="$CC" am_compiler_list=
3770    
3771 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772     $as_echo_n "checking dependency style of $depcc... " >&6; }
3773     if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3774     $as_echo_n "(cached) " >&6
3775 michael 5052 else
3776     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777     # We make a subdir and do the tests there. Otherwise we can end up
3778     # making bogus files that we don't know about and never remove. For
3779     # instance it was reported that on HP-UX the gcc test will end up
3780 michael 5059 # making a dummy file named 'D' -- because '-MD' means "put the output
3781     # in D".
3782     rm -rf conftest.dir
3783 michael 5052 mkdir conftest.dir
3784     # Copy depcomp to subdir because otherwise we won't find it if we're
3785     # using a relative directory.
3786     cp "$am_depcomp" conftest.dir
3787     cd conftest.dir
3788     # We will build objects and dependencies in a subdirectory because
3789     # it helps to detect inapplicable dependency modes. For instance
3790     # both Tru64's cc and ICC support -MD to output dependencies as a
3791     # side effect of compilation, but ICC will put the dependencies in
3792     # the current directory while Tru64 will put them in the object
3793     # directory.
3794     mkdir sub
3795    
3796     am_cv_CC_dependencies_compiler_type=none
3797     if test "$am_compiler_list" = ""; then
3798     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799     fi
3800 michael 5059 am__universal=false
3801     case " $depcc " in #(
3802     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803     esac
3804    
3805 michael 5052 for depmode in $am_compiler_list; do
3806     # Setup a source with many dependencies, because some compilers
3807     # like to wrap large dependency lists on column 80 (with \), and
3808     # we should not choose a depcomp mode which is confused by this.
3809     #
3810     # We need to recreate these files for each test, as the compiler may
3811     # overwrite some of them when testing with obscure command lines.
3812     # This happens at least with the AIX C compiler.
3813     : > sub/conftest.c
3814     for i in 1 2 3 4 5 6; do
3815     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 michael 5059 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3817     # Solaris 10 /bin/sh.
3818     echo '/* dummy */' > sub/conftst$i.h
3819 michael 5052 done
3820     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821    
3822 michael 5059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3823     # mode. It turns out that the SunPro C++ compiler does not properly
3824     # handle '-M -o', and we need to detect this. Also, some Intel
3825     # versions had trouble with output in subdirs.
3826     am__obj=sub/conftest.${OBJEXT-o}
3827     am__minus_obj="-o $am__obj"
3828 michael 5052 case $depmode in
3829 michael 5059 gcc)
3830     # This depmode causes a compiler race in universal mode.
3831     test "$am__universal" = false || continue
3832     ;;
3833 michael 5052 nosideeffect)
3834 michael 5059 # After this tag, mechanisms are not by side-effect, so they'll
3835     # only be used when explicitly requested.
3836 michael 5052 if test "x$enable_dependency_tracking" = xyes; then
3837     continue
3838     else
3839     break
3840     fi
3841     ;;
3842 michael 5059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3843     # This compiler won't grok '-c -o', but also, the minuso test has
3844     # not run yet. These depmodes are late enough in the game, and
3845     # so weak that their functioning should not be impacted.
3846     am__obj=conftest.${OBJEXT-o}
3847     am__minus_obj=
3848     ;;
3849 michael 5052 none) break ;;
3850     esac
3851     if depmode=$depmode \
3852 michael 5059 source=sub/conftest.c object=$am__obj \
3853 michael 5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 michael 5059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 michael 5052 >/dev/null 2>conftest.err &&
3856 michael 5059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 michael 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 michael 5059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 michael 5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860     # icc doesn't choke on unknown options, it will just issue warnings
3861     # or remarks (even with -Werror). So we grep stderr for any message
3862     # that says an option was ignored or not supported.
3863     # When given -MP, icc 7.0 and 7.1 complain thusly:
3864     # icc: Command line warning: ignoring option '-M'; no argument required
3865     # The diagnosis changed in icc 8.0:
3866     # icc: Command line remark: option '-MP' not supported
3867     if (grep 'ignoring option' conftest.err ||
3868     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869     am_cv_CC_dependencies_compiler_type=$depmode
3870     break
3871     fi
3872     fi
3873     done
3874    
3875     cd ..
3876     rm -rf conftest.dir
3877     else
3878     am_cv_CC_dependencies_compiler_type=none
3879     fi
3880    
3881     fi
3882 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883     $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 michael 5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885    
3886 michael 5059 if
3887 michael 5052 test "x$enable_dependency_tracking" != xno \
3888     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889     am__fastdepCC_TRUE=
3890     am__fastdepCC_FALSE='#'
3891     else
3892     am__fastdepCC_TRUE='#'
3893     am__fastdepCC_FALSE=
3894     fi
3895    
3896    
3897 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3898     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3899     if ${ac_cv_prog_cc_c99+:} false; then :
3900     $as_echo_n "(cached) " >&6
3901 michael 5052 else
3902 michael 5059 ac_cv_prog_cc_c99=no
3903     ac_save_CC=$CC
3904     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905     /* end confdefs.h. */
3906     #include <stdarg.h>
3907     #include <stdbool.h>
3908     #include <stdlib.h>
3909     #include <wchar.h>
3910     #include <stdio.h>
3911    
3912     // Check varargs macros. These examples are taken from C99 6.10.3.5.
3913     #define debug(...) fprintf (stderr, __VA_ARGS__)
3914     #define showlist(...) puts (#__VA_ARGS__)
3915     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3916     static void
3917     test_varargs_macros (void)
3918     {
3919     int x = 1234;
3920     int y = 5678;
3921     debug ("Flag");
3922     debug ("X = %d\n", x);
3923     showlist (The first, second, and third items.);
3924     report (x>y, "x is %d but y is %d", x, y);
3925     }
3926    
3927     // Check long long types.
3928     #define BIG64 18446744073709551615ull
3929     #define BIG32 4294967295ul
3930     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3931     #if !BIG_OK
3932     your preprocessor is broken;
3933     #endif
3934     #if BIG_OK
3935     #else
3936     your preprocessor is broken;
3937     #endif
3938     static long long int bignum = -9223372036854775807LL;
3939     static unsigned long long int ubignum = BIG64;
3940    
3941     struct incomplete_array
3942     {
3943     int datasize;
3944     double data[];
3945     };
3946    
3947     struct named_init {
3948     int number;
3949     const wchar_t *name;
3950     double average;
3951     };
3952    
3953     typedef const char *ccp;
3954    
3955     static inline int
3956     test_restrict (ccp restrict text)
3957     {
3958     // See if C++-style comments work.
3959     // Iterate through items via the restricted pointer.
3960     // Also check for declarations in for loops.
3961     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3962     continue;
3963     return 0;
3964     }
3965    
3966     // Check varargs and va_copy.
3967     static void
3968     test_varargs (const char *format, ...)
3969     {
3970     va_list args;
3971     va_start (args, format);
3972     va_list args_copy;
3973     va_copy (args_copy, args);
3974    
3975     const char *str;
3976     int number;
3977     float fnumber;
3978    
3979     while (*format)
3980     {
3981     switch (*format++)
3982     {
3983     case 's': // string
3984     str = va_arg (args_copy, const char *);
3985     break;
3986     case 'd': // int
3987     number = va_arg (args_copy, int);
3988     break;
3989     case 'f': // float
3990     fnumber = va_arg (args_copy, double);
3991     break;
3992     default:
3993     break;
3994     }
3995     }
3996     va_end (args_copy);
3997     va_end (args);
3998     }
3999    
4000     int
4001     main ()
4002     {
4003    
4004     // Check bool.
4005     _Bool success = false;
4006    
4007     // Check restrict.
4008     if (test_restrict ("String literal") == 0)
4009     success = true;
4010     char *restrict newvar = "Another string";
4011    
4012     // Check varargs.
4013     test_varargs ("s, d' f .", "string", 65, 34.234);
4014     test_varargs_macros ();
4015    
4016     // Check flexible array members.
4017     struct incomplete_array *ia =
4018     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4019     ia->datasize = 10;
4020     for (int i = 0; i < ia->datasize; ++i)
4021     ia->data[i] = i * 1.234;
4022    
4023     // Check named initializers.
4024     struct named_init ni = {
4025     .number = 34,
4026     .name = L"Test wide string",
4027     .average = 543.34343,
4028     };
4029    
4030     ni.number = 58;
4031    
4032     int dynamic_array[ni.number];
4033     dynamic_array[ni.number - 1] = 543;
4034    
4035     // work around unused variable warnings
4036     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4037     || dynamic_array[ni.number - 1] != 543);
4038    
4039     ;
4040     return 0;
4041     }
4042     _ACEOF
4043     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4044     do
4045     CC="$ac_save_CC $ac_arg"
4046     if ac_fn_c_try_compile "$LINENO"; then :
4047     ac_cv_prog_cc_c99=$ac_arg
4048 michael 5052 fi
4049 michael 5059 rm -f core conftest.err conftest.$ac_objext
4050     test "x$ac_cv_prog_cc_c99" != "xno" && break
4051     done
4052     rm -f conftest.$ac_ext
4053     CC=$ac_save_CC
4054 michael 5052
4055 michael 5059 fi
4056     # AC_CACHE_VAL
4057     case "x$ac_cv_prog_cc_c99" in
4058     x)
4059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060     $as_echo "none needed" >&6; } ;;
4061     xno)
4062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063     $as_echo "unsupported" >&6; } ;;
4064     *)
4065     CC="$CC $ac_cv_prog_cc_c99"
4066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4067     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4068     esac
4069     if test "x$ac_cv_prog_cc_c99" != xno; then :
4070 michael 5052
4071     fi
4072    
4073    
4074 michael 5059 if test "$ac_cv_prog_cc_c99" = "no"; then :
4075     as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4076 michael 5052 fi
4077 michael 5059 case `pwd` in
4078     *\ * | *\ *)
4079     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4080     $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4081     esac
4082 michael 5052
4083    
4084 michael 5059
4085     macro_version='2.4.4'
4086     macro_revision='2.4.4'
4087    
4088    
4089    
4090    
4091    
4092    
4093    
4094    
4095    
4096    
4097    
4098    
4099    
4100     ltmain=$ac_aux_dir/ltmain.sh
4101    
4102 michael 5052 # Make sure we can run config.sub.
4103     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4104 michael 5059 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4105 michael 5052
4106 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4107     $as_echo_n "checking build system type... " >&6; }
4108     if ${ac_cv_build+:} false; then :
4109     $as_echo_n "(cached) " >&6
4110 michael 5052 else
4111     ac_build_alias=$build_alias
4112     test "x$ac_build_alias" = x &&
4113     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4114     test "x$ac_build_alias" = x &&
4115 michael 5059 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4116 michael 5052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4117 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4118 michael 5052
4119     fi
4120 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4121     $as_echo "$ac_cv_build" >&6; }
4122 michael 5052 case $ac_cv_build in
4123     *-*-*) ;;
4124 michael 5059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4125 michael 5052 esac
4126     build=$ac_cv_build
4127     ac_save_IFS=$IFS; IFS='-'
4128     set x $ac_cv_build
4129     shift
4130     build_cpu=$1
4131     build_vendor=$2
4132     shift; shift
4133     # Remember, the first character of IFS is used to create $*,
4134     # except with old shells:
4135     build_os=$*
4136     IFS=$ac_save_IFS
4137     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4138    
4139    
4140 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4141     $as_echo_n "checking host system type... " >&6; }
4142     if ${ac_cv_host+:} false; then :
4143     $as_echo_n "(cached) " >&6
4144 michael 5052 else
4145     if test "x$host_alias" = x; then
4146     ac_cv_host=$ac_cv_build
4147     else
4148     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4149 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4150 michael 5052 fi
4151    
4152     fi
4153 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4154     $as_echo "$ac_cv_host" >&6; }
4155 michael 5052 case $ac_cv_host in
4156     *-*-*) ;;
4157 michael 5059 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4158 michael 5052 esac
4159     host=$ac_cv_host
4160     ac_save_IFS=$IFS; IFS='-'
4161     set x $ac_cv_host
4162     shift
4163     host_cpu=$1
4164     host_vendor=$2
4165     shift; shift
4166     # Remember, the first character of IFS is used to create $*,
4167     # except with old shells:
4168     host_os=$*
4169     IFS=$ac_save_IFS
4170     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4171    
4172    
4173 michael 5059 # Backslashify metacharacters that are still active within
4174     # double-quoted strings.
4175     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4176    
4177     # Same as above, but do not quote variable references.
4178     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4179    
4180     # Sed substitution to delay expansion of an escaped shell variable in a
4181     # double_quote_subst'ed string.
4182     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4183    
4184     # Sed substitution to delay expansion of an escaped single quote.
4185     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4186    
4187     # Sed substitution to avoid accidental globbing in evaled expressions
4188     no_glob_subst='s/\*/\\\*/g'
4189    
4190     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4191     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4192     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4193    
4194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4195     $as_echo_n "checking how to print strings... " >&6; }
4196     # Test print first, because it will be a builtin if present.
4197     if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4198     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4199     ECHO='print -r --'
4200     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4201     ECHO='printf %s\n'
4202 michael 5052 else
4203 michael 5059 # Use this function as a fallback that always works.
4204     func_fallback_echo ()
4205     {
4206     eval 'cat <<_LTECHO_EOF
4207     $1
4208     _LTECHO_EOF'
4209     }
4210     ECHO='func_fallback_echo'
4211     fi
4212    
4213     # func_echo_all arg...
4214     # Invoke $ECHO with all args, space-separated.
4215     func_echo_all ()
4216     {
4217     $ECHO ""
4218     }
4219    
4220     case $ECHO in
4221     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4222     $as_echo "printf" >&6; } ;;
4223     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4224     $as_echo "print -r" >&6; } ;;
4225     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4226     $as_echo "cat" >&6; } ;;
4227     esac
4228    
4229    
4230    
4231    
4232    
4233    
4234    
4235    
4236    
4237    
4238    
4239    
4240    
4241    
4242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4243     $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4244     if ${ac_cv_path_SED+:} false; then :
4245     $as_echo_n "(cached) " >&6
4246     else
4247     ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4248     for ac_i in 1 2 3 4 5 6 7; do
4249     ac_script="$ac_script$as_nl$ac_script"
4250     done
4251     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4252     { ac_script=; unset ac_script;}
4253     if test -z "$SED"; then
4254     ac_path_SED_found=false
4255     # Loop through the user's path and test for each of PROGNAME-LIST
4256     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 michael 5052 for as_dir in $PATH
4258     do
4259     IFS=$as_save_IFS
4260     test -z "$as_dir" && as_dir=.
4261 michael 5059 for ac_prog in sed gsed; do
4262 michael 5052 for ac_exec_ext in '' $ac_executable_extensions; do
4263 michael 5059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4264     as_fn_executable_p "$ac_path_SED" || continue
4265     # Check for GNU ac_path_SED and select it if it is found.
4266     # Check for GNU $ac_path_SED
4267     case `"$ac_path_SED" --version 2>&1` in
4268     *GNU*)
4269     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4270     *)
4271     ac_count=0
4272     $as_echo_n 0123456789 >"conftest.in"
4273     while :
4274     do
4275     cat "conftest.in" "conftest.in" >"conftest.tmp"
4276     mv "conftest.tmp" "conftest.in"
4277     cp "conftest.in" "conftest.nl"
4278     $as_echo '' >> "conftest.nl"
4279     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281     as_fn_arith $ac_count + 1 && ac_count=$as_val
4282     if test $ac_count -gt ${ac_path_SED_max-0}; then
4283     # Best one so far, save it but keep looking for a better one
4284     ac_cv_path_SED="$ac_path_SED"
4285     ac_path_SED_max=$ac_count
4286     fi
4287     # 10*(2^10) chars as input seems more than enough
4288     test $ac_count -gt 10 && break
4289     done
4290     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291     esac
4292    
4293     $ac_path_SED_found && break 3
4294 michael 5052 done
4295     done
4296 michael 5059 done
4297     IFS=$as_save_IFS
4298     if test -z "$ac_cv_path_SED"; then
4299     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4300 michael 5052 fi
4301 michael 5059 else
4302     ac_cv_path_SED=$SED
4303     fi
4304 michael 5052
4305     fi
4306 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4307     $as_echo "$ac_cv_path_SED" >&6; }
4308     SED="$ac_cv_path_SED"
4309     rm -f conftest.sed
4310 michael 5052
4311 michael 5059 test -z "$SED" && SED=sed
4312     Xsed="$SED -e 1s/^X//"
4313 michael 5052
4314 michael 5059
4315    
4316    
4317    
4318    
4319    
4320    
4321    
4322    
4323    
4324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4325     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4326     if ${ac_cv_path_GREP+:} false; then :
4327     $as_echo_n "(cached) " >&6
4328 michael 5052 else
4329 michael 5059 if test -z "$GREP"; then
4330 michael 5052 ac_path_GREP_found=false
4331 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4332     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334     do
4335     IFS=$as_save_IFS
4336     test -z "$as_dir" && as_dir=.
4337 michael 5059 for ac_prog in grep ggrep; do
4338     for ac_exec_ext in '' $ac_executable_extensions; do
4339     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4340     as_fn_executable_p "$ac_path_GREP" || continue
4341     # Check for GNU ac_path_GREP and select it if it is found.
4342 michael 5052 # Check for GNU $ac_path_GREP
4343     case `"$ac_path_GREP" --version 2>&1` in
4344     *GNU*)
4345     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4346     *)
4347     ac_count=0
4348 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4349 michael 5052 while :
4350     do
4351     cat "conftest.in" "conftest.in" >"conftest.tmp"
4352     mv "conftest.tmp" "conftest.in"
4353     cp "conftest.in" "conftest.nl"
4354 michael 5059 $as_echo 'GREP' >> "conftest.nl"
4355 michael 5052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4358 michael 5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4359     # Best one so far, save it but keep looking for a better one
4360     ac_cv_path_GREP="$ac_path_GREP"
4361     ac_path_GREP_max=$ac_count
4362     fi
4363     # 10*(2^10) chars as input seems more than enough
4364     test $ac_count -gt 10 && break
4365     done
4366     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367     esac
4368    
4369 michael 5059 $ac_path_GREP_found && break 3
4370     done
4371 michael 5052 done
4372 michael 5059 done
4373 michael 5052 IFS=$as_save_IFS
4374 michael 5059 if test -z "$ac_cv_path_GREP"; then
4375     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4376     fi
4377 michael 5052 else
4378     ac_cv_path_GREP=$GREP
4379     fi
4380    
4381     fi
4382 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4383     $as_echo "$ac_cv_path_GREP" >&6; }
4384 michael 5052 GREP="$ac_cv_path_GREP"
4385    
4386    
4387 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4388     $as_echo_n "checking for egrep... " >&6; }
4389     if ${ac_cv_path_EGREP+:} false; then :
4390     $as_echo_n "(cached) " >&6
4391 michael 5052 else
4392     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4393     then ac_cv_path_EGREP="$GREP -E"
4394     else
4395 michael 5059 if test -z "$EGREP"; then
4396 michael 5052 ac_path_EGREP_found=false
4397 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4398     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400     do
4401     IFS=$as_save_IFS
4402     test -z "$as_dir" && as_dir=.
4403 michael 5059 for ac_prog in egrep; do
4404     for ac_exec_ext in '' $ac_executable_extensions; do
4405     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4406     as_fn_executable_p "$ac_path_EGREP" || continue
4407     # Check for GNU ac_path_EGREP and select it if it is found.
4408 michael 5052 # Check for GNU $ac_path_EGREP
4409     case `"$ac_path_EGREP" --version 2>&1` in
4410     *GNU*)
4411     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4412     *)
4413     ac_count=0
4414 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4415 michael 5052 while :
4416     do
4417     cat "conftest.in" "conftest.in" >"conftest.tmp"
4418     mv "conftest.tmp" "conftest.in"
4419     cp "conftest.in" "conftest.nl"
4420 michael 5059 $as_echo 'EGREP' >> "conftest.nl"
4421 michael 5052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4424 michael 5052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4425     # Best one so far, save it but keep looking for a better one
4426     ac_cv_path_EGREP="$ac_path_EGREP"
4427     ac_path_EGREP_max=$ac_count
4428     fi
4429     # 10*(2^10) chars as input seems more than enough
4430     test $ac_count -gt 10 && break
4431     done
4432     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433     esac
4434    
4435 michael 5059 $ac_path_EGREP_found && break 3
4436     done
4437 michael 5052 done
4438 michael 5059 done
4439 michael 5052 IFS=$as_save_IFS
4440 michael 5059 if test -z "$ac_cv_path_EGREP"; then
4441     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4442     fi
4443     else
4444     ac_cv_path_EGREP=$EGREP
4445 michael 5052 fi
4446    
4447 michael 5059 fi
4448 michael 5052 fi
4449 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4450     $as_echo "$ac_cv_path_EGREP" >&6; }
4451     EGREP="$ac_cv_path_EGREP"
4452 michael 5052
4453 michael 5059
4454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4455     $as_echo_n "checking for fgrep... " >&6; }
4456     if ${ac_cv_path_FGREP+:} false; then :
4457     $as_echo_n "(cached) " >&6
4458 michael 5052 else
4459 michael 5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4460     then ac_cv_path_FGREP="$GREP -F"
4461     else
4462     if test -z "$FGREP"; then
4463     ac_path_FGREP_found=false
4464     # Loop through the user's path and test for each of PROGNAME-LIST
4465     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4467     do
4468     IFS=$as_save_IFS
4469     test -z "$as_dir" && as_dir=.
4470     for ac_prog in fgrep; do
4471     for ac_exec_ext in '' $ac_executable_extensions; do
4472     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4473     as_fn_executable_p "$ac_path_FGREP" || continue
4474     # Check for GNU ac_path_FGREP and select it if it is found.
4475     # Check for GNU $ac_path_FGREP
4476     case `"$ac_path_FGREP" --version 2>&1` in
4477     *GNU*)
4478     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4479     *)
4480     ac_count=0
4481     $as_echo_n 0123456789 >"conftest.in"
4482     while :
4483     do
4484     cat "conftest.in" "conftest.in" >"conftest.tmp"
4485     mv "conftest.tmp" "conftest.in"
4486     cp "conftest.in" "conftest.nl"
4487     $as_echo 'FGREP' >> "conftest.nl"
4488     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4489     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4490     as_fn_arith $ac_count + 1 && ac_count=$as_val
4491     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4492     # Best one so far, save it but keep looking for a better one
4493     ac_cv_path_FGREP="$ac_path_FGREP"
4494     ac_path_FGREP_max=$ac_count
4495     fi
4496     # 10*(2^10) chars as input seems more than enough
4497     test $ac_count -gt 10 && break
4498     done
4499     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4500     esac
4501    
4502     $ac_path_FGREP_found && break 3
4503     done
4504     done
4505     done
4506     IFS=$as_save_IFS
4507     if test -z "$ac_cv_path_FGREP"; then
4508     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4509     fi
4510     else
4511     ac_cv_path_FGREP=$FGREP
4512 michael 5052 fi
4513    
4514     fi
4515     fi
4516 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4517     $as_echo "$ac_cv_path_FGREP" >&6; }
4518     FGREP="$ac_cv_path_FGREP"
4519 michael 5052
4520    
4521 michael 5059 test -z "$GREP" && GREP=grep
4522 michael 5052
4523 michael 5059
4524    
4525    
4526    
4527    
4528    
4529    
4530    
4531    
4532    
4533    
4534    
4535    
4536    
4537    
4538    
4539    
4540    
4541 michael 5052 # Check whether --with-gnu-ld was given.
4542 michael 5059 if test "${with_gnu_ld+set}" = set; then :
4543     withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4544 michael 5052 else
4545     with_gnu_ld=no
4546     fi
4547    
4548     ac_prog=ld
4549 michael 5059 if test yes = "$GCC"; then
4550 michael 5052 # Check if gcc -print-prog-name=ld gives a path.
4551 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4552     $as_echo_n "checking for ld used by $CC... " >&6; }
4553 michael 5052 case $host in
4554     *-*-mingw*)
4555 michael 5059 # gcc leaves a trailing carriage return, which upsets mingw
4556 michael 5052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4557     *)
4558     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4559     esac
4560     case $ac_prog in
4561     # Accept absolute paths.
4562     [\\/]* | ?:[\\/]*)
4563     re_direlt='/[^/][^/]*/\.\./'
4564     # Canonicalize the pathname of ld
4565 michael 5059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4566     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4567     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4568 michael 5052 done
4569 michael 5059 test -z "$LD" && LD=$ac_prog
4570 michael 5052 ;;
4571     "")
4572     # If it fails, then pretend we aren't using GCC.
4573     ac_prog=ld
4574     ;;
4575     *)
4576     # If it is relative, then search for the first ld in PATH.
4577     with_gnu_ld=unknown
4578     ;;
4579     esac
4580 michael 5059 elif test yes = "$with_gnu_ld"; then
4581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4582     $as_echo_n "checking for GNU ld... " >&6; }
4583 michael 5052 else
4584 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4585     $as_echo_n "checking for non-GNU ld... " >&6; }
4586 michael 5052 fi
4587 michael 5059 if ${lt_cv_path_LD+:} false; then :
4588     $as_echo_n "(cached) " >&6
4589 michael 5052 else
4590     if test -z "$LD"; then
4591 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4592 michael 5052 for ac_dir in $PATH; do
4593 michael 5059 IFS=$lt_save_ifs
4594 michael 5052 test -z "$ac_dir" && ac_dir=.
4595     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4596 michael 5059 lt_cv_path_LD=$ac_dir/$ac_prog
4597 michael 5052 # Check to see if the program is GNU ld. I'd rather use --version,
4598     # but apparently some variants of GNU ld only accept -v.
4599     # Break only if it was the GNU/non-GNU ld that we prefer.
4600     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4601     *GNU* | *'with BFD'*)
4602 michael 5059 test no != "$with_gnu_ld" && break
4603 michael 5052 ;;
4604     *)
4605 michael 5059 test yes != "$with_gnu_ld" && break
4606 michael 5052 ;;
4607     esac
4608     fi
4609     done
4610 michael 5059 IFS=$lt_save_ifs
4611 michael 5052 else
4612 michael 5059 lt_cv_path_LD=$LD # Let the user override the test with a path.
4613 michael 5052 fi
4614     fi
4615    
4616 michael 5059 LD=$lt_cv_path_LD
4617 michael 5052 if test -n "$LD"; then
4618 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4619     $as_echo "$LD" >&6; }
4620 michael 5052 else
4621 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622     $as_echo "no" >&6; }
4623 michael 5052 fi
4624 michael 5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4626     $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4627     if ${lt_cv_prog_gnu_ld+:} false; then :
4628     $as_echo_n "(cached) " >&6
4629 michael 5052 else
4630     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4631     case `$LD -v 2>&1 </dev/null` in
4632     *GNU* | *'with BFD'*)
4633     lt_cv_prog_gnu_ld=yes
4634     ;;
4635     *)
4636     lt_cv_prog_gnu_ld=no
4637     ;;
4638     esac
4639     fi
4640 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4641     $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4642 michael 5052 with_gnu_ld=$lt_cv_prog_gnu_ld
4643    
4644    
4645    
4646 michael 5059
4647    
4648    
4649    
4650    
4651    
4652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4653     $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4654     if ${lt_cv_path_NM+:} false; then :
4655     $as_echo_n "(cached) " >&6
4656 michael 5052 else
4657     if test -n "$NM"; then
4658     # Let the user override the test.
4659 michael 5059 lt_cv_path_NM=$NM
4660 michael 5052 else
4661 michael 5059 lt_nm_to_check=${ac_tool_prefix}nm
4662 michael 5052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663     lt_nm_to_check="$lt_nm_to_check nm"
4664     fi
4665     for lt_tmp_nm in $lt_nm_to_check; do
4666 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4667 michael 5052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4668 michael 5059 IFS=$lt_save_ifs
4669 michael 5052 test -z "$ac_dir" && ac_dir=.
4670 michael 5059 tmp_nm=$ac_dir/$lt_tmp_nm
4671     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4672 michael 5052 # Check to see if the nm accepts a BSD-compat flag.
4673 michael 5059 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4674 michael 5052 # nm: unknown option "B" ignored
4675     # Tru64's nm complains that /dev/null is an invalid object file
4676 michael 5059 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4677     case $build_os in
4678     mingw*) lt_bad_file=conftest.nm/nofile ;;
4679     *) lt_bad_file=/dev/null ;;
4680     esac
4681     case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4682     *$lt_bad_file* | *'Invalid file or object type'*)
4683 michael 5052 lt_cv_path_NM="$tmp_nm -B"
4684 michael 5059 break 2
4685 michael 5052 ;;
4686     *)
4687     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4688     */dev/null*)
4689     lt_cv_path_NM="$tmp_nm -p"
4690 michael 5059 break 2
4691 michael 5052 ;;
4692     *)
4693     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4694     continue # so that we can try to find one that supports BSD flags
4695     ;;
4696     esac
4697     ;;
4698     esac
4699     fi
4700     done
4701 michael 5059 IFS=$lt_save_ifs
4702 michael 5052 done
4703 michael 5059 : ${lt_cv_path_NM=no}
4704 michael 5052 fi
4705     fi
4706 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4707     $as_echo "$lt_cv_path_NM" >&6; }
4708     if test no != "$lt_cv_path_NM"; then
4709     NM=$lt_cv_path_NM
4710     else
4711     # Didn't find any BSD compatible name lister, look for dumpbin.
4712     if test -n "$DUMPBIN"; then :
4713     # Let the user override the test.
4714     else
4715     if test -n "$ac_tool_prefix"; then
4716     for ac_prog in dumpbin "link -dump"
4717     do
4718     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4719     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721     $as_echo_n "checking for $ac_word... " >&6; }
4722     if ${ac_cv_prog_DUMPBIN+:} false; then :
4723     $as_echo_n "(cached) " >&6
4724     else
4725     if test -n "$DUMPBIN"; then
4726     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4727     else
4728     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729     for as_dir in $PATH
4730     do
4731     IFS=$as_save_IFS
4732     test -z "$as_dir" && as_dir=.
4733     for ac_exec_ext in '' $ac_executable_extensions; do
4734     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737     break 2
4738     fi
4739     done
4740     done
4741     IFS=$as_save_IFS
4742 michael 5052
4743 michael 5059 fi
4744     fi
4745     DUMPBIN=$ac_cv_prog_DUMPBIN
4746     if test -n "$DUMPBIN"; then
4747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4748     $as_echo "$DUMPBIN" >&6; }
4749     else
4750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751     $as_echo "no" >&6; }
4752     fi
4753    
4754    
4755     test -n "$DUMPBIN" && break
4756     done
4757     fi
4758     if test -z "$DUMPBIN"; then
4759     ac_ct_DUMPBIN=$DUMPBIN
4760     for ac_prog in dumpbin "link -dump"
4761     do
4762     # Extract the first word of "$ac_prog", so it can be a program name with args.
4763     set dummy $ac_prog; ac_word=$2
4764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765     $as_echo_n "checking for $ac_word... " >&6; }
4766     if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4767     $as_echo_n "(cached) " >&6
4768     else
4769     if test -n "$ac_ct_DUMPBIN"; then
4770     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4771     else
4772     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773     for as_dir in $PATH
4774     do
4775     IFS=$as_save_IFS
4776     test -z "$as_dir" && as_dir=.
4777     for ac_exec_ext in '' $ac_executable_extensions; do
4778     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782     fi
4783     done
4784     done
4785     IFS=$as_save_IFS
4786    
4787     fi
4788     fi
4789     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4790     if test -n "$ac_ct_DUMPBIN"; then
4791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4792     $as_echo "$ac_ct_DUMPBIN" >&6; }
4793     else
4794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795     $as_echo "no" >&6; }
4796     fi
4797    
4798    
4799     test -n "$ac_ct_DUMPBIN" && break
4800     done
4801    
4802     if test "x$ac_ct_DUMPBIN" = x; then
4803     DUMPBIN=":"
4804     else
4805     case $cross_compiling:$ac_tool_warned in
4806     yes:)
4807     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4808     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4809     ac_tool_warned=yes ;;
4810     esac
4811     DUMPBIN=$ac_ct_DUMPBIN
4812     fi
4813     fi
4814    
4815     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4816     *COFF*)
4817     DUMPBIN="$DUMPBIN -symbols -headers"
4818     ;;
4819     *)
4820     DUMPBIN=:
4821     ;;
4822     esac
4823     fi
4824    
4825     if test : != "$DUMPBIN"; then
4826     NM=$DUMPBIN
4827     fi
4828     fi
4829     test -z "$NM" && NM=nm
4830    
4831    
4832    
4833    
4834    
4835    
4836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4837     $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4838     if ${lt_cv_nm_interface+:} false; then :
4839     $as_echo_n "(cached) " >&6
4840     else
4841     lt_cv_nm_interface="BSD nm"
4842     echo "int some_variable = 0;" > conftest.$ac_ext
4843     (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4844     (eval "$ac_compile" 2>conftest.err)
4845     cat conftest.err >&5
4846     (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4847     (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4848     cat conftest.err >&5
4849     (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4850     cat conftest.out >&5
4851     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4852     lt_cv_nm_interface="MS dumpbin"
4853     fi
4854     rm -f conftest*
4855     fi
4856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4857     $as_echo "$lt_cv_nm_interface" >&6; }
4858    
4859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4860     $as_echo_n "checking whether ln -s works... " >&6; }
4861 michael 5052 LN_S=$as_ln_s
4862     if test "$LN_S" = "ln -s"; then
4863 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864     $as_echo "yes" >&6; }
4865 michael 5052 else
4866 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4867     $as_echo "no, using $LN_S" >&6; }
4868 michael 5052 fi
4869    
4870 michael 5059 # find the maximum length of command line arguments
4871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4872     $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4873     if ${lt_cv_sys_max_cmd_len+:} false; then :
4874     $as_echo_n "(cached) " >&6
4875 michael 5052 else
4876 michael 5059 i=0
4877     teststring=ABCD
4878    
4879     case $build_os in
4880     msdosdjgpp*)
4881     # On DJGPP, this test can blow up pretty badly due to problems in libc
4882     # (any single argument exceeding 2000 bytes causes a buffer overrun
4883     # during glob expansion). Even if it were fixed, the result of this
4884     # check would be larger than it should be.
4885     lt_cv_sys_max_cmd_len=12288; # 12K is about right
4886     ;;
4887    
4888     gnu*)
4889     # Under GNU Hurd, this test is not required because there is
4890     # no limit to the length of command line arguments.
4891     # Libtool will interpret -1 as no limit whatsoever
4892     lt_cv_sys_max_cmd_len=-1;
4893     ;;
4894    
4895     cygwin* | mingw* | cegcc*)
4896     # On Win9x/ME, this test blows up -- it succeeds, but takes
4897     # about 5 minutes as the teststring grows exponentially.
4898     # Worse, since 9x/ME are not pre-emptively multitasking,
4899     # you end up with a "frozen" computer, even though with patience
4900     # the test eventually succeeds (with a max line length of 256k).
4901     # Instead, let's just punt: use the minimum linelength reported by
4902     # all of the supported platforms: 8192 (on NT/2K/XP).
4903     lt_cv_sys_max_cmd_len=8192;
4904     ;;
4905    
4906     mint*)
4907     # On MiNT this can take a long time and run out of memory.
4908     lt_cv_sys_max_cmd_len=8192;
4909     ;;
4910    
4911     amigaos*)
4912     # On AmigaOS with pdksh, this test takes hours, literally.
4913     # So we just punt and use a minimum line length of 8192.
4914     lt_cv_sys_max_cmd_len=8192;
4915     ;;
4916    
4917     bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4918     # This has been around since 386BSD, at least. Likely further.
4919     if test -x /sbin/sysctl; then
4920     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4921     elif test -x /usr/sbin/sysctl; then
4922     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4923     else
4924     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4925     fi
4926     # And add a safety zone
4927     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4928     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4929     ;;
4930    
4931     interix*)
4932     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4933     lt_cv_sys_max_cmd_len=196608
4934     ;;
4935    
4936     os2*)
4937     # The test takes a long time on OS/2.
4938     lt_cv_sys_max_cmd_len=8192
4939     ;;
4940    
4941     osf*)
4942     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4943     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4944     # nice to cause kernel panics so lets avoid the loop below.
4945     # First set a reasonable default.
4946     lt_cv_sys_max_cmd_len=16384
4947     #
4948     if test -x /sbin/sysconfig; then
4949     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4950     *1*) lt_cv_sys_max_cmd_len=-1 ;;
4951     esac
4952     fi
4953     ;;
4954     sco3.2v5*)
4955     lt_cv_sys_max_cmd_len=102400
4956     ;;
4957     sysv5* | sco5v6* | sysv4.2uw2*)
4958     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4959     if test -n "$kargmax"; then
4960     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4961     else
4962     lt_cv_sys_max_cmd_len=32768
4963     fi
4964     ;;
4965     *)
4966     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4967     if test -n "$lt_cv_sys_max_cmd_len" && \
4968     test undefined != "$lt_cv_sys_max_cmd_len"; then
4969     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4970     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4971     else
4972     # Make teststring a little bigger before we do anything with it.
4973     # a 1K string should be a reasonable start.
4974     for i in 1 2 3 4 5 6 7 8; do
4975     teststring=$teststring$teststring
4976     done
4977     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4978     # If test is not a shell built-in, we'll probably end up computing a
4979     # maximum length that is only half of the actual maximum length, but
4980     # we can't tell.
4981     while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4982     = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4983     test 17 != "$i" # 1/2 MB should be enough
4984     do
4985     i=`expr $i + 1`
4986     teststring=$teststring$teststring
4987     done
4988     # Only check the string length outside the loop.
4989     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4990     teststring=
4991     # Add a significant safety factor because C++ compilers can tack on
4992     # massive amounts of additional arguments before passing them to the
4993     # linker. It appears as though 1/2 is a usable value.
4994     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4995     fi
4996     ;;
4997     esac
4998    
4999     fi
5000    
5001     if test -n "$lt_cv_sys_max_cmd_len"; then
5002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5003     $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5004     else
5005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5006     $as_echo "none" >&6; }
5007     fi
5008     max_cmd_len=$lt_cv_sys_max_cmd_len
5009    
5010    
5011    
5012    
5013    
5014    
5015     : ${CP="cp -f"}
5016     : ${MV="mv -f"}
5017     : ${RM="rm -f"}
5018    
5019     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5020     lt_unset=unset
5021     else
5022     lt_unset=false
5023     fi
5024    
5025    
5026    
5027    
5028    
5029     # test EBCDIC or ASCII
5030     case `echo X|tr X '\101'` in
5031     A) # ASCII based system
5032     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5033     lt_SP2NL='tr \040 \012'
5034     lt_NL2SP='tr \015\012 \040\040'
5035     ;;
5036     *) # EBCDIC based system
5037     lt_SP2NL='tr \100 \n'
5038     lt_NL2SP='tr \r\n \100\100'
5039     ;;
5040     esac
5041    
5042    
5043    
5044    
5045    
5046    
5047    
5048    
5049    
5050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5051     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5052     if ${lt_cv_to_host_file_cmd+:} false; then :
5053     $as_echo_n "(cached) " >&6
5054     else
5055     case $host in
5056     *-*-mingw* )
5057     case $build in
5058     *-*-mingw* ) # actually msys
5059     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5060     ;;
5061     *-*-cygwin* )
5062     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5063     ;;
5064     * ) # otherwise, assume *nix
5065     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5066     ;;
5067     esac
5068     ;;
5069     *-*-cygwin* )
5070     case $build in
5071     *-*-mingw* ) # actually msys
5072     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5073     ;;
5074     *-*-cygwin* )
5075     lt_cv_to_host_file_cmd=func_convert_file_noop
5076     ;;
5077     * ) # otherwise, assume *nix
5078     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5079     ;;
5080     esac
5081     ;;
5082     * ) # unhandled hosts (and "normal" native builds)
5083     lt_cv_to_host_file_cmd=func_convert_file_noop
5084     ;;
5085     esac
5086    
5087     fi
5088    
5089     to_host_file_cmd=$lt_cv_to_host_file_cmd
5090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5091     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5092    
5093    
5094    
5095    
5096    
5097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5098     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5099     if ${lt_cv_to_tool_file_cmd+:} false; then :
5100     $as_echo_n "(cached) " >&6
5101     else
5102     #assume ordinary cross tools, or native build.
5103     lt_cv_to_tool_file_cmd=func_convert_file_noop
5104     case $host in
5105     *-*-mingw* )
5106     case $build in
5107     *-*-mingw* ) # actually msys
5108     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5109     ;;
5110     esac
5111     ;;
5112     esac
5113    
5114     fi
5115    
5116     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5118     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5119    
5120    
5121    
5122    
5123    
5124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5125     $as_echo_n "checking for $LD option to reload object files... " >&6; }
5126     if ${lt_cv_ld_reload_flag+:} false; then :
5127     $as_echo_n "(cached) " >&6
5128     else
5129     lt_cv_ld_reload_flag='-r'
5130     fi
5131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5132     $as_echo "$lt_cv_ld_reload_flag" >&6; }
5133     reload_flag=$lt_cv_ld_reload_flag
5134     case $reload_flag in
5135     "" | " "*) ;;
5136     *) reload_flag=" $reload_flag" ;;
5137     esac
5138     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5139     case $host_os in
5140     cygwin* | mingw* | pw32* | cegcc*)
5141     if test yes != "$GCC"; then
5142     reload_cmds=false
5143     fi
5144     ;;
5145     darwin*)
5146     if test yes = "$GCC"; then
5147     reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5148     else
5149     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5150     fi
5151     ;;
5152     esac
5153    
5154    
5155    
5156    
5157    
5158    
5159    
5160    
5161    
5162     if test -n "$ac_tool_prefix"; then
5163     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5164     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166     $as_echo_n "checking for $ac_word... " >&6; }
5167     if ${ac_cv_prog_OBJDUMP+:} false; then :
5168     $as_echo_n "(cached) " >&6
5169     else
5170     if test -n "$OBJDUMP"; then
5171     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5172     else
5173     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174     for as_dir in $PATH
5175     do
5176     IFS=$as_save_IFS
5177     test -z "$as_dir" && as_dir=.
5178     for ac_exec_ext in '' $ac_executable_extensions; do
5179     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183     fi
5184     done
5185     done
5186     IFS=$as_save_IFS
5187    
5188     fi
5189     fi
5190     OBJDUMP=$ac_cv_prog_OBJDUMP
5191     if test -n "$OBJDUMP"; then
5192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5193     $as_echo "$OBJDUMP" >&6; }
5194     else
5195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196     $as_echo "no" >&6; }
5197     fi
5198    
5199    
5200     fi
5201     if test -z "$ac_cv_prog_OBJDUMP"; then
5202     ac_ct_OBJDUMP=$OBJDUMP
5203     # Extract the first word of "objdump", so it can be a program name with args.
5204     set dummy objdump; ac_word=$2
5205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206     $as_echo_n "checking for $ac_word... " >&6; }
5207     if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5208     $as_echo_n "(cached) " >&6
5209     else
5210     if test -n "$ac_ct_OBJDUMP"; then
5211     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5212     else
5213     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214     for as_dir in $PATH
5215     do
5216     IFS=$as_save_IFS
5217     test -z "$as_dir" && as_dir=.
5218     for ac_exec_ext in '' $ac_executable_extensions; do
5219     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222     break 2
5223     fi
5224     done
5225     done
5226     IFS=$as_save_IFS
5227    
5228     fi
5229     fi
5230     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5231     if test -n "$ac_ct_OBJDUMP"; then
5232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5233     $as_echo "$ac_ct_OBJDUMP" >&6; }
5234     else
5235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236     $as_echo "no" >&6; }
5237     fi
5238    
5239     if test "x$ac_ct_OBJDUMP" = x; then
5240     OBJDUMP="false"
5241     else
5242     case $cross_compiling:$ac_tool_warned in
5243     yes:)
5244     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5245     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246     ac_tool_warned=yes ;;
5247     esac
5248     OBJDUMP=$ac_ct_OBJDUMP
5249     fi
5250     else
5251     OBJDUMP="$ac_cv_prog_OBJDUMP"
5252     fi
5253    
5254     test -z "$OBJDUMP" && OBJDUMP=objdump
5255    
5256    
5257    
5258    
5259    
5260    
5261    
5262    
5263    
5264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5265     $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5266     if ${lt_cv_deplibs_check_method+:} false; then :
5267     $as_echo_n "(cached) " >&6
5268     else
5269 michael 5052 lt_cv_file_magic_cmd='$MAGIC_CMD'
5270     lt_cv_file_magic_test_file=
5271     lt_cv_deplibs_check_method='unknown'
5272     # Need to set the preceding variable on all platforms that support
5273     # interlibrary dependencies.
5274     # 'none' -- dependencies not supported.
5275 michael 5059 # 'unknown' -- same as none, but documents that we really don't know.
5276 michael 5052 # 'pass_all' -- all dependencies passed with no checks.
5277     # 'test_compile' -- check by making test program.
5278     # 'file_magic [[regex]]' -- check by looking for files in library path
5279 michael 5059 # that responds to the $file_magic_cmd with a given extended regex.
5280     # If you have 'file' or equivalent on your system and you're not sure
5281     # whether 'pass_all' will *always* work, you probably want this one.
5282 michael 5052
5283     case $host_os in
5284 michael 5059 aix[4-9]*)
5285 michael 5052 lt_cv_deplibs_check_method=pass_all
5286     ;;
5287    
5288     beos*)
5289     lt_cv_deplibs_check_method=pass_all
5290     ;;
5291    
5292     bsdi[45]*)
5293     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5294     lt_cv_file_magic_cmd='/usr/bin/file -L'
5295     lt_cv_file_magic_test_file=/shlib/libc.so
5296     ;;
5297    
5298     cygwin*)
5299     # func_win32_libid is a shell function defined in ltmain.sh
5300     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5301     lt_cv_file_magic_cmd='func_win32_libid'
5302     ;;
5303    
5304     mingw* | pw32*)
5305     # Base MSYS/MinGW do not provide the 'file' command needed by
5306 michael 5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5307     # unless we find 'file', for example because we are cross-compiling.
5308     if ( file / ) >/dev/null 2>&1; then
5309     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5310     lt_cv_file_magic_cmd='func_win32_libid'
5311     else
5312     # Keep this pattern in sync with the one in func_win32_libid.
5313     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5314     lt_cv_file_magic_cmd='$OBJDUMP -f'
5315     fi
5316     ;;
5317    
5318     cegcc*)
5319     # use the weaker test based on 'objdump'. See mingw*.
5320     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5321 michael 5052 lt_cv_file_magic_cmd='$OBJDUMP -f'
5322     ;;
5323    
5324     darwin* | rhapsody*)
5325     lt_cv_deplibs_check_method=pass_all
5326     ;;
5327    
5328     freebsd* | dragonfly*)
5329 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5330 michael 5052 case $host_cpu in
5331     i*86 )
5332     # Not sure whether the presence of OpenBSD here was a mistake.
5333     # Let's accept both of them until this is cleared up.
5334     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5335     lt_cv_file_magic_cmd=/usr/bin/file
5336     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5337     ;;
5338     esac
5339     else
5340     lt_cv_deplibs_check_method=pass_all
5341     fi
5342     ;;
5343    
5344 michael 5059 haiku*)
5345 michael 5052 lt_cv_deplibs_check_method=pass_all
5346     ;;
5347    
5348     hpux10.20* | hpux11*)
5349     lt_cv_file_magic_cmd=/usr/bin/file
5350     case $host_cpu in
5351     ia64*)
5352     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5353     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5354     ;;
5355     hppa*64*)
5356 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]'
5357 michael 5052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5358     ;;
5359     *)
5360 michael 5059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5361 michael 5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5362     ;;
5363     esac
5364     ;;
5365    
5366 michael 5059 interix[3-9]*)
5367 michael 5052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5368     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5369     ;;
5370    
5371     irix5* | irix6* | nonstopux*)
5372     case $LD in
5373     *-32|*"-32 ") libmagic=32-bit;;
5374     *-n32|*"-n32 ") libmagic=N32;;
5375     *-64|*"-64 ") libmagic=64-bit;;
5376     *) libmagic=never-match;;
5377     esac
5378     lt_cv_deplibs_check_method=pass_all
5379     ;;
5380    
5381 michael 5059 # This must be glibc/ELF.
5382     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5383 michael 5052 lt_cv_deplibs_check_method=pass_all
5384     ;;
5385    
5386 michael 5059 netbsd*)
5387     if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5388 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5389     else
5390     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5391     fi
5392     ;;
5393    
5394     newos6*)
5395     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5396     lt_cv_file_magic_cmd=/usr/bin/file
5397     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5398     ;;
5399    
5400 michael 5059 *nto* | *qnx*)
5401     lt_cv_deplibs_check_method=pass_all
5402 michael 5052 ;;
5403    
5404 michael 5059 openbsd* | bitrig*)
5405     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5406 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5407     else
5408     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5409     fi
5410     ;;
5411    
5412     osf3* | osf4* | osf5*)
5413     lt_cv_deplibs_check_method=pass_all
5414     ;;
5415    
5416 michael 5059 rdos*)
5417     lt_cv_deplibs_check_method=pass_all
5418     ;;
5419    
5420 michael 5052 solaris*)
5421     lt_cv_deplibs_check_method=pass_all
5422     ;;
5423    
5424 michael 5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5425     lt_cv_deplibs_check_method=pass_all
5426     ;;
5427    
5428 michael 5052 sysv4 | sysv4.3*)
5429     case $host_vendor in
5430     motorola)
5431     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]'
5432     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5433     ;;
5434     ncr)
5435     lt_cv_deplibs_check_method=pass_all
5436     ;;
5437     sequent)
5438     lt_cv_file_magic_cmd='/bin/file'
5439     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5440     ;;
5441     sni)
5442     lt_cv_file_magic_cmd='/bin/file'
5443     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5444     lt_cv_file_magic_test_file=/lib/libc.so
5445     ;;
5446     siemens)
5447     lt_cv_deplibs_check_method=pass_all
5448     ;;
5449     pc)
5450     lt_cv_deplibs_check_method=pass_all
5451     ;;
5452     esac
5453     ;;
5454    
5455 michael 5059 tpf*)
5456 michael 5052 lt_cv_deplibs_check_method=pass_all
5457     ;;
5458 michael 5059 os2*)
5459     lt_cv_deplibs_check_method=pass_all
5460     ;;
5461 michael 5052 esac
5462    
5463     fi
5464 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5465     $as_echo "$lt_cv_deplibs_check_method" >&6; }
5466    
5467     file_magic_glob=
5468     want_nocaseglob=no
5469     if test "$build" = "$host"; then
5470     case $host_os in
5471     mingw* | pw32*)
5472     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5473     want_nocaseglob=yes
5474     else
5475     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5476     fi
5477     ;;
5478     esac
5479     fi
5480    
5481 michael 5052 file_magic_cmd=$lt_cv_file_magic_cmd
5482     deplibs_check_method=$lt_cv_deplibs_check_method
5483     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5484    
5485    
5486    
5487    
5488    
5489    
5490    
5491    
5492    
5493    
5494    
5495    
5496    
5497    
5498    
5499    
5500    
5501    
5502    
5503    
5504    
5505    
5506 michael 5059 if test -n "$ac_tool_prefix"; then
5507     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5508     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510     $as_echo_n "checking for $ac_word... " >&6; }
5511     if ${ac_cv_prog_DLLTOOL+:} false; then :
5512     $as_echo_n "(cached) " >&6
5513 michael 5052 else
5514 michael 5059 if test -n "$DLLTOOL"; then
5515     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5516     else
5517     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518     for as_dir in $PATH
5519 michael 5052 do
5520 michael 5059 IFS=$as_save_IFS
5521     test -z "$as_dir" && as_dir=.
5522     for ac_exec_ext in '' $ac_executable_extensions; do
5523     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527 michael 5052 fi
5528 michael 5059 done
5529     done
5530     IFS=$as_save_IFS
5531 michael 5052
5532     fi
5533     fi
5534 michael 5059 DLLTOOL=$ac_cv_prog_DLLTOOL
5535     if test -n "$DLLTOOL"; then
5536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5537     $as_echo "$DLLTOOL" >&6; }
5538 michael 5052 else
5539 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540     $as_echo "no" >&6; }
5541 michael 5052 fi
5542    
5543    
5544     fi
5545 michael 5059 if test -z "$ac_cv_prog_DLLTOOL"; then
5546     ac_ct_DLLTOOL=$DLLTOOL
5547     # Extract the first word of "dlltool", so it can be a program name with args.
5548     set dummy dlltool; ac_word=$2
5549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550     $as_echo_n "checking for $ac_word... " >&6; }
5551     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5552     $as_echo_n "(cached) " >&6
5553 michael 5052 else
5554 michael 5059 if test -n "$ac_ct_DLLTOOL"; then
5555     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5556     else
5557     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558     for as_dir in $PATH
5559 michael 5052 do
5560 michael 5059 IFS=$as_save_IFS
5561     test -z "$as_dir" && as_dir=.
5562     for ac_exec_ext in '' $ac_executable_extensions; do
5563     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567 michael 5052 fi
5568     done
5569 michael 5059 done
5570     IFS=$as_save_IFS
5571 michael 5052
5572     fi
5573     fi
5574 michael 5059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5575     if test -n "$ac_ct_DLLTOOL"; then
5576     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5577     $as_echo "$ac_ct_DLLTOOL" >&6; }
5578 michael 5052 else
5579 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580     $as_echo "no" >&6; }
5581 michael 5052 fi
5582    
5583 michael 5059 if test "x$ac_ct_DLLTOOL" = x; then
5584     DLLTOOL="false"
5585     else
5586     case $cross_compiling:$ac_tool_warned in
5587     yes:)
5588     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590     ac_tool_warned=yes ;;
5591 michael 5052 esac
5592 michael 5059 DLLTOOL=$ac_ct_DLLTOOL
5593     fi
5594 michael 5052 else
5595 michael 5059 DLLTOOL="$ac_cv_prog_DLLTOOL"
5596 michael 5052 fi
5597    
5598 michael 5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5599 michael 5052
5600    
5601    
5602    
5603    
5604    
5605    
5606    
5607    
5608    
5609 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5610     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5611     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5612     $as_echo_n "(cached) " >&6
5613 michael 5052 else
5614 michael 5059 lt_cv_sharedlib_from_linklib_cmd='unknown'
5615 michael 5052
5616 michael 5059 case $host_os in
5617     cygwin* | mingw* | pw32* | cegcc*)
5618     # two different shell functions defined in ltmain.sh;
5619     # decide which one to use based on capabilities of $DLLTOOL
5620     case `$DLLTOOL --help 2>&1` in
5621     *--identify-strict*)
5622     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5623     ;;
5624     *)
5625     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5626     ;;
5627     esac
5628     ;;
5629     *)
5630     # fallback: assume linklib IS sharedlib
5631     lt_cv_sharedlib_from_linklib_cmd=$ECHO
5632     ;;
5633 michael 5052 esac
5634    
5635     fi
5636 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5637     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5638     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5639     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5640 michael 5052
5641    
5642    
5643    
5644    
5645    
5646    
5647    
5648 michael 5059 if test -n "$ac_tool_prefix"; then
5649     for ac_prog in ar
5650 michael 5052 do
5651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5653 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654     $as_echo_n "checking for $ac_word... " >&6; }
5655     if ${ac_cv_prog_AR+:} false; then :
5656     $as_echo_n "(cached) " >&6
5657 michael 5052 else
5658 michael 5059 if test -n "$AR"; then
5659     ac_cv_prog_AR="$AR" # Let the user override the test.
5660 michael 5052 else
5661     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662     for as_dir in $PATH
5663     do
5664     IFS=$as_save_IFS
5665     test -z "$as_dir" && as_dir=.
5666 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5667     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 michael 5052 break 2
5671     fi
5672     done
5673 michael 5059 done
5674 michael 5052 IFS=$as_save_IFS
5675    
5676     fi
5677     fi
5678 michael 5059 AR=$ac_cv_prog_AR
5679     if test -n "$AR"; then
5680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5681     $as_echo "$AR" >&6; }
5682 michael 5052 else
5683 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684     $as_echo "no" >&6; }
5685 michael 5052 fi
5686    
5687    
5688 michael 5059 test -n "$AR" && break
5689 michael 5052 done
5690     fi
5691 michael 5059 if test -z "$AR"; then
5692     ac_ct_AR=$AR
5693     for ac_prog in ar
5694 michael 5052 do
5695     # Extract the first word of "$ac_prog", so it can be a program name with args.
5696     set dummy $ac_prog; ac_word=$2
5697 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698     $as_echo_n "checking for $ac_word... " >&6; }
5699     if ${ac_cv_prog_ac_ct_AR+:} false; then :
5700     $as_echo_n "(cached) " >&6
5701 michael 5052 else
5702 michael 5059 if test -n "$ac_ct_AR"; then
5703     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5704 michael 5052 else
5705     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706     for as_dir in $PATH
5707     do
5708     IFS=$as_save_IFS
5709     test -z "$as_dir" && as_dir=.
5710 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5711     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712     ac_cv_prog_ac_ct_AR="$ac_prog"
5713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 michael 5052 break 2
5715     fi
5716     done
5717 michael 5059 done
5718 michael 5052 IFS=$as_save_IFS
5719    
5720     fi
5721     fi
5722 michael 5059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5723     if test -n "$ac_ct_AR"; then
5724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5725     $as_echo "$ac_ct_AR" >&6; }
5726 michael 5052 else
5727 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728     $as_echo "no" >&6; }
5729 michael 5052 fi
5730    
5731    
5732 michael 5059 test -n "$ac_ct_AR" && break
5733 michael 5052 done
5734    
5735 michael 5059 if test "x$ac_ct_AR" = x; then
5736     AR="false"
5737 michael 5052 else
5738     case $cross_compiling:$ac_tool_warned in
5739     yes:)
5740 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742 michael 5052 ac_tool_warned=yes ;;
5743     esac
5744 michael 5059 AR=$ac_ct_AR
5745 michael 5052 fi
5746     fi
5747    
5748 michael 5059 : ${AR=ar}
5749     : ${AR_FLAGS=cru}
5750 michael 5052
5751    
5752    
5753    
5754    
5755    
5756    
5757    
5758    
5759    
5760    
5761 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5762     $as_echo_n "checking for archiver @FILE support... " >&6; }
5763     if ${lt_cv_ar_at_file+:} false; then :
5764     $as_echo_n "(cached) " >&6
5765 michael 5052 else
5766 michael 5059 lt_cv_ar_at_file=no
5767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 michael 5052 /* end confdefs.h. */
5769    
5770     int
5771     main ()
5772     {
5773    
5774     ;
5775     return 0;
5776     }
5777     _ACEOF
5778 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
5779     echo conftest.$ac_objext > conftest.lst
5780     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5781     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5782     (eval $lt_ar_try) 2>&5
5783 michael 5052 ac_status=$?
5784 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5785     test $ac_status = 0; }
5786     if test 0 -eq "$ac_status"; then
5787     # Ensure the archiver fails upon bogus file names.
5788     rm -f conftest.$ac_objext libconftest.a
5789     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5790     (eval $lt_ar_try) 2>&5
5791 michael 5052 ac_status=$?
5792 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5793     test $ac_status = 0; }
5794     if test 0 -ne "$ac_status"; then
5795     lt_cv_ar_at_file=@
5796     fi
5797     fi
5798     rm -f conftest.* libconftest.a
5799 michael 5052
5800     fi
5801     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802    
5803     fi
5804 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5805     $as_echo "$lt_cv_ar_at_file" >&6; }
5806 michael 5052
5807 michael 5059 if test no = "$lt_cv_ar_at_file"; then
5808     archiver_list_spec=
5809 michael 5052 else
5810 michael 5059 archiver_list_spec=$lt_cv_ar_at_file
5811 michael 5052 fi
5812    
5813    
5814    
5815    
5816    
5817    
5818    
5819 michael 5059 if test -n "$ac_tool_prefix"; then
5820     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5821     set dummy ${ac_tool_prefix}strip; ac_word=$2
5822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823     $as_echo_n "checking for $ac_word... " >&6; }
5824     if ${ac_cv_prog_STRIP+:} false; then :
5825     $as_echo_n "(cached) " >&6
5826 michael 5052 else
5827 michael 5059 if test -n "$STRIP"; then
5828     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5829 michael 5052 else
5830 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831     for as_dir in $PATH
5832 michael 5052 do
5833 michael 5059 IFS=$as_save_IFS
5834     test -z "$as_dir" && as_dir=.
5835     for ac_exec_ext in '' $ac_executable_extensions; do
5836     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840 michael 5052 fi
5841 michael 5059 done
5842     done
5843     IFS=$as_save_IFS
5844 michael 5052
5845     fi
5846     fi
5847 michael 5059 STRIP=$ac_cv_prog_STRIP
5848     if test -n "$STRIP"; then
5849     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5850     $as_echo "$STRIP" >&6; }
5851 michael 5052 else
5852 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853     $as_echo "no" >&6; }
5854 michael 5052 fi
5855    
5856    
5857     fi
5858 michael 5059 if test -z "$ac_cv_prog_STRIP"; then
5859     ac_ct_STRIP=$STRIP
5860     # Extract the first word of "strip", so it can be a program name with args.
5861     set dummy strip; ac_word=$2
5862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863     $as_echo_n "checking for $ac_word... " >&6; }
5864     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5865     $as_echo_n "(cached) " >&6
5866 michael 5052 else
5867 michael 5059 if test -n "$ac_ct_STRIP"; then
5868     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5869     else
5870     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871     for as_dir in $PATH
5872 michael 5052 do
5873 michael 5059 IFS=$as_save_IFS
5874     test -z "$as_dir" && as_dir=.
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_prog_ac_ct_STRIP="strip"
5878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880 michael 5052 fi
5881 michael 5059 done
5882     done
5883     IFS=$as_save_IFS
5884    
5885 michael 5052 fi
5886 michael 5059 fi
5887     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5888     if test -n "$ac_ct_STRIP"; then
5889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5890     $as_echo "$ac_ct_STRIP" >&6; }
5891 michael 5052 else
5892 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893     $as_echo "no" >&6; }
5894 michael 5052 fi
5895    
5896 michael 5059 if test "x$ac_ct_STRIP" = x; then
5897     STRIP=":"
5898     else
5899     case $cross_compiling:$ac_tool_warned in
5900     yes:)
5901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5902     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5903     ac_tool_warned=yes ;;
5904 michael 5052 esac
5905 michael 5059 STRIP=$ac_ct_STRIP
5906 michael 5052 fi
5907     else
5908 michael 5059 STRIP="$ac_cv_prog_STRIP"
5909 michael 5052 fi
5910    
5911 michael 5059 test -z "$STRIP" && STRIP=:
5912 michael 5052
5913    
5914    
5915    
5916    
5917    
5918     if test -n "$ac_tool_prefix"; then
5919 michael 5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5920     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922     $as_echo_n "checking for $ac_word... " >&6; }
5923     if ${ac_cv_prog_RANLIB+:} false; then :
5924     $as_echo_n "(cached) " >&6
5925 michael 5052 else
5926 michael 5059 if test -n "$RANLIB"; then
5927     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5928 michael 5052 else
5929     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930     for as_dir in $PATH
5931     do
5932     IFS=$as_save_IFS
5933     test -z "$as_dir" && as_dir=.
5934 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5935     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 michael 5052 break 2
5939     fi
5940     done
5941 michael 5059 done
5942 michael 5052 IFS=$as_save_IFS
5943    
5944     fi
5945     fi
5946 michael 5059 RANLIB=$ac_cv_prog_RANLIB
5947     if test -n "$RANLIB"; then
5948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5949     $as_echo "$RANLIB" >&6; }
5950 michael 5052 else
5951 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952     $as_echo "no" >&6; }
5953 michael 5052 fi
5954    
5955    
5956     fi
5957 michael 5059 if test -z "$ac_cv_prog_RANLIB"; then
5958     ac_ct_RANLIB=$RANLIB
5959     # Extract the first word of "ranlib", so it can be a program name with args.
5960     set dummy ranlib; ac_word=$2
5961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962     $as_echo_n "checking for $ac_word... " >&6; }
5963     if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5964     $as_echo_n "(cached) " >&6
5965 michael 5052 else
5966 michael 5059 if test -n "$ac_ct_RANLIB"; then
5967     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5968 michael 5052 else
5969     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970     for as_dir in $PATH
5971     do
5972     IFS=$as_save_IFS
5973     test -z "$as_dir" && as_dir=.
5974 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5975     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976     ac_cv_prog_ac_ct_RANLIB="ranlib"
5977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 michael 5052 break 2
5979     fi
5980     done
5981 michael 5059 done
5982 michael 5052 IFS=$as_save_IFS
5983    
5984     fi
5985     fi
5986 michael 5059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5987     if test -n "$ac_ct_RANLIB"; then
5988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5989     $as_echo "$ac_ct_RANLIB" >&6; }
5990 michael 5052 else
5991 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992     $as_echo "no" >&6; }
5993 michael 5052 fi
5994    
5995 michael 5059 if test "x$ac_ct_RANLIB" = x; then
5996     RANLIB=":"
5997 michael 5052 else
5998     case $cross_compiling:$ac_tool_warned in
5999     yes:)
6000 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002 michael 5052 ac_tool_warned=yes ;;
6003     esac
6004 michael 5059 RANLIB=$ac_ct_RANLIB
6005 michael 5052 fi
6006 michael 5059 else
6007     RANLIB="$ac_cv_prog_RANLIB"
6008 michael 5052 fi
6009    
6010 michael 5059 test -z "$RANLIB" && RANLIB=:
6011 michael 5052
6012    
6013    
6014    
6015    
6016    
6017 michael 5059 # Determine commands to create old-style static archives.
6018     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6019     old_postinstall_cmds='chmod 644 $oldlib'
6020     old_postuninstall_cmds=
6021    
6022     if test -n "$RANLIB"; then
6023     case $host_os in
6024     bitrig* | openbsd*)
6025     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6026     ;;
6027     *)
6028     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6029     ;;
6030     esac
6031     old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6032 michael 5052 fi
6033    
6034 michael 5059 case $host_os in
6035     darwin*)
6036     lock_old_archive_extraction=yes ;;
6037     *)
6038     lock_old_archive_extraction=no ;;
6039 michael 5052 esac
6040    
6041    
6042    
6043    
6044    
6045    
6046    
6047    
6048    
6049    
6050    
6051    
6052    
6053    
6054    
6055    
6056    
6057    
6058    
6059    
6060    
6061 michael 5059
6062    
6063    
6064    
6065    
6066    
6067    
6068    
6069    
6070    
6071    
6072    
6073    
6074    
6075    
6076    
6077    
6078    
6079     # If no C compiler was specified, use CC.
6080     LTCC=${LTCC-"$CC"}
6081    
6082     # If no C compiler flags were specified, use CFLAGS.
6083     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6084    
6085     # Allow CC to be a program name with arguments.
6086     compiler=$CC
6087    
6088    
6089 michael 5052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6090 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6091     $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6092     if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6093     $as_echo_n "(cached) " >&6
6094 michael 5052 else
6095    
6096     # These are sane defaults that work on at least a few old systems.
6097     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6098    
6099     # Character class describing NM global symbol codes.
6100     symcode='[BCDEGRST]'
6101    
6102     # Regexp to match symbols that can be accessed directly from C.
6103     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6104    
6105     # Define system-specific variables.
6106     case $host_os in
6107     aix*)
6108     symcode='[BCDT]'
6109     ;;
6110 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
6111 michael 5052 symcode='[ABCDGISTW]'
6112     ;;
6113 michael 5059 hpux*)
6114     if test ia64 = "$host_cpu"; then
6115 michael 5052 symcode='[ABCDEGRST]'
6116     fi
6117     ;;
6118     irix* | nonstopux*)
6119     symcode='[BCDEGRST]'
6120     ;;
6121     osf*)
6122     symcode='[BCDEGQRST]'
6123     ;;
6124     solaris*)
6125     symcode='[BDRT]'
6126     ;;
6127     sco3.2v5*)
6128     symcode='[DT]'
6129     ;;
6130     sysv4.2uw2*)
6131     symcode='[DT]'
6132     ;;
6133     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6134     symcode='[ABDT]'
6135     ;;
6136     sysv4)
6137     symcode='[DFNSTU]'
6138     ;;
6139     esac
6140    
6141 michael 5059 # If we're using GNU nm, then use its standard symbol codes.
6142     case `$NM -V 2>&1` in
6143     *GNU* | *'with BFD'*)
6144     symcode='[ABCDGIRSTW]' ;;
6145     esac
6146    
6147     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6148     # Gets list of data symbols to import.
6149     lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6150     # Adjust the below global symbol transforms to fixup imported variables.
6151     lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6152     lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6153     lt_c_name_lib_hook="\
6154     -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6155     -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6156     else
6157     # Disable hooks by default.
6158     lt_cv_sys_global_symbol_to_import=
6159     lt_cdecl_hook=
6160     lt_c_name_hook=
6161     lt_c_name_lib_hook=
6162     fi
6163    
6164     # Transform an extracted symbol line into a proper C declaration.
6165     # Some systems (esp. on ia64) link data and code symbols differently,
6166     # so use this general approach.
6167     lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6168     $lt_cdecl_hook\
6169     " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6170     " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6171    
6172     # Transform an extracted symbol line into symbol name and symbol address
6173     lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6174     $lt_c_name_hook\
6175     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6176     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6177    
6178     # Transform an extracted symbol line into symbol name with lib prefix and
6179     # symbol address.
6180     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6181     $lt_c_name_lib_hook\
6182     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6183     " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6184     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6185    
6186 michael 5052 # Handle CRLF in mingw tool chain
6187     opt_cr=
6188     case $build_os in
6189     mingw*)
6190 michael 5059 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6191 michael 5052 ;;
6192     esac
6193    
6194 michael 5059 # Try without a prefix underscore, then with it.
6195 michael 5052 for ac_symprfx in "" "_"; do
6196    
6197     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6198     symxfrm="\\1 $ac_symprfx\\2 \\2"
6199    
6200     # Write the raw and C identifiers.
6201 michael 5059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6202     # Fake it for dumpbin and say T for any non-static function,
6203     # D for any global variable and I for any imported variable.
6204     # Also find C++ and __fastcall symbols from MSVC++,
6205     # which start with @ or ?.
6206     lt_cv_sys_global_symbol_pipe="$AWK '"\
6207     " {last_section=section; section=\$ 3};"\
6208     " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6209     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6210     " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6211     " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6212     " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6213     " \$ 0!~/External *\|/{next};"\
6214     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6215     " {if(hide[section]) next};"\
6216     " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6217     " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6218     " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6219     " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6220     " ' prfx=^$ac_symprfx"
6221     else
6222     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6223     fi
6224     lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6225 michael 5052
6226     # Check to see that the pipe works correctly.
6227     pipe_works=no
6228    
6229     rm -f conftest*
6230 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
6231 michael 5052 #ifdef __cplusplus
6232     extern "C" {
6233     #endif
6234     char nm_test_var;
6235 michael 5059 void nm_test_func(void);
6236     void nm_test_func(void){}
6237 michael 5052 #ifdef __cplusplus
6238     }
6239     #endif
6240     int main(){nm_test_var='a';nm_test_func();return(0);}
6241 michael 5059 _LT_EOF
6242 michael 5052
6243 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6244 michael 5052 (eval $ac_compile) 2>&5
6245     ac_status=$?
6246 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247     test $ac_status = 0; }; then
6248 michael 5052 # Now try to grab the symbols.
6249     nlist=conftest.nm
6250 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6251     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6252 michael 5052 ac_status=$?
6253 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254     test $ac_status = 0; } && test -s "$nlist"; then
6255 michael 5052 # Try sorting and uniquifying the output.
6256     if sort "$nlist" | uniq > "$nlist"T; then
6257     mv -f "$nlist"T "$nlist"
6258     else
6259     rm -f "$nlist"T
6260     fi
6261    
6262     # Make sure that we snagged all the symbols we need.
6263 michael 5059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6264     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6265     cat <<_LT_EOF > conftest.$ac_ext
6266     /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6267     #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6268     /* DATA imports from DLLs on WIN32 can't be const, because runtime
6269     relocations are performed -- see ld's documentation on pseudo-relocs. */
6270     # define LT_DLSYM_CONST
6271     #elif defined __osf__
6272     /* This system does not cope well with relocations in const data. */
6273     # define LT_DLSYM_CONST
6274     #else
6275     # define LT_DLSYM_CONST const
6276     #endif
6277    
6278 michael 5052 #ifdef __cplusplus
6279     extern "C" {
6280     #endif
6281    
6282 michael 5059 _LT_EOF
6283 michael 5052 # Now generate the symbol file.
6284 michael 5059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6285 michael 5052
6286 michael 5059 cat <<_LT_EOF >> conftest.$ac_ext
6287 michael 5052
6288 michael 5059 /* The mapping between symbol names and symbols. */
6289     LT_DLSYM_CONST struct {
6290 michael 5052 const char *name;
6291 michael 5059 void *address;
6292 michael 5052 }
6293 michael 5059 lt__PROGRAM__LTX_preloaded_symbols[] =
6294 michael 5052 {
6295 michael 5059 { "@PROGRAM@", (void *) 0 },
6296     _LT_EOF
6297     $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6298     cat <<\_LT_EOF >> conftest.$ac_ext
6299     {0, (void *) 0}
6300 michael 5052 };
6301    
6302 michael 5059 /* This works around a problem in FreeBSD linker */
6303     #ifdef FREEBSD_WORKAROUND
6304     static const void *lt_preloaded_setup() {
6305     return lt__PROGRAM__LTX_preloaded_symbols;
6306     }
6307     #endif
6308    
6309 michael 5052 #ifdef __cplusplus
6310     }
6311     #endif
6312 michael 5059 _LT_EOF
6313 michael 5052 # Now try linking the two files.
6314     mv conftest.$ac_objext conftstm.$ac_objext
6315 michael 5059 lt_globsym_save_LIBS=$LIBS
6316     lt_globsym_save_CFLAGS=$CFLAGS
6317     LIBS=conftstm.$ac_objext
6318 michael 5052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6319 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6320 michael 5052 (eval $ac_link) 2>&5
6321     ac_status=$?
6322 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323     test $ac_status = 0; } && test -s conftest$ac_exeext; then
6324 michael 5052 pipe_works=yes
6325     fi
6326 michael 5059 LIBS=$lt_globsym_save_LIBS
6327     CFLAGS=$lt_globsym_save_CFLAGS
6328 michael 5052 else
6329     echo "cannot find nm_test_func in $nlist" >&5
6330     fi
6331     else
6332     echo "cannot find nm_test_var in $nlist" >&5
6333     fi
6334     else
6335     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6336     fi
6337     else
6338     echo "$progname: failed program was:" >&5
6339     cat conftest.$ac_ext >&5
6340     fi
6341 michael 5059 rm -rf conftest* conftst*
6342 michael 5052
6343     # Do not use the global_symbol_pipe unless it works.
6344 michael 5059 if test yes = "$pipe_works"; then
6345 michael 5052 break
6346     else
6347     lt_cv_sys_global_symbol_pipe=
6348     fi
6349     done
6350    
6351     fi
6352    
6353     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6354     lt_cv_sys_global_symbol_to_cdecl=
6355     fi
6356     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6357 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6358     $as_echo "failed" >&6; }
6359 michael 5052 else
6360 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6361     $as_echo "ok" >&6; }
6362 michael 5052 fi
6363    
6364 michael 5059 # Response file support.
6365     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6366     nm_file_list_spec='@'
6367     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6368     nm_file_list_spec='@'
6369     fi
6370    
6371    
6372    
6373    
6374    
6375    
6376    
6377    
6378    
6379    
6380    
6381    
6382    
6383    
6384    
6385    
6386    
6387    
6388    
6389    
6390    
6391    
6392    
6393    
6394    
6395    
6396    
6397    
6398    
6399    
6400    
6401    
6402    
6403    
6404    
6405    
6406    
6407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6408     $as_echo_n "checking for sysroot... " >&6; }
6409    
6410     # Check whether --with-sysroot was given.
6411     if test "${with_sysroot+set}" = set; then :
6412     withval=$with_sysroot;
6413 michael 5052 else
6414 michael 5059 with_sysroot=no
6415     fi
6416    
6417    
6418     lt_sysroot=
6419     case $with_sysroot in #(
6420     yes)
6421     if test yes = "$GCC"; then
6422     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6423     fi
6424     ;; #(
6425     /*)
6426     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6427     ;; #(
6428     no|'')
6429     ;; #(
6430     *)
6431     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6432     $as_echo "$with_sysroot" >&6; }
6433     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6434     ;;
6435     esac
6436    
6437     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6438     $as_echo "${lt_sysroot:-no}" >&6; }
6439    
6440    
6441    
6442    
6443    
6444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6445     $as_echo_n "checking for a working dd... " >&6; }
6446     if ${ac_cv_path_lt_DD+:} false; then :
6447     $as_echo_n "(cached) " >&6
6448 michael 5052 else
6449 michael 5059 printf 0123456789abcdef0123456789abcdef >conftest.i
6450     cat conftest.i conftest.i >conftest2.i
6451     : ${lt_DD:=$DD}
6452     if test -z "$lt_DD"; then
6453     ac_path_lt_DD_found=false
6454     # Loop through the user's path and test for each of PROGNAME-LIST
6455     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456     for as_dir in $PATH
6457     do
6458     IFS=$as_save_IFS
6459     test -z "$as_dir" && as_dir=.
6460     for ac_prog in dd; do
6461     for ac_exec_ext in '' $ac_executable_extensions; do
6462     ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6463     as_fn_executable_p "$ac_path_lt_DD" || continue
6464     if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6465     cmp -s conftest.i conftest.out \
6466     && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6467 michael 5052 fi
6468 michael 5059 $ac_path_lt_DD_found && break 3
6469     done
6470     done
6471     done
6472     IFS=$as_save_IFS
6473     if test -z "$ac_cv_path_lt_DD"; then
6474     :
6475     fi
6476     else
6477     ac_cv_path_lt_DD=$lt_DD
6478 michael 5052 fi
6479    
6480 michael 5059 rm -f conftest.i conftest2.i conftest.out
6481     fi
6482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6483     $as_echo "$ac_cv_path_lt_DD" >&6; }
6484 michael 5052
6485    
6486 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6487     $as_echo_n "checking how to truncate binary pipes... " >&6; }
6488     if ${lt_cv_truncate_bin+:} false; then :
6489     $as_echo_n "(cached) " >&6
6490     else
6491     printf 0123456789abcdef0123456789abcdef >conftest.i
6492     cat conftest.i conftest.i >conftest2.i
6493     lt_cv_truncate_bin=
6494     if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6495     cmp -s conftest.i conftest.out \
6496     && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6497     fi
6498     rm -f conftest.i conftest2.i conftest.out
6499     test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6500     fi
6501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6502     $as_echo "$lt_cv_truncate_bin" >&6; }
6503 michael 5052
6504    
6505 michael 5059
6506    
6507    
6508    
6509     # Check whether --enable-libtool-lock was given.
6510     if test "${enable_libtool_lock+set}" = set; then :
6511     enableval=$enable_libtool_lock;
6512     fi
6513    
6514     test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6515    
6516     # Some flags need to be propagated to the compiler or linker for good
6517     # libtool support.
6518     case $host in
6519     ia64-*-hpux*)
6520     # Find out what ABI is being produced by ac_compile, and set mode
6521     # options accordingly.
6522     echo 'int i;' > conftest.$ac_ext
6523     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524     (eval $ac_compile) 2>&5
6525     ac_status=$?
6526     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527     test $ac_status = 0; }; then
6528     case `/usr/bin/file conftest.$ac_objext` in
6529     *ELF-32*)
6530     HPUX_IA64_MODE=32
6531     ;;
6532     *ELF-64*)
6533     HPUX_IA64_MODE=64
6534     ;;
6535     esac
6536 michael 5052 fi
6537 michael 5059 rm -rf conftest*
6538 michael 5052 ;;
6539 michael 5059 *-*-irix6*)
6540     # Find out what ABI is being produced by ac_compile, and set linker
6541     # options accordingly.
6542     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6543     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544     (eval $ac_compile) 2>&5
6545     ac_status=$?
6546     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547     test $ac_status = 0; }; then
6548     if test yes = "$lt_cv_prog_gnu_ld"; then
6549     case `/usr/bin/file conftest.$ac_objext` in
6550     *32-bit*)
6551     LD="${LD-ld} -melf32bsmip"
6552     ;;
6553     *N32*)
6554     LD="${LD-ld} -melf32bmipn32"
6555     ;;
6556     *64-bit*)
6557     LD="${LD-ld} -melf64bmip"
6558     ;;
6559     esac
6560     else
6561     case `/usr/bin/file conftest.$ac_objext` in
6562     *32-bit*)
6563     LD="${LD-ld} -32"
6564     ;;
6565     *N32*)
6566     LD="${LD-ld} -n32"
6567     ;;
6568     *64-bit*)
6569     LD="${LD-ld} -64"
6570     ;;
6571     esac
6572     fi
6573     fi
6574     rm -rf conftest*
6575     ;;
6576 michael 5052
6577 michael 5059 mips64*-*linux*)
6578     # Find out what ABI is being produced by ac_compile, and set linker
6579     # options accordingly.
6580     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6581     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582     (eval $ac_compile) 2>&5
6583     ac_status=$?
6584     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585     test $ac_status = 0; }; then
6586     emul=elf
6587     case `/usr/bin/file conftest.$ac_objext` in
6588     *32-bit*)
6589     emul="${emul}32"
6590     ;;
6591     *64-bit*)
6592     emul="${emul}64"
6593     ;;
6594     esac
6595     case `/usr/bin/file conftest.$ac_objext` in
6596     *MSB*)
6597     emul="${emul}btsmip"
6598     ;;
6599     *LSB*)
6600     emul="${emul}ltsmip"
6601     ;;
6602     esac
6603     case `/usr/bin/file conftest.$ac_objext` in
6604     *N32*)
6605     emul="${emul}n32"
6606     ;;
6607     esac
6608     LD="${LD-ld} -m $emul"
6609     fi
6610     rm -rf conftest*
6611     ;;
6612 michael 5052
6613 michael 5059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6614     s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6615     # Find out what ABI is being produced by ac_compile, and set linker
6616     # options accordingly. Note that the listed cases only cover the
6617     # situations where additional linker options are needed (such as when
6618     # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6619     # vice versa); the common cases where no linker options are needed do
6620     # not appear in the list.
6621     echo 'int i;' > conftest.$ac_ext
6622     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6623     (eval $ac_compile) 2>&5
6624     ac_status=$?
6625     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626     test $ac_status = 0; }; then
6627     case `/usr/bin/file conftest.o` in
6628     *32-bit*)
6629     case $host in
6630     x86_64-*kfreebsd*-gnu)
6631     LD="${LD-ld} -m elf_i386_fbsd"
6632     ;;
6633     x86_64-*linux*)
6634     case `/usr/bin/file conftest.o` in
6635     *x86-64*)
6636     LD="${LD-ld} -m elf32_x86_64"
6637     ;;
6638     *)
6639     LD="${LD-ld} -m elf_i386"
6640     ;;
6641     esac
6642     ;;
6643     powerpc64le-*linux*)
6644     LD="${LD-ld} -m elf32lppclinux"
6645     ;;
6646     powerpc64-*linux*)
6647     LD="${LD-ld} -m elf32ppclinux"
6648     ;;
6649     s390x-*linux*)
6650     LD="${LD-ld} -m elf_s390"
6651     ;;
6652     sparc64-*linux*)
6653     LD="${LD-ld} -m elf32_sparc"
6654     ;;
6655     esac
6656     ;;
6657     *64-bit*)
6658     case $host in
6659     x86_64-*kfreebsd*-gnu)
6660     LD="${LD-ld} -m elf_x86_64_fbsd"
6661     ;;
6662     x86_64-*linux*)
6663     LD="${LD-ld} -m elf_x86_64"
6664     ;;
6665     powerpcle-*linux*)
6666     LD="${LD-ld} -m elf64lppc"
6667     ;;
6668     powerpc-*linux*)
6669     LD="${LD-ld} -m elf64ppc"
6670     ;;
6671     s390*-*linux*|s390*-*tpf*)
6672     LD="${LD-ld} -m elf64_s390"
6673     ;;
6674     sparc*-*linux*)
6675     LD="${LD-ld} -m elf64_sparc"
6676     ;;
6677     esac
6678     ;;
6679     esac
6680     fi
6681     rm -rf conftest*
6682     ;;
6683 michael 5052
6684 michael 5059 *-*-sco3.2v5*)
6685     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6686     SAVE_CFLAGS=$CFLAGS
6687     CFLAGS="$CFLAGS -belf"
6688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6689     $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6690     if ${lt_cv_cc_needs_belf+:} false; then :
6691     $as_echo_n "(cached) " >&6
6692     else
6693     ac_ext=c
6694     ac_cpp='$CPP $CPPFLAGS'
6695     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6698 michael 5052
6699 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700     /* end confdefs.h. */
6701 michael 5052
6702 michael 5059 int
6703     main ()
6704     {
6705 michael 5052
6706 michael 5059 ;
6707     return 0;
6708     }
6709     _ACEOF
6710     if ac_fn_c_try_link "$LINENO"; then :
6711     lt_cv_cc_needs_belf=yes
6712     else
6713     lt_cv_cc_needs_belf=no
6714     fi
6715     rm -f core conftest.err conftest.$ac_objext \
6716     conftest$ac_exeext conftest.$ac_ext
6717     ac_ext=c
6718     ac_cpp='$CPP $CPPFLAGS'
6719     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6722 michael 5052
6723 michael 5059 fi
6724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6725     $as_echo "$lt_cv_cc_needs_belf" >&6; }
6726     if test yes != "$lt_cv_cc_needs_belf"; then
6727     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6728     CFLAGS=$SAVE_CFLAGS
6729     fi
6730     ;;
6731     *-*solaris*)
6732     # Find out what ABI is being produced by ac_compile, and set linker
6733     # options accordingly.
6734     echo 'int i;' > conftest.$ac_ext
6735     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6736     (eval $ac_compile) 2>&5
6737     ac_status=$?
6738     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739     test $ac_status = 0; }; then
6740     case `/usr/bin/file conftest.o` in
6741     *64-bit*)
6742     case $lt_cv_prog_gnu_ld in
6743     yes*)
6744     case $host in
6745     i?86-*-solaris*|x86_64-*-solaris*)
6746     LD="${LD-ld} -m elf_x86_64"
6747     ;;
6748     sparc*-*-solaris*)
6749     LD="${LD-ld} -m elf64_sparc"
6750     ;;
6751     esac
6752     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6753     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6754     LD=${LD-ld}_sol2
6755     fi
6756     ;;
6757     *)
6758     if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6759     LD="${LD-ld} -64"
6760     fi
6761     ;;
6762     esac
6763     ;;
6764     esac
6765     fi
6766     rm -rf conftest*
6767     ;;
6768     esac
6769 michael 5052
6770 michael 5059 need_locks=$enable_libtool_lock
6771    
6772 michael 5052 if test -n "$ac_tool_prefix"; then
6773 michael 5059 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6774     set dummy ${ac_tool_prefix}mt; ac_word=$2
6775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776     $as_echo_n "checking for $ac_word... " >&6; }
6777     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6778     $as_echo_n "(cached) " >&6
6779 michael 5052 else
6780 michael 5059 if test -n "$MANIFEST_TOOL"; then
6781     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6782 michael 5052 else
6783     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784     for as_dir in $PATH
6785     do
6786     IFS=$as_save_IFS
6787     test -z "$as_dir" && as_dir=.
6788 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6789     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 michael 5052 break 2
6793     fi
6794     done
6795 michael 5059 done
6796     IFS=$as_save_IFS
6797    
6798     fi
6799     fi
6800     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6801     if test -n "$MANIFEST_TOOL"; then
6802     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6803     $as_echo "$MANIFEST_TOOL" >&6; }
6804     else
6805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806     $as_echo "no" >&6; }
6807     fi
6808    
6809    
6810     fi
6811     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6812     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6813     # Extract the first word of "mt", so it can be a program name with args.
6814     set dummy mt; ac_word=$2
6815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816     $as_echo_n "checking for $ac_word... " >&6; }
6817     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6818     $as_echo_n "(cached) " >&6
6819     else
6820     if test -n "$ac_ct_MANIFEST_TOOL"; then
6821     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6822     else
6823     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824     for as_dir in $PATH
6825     do
6826     IFS=$as_save_IFS
6827     test -z "$as_dir" && as_dir=.
6828     for ac_exec_ext in '' $ac_executable_extensions; do
6829     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833     fi
6834 michael 5052 done
6835 michael 5059 done
6836 michael 5052 IFS=$as_save_IFS
6837    
6838     fi
6839     fi
6840 michael 5059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6841     if test -n "$ac_ct_MANIFEST_TOOL"; then
6842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6843     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6844 michael 5052 else
6845 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846     $as_echo "no" >&6; }
6847 michael 5052 fi
6848    
6849 michael 5059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6850     MANIFEST_TOOL=":"
6851     else
6852     case $cross_compiling:$ac_tool_warned in
6853     yes:)
6854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856     ac_tool_warned=yes ;;
6857     esac
6858     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6859     fi
6860     else
6861     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6862     fi
6863 michael 5052
6864 michael 5059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6866     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6867     if ${lt_cv_path_mainfest_tool+:} false; then :
6868     $as_echo_n "(cached) " >&6
6869     else
6870     lt_cv_path_mainfest_tool=no
6871     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6872     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6873     cat conftest.err >&5
6874     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6875     lt_cv_path_mainfest_tool=yes
6876     fi
6877     rm -f conftest*
6878 michael 5052 fi
6879 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6880     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6881     if test yes != "$lt_cv_path_mainfest_tool"; then
6882     MANIFEST_TOOL=:
6883     fi
6884    
6885    
6886    
6887    
6888    
6889    
6890     case $host_os in
6891     rhapsody* | darwin*)
6892     if test -n "$ac_tool_prefix"; then
6893     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6894     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896     $as_echo_n "checking for $ac_word... " >&6; }
6897     if ${ac_cv_prog_DSYMUTIL+:} false; then :
6898     $as_echo_n "(cached) " >&6
6899 michael 5052 else
6900 michael 5059 if test -n "$DSYMUTIL"; then
6901     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6902 michael 5052 else
6903     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904     for as_dir in $PATH
6905     do
6906     IFS=$as_save_IFS
6907     test -z "$as_dir" && as_dir=.
6908 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6909     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 michael 5052 break 2
6913     fi
6914     done
6915 michael 5059 done
6916     IFS=$as_save_IFS
6917    
6918     fi
6919     fi
6920     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6921     if test -n "$DSYMUTIL"; then
6922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6923     $as_echo "$DSYMUTIL" >&6; }
6924     else
6925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926     $as_echo "no" >&6; }
6927     fi
6928    
6929    
6930     fi
6931     if test -z "$ac_cv_prog_DSYMUTIL"; then
6932     ac_ct_DSYMUTIL=$DSYMUTIL
6933     # Extract the first word of "dsymutil", so it can be a program name with args.
6934     set dummy dsymutil; ac_word=$2
6935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936     $as_echo_n "checking for $ac_word... " >&6; }
6937     if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6938     $as_echo_n "(cached) " >&6
6939     else
6940     if test -n "$ac_ct_DSYMUTIL"; then
6941     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6942     else
6943     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944     for as_dir in $PATH
6945     do
6946     IFS=$as_save_IFS
6947     test -z "$as_dir" && as_dir=.
6948     for ac_exec_ext in '' $ac_executable_extensions; do
6949     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953     fi
6954 michael 5052 done
6955 michael 5059 done
6956 michael 5052 IFS=$as_save_IFS
6957    
6958     fi
6959     fi
6960 michael 5059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6961     if test -n "$ac_ct_DSYMUTIL"; then
6962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6963     $as_echo "$ac_ct_DSYMUTIL" >&6; }
6964 michael 5052 else
6965 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966     $as_echo "no" >&6; }
6967 michael 5052 fi
6968    
6969 michael 5059 if test "x$ac_ct_DSYMUTIL" = x; then
6970     DSYMUTIL=":"
6971 michael 5052 else
6972     case $cross_compiling:$ac_tool_warned in
6973     yes:)
6974 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 michael 5052 ac_tool_warned=yes ;;
6977     esac
6978 michael 5059 DSYMUTIL=$ac_ct_DSYMUTIL
6979 michael 5052 fi
6980     else
6981 michael 5059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6982 michael 5052 fi
6983    
6984 michael 5059 if test -n "$ac_tool_prefix"; then
6985     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6986     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988     $as_echo_n "checking for $ac_word... " >&6; }
6989     if ${ac_cv_prog_NMEDIT+:} false; then :
6990     $as_echo_n "(cached) " >&6
6991 michael 5052 else
6992 michael 5059 if test -n "$NMEDIT"; then
6993     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6994 michael 5052 else
6995     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996     for as_dir in $PATH
6997     do
6998     IFS=$as_save_IFS
6999     test -z "$as_dir" && as_dir=.
7000 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7001     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 michael 5052 break 2
7005     fi
7006     done
7007 michael 5059 done
7008 michael 5052 IFS=$as_save_IFS
7009    
7010     fi
7011     fi
7012 michael 5059 NMEDIT=$ac_cv_prog_NMEDIT
7013     if test -n "$NMEDIT"; then
7014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7015     $as_echo "$NMEDIT" >&6; }
7016 michael 5052 else
7017 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018     $as_echo "no" >&6; }
7019 michael 5052 fi
7020    
7021    
7022     fi
7023 michael 5059 if test -z "$ac_cv_prog_NMEDIT"; then
7024     ac_ct_NMEDIT=$NMEDIT
7025     # Extract the first word of "nmedit", so it can be a program name with args.
7026     set dummy nmedit; ac_word=$2
7027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028     $as_echo_n "checking for $ac_word... " >&6; }
7029     if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7030     $as_echo_n "(cached) " >&6
7031 michael 5052 else
7032 michael 5059 if test -n "$ac_ct_NMEDIT"; then
7033     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7034 michael 5052 else
7035     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036     for as_dir in $PATH
7037     do
7038     IFS=$as_save_IFS
7039     test -z "$as_dir" && as_dir=.
7040 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7041     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 michael 5052 break 2
7045     fi
7046     done
7047 michael 5059 done
7048 michael 5052 IFS=$as_save_IFS
7049    
7050     fi
7051     fi
7052 michael 5059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7053     if test -n "$ac_ct_NMEDIT"; then
7054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7055     $as_echo "$ac_ct_NMEDIT" >&6; }
7056 michael 5052 else
7057 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058     $as_echo "no" >&6; }
7059 michael 5052 fi
7060    
7061 michael 5059 if test "x$ac_ct_NMEDIT" = x; then
7062     NMEDIT=":"
7063 michael 5052 else
7064     case $cross_compiling:$ac_tool_warned in
7065     yes:)
7066 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068 michael 5052 ac_tool_warned=yes ;;
7069     esac
7070 michael 5059 NMEDIT=$ac_ct_NMEDIT
7071 michael 5052 fi
7072     else
7073 michael 5059 NMEDIT="$ac_cv_prog_NMEDIT"
7074 michael 5052 fi
7075    
7076 michael 5059 if test -n "$ac_tool_prefix"; then
7077     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7078     set dummy ${ac_tool_prefix}lipo; ac_word=$2
7079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080     $as_echo_n "checking for $ac_word... " >&6; }
7081     if ${ac_cv_prog_LIPO+:} false; then :
7082     $as_echo_n "(cached) " >&6
7083 michael 5052 else
7084 michael 5059 if test -n "$LIPO"; then
7085     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7086 michael 5052 else
7087     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088     for as_dir in $PATH
7089     do
7090     IFS=$as_save_IFS
7091     test -z "$as_dir" && as_dir=.
7092 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7093     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 michael 5052 break 2
7097     fi
7098     done
7099 michael 5059 done
7100     IFS=$as_save_IFS
7101    
7102     fi
7103     fi
7104     LIPO=$ac_cv_prog_LIPO
7105     if test -n "$LIPO"; then
7106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7107     $as_echo "$LIPO" >&6; }
7108     else
7109     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110     $as_echo "no" >&6; }
7111     fi
7112    
7113    
7114     fi
7115     if test -z "$ac_cv_prog_LIPO"; then
7116     ac_ct_LIPO=$LIPO
7117     # Extract the first word of "lipo", so it can be a program name with args.
7118     set dummy lipo; ac_word=$2
7119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120     $as_echo_n "checking for $ac_word... " >&6; }
7121     if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7122     $as_echo_n "(cached) " >&6
7123     else
7124     if test -n "$ac_ct_LIPO"; then
7125     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7126     else
7127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128     for as_dir in $PATH
7129     do
7130     IFS=$as_save_IFS
7131     test -z "$as_dir" && as_dir=.
7132     for ac_exec_ext in '' $ac_executable_extensions; do
7133     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134     ac_cv_prog_ac_ct_LIPO="lipo"
7135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137     fi
7138 michael 5052 done
7139 michael 5059 done
7140 michael 5052 IFS=$as_save_IFS
7141    
7142     fi
7143     fi
7144 michael 5059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7145     if test -n "$ac_ct_LIPO"; then
7146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7147     $as_echo "$ac_ct_LIPO" >&6; }
7148 michael 5052 else
7149 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150     $as_echo "no" >&6; }
7151 michael 5052 fi
7152    
7153 michael 5059 if test "x$ac_ct_LIPO" = x; then
7154     LIPO=":"
7155     else
7156     case $cross_compiling:$ac_tool_warned in
7157     yes:)
7158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160     ac_tool_warned=yes ;;
7161     esac
7162     LIPO=$ac_ct_LIPO
7163     fi
7164     else
7165     LIPO="$ac_cv_prog_LIPO"
7166     fi
7167 michael 5052
7168 michael 5059 if test -n "$ac_tool_prefix"; then
7169     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7170     set dummy ${ac_tool_prefix}otool; ac_word=$2
7171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172     $as_echo_n "checking for $ac_word... " >&6; }
7173     if ${ac_cv_prog_OTOOL+:} false; then :
7174     $as_echo_n "(cached) " >&6
7175     else
7176     if test -n "$OTOOL"; then
7177     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7178     else
7179     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180     for as_dir in $PATH
7181     do
7182     IFS=$as_save_IFS
7183     test -z "$as_dir" && as_dir=.
7184     for ac_exec_ext in '' $ac_executable_extensions; do
7185     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189     fi
7190     done
7191     done
7192     IFS=$as_save_IFS
7193    
7194 michael 5052 fi
7195 michael 5059 fi
7196     OTOOL=$ac_cv_prog_OTOOL
7197     if test -n "$OTOOL"; then
7198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7199     $as_echo "$OTOOL" >&6; }
7200 michael 5052 else
7201 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202     $as_echo "no" >&6; }
7203     fi
7204    
7205    
7206     fi
7207     if test -z "$ac_cv_prog_OTOOL"; then
7208     ac_ct_OTOOL=$OTOOL
7209     # Extract the first word of "otool", so it can be a program name with args.
7210     set dummy otool; ac_word=$2
7211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212     $as_echo_n "checking for $ac_word... " >&6; }
7213     if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7214     $as_echo_n "(cached) " >&6
7215 michael 5052 else
7216 michael 5059 if test -n "$ac_ct_OTOOL"; then
7217     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7218     else
7219 michael 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220     for as_dir in $PATH
7221     do
7222     IFS=$as_save_IFS
7223     test -z "$as_dir" && as_dir=.
7224 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7225     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226     ac_cv_prog_ac_ct_OTOOL="otool"
7227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 michael 5052 break 2
7229     fi
7230     done
7231 michael 5059 done
7232     IFS=$as_save_IFS
7233    
7234     fi
7235     fi
7236     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7237     if test -n "$ac_ct_OTOOL"; then
7238     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7239     $as_echo "$ac_ct_OTOOL" >&6; }
7240     else
7241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242     $as_echo "no" >&6; }
7243     fi
7244    
7245     if test "x$ac_ct_OTOOL" = x; then
7246     OTOOL=":"
7247     else
7248     case $cross_compiling:$ac_tool_warned in
7249     yes:)
7250     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252     ac_tool_warned=yes ;;
7253     esac
7254     OTOOL=$ac_ct_OTOOL
7255     fi
7256     else
7257     OTOOL="$ac_cv_prog_OTOOL"
7258     fi
7259    
7260     if test -n "$ac_tool_prefix"; then
7261     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7262     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264     $as_echo_n "checking for $ac_word... " >&6; }
7265     if ${ac_cv_prog_OTOOL64+:} false; then :
7266     $as_echo_n "(cached) " >&6
7267     else
7268     if test -n "$OTOOL64"; then
7269     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7270     else
7271     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272     for as_dir in $PATH
7273     do
7274     IFS=$as_save_IFS
7275     test -z "$as_dir" && as_dir=.
7276     for ac_exec_ext in '' $ac_executable_extensions; do
7277     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281     fi
7282 michael 5052 done
7283 michael 5059 done
7284 michael 5052 IFS=$as_save_IFS
7285    
7286     fi
7287     fi
7288 michael 5059 OTOOL64=$ac_cv_prog_OTOOL64
7289     if test -n "$OTOOL64"; then
7290     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7291     $as_echo "$OTOOL64" >&6; }
7292 michael 5052 else
7293 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294     $as_echo "no" >&6; }
7295 michael 5052 fi
7296    
7297 michael 5059
7298     fi
7299     if test -z "$ac_cv_prog_OTOOL64"; then
7300     ac_ct_OTOOL64=$OTOOL64
7301     # Extract the first word of "otool64", so it can be a program name with args.
7302     set dummy otool64; ac_word=$2
7303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304     $as_echo_n "checking for $ac_word... " >&6; }
7305     if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7306     $as_echo_n "(cached) " >&6
7307     else
7308     if test -n "$ac_ct_OTOOL64"; then
7309     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7310     else
7311     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312     for as_dir in $PATH
7313     do
7314     IFS=$as_save_IFS
7315     test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318     ac_cv_prog_ac_ct_OTOOL64="otool64"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321     fi
7322     done
7323     done
7324     IFS=$as_save_IFS
7325    
7326     fi
7327     fi
7328     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7329     if test -n "$ac_ct_OTOOL64"; then
7330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7331     $as_echo "$ac_ct_OTOOL64" >&6; }
7332     else
7333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334     $as_echo "no" >&6; }
7335     fi
7336    
7337     if test "x$ac_ct_OTOOL64" = x; then
7338     OTOOL64=":"
7339 michael 5052 else
7340     case $cross_compiling:$ac_tool_warned in
7341     yes:)
7342 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 michael 5052 ac_tool_warned=yes ;;
7345     esac
7346 michael 5059 OTOOL64=$ac_ct_OTOOL64
7347 michael 5052 fi
7348     else
7349 michael 5059 OTOOL64="$ac_cv_prog_OTOOL64"
7350 michael 5052 fi
7351    
7352    
7353    
7354 michael 5059
7355    
7356    
7357    
7358    
7359    
7360    
7361    
7362    
7363    
7364    
7365    
7366    
7367    
7368    
7369    
7370    
7371    
7372    
7373    
7374    
7375    
7376    
7377    
7378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7379     $as_echo_n "checking for -single_module linker flag... " >&6; }
7380     if ${lt_cv_apple_cc_single_mod+:} false; then :
7381     $as_echo_n "(cached) " >&6
7382     else
7383     lt_cv_apple_cc_single_mod=no
7384     if test -z "$LT_MULTI_MODULE"; then
7385     # By default we will add the -single_module flag. You can override
7386     # by either setting the environment variable LT_MULTI_MODULE
7387     # non-empty at configure time, or by adding -multi_module to the
7388     # link flags.
7389     rm -rf libconftest.dylib*
7390     echo "int foo(void){return 1;}" > conftest.c
7391     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7392     -dynamiclib -Wl,-single_module conftest.c" >&5
7393     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7394     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7395     _lt_result=$?
7396     # If there is a non-empty error log, and "single_module"
7397     # appears in it, assume the flag caused a linker warning
7398     if test -s conftest.err && $GREP single_module conftest.err; then
7399     cat conftest.err >&5
7400     # Otherwise, if the output was created with a 0 exit code from
7401     # the compiler, it worked.
7402     elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7403     lt_cv_apple_cc_single_mod=yes
7404     else
7405     cat conftest.err >&5
7406     fi
7407     rm -rf libconftest.dylib*
7408     rm -f conftest.*
7409     fi
7410     fi
7411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7412     $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7413    
7414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7415     $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7416     if ${lt_cv_ld_exported_symbols_list+:} false; then :
7417     $as_echo_n "(cached) " >&6
7418     else
7419     lt_cv_ld_exported_symbols_list=no
7420     save_LDFLAGS=$LDFLAGS
7421     echo "_main" > conftest.sym
7422     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7423     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424     /* end confdefs.h. */
7425    
7426     int
7427     main ()
7428     {
7429    
7430     ;
7431     return 0;
7432     }
7433     _ACEOF
7434     if ac_fn_c_try_link "$LINENO"; then :
7435     lt_cv_ld_exported_symbols_list=yes
7436     else
7437     lt_cv_ld_exported_symbols_list=no
7438     fi
7439     rm -f core conftest.err conftest.$ac_objext \
7440     conftest$ac_exeext conftest.$ac_ext
7441     LDFLAGS=$save_LDFLAGS
7442    
7443     fi
7444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7445     $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7446    
7447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7448     $as_echo_n "checking for -force_load linker flag... " >&6; }
7449     if ${lt_cv_ld_force_load+:} false; then :
7450     $as_echo_n "(cached) " >&6
7451     else
7452     lt_cv_ld_force_load=no
7453     cat > conftest.c << _LT_EOF
7454     int forced_loaded() { return 2;}
7455     _LT_EOF
7456     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7457     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7458     echo "$AR cru libconftest.a conftest.o" >&5
7459     $AR cru libconftest.a conftest.o 2>&5
7460     echo "$RANLIB libconftest.a" >&5
7461     $RANLIB libconftest.a 2>&5
7462     cat > conftest.c << _LT_EOF
7463     int main() { return 0;}
7464     _LT_EOF
7465     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7466     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7467     _lt_result=$?
7468     if test -s conftest.err && $GREP force_load conftest.err; then
7469     cat conftest.err >&5
7470     elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7471     lt_cv_ld_force_load=yes
7472     else
7473     cat conftest.err >&5
7474     fi
7475     rm -f conftest.err libconftest.a conftest conftest.c
7476     rm -rf conftest.dSYM
7477    
7478     fi
7479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7480     $as_echo "$lt_cv_ld_force_load" >&6; }
7481     case $host_os in
7482     rhapsody* | darwin1.[012])
7483     _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7484     darwin1.*)
7485     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7486     darwin*) # darwin 5.x on
7487     # if running on 10.5 or later, the deployment target defaults
7488     # to the OS version, if on x86, and 10.4, the deployment
7489     # target defaults to 10.4. Don't you love it?
7490     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7491     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7492     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7493     10.[012][,.]*)
7494     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7495     10.*)
7496     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7497     esac
7498     ;;
7499     esac
7500     if test yes = "$lt_cv_apple_cc_single_mod"; then
7501     _lt_dar_single_mod='$single_module'
7502     fi
7503     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7504     _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7505     else
7506     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7507     fi
7508     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7509     _lt_dsymutil='~$DSYMUTIL $lib || :'
7510     else
7511     _lt_dsymutil=
7512     fi
7513     ;;
7514     esac
7515    
7516     ac_ext=c
7517     ac_cpp='$CPP $CPPFLAGS'
7518     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7522     $as_echo_n "checking how to run the C preprocessor... " >&6; }
7523     # On Suns, sometimes $CPP names a directory.
7524     if test -n "$CPP" && test -d "$CPP"; then
7525     CPP=
7526     fi
7527     if test -z "$CPP"; then
7528     if ${ac_cv_prog_CPP+:} false; then :
7529     $as_echo_n "(cached) " >&6
7530     else
7531     # Double quotes because CPP needs to be expanded
7532     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7533     do
7534     ac_preproc_ok=false
7535     for ac_c_preproc_warn_flag in '' yes
7536     do
7537     # Use a header file that comes with gcc, so configuring glibc
7538     # with a fresh cross-compiler works.
7539     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7540     # <limits.h> exists even on freestanding compilers.
7541     # On the NeXT, cc -E runs the code through the compiler's parser,
7542     # not just through cpp. "Syntax error" is here to catch this case.
7543     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544     /* end confdefs.h. */
7545     #ifdef __STDC__
7546     # include <limits.h>
7547     #else
7548     # include <assert.h>
7549     #endif
7550     Syntax error
7551     _ACEOF
7552     if ac_fn_c_try_cpp "$LINENO"; then :
7553    
7554     else
7555     # Broken: fails on valid input.
7556     continue
7557     fi
7558     rm -f conftest.err conftest.i conftest.$ac_ext
7559    
7560     # OK, works on sane cases. Now check whether nonexistent headers
7561     # can be detected and how.
7562     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563     /* end confdefs.h. */
7564     #include <ac_nonexistent.h>
7565     _ACEOF
7566     if ac_fn_c_try_cpp "$LINENO"; then :
7567     # Broken: success on invalid input.
7568     continue
7569     else
7570     # Passes both tests.
7571     ac_preproc_ok=:
7572     break
7573     fi
7574     rm -f conftest.err conftest.i conftest.$ac_ext
7575    
7576     done
7577     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7578     rm -f conftest.i conftest.err conftest.$ac_ext
7579     if $ac_preproc_ok; then :
7580     break
7581     fi
7582    
7583     done
7584     ac_cv_prog_CPP=$CPP
7585    
7586     fi
7587     CPP=$ac_cv_prog_CPP
7588     else
7589     ac_cv_prog_CPP=$CPP
7590     fi
7591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7592     $as_echo "$CPP" >&6; }
7593     ac_preproc_ok=false
7594     for ac_c_preproc_warn_flag in '' yes
7595     do
7596     # Use a header file that comes with gcc, so configuring glibc
7597     # with a fresh cross-compiler works.
7598     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7599     # <limits.h> exists even on freestanding compilers.
7600     # On the NeXT, cc -E runs the code through the compiler's parser,
7601     # not just through cpp. "Syntax error" is here to catch this case.
7602     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603     /* end confdefs.h. */
7604     #ifdef __STDC__
7605     # include <limits.h>
7606     #else
7607     # include <assert.h>
7608     #endif
7609     Syntax error
7610     _ACEOF
7611     if ac_fn_c_try_cpp "$LINENO"; then :
7612    
7613     else
7614     # Broken: fails on valid input.
7615     continue
7616     fi
7617     rm -f conftest.err conftest.i conftest.$ac_ext
7618    
7619     # OK, works on sane cases. Now check whether nonexistent headers
7620     # can be detected and how.
7621     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622     /* end confdefs.h. */
7623     #include <ac_nonexistent.h>
7624     _ACEOF
7625     if ac_fn_c_try_cpp "$LINENO"; then :
7626     # Broken: success on invalid input.
7627     continue
7628     else
7629     # Passes both tests.
7630     ac_preproc_ok=:
7631     break
7632     fi
7633     rm -f conftest.err conftest.i conftest.$ac_ext
7634    
7635     done
7636     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7637     rm -f conftest.i conftest.err conftest.$ac_ext
7638     if $ac_preproc_ok; then :
7639    
7640     else
7641     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7642     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7643     as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7644     See \`config.log' for more details" "$LINENO" 5; }
7645     fi
7646    
7647     ac_ext=c
7648     ac_cpp='$CPP $CPPFLAGS'
7649     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652    
7653    
7654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7655     $as_echo_n "checking for ANSI C header files... " >&6; }
7656     if ${ac_cv_header_stdc+:} false; then :
7657     $as_echo_n "(cached) " >&6
7658     else
7659     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660     /* end confdefs.h. */
7661     #include <stdlib.h>
7662     #include <stdarg.h>
7663     #include <string.h>
7664     #include <float.h>
7665    
7666     int
7667     main ()
7668     {
7669    
7670     ;
7671     return 0;
7672     }
7673     _ACEOF
7674     if ac_fn_c_try_compile "$LINENO"; then :
7675     ac_cv_header_stdc=yes
7676     else
7677     ac_cv_header_stdc=no
7678     fi
7679     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680    
7681     if test $ac_cv_header_stdc = yes; then
7682     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7683     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684     /* end confdefs.h. */
7685     #include <string.h>
7686    
7687     _ACEOF
7688     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7689     $EGREP "memchr" >/dev/null 2>&1; then :
7690    
7691     else
7692     ac_cv_header_stdc=no
7693     fi
7694     rm -f conftest*
7695    
7696     fi
7697    
7698     if test $ac_cv_header_stdc = yes; then
7699     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701     /* end confdefs.h. */
7702     #include <stdlib.h>
7703    
7704     _ACEOF
7705     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7706     $EGREP "free" >/dev/null 2>&1; then :
7707    
7708     else
7709     ac_cv_header_stdc=no
7710     fi
7711     rm -f conftest*
7712    
7713     fi
7714    
7715     if test $ac_cv_header_stdc = yes; then
7716     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7717     if test "$cross_compiling" = yes; then :
7718     :
7719     else
7720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721     /* end confdefs.h. */
7722     #include <ctype.h>
7723     #include <stdlib.h>
7724     #if ((' ' & 0x0FF) == 0x020)
7725     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7726     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7727     #else
7728     # define ISLOWER(c) \
7729     (('a' <= (c) && (c) <= 'i') \
7730     || ('j' <= (c) && (c) <= 'r') \
7731     || ('s' <= (c) && (c) <= 'z'))
7732     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7733     #endif
7734    
7735     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7736     int
7737     main ()
7738     {
7739     int i;
7740     for (i = 0; i < 256; i++)
7741     if (XOR (islower (i), ISLOWER (i))
7742     || toupper (i) != TOUPPER (i))
7743     return 2;
7744     return 0;
7745     }
7746     _ACEOF
7747     if ac_fn_c_try_run "$LINENO"; then :
7748    
7749     else
7750     ac_cv_header_stdc=no
7751     fi
7752     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7753     conftest.$ac_objext conftest.beam conftest.$ac_ext
7754     fi
7755    
7756     fi
7757     fi
7758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7759     $as_echo "$ac_cv_header_stdc" >&6; }
7760     if test $ac_cv_header_stdc = yes; then
7761    
7762     $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7763    
7764     fi
7765    
7766     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7767     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7768     inttypes.h stdint.h unistd.h
7769     do :
7770     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7771     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7772     "
7773     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7774     cat >>confdefs.h <<_ACEOF
7775     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7776     _ACEOF
7777    
7778     fi
7779    
7780     done
7781    
7782    
7783     for ac_header in dlfcn.h
7784     do :
7785     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7786     "
7787     if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7788     cat >>confdefs.h <<_ACEOF
7789     #define HAVE_DLFCN_H 1
7790     _ACEOF
7791    
7792     fi
7793    
7794     done
7795    
7796    
7797    
7798    
7799    
7800     # Set options
7801    
7802    
7803    
7804     enable_dlopen=no
7805    
7806    
7807     enable_win32_dll=no
7808    
7809    
7810     # Check whether --enable-shared was given.
7811     if test "${enable_shared+set}" = set; then :
7812     enableval=$enable_shared; p=${PACKAGE-default}
7813     case $enableval in
7814     yes) enable_shared=yes ;;
7815     no) enable_shared=no ;;
7816     *)
7817     enable_shared=no
7818     # Look at the argument we got. We use all the common list separators.
7819     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7820     for pkg in $enableval; do
7821     IFS=$lt_save_ifs
7822     if test "X$pkg" = "X$p"; then
7823     enable_shared=yes
7824     fi
7825     done
7826     IFS=$lt_save_ifs
7827     ;;
7828     esac
7829     else
7830     enable_shared=yes
7831     fi
7832    
7833    
7834    
7835    
7836    
7837    
7838    
7839    
7840    
7841     # Check whether --enable-static was given.
7842     if test "${enable_static+set}" = set; then :
7843     enableval=$enable_static; p=${PACKAGE-default}
7844     case $enableval in
7845     yes) enable_static=yes ;;
7846     no) enable_static=no ;;
7847     *)
7848     enable_static=no
7849     # Look at the argument we got. We use all the common list separators.
7850     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7851     for pkg in $enableval; do
7852     IFS=$lt_save_ifs
7853     if test "X$pkg" = "X$p"; then
7854     enable_static=yes
7855     fi
7856     done
7857     IFS=$lt_save_ifs
7858     ;;
7859     esac
7860     else
7861     enable_static=yes
7862     fi
7863    
7864    
7865    
7866    
7867    
7868    
7869    
7870    
7871    
7872    
7873     # Check whether --with-pic was given.
7874     if test "${with_pic+set}" = set; then :
7875     withval=$with_pic; lt_p=${PACKAGE-default}
7876     case $withval in
7877     yes|no) pic_mode=$withval ;;
7878     *)
7879     pic_mode=default
7880     # Look at the argument we got. We use all the common list separators.
7881     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7882     for lt_pkg in $withval; do
7883     IFS=$lt_save_ifs
7884     if test "X$lt_pkg" = "X$lt_p"; then
7885     pic_mode=yes
7886     fi
7887     done
7888     IFS=$lt_save_ifs
7889     ;;
7890     esac
7891     else
7892     pic_mode=default
7893     fi
7894    
7895    
7896    
7897    
7898    
7899    
7900    
7901    
7902     # Check whether --enable-fast-install was given.
7903     if test "${enable_fast_install+set}" = set; then :
7904     enableval=$enable_fast_install; p=${PACKAGE-default}
7905     case $enableval in
7906     yes) enable_fast_install=yes ;;
7907     no) enable_fast_install=no ;;
7908     *)
7909     enable_fast_install=no
7910     # Look at the argument we got. We use all the common list separators.
7911     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7912     for pkg in $enableval; do
7913     IFS=$lt_save_ifs
7914     if test "X$pkg" = "X$p"; then
7915     enable_fast_install=yes
7916     fi
7917     done
7918     IFS=$lt_save_ifs
7919     ;;
7920     esac
7921     else
7922     enable_fast_install=yes
7923     fi
7924    
7925    
7926    
7927    
7928    
7929    
7930    
7931    
7932     shared_archive_member_spec=
7933     case $host,$enable_shared in
7934     power*-*-aix[5-9]*,yes)
7935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7936     $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7937    
7938     # Check whether --with-aix-soname was given.
7939     if test "${with_aix_soname+set}" = set; then :
7940     withval=$with_aix_soname; case $withval in
7941     aix|svr4|both)
7942     ;;
7943     *)
7944     as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7945     ;;
7946     esac
7947     lt_cv_with_aix_soname=$with_aix_soname
7948     else
7949     if ${lt_cv_with_aix_soname+:} false; then :
7950     $as_echo_n "(cached) " >&6
7951     else
7952     lt_cv_with_aix_soname=aix
7953     fi
7954    
7955     with_aix_soname=$lt_cv_with_aix_soname
7956     fi
7957    
7958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7959     $as_echo "$with_aix_soname" >&6; }
7960     if test aix != "$with_aix_soname"; then
7961     # For the AIX way of multilib, we name the shared archive member
7962     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7963     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7964     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7965     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7966     if test 64 = "${OBJECT_MODE-32}"; then
7967     shared_archive_member_spec=shr_64
7968     else
7969     shared_archive_member_spec=shr
7970     fi
7971     fi
7972     ;;
7973     *)
7974     with_aix_soname=aix
7975     ;;
7976     esac
7977    
7978    
7979    
7980    
7981    
7982    
7983    
7984    
7985    
7986    
7987     # This can be used to rebuild libtool when needed
7988     LIBTOOL_DEPS=$ltmain
7989    
7990     # Always use our own libtool.
7991     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7992    
7993    
7994    
7995    
7996    
7997    
7998    
7999    
8000    
8001    
8002    
8003    
8004    
8005    
8006    
8007    
8008    
8009    
8010    
8011    
8012    
8013    
8014    
8015    
8016    
8017    
8018    
8019    
8020    
8021    
8022     test -z "$LN_S" && LN_S="ln -s"
8023    
8024    
8025    
8026    
8027    
8028    
8029    
8030    
8031    
8032    
8033    
8034    
8035    
8036    
8037     if test -n "${ZSH_VERSION+set}"; then
8038     setopt NO_GLOB_SUBST
8039     fi
8040    
8041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8042     $as_echo_n "checking for objdir... " >&6; }
8043     if ${lt_cv_objdir+:} false; then :
8044     $as_echo_n "(cached) " >&6
8045     else
8046     rm -f .libs 2>/dev/null
8047     mkdir .libs 2>/dev/null
8048     if test -d .libs; then
8049     lt_cv_objdir=.libs
8050     else
8051     # MS-DOS does not allow filenames that begin with a dot.
8052     lt_cv_objdir=_libs
8053     fi
8054     rmdir .libs 2>/dev/null
8055     fi
8056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8057     $as_echo "$lt_cv_objdir" >&6; }
8058     objdir=$lt_cv_objdir
8059    
8060    
8061    
8062    
8063    
8064     cat >>confdefs.h <<_ACEOF
8065     #define LT_OBJDIR "$lt_cv_objdir/"
8066     _ACEOF
8067    
8068    
8069    
8070    
8071     case $host_os in
8072     aix3*)
8073     # AIX sometimes has problems with the GCC collect2 program. For some
8074     # reason, if we set the COLLECT_NAMES environment variable, the problems
8075     # vanish in a puff of smoke.
8076     if test set != "${COLLECT_NAMES+set}"; then
8077     COLLECT_NAMES=
8078     export COLLECT_NAMES
8079     fi
8080     ;;
8081     esac
8082    
8083     # Global variables:
8084     ofile=libtool
8085     can_build_shared=yes
8086    
8087     # All known linkers require a '.a' archive for static linking (except MSVC,
8088     # which needs '.lib').
8089     libext=a
8090    
8091     with_gnu_ld=$lt_cv_prog_gnu_ld
8092    
8093     old_CC=$CC
8094     old_CFLAGS=$CFLAGS
8095    
8096 michael 5052 # Set sane defaults for various variables
8097     test -z "$CC" && CC=cc
8098     test -z "$LTCC" && LTCC=$CC
8099     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8100     test -z "$LD" && LD=ld
8101     test -z "$ac_objext" && ac_objext=o
8102    
8103     for cc_temp in $compiler""; do
8104     case $cc_temp in
8105     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8106     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8107     \-*) ;;
8108     *) break;;
8109     esac
8110     done
8111 michael 5059 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8112 michael 5052
8113    
8114     # Only perform the check for file, if the check method requires it
8115 michael 5059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8116 michael 5052 case $deplibs_check_method in
8117     file_magic*)
8118     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8119 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8120     $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8121     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8122     $as_echo_n "(cached) " >&6
8123 michael 5052 else
8124     case $MAGIC_CMD in
8125     [\\/*] | ?:[\\/]*)
8126 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8127 michael 5052 ;;
8128     *)
8129 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8130     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8131 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8132     for ac_dir in $ac_dummy; do
8133 michael 5059 IFS=$lt_save_ifs
8134 michael 5052 test -z "$ac_dir" && ac_dir=.
8135 michael 5059 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8136     lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8137 michael 5052 if test -n "$file_magic_test_file"; then
8138     case $deplibs_check_method in
8139     "file_magic "*)
8140     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8141 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8142 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8143     $EGREP "$file_magic_regex" > /dev/null; then
8144     :
8145     else
8146 michael 5059 cat <<_LT_EOF 1>&2
8147 michael 5052
8148     *** Warning: the command libtool uses to detect shared libraries,
8149     *** $file_magic_cmd, produces output that libtool cannot recognize.
8150     *** The result is that libtool may fail to recognize shared libraries
8151     *** as such. This will affect the creation of libtool libraries that
8152     *** depend on shared libraries, but programs linked with such libtool
8153     *** libraries will work regardless of this problem. Nevertheless, you
8154     *** may want to report the problem to your system manager and/or to
8155     *** bug-libtool@gnu.org
8156    
8157 michael 5059 _LT_EOF
8158 michael 5052 fi ;;
8159     esac
8160     fi
8161     break
8162     fi
8163     done
8164 michael 5059 IFS=$lt_save_ifs
8165     MAGIC_CMD=$lt_save_MAGIC_CMD
8166 michael 5052 ;;
8167     esac
8168     fi
8169    
8170 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8171 michael 5052 if test -n "$MAGIC_CMD"; then
8172 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8173     $as_echo "$MAGIC_CMD" >&6; }
8174 michael 5052 else
8175 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176     $as_echo "no" >&6; }
8177 michael 5052 fi
8178    
8179 michael 5059
8180    
8181    
8182    
8183 michael 5052 if test -z "$lt_cv_path_MAGIC_CMD"; then
8184     if test -n "$ac_tool_prefix"; then
8185 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8186     $as_echo_n "checking for file... " >&6; }
8187     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8188     $as_echo_n "(cached) " >&6
8189 michael 5052 else
8190     case $MAGIC_CMD in
8191     [\\/*] | ?:[\\/]*)
8192 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8193 michael 5052 ;;
8194     *)
8195 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8196     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8197 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8198     for ac_dir in $ac_dummy; do
8199 michael 5059 IFS=$lt_save_ifs
8200 michael 5052 test -z "$ac_dir" && ac_dir=.
8201 michael 5059 if test -f "$ac_dir/file"; then
8202     lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8203 michael 5052 if test -n "$file_magic_test_file"; then
8204     case $deplibs_check_method in
8205     "file_magic "*)
8206     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8207 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8208 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8209     $EGREP "$file_magic_regex" > /dev/null; then
8210     :
8211     else
8212 michael 5059 cat <<_LT_EOF 1>&2
8213 michael 5052
8214     *** Warning: the command libtool uses to detect shared libraries,
8215     *** $file_magic_cmd, produces output that libtool cannot recognize.
8216     *** The result is that libtool may fail to recognize shared libraries
8217     *** as such. This will affect the creation of libtool libraries that
8218     *** depend on shared libraries, but programs linked with such libtool
8219     *** libraries will work regardless of this problem. Nevertheless, you
8220     *** may want to report the problem to your system manager and/or to
8221     *** bug-libtool@gnu.org
8222    
8223 michael 5059 _LT_EOF
8224 michael 5052 fi ;;
8225     esac
8226     fi
8227     break
8228     fi
8229     done
8230 michael 5059 IFS=$lt_save_ifs
8231     MAGIC_CMD=$lt_save_MAGIC_CMD
8232 michael 5052 ;;
8233     esac
8234     fi
8235    
8236 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8237 michael 5052 if test -n "$MAGIC_CMD"; then
8238 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8239     $as_echo "$MAGIC_CMD" >&6; }
8240 michael 5052 else
8241 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242     $as_echo "no" >&6; }
8243 michael 5052 fi
8244    
8245 michael 5059
8246 michael 5052 else
8247     MAGIC_CMD=:
8248     fi
8249     fi
8250    
8251     fi
8252     ;;
8253     esac
8254    
8255 michael 5059 # Use C for the default configuration in the libtool script
8256 michael 5052
8257 michael 5059 lt_save_CC=$CC
8258 michael 5052 ac_ext=c
8259     ac_cpp='$CPP $CPPFLAGS'
8260     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8261     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8262     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8263    
8264    
8265     # Source file extension for C test sources.
8266     ac_ext=c
8267    
8268     # Object file extension for compiled C test sources.
8269     objext=o
8270     objext=$objext
8271    
8272     # Code to be used in simple compile tests
8273 michael 5059 lt_simple_compile_test_code="int some_variable = 0;"
8274 michael 5052
8275     # Code to be used in simple link tests
8276 michael 5059 lt_simple_link_test_code='int main(){return(0);}'
8277 michael 5052
8278    
8279 michael 5059
8280    
8281    
8282    
8283    
8284 michael 5052 # If no C compiler was specified, use CC.
8285     LTCC=${LTCC-"$CC"}
8286    
8287     # If no C compiler flags were specified, use CFLAGS.
8288     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8289    
8290     # Allow CC to be a program name with arguments.
8291     compiler=$CC
8292    
8293 michael 5059 # Save the default compiler, since it gets overwritten when the other
8294     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8295     compiler_DEFAULT=$CC
8296 michael 5052
8297     # save warnings/boilerplate of simple test code
8298     ac_outfile=conftest.$ac_objext
8299 michael 5059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8300 michael 5052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8301     _lt_compiler_boilerplate=`cat conftest.err`
8302 michael 5059 $RM conftest*
8303 michael 5052
8304     ac_outfile=conftest.$ac_objext
8305 michael 5059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8306 michael 5052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8307     _lt_linker_boilerplate=`cat conftest.err`
8308 michael 5059 $RM -r conftest*
8309 michael 5052
8310    
8311 michael 5059 if test -n "$compiler"; then
8312 michael 5052
8313     lt_prog_compiler_no_builtin_flag=
8314    
8315 michael 5059 if test yes = "$GCC"; then
8316     case $cc_basename in
8317     nvcc*)
8318     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8319     *)
8320     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8321     esac
8322 michael 5052
8323 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8324     $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8325     if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8326     $as_echo_n "(cached) " >&6
8327 michael 5052 else
8328     lt_cv_prog_compiler_rtti_exceptions=no
8329 michael 5059 ac_outfile=conftest.$ac_objext
8330     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331     lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8332 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8333     # (2) before a word containing "conftest.", or (3) at the end.
8334     # Note that $ac_compile itself does not contain backslashes and begins
8335     # with a dollar sign (not a hyphen), so the echo should work correctly.
8336     # The option is referenced via a variable to avoid confusing sed.
8337     lt_compile=`echo "$ac_compile" | $SED \
8338     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340     -e 's:$: $lt_compiler_flag:'`
8341 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8342 michael 5052 (eval "$lt_compile" 2>conftest.err)
8343     ac_status=$?
8344     cat conftest.err >&5
8345 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8347     # The compiler can only warn and ignore the option if not recognized
8348     # So say no if there are warnings other than the usual output.
8349 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8350 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8351     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8352     lt_cv_prog_compiler_rtti_exceptions=yes
8353     fi
8354     fi
8355 michael 5059 $RM conftest*
8356 michael 5052
8357     fi
8358 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8359     $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8360 michael 5052
8361 michael 5059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8362 michael 5052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8363     else
8364     :
8365     fi
8366    
8367     fi
8368    
8369 michael 5059
8370    
8371    
8372    
8373    
8374     lt_prog_compiler_wl=
8375 michael 5052 lt_prog_compiler_pic=
8376     lt_prog_compiler_static=
8377    
8378    
8379 michael 5059 if test yes = "$GCC"; then
8380 michael 5052 lt_prog_compiler_wl='-Wl,'
8381     lt_prog_compiler_static='-static'
8382    
8383     case $host_os in
8384     aix*)
8385     # All AIX code is PIC.
8386 michael 5059 if test ia64 = "$host_cpu"; then
8387 michael 5052 # AIX 5 now supports IA64 processor
8388     lt_prog_compiler_static='-Bstatic'
8389     fi
8390 michael 5059 lt_prog_compiler_pic='-fPIC'
8391 michael 5052 ;;
8392    
8393     amigaos*)
8394 michael 5059 case $host_cpu in
8395     powerpc)
8396     # see comment about AmigaOS4 .so support
8397     lt_prog_compiler_pic='-fPIC'
8398     ;;
8399     m68k)
8400     # FIXME: we need at least 68020 code to build shared libraries, but
8401     # adding the '-m68020' flag to GCC prevents building anything better,
8402     # like '-m68040'.
8403     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8404     ;;
8405     esac
8406 michael 5052 ;;
8407    
8408 michael 5059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8409 michael 5052 # PIC is the default for these OSes.
8410     ;;
8411    
8412 michael 5059 mingw* | cygwin* | pw32* | os2* | cegcc*)
8413 michael 5052 # This hack is so that the source file can tell whether it is being
8414     # built for inclusion in a dll (and should export symbols for example).
8415 michael 5059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8416     # (--disable-auto-import) libraries
8417 michael 5052 lt_prog_compiler_pic='-DDLL_EXPORT'
8418 michael 5059 case $host_os in
8419     os2*)
8420     lt_prog_compiler_static='$wl-static'
8421     ;;
8422     esac
8423 michael 5052 ;;
8424    
8425     darwin* | rhapsody*)
8426     # PIC is the default on this platform
8427     # Common symbols not allowed in MH_DYLIB files
8428     lt_prog_compiler_pic='-fno-common'
8429     ;;
8430    
8431 michael 5059 haiku*)
8432     # PIC is the default for Haiku.
8433     # The "-static" flag exists, but is broken.
8434     lt_prog_compiler_static=
8435     ;;
8436    
8437     hpux*)
8438     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8439     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8440     # sets the default TLS model and affects inlining.
8441     case $host_cpu in
8442     hppa*64*)
8443     # +Z the default
8444     ;;
8445     *)
8446     lt_prog_compiler_pic='-fPIC'
8447     ;;
8448     esac
8449     ;;
8450    
8451     interix[3-9]*)
8452 michael 5052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8453     # Instead, we relocate shared libraries at runtime.
8454     ;;
8455    
8456     msdosdjgpp*)
8457     # Just because we use GCC doesn't mean we suddenly get shared libraries
8458     # on systems that don't support them.
8459     lt_prog_compiler_can_build_shared=no
8460     enable_shared=no
8461     ;;
8462    
8463 michael 5059 *nto* | *qnx*)
8464     # QNX uses GNU C++, but need to define -shared option too, otherwise
8465     # it will coredump.
8466     lt_prog_compiler_pic='-fPIC -shared'
8467     ;;
8468    
8469 michael 5052 sysv4*MP*)
8470     if test -d /usr/nec; then
8471     lt_prog_compiler_pic=-Kconform_pic
8472     fi
8473     ;;
8474    
8475     *)
8476     lt_prog_compiler_pic='-fPIC'
8477     ;;
8478     esac
8479 michael 5059
8480     case $cc_basename in
8481     nvcc*) # Cuda Compiler Driver 2.2
8482     lt_prog_compiler_wl='-Xlinker '
8483     if test -n "$lt_prog_compiler_pic"; then
8484     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8485     fi
8486     ;;
8487     esac
8488 michael 5052 else
8489     # PORTME Check for flag to pass linker flags through the system compiler.
8490     case $host_os in
8491     aix*)
8492     lt_prog_compiler_wl='-Wl,'
8493 michael 5059 if test ia64 = "$host_cpu"; then
8494 michael 5052 # AIX 5 now supports IA64 processor
8495     lt_prog_compiler_static='-Bstatic'
8496     else
8497     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8498     fi
8499     ;;
8500    
8501 michael 5059 darwin* | rhapsody*)
8502     # PIC is the default on this platform
8503     # Common symbols not allowed in MH_DYLIB files
8504     lt_prog_compiler_pic='-fno-common'
8505     case $cc_basename in
8506     nagfor*)
8507     # NAG Fortran compiler
8508     lt_prog_compiler_wl='-Wl,-Wl,,'
8509     lt_prog_compiler_pic='-PIC'
8510     lt_prog_compiler_static='-Bstatic'
8511     ;;
8512     esac
8513     ;;
8514    
8515     mingw* | cygwin* | pw32* | os2* | cegcc*)
8516 michael 5052 # This hack is so that the source file can tell whether it is being
8517     # built for inclusion in a dll (and should export symbols for example).
8518     lt_prog_compiler_pic='-DDLL_EXPORT'
8519 michael 5059 case $host_os in
8520     os2*)
8521     lt_prog_compiler_static='$wl-static'
8522     ;;
8523     esac
8524 michael 5052 ;;
8525    
8526     hpux9* | hpux10* | hpux11*)
8527     lt_prog_compiler_wl='-Wl,'
8528     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8529     # not for PA HP-UX.
8530     case $host_cpu in
8531     hppa*64*|ia64*)
8532     # +Z the default
8533     ;;
8534     *)
8535     lt_prog_compiler_pic='+Z'
8536     ;;
8537     esac
8538     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8539 michael 5059 lt_prog_compiler_static='$wl-a ${wl}archive'
8540 michael 5052 ;;
8541    
8542     irix5* | irix6* | nonstopux*)
8543     lt_prog_compiler_wl='-Wl,'
8544     # PIC (with -KPIC) is the default.
8545     lt_prog_compiler_static='-non_shared'
8546     ;;
8547    
8548 michael 5059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8549 michael 5052 case $cc_basename in
8550 michael 5059 # old Intel for x86_64, which still supported -KPIC.
8551     ecc*)
8552 michael 5052 lt_prog_compiler_wl='-Wl,'
8553     lt_prog_compiler_pic='-KPIC'
8554     lt_prog_compiler_static='-static'
8555     ;;
8556 michael 5059 # icc used to be incompatible with GCC.
8557     # ICC 10 doesn't accept -KPIC any more.
8558     icc* | ifort*)
8559     lt_prog_compiler_wl='-Wl,'
8560     lt_prog_compiler_pic='-fPIC'
8561     lt_prog_compiler_static='-static'
8562     ;;
8563     # Lahey Fortran 8.1.
8564     lf95*)
8565     lt_prog_compiler_wl='-Wl,'
8566     lt_prog_compiler_pic='--shared'
8567     lt_prog_compiler_static='--static'
8568     ;;
8569     nagfor*)
8570     # NAG Fortran compiler
8571     lt_prog_compiler_wl='-Wl,-Wl,,'
8572     lt_prog_compiler_pic='-PIC'
8573     lt_prog_compiler_static='-Bstatic'
8574     ;;
8575     tcc*)
8576     # Fabrice Bellard et al's Tiny C Compiler
8577     lt_prog_compiler_wl='-Wl,'
8578     lt_prog_compiler_pic='-fPIC'
8579     lt_prog_compiler_static='-static'
8580     ;;
8581     pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8582 michael 5052 # Portland Group compilers (*not* the Pentium gcc compiler,
8583     # which looks to be a dead project)
8584     lt_prog_compiler_wl='-Wl,'
8585     lt_prog_compiler_pic='-fpic'
8586     lt_prog_compiler_static='-Bstatic'
8587     ;;
8588     ccc*)
8589     lt_prog_compiler_wl='-Wl,'
8590     # All Alpha code is PIC.
8591     lt_prog_compiler_static='-non_shared'
8592     ;;
8593 michael 5059 xl* | bgxl* | bgf* | mpixl*)
8594     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8595     lt_prog_compiler_wl='-Wl,'
8596     lt_prog_compiler_pic='-qpic'
8597     lt_prog_compiler_static='-qstaticlink'
8598     ;;
8599     *)
8600     case `$CC -V 2>&1 | sed 5q` in
8601     *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8602     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8603     lt_prog_compiler_pic='-KPIC'
8604     lt_prog_compiler_static='-Bstatic'
8605     lt_prog_compiler_wl=''
8606     ;;
8607     *Sun\ F* | *Sun*Fortran*)
8608     lt_prog_compiler_pic='-KPIC'
8609     lt_prog_compiler_static='-Bstatic'
8610     lt_prog_compiler_wl='-Qoption ld '
8611     ;;
8612     *Sun\ C*)
8613     # Sun C 5.9
8614     lt_prog_compiler_pic='-KPIC'
8615     lt_prog_compiler_static='-Bstatic'
8616     lt_prog_compiler_wl='-Wl,'
8617     ;;
8618     *Intel*\ [CF]*Compiler*)
8619     lt_prog_compiler_wl='-Wl,'
8620     lt_prog_compiler_pic='-fPIC'
8621     lt_prog_compiler_static='-static'
8622     ;;
8623     *Portland\ Group*)
8624     lt_prog_compiler_wl='-Wl,'
8625     lt_prog_compiler_pic='-fpic'
8626     lt_prog_compiler_static='-Bstatic'
8627     ;;
8628     esac
8629     ;;
8630 michael 5052 esac
8631     ;;
8632    
8633 michael 5059 newsos6)
8634     lt_prog_compiler_pic='-KPIC'
8635     lt_prog_compiler_static='-Bstatic'
8636     ;;
8637    
8638     *nto* | *qnx*)
8639     # QNX uses GNU C++, but need to define -shared option too, otherwise
8640     # it will coredump.
8641     lt_prog_compiler_pic='-fPIC -shared'
8642     ;;
8643    
8644 michael 5052 osf3* | osf4* | osf5*)
8645     lt_prog_compiler_wl='-Wl,'
8646     # All OSF/1 code is PIC.
8647     lt_prog_compiler_static='-non_shared'
8648     ;;
8649    
8650 michael 5059 rdos*)
8651     lt_prog_compiler_static='-non_shared'
8652     ;;
8653    
8654 michael 5052 solaris*)
8655     lt_prog_compiler_pic='-KPIC'
8656     lt_prog_compiler_static='-Bstatic'
8657     case $cc_basename in
8658 michael 5059 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8659 michael 5052 lt_prog_compiler_wl='-Qoption ld ';;
8660     *)
8661     lt_prog_compiler_wl='-Wl,';;
8662     esac
8663     ;;
8664    
8665     sunos4*)
8666     lt_prog_compiler_wl='-Qoption ld '
8667     lt_prog_compiler_pic='-PIC'
8668     lt_prog_compiler_static='-Bstatic'
8669     ;;
8670    
8671     sysv4 | sysv4.2uw2* | sysv4.3*)
8672     lt_prog_compiler_wl='-Wl,'
8673     lt_prog_compiler_pic='-KPIC'
8674     lt_prog_compiler_static='-Bstatic'
8675     ;;
8676    
8677     sysv4*MP*)
8678 michael 5059 if test -d /usr/nec; then
8679 michael 5052 lt_prog_compiler_pic='-Kconform_pic'
8680     lt_prog_compiler_static='-Bstatic'
8681     fi
8682     ;;
8683    
8684     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8685     lt_prog_compiler_wl='-Wl,'
8686     lt_prog_compiler_pic='-KPIC'
8687     lt_prog_compiler_static='-Bstatic'
8688     ;;
8689    
8690     unicos*)
8691     lt_prog_compiler_wl='-Wl,'
8692     lt_prog_compiler_can_build_shared=no
8693     ;;
8694    
8695     uts4*)
8696     lt_prog_compiler_pic='-pic'
8697     lt_prog_compiler_static='-Bstatic'
8698     ;;
8699    
8700     *)
8701     lt_prog_compiler_can_build_shared=no
8702     ;;
8703     esac
8704     fi
8705    
8706 michael 5059 case $host_os in
8707     # For platforms that do not support PIC, -DPIC is meaningless:
8708     *djgpp*)
8709     lt_prog_compiler_pic=
8710     ;;
8711     *)
8712     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8713     ;;
8714     esac
8715 michael 5052
8716 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8717     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8718     if ${lt_cv_prog_compiler_pic+:} false; then :
8719     $as_echo_n "(cached) " >&6
8720     else
8721     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8722     fi
8723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8724     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8725     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8726    
8727 michael 5052 #
8728     # Check to make sure the PIC flag actually works.
8729     #
8730     if test -n "$lt_prog_compiler_pic"; then
8731 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8732     $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8733     if ${lt_cv_prog_compiler_pic_works+:} false; then :
8734     $as_echo_n "(cached) " >&6
8735 michael 5052 else
8736 michael 5059 lt_cv_prog_compiler_pic_works=no
8737     ac_outfile=conftest.$ac_objext
8738     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8739     lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8740 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8741     # (2) before a word containing "conftest.", or (3) at the end.
8742     # Note that $ac_compile itself does not contain backslashes and begins
8743     # with a dollar sign (not a hyphen), so the echo should work correctly.
8744     # The option is referenced via a variable to avoid confusing sed.
8745     lt_compile=`echo "$ac_compile" | $SED \
8746     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8747     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8748     -e 's:$: $lt_compiler_flag:'`
8749 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8750 michael 5052 (eval "$lt_compile" 2>conftest.err)
8751     ac_status=$?
8752     cat conftest.err >&5
8753 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8755     # The compiler can only warn and ignore the option if not recognized
8756     # So say no if there are warnings other than the usual output.
8757 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8758 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8760 michael 5059 lt_cv_prog_compiler_pic_works=yes
8761 michael 5052 fi
8762     fi
8763 michael 5059 $RM conftest*
8764 michael 5052
8765     fi
8766 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8767     $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8768 michael 5052
8769 michael 5059 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8770 michael 5052 case $lt_prog_compiler_pic in
8771     "" | " "*) ;;
8772     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8773     esac
8774     else
8775     lt_prog_compiler_pic=
8776     lt_prog_compiler_can_build_shared=no
8777     fi
8778    
8779     fi
8780    
8781 michael 5059
8782    
8783    
8784    
8785    
8786    
8787    
8788    
8789    
8790    
8791 michael 5052 #
8792     # Check to make sure the static flag actually works.
8793     #
8794     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8795 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8796     $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8797     if ${lt_cv_prog_compiler_static_works+:} false; then :
8798     $as_echo_n "(cached) " >&6
8799 michael 5052 else
8800 michael 5059 lt_cv_prog_compiler_static_works=no
8801     save_LDFLAGS=$LDFLAGS
8802 michael 5052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8803 michael 5059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8804 michael 5052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8805     # The linker can only warn and ignore the option if not recognized
8806     # So say no if there are warnings
8807     if test -s conftest.err; then
8808     # Append any errors to the config.log.
8809     cat conftest.err 1>&5
8810 michael 5059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8811 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8812     if diff conftest.exp conftest.er2 >/dev/null; then
8813 michael 5059 lt_cv_prog_compiler_static_works=yes
8814 michael 5052 fi
8815     else
8816 michael 5059 lt_cv_prog_compiler_static_works=yes
8817 michael 5052 fi
8818     fi
8819 michael 5059 $RM -r conftest*
8820     LDFLAGS=$save_LDFLAGS
8821 michael 5052
8822     fi
8823 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8824     $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8825 michael 5052
8826 michael 5059 if test yes = "$lt_cv_prog_compiler_static_works"; then
8827 michael 5052 :
8828     else
8829     lt_prog_compiler_static=
8830     fi
8831    
8832    
8833 michael 5059
8834    
8835    
8836    
8837    
8838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840     if ${lt_cv_prog_compiler_c_o+:} false; then :
8841     $as_echo_n "(cached) " >&6
8842 michael 5052 else
8843     lt_cv_prog_compiler_c_o=no
8844 michael 5059 $RM -r conftest 2>/dev/null
8845 michael 5052 mkdir conftest
8846     cd conftest
8847     mkdir out
8848 michael 5059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849 michael 5052
8850     lt_compiler_flag="-o out/conftest2.$ac_objext"
8851     # Insert the option either (1) after the last *FLAGS variable, or
8852     # (2) before a word containing "conftest.", or (3) at the end.
8853     # Note that $ac_compile itself does not contain backslashes and begins
8854     # with a dollar sign (not a hyphen), so the echo should work correctly.
8855     lt_compile=`echo "$ac_compile" | $SED \
8856     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858     -e 's:$: $lt_compiler_flag:'`
8859 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 michael 5052 (eval "$lt_compile" 2>out/conftest.err)
8861     ac_status=$?
8862     cat out/conftest.err >&5
8863 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 michael 5052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865     then
8866     # The compiler can only warn and ignore the option if not recognized
8867     # So say no if there are warnings
8868 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8869 michael 5052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871     lt_cv_prog_compiler_c_o=yes
8872     fi
8873     fi
8874     chmod u+w . 2>&5
8875 michael 5059 $RM conftest*
8876 michael 5052 # SGI C++ compiler will create directory out/ii_files/ for
8877     # template instantiation
8878 michael 5059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879     $RM out/* && rmdir out
8880 michael 5052 cd ..
8881 michael 5059 $RM -r conftest
8882     $RM conftest*
8883 michael 5052
8884     fi
8885 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887 michael 5052
8888    
8889 michael 5059
8890    
8891    
8892    
8893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8894     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8895     if ${lt_cv_prog_compiler_c_o+:} false; then :
8896     $as_echo_n "(cached) " >&6
8897     else
8898     lt_cv_prog_compiler_c_o=no
8899     $RM -r conftest 2>/dev/null
8900     mkdir conftest
8901     cd conftest
8902     mkdir out
8903     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904    
8905     lt_compiler_flag="-o out/conftest2.$ac_objext"
8906     # Insert the option either (1) after the last *FLAGS variable, or
8907     # (2) before a word containing "conftest.", or (3) at the end.
8908     # Note that $ac_compile itself does not contain backslashes and begins
8909     # with a dollar sign (not a hyphen), so the echo should work correctly.
8910     lt_compile=`echo "$ac_compile" | $SED \
8911     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913     -e 's:$: $lt_compiler_flag:'`
8914     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8915     (eval "$lt_compile" 2>out/conftest.err)
8916     ac_status=$?
8917     cat out/conftest.err >&5
8918     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919     if (exit $ac_status) && test -s out/conftest2.$ac_objext
8920     then
8921     # The compiler can only warn and ignore the option if not recognized
8922     # So say no if there are warnings
8923     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8924     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8925     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8926     lt_cv_prog_compiler_c_o=yes
8927     fi
8928     fi
8929     chmod u+w . 2>&5
8930     $RM conftest*
8931     # SGI C++ compiler will create directory out/ii_files/ for
8932     # template instantiation
8933     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8934     $RM out/* && rmdir out
8935     cd ..
8936     $RM -r conftest
8937     $RM conftest*
8938    
8939     fi
8940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8941     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8942    
8943    
8944    
8945    
8946     hard_links=nottested
8947     if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8948 michael 5052 # do not overwrite the value of need_locks provided by the user
8949 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8950     $as_echo_n "checking if we can lock with hard links... " >&6; }
8951 michael 5052 hard_links=yes
8952 michael 5059 $RM conftest*
8953 michael 5052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8954     touch conftest.a
8955     ln conftest.a conftest.b 2>&5 || hard_links=no
8956     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8957 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8958     $as_echo "$hard_links" >&6; }
8959     if test no = "$hard_links"; then
8960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8961     $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8962 michael 5052 need_locks=warn
8963     fi
8964     else
8965     need_locks=no
8966     fi
8967    
8968    
8969 michael 5059
8970    
8971    
8972    
8973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8974     $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8975    
8976 michael 5052 runpath_var=
8977     allow_undefined_flag=
8978 michael 5059 always_export_symbols=no
8979 michael 5052 archive_cmds=
8980     archive_expsym_cmds=
8981 michael 5059 compiler_needs_object=no
8982     enable_shared_with_static_runtimes=no
8983 michael 5052 export_dynamic_flag_spec=
8984 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8985     hardcode_automatic=no
8986     hardcode_direct=no
8987     hardcode_direct_absolute=no
8988 michael 5052 hardcode_libdir_flag_spec=
8989     hardcode_libdir_separator=
8990     hardcode_minus_L=no
8991     hardcode_shlibpath_var=unsupported
8992 michael 5059 inherit_rpath=no
8993 michael 5052 link_all_deplibs=unknown
8994     module_cmds=
8995     module_expsym_cmds=
8996 michael 5059 old_archive_from_new_cmds=
8997     old_archive_from_expsyms_cmds=
8998     thread_safe_flag_spec=
8999     whole_archive_flag_spec=
9000 michael 5052 # include_expsyms should be a list of space-separated symbols to be *always*
9001     # included in the symbol list
9002     include_expsyms=
9003     # exclude_expsyms can be an extended regexp of symbols to exclude
9004 michael 5059 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9005     # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9006     # as well as any symbol that contains 'd'.
9007     exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9008 michael 5052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9009     # platforms (ab)use it in PIC code, but their linkers get confused if
9010     # the symbol is explicitly referenced. Since portable code cannot
9011     # rely on this symbol name, it's probably fine to never include it in
9012     # preloaded symbol tables.
9013 michael 5059 # Exclude shared library initialization/finalization symbols.
9014 michael 5052 extract_expsyms_cmds=
9015    
9016     case $host_os in
9017 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9018 michael 5052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9019     # When not using gcc, we currently assume that we are using
9020     # Microsoft Visual C++.
9021 michael 5059 if test yes != "$GCC"; then
9022 michael 5052 with_gnu_ld=no
9023     fi
9024     ;;
9025     interix*)
9026     # we just hope/assume this is gcc and not c89 (= MSVC++)
9027     with_gnu_ld=yes
9028     ;;
9029 michael 5059 openbsd* | bitrig*)
9030 michael 5052 with_gnu_ld=no
9031     ;;
9032     esac
9033    
9034     ld_shlibs=yes
9035 michael 5059
9036     # On some targets, GNU ld is compatible enough with the native linker
9037     # that we're better off using the native interface for both.
9038     lt_use_gnu_ld_interface=no
9039     if test yes = "$with_gnu_ld"; then
9040     case $host_os in
9041     aix*)
9042     # The AIX port of GNU ld has always aspired to compatibility
9043     # with the native linker. However, as the warning in the GNU ld
9044     # block says, versions before 2.19.5* couldn't really create working
9045     # shared libraries, regardless of the interface used.
9046     case `$LD -v 2>&1` in
9047     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9048     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9049     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9050     *)
9051     lt_use_gnu_ld_interface=yes
9052     ;;
9053     esac
9054     ;;
9055     *)
9056     lt_use_gnu_ld_interface=yes
9057     ;;
9058     esac
9059     fi
9060    
9061     if test yes = "$lt_use_gnu_ld_interface"; then
9062 michael 5052 # If archive_cmds runs LD, not CC, wlarc should be empty
9063 michael 5059 wlarc='$wl'
9064 michael 5052
9065     # Set some defaults for GNU ld with shared library support. These
9066     # are reset later if shared libraries are not supported. Putting them
9067     # here allows them to be overridden if necessary.
9068     runpath_var=LD_RUN_PATH
9069 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9070     export_dynamic_flag_spec='$wl--export-dynamic'
9071 michael 5052 # ancient GNU ld didn't support --whole-archive et. al.
9072 michael 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9073     whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9074     else
9075     whole_archive_flag_spec=
9076 michael 5052 fi
9077     supports_anon_versioning=no
9078 michael 5059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9079     *GNU\ gold*) supports_anon_versioning=yes ;;
9080 michael 5052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9081     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9082     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9083     *\ 2.11.*) ;; # other 2.11 versions
9084     *) supports_anon_versioning=yes ;;
9085     esac
9086    
9087     # See if GNU ld supports shared libraries.
9088     case $host_os in
9089 michael 5059 aix[3-9]*)
9090 michael 5052 # On AIX/PPC, the GNU linker is very broken
9091 michael 5059 if test ia64 != "$host_cpu"; then
9092 michael 5052 ld_shlibs=no
9093 michael 5059 cat <<_LT_EOF 1>&2
9094 michael 5052
9095 michael 5059 *** Warning: the GNU linker, at least up to release 2.19, is reported
9096 michael 5052 *** to be unable to reliably create shared libraries on AIX.
9097     *** Therefore, libtool is disabling shared libraries support. If you
9098 michael 5059 *** really care for shared libraries, you may want to install binutils
9099     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9100     *** You will then need to restart the configuration process.
9101 michael 5052
9102 michael 5059 _LT_EOF
9103 michael 5052 fi
9104     ;;
9105    
9106     amigaos*)
9107 michael 5059 case $host_cpu in
9108     powerpc)
9109     # see comment about AmigaOS4 .so support
9110     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9111     archive_expsym_cmds=''
9112     ;;
9113     m68k)
9114     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)'
9115     hardcode_libdir_flag_spec='-L$libdir'
9116     hardcode_minus_L=yes
9117     ;;
9118     esac
9119 michael 5052 ;;
9120    
9121     beos*)
9122 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9123 michael 5052 allow_undefined_flag=unsupported
9124     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9125     # support --undefined. This deserves some investigation. FIXME
9126 michael 5059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9127 michael 5052 else
9128     ld_shlibs=no
9129     fi
9130     ;;
9131    
9132 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9133     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9134 michael 5052 # as there is no search path for DLLs.
9135     hardcode_libdir_flag_spec='-L$libdir'
9136 michael 5059 export_dynamic_flag_spec='$wl--export-all-symbols'
9137 michael 5052 allow_undefined_flag=unsupported
9138     always_export_symbols=no
9139     enable_shared_with_static_runtimes=yes
9140 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'
9141     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9142 michael 5052
9143 michael 5059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9144     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9145     # If the export-symbols file already is a .def file, use it as
9146     # is; otherwise, prepend EXPORTS...
9147     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9148     cp $export_symbols $output_objdir/$soname.def;
9149     else
9150     echo EXPORTS > $output_objdir/$soname.def;
9151     cat $export_symbols >> $output_objdir/$soname.def;
9152     fi~
9153     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9154 michael 5052 else
9155     ld_shlibs=no
9156     fi
9157     ;;
9158    
9159 michael 5059 haiku*)
9160     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9161     link_all_deplibs=yes
9162     ;;
9163    
9164     os2*)
9165     hardcode_libdir_flag_spec='-L$libdir'
9166     hardcode_minus_L=yes
9167     allow_undefined_flag=unsupported
9168     shrext_cmds=.dll
9169     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9170     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9171     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9172     $ECHO EXPORTS >> $output_objdir/$libname.def~
9173     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9174     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9175     emximp -o $lib $output_objdir/$libname.def'
9176     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9177     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9178     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9179     $ECHO EXPORTS >> $output_objdir/$libname.def~
9180     prefix_cmds="$SED"~
9181     if test EXPORTS = "`$SED 1q $export_symbols`"; then
9182     prefix_cmds="$prefix_cmds -e 1d";
9183     fi~
9184     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9185     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9186     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9187     emximp -o $lib $output_objdir/$libname.def'
9188     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9189     enable_shared_with_static_runtimes=yes
9190     ;;
9191    
9192     interix[3-9]*)
9193 michael 5052 hardcode_direct=no
9194     hardcode_shlibpath_var=no
9195 michael 5059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9196     export_dynamic_flag_spec='$wl-E'
9197 michael 5052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9198     # Instead, shared libraries are loaded at an image base (0x10000000 by
9199     # default) and relocated if they conflict, which is a slow very memory
9200     # consuming and fragmenting process. To avoid this, we pick a random,
9201     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9202     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9203 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'
9204     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'
9205 michael 5052 ;;
9206    
9207 michael 5059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9208     tmp_diet=no
9209     if test linux-dietlibc = "$host_os"; then
9210     case $cc_basename in
9211     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9212     esac
9213     fi
9214     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9215     && test no = "$tmp_diet"
9216     then
9217     tmp_addflag=' $pic_flag'
9218     tmp_sharedflag='-shared'
9219 michael 5052 case $cc_basename,$host_cpu in
9220 michael 5059 pgcc*) # Portland Group C compiler
9221     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'
9222 michael 5052 tmp_addflag=' $pic_flag'
9223     ;;
9224 michael 5059 pgf77* | pgf90* | pgf95* | pgfortran*)
9225     # Portland Group f77 and f90 compilers
9226     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'
9227 michael 5052 tmp_addflag=' $pic_flag -Mnomain' ;;
9228 michael 5059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9229 michael 5052 tmp_addflag=' -i_dynamic' ;;
9230     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9231     tmp_addflag=' -i_dynamic -nofor_main' ;;
9232     ifc* | ifort*) # Intel Fortran compiler
9233     tmp_addflag=' -nofor_main' ;;
9234 michael 5059 lf95*) # Lahey Fortran 8.1
9235     whole_archive_flag_spec=
9236     tmp_sharedflag='--shared' ;;
9237     nagfor*) # NAGFOR 5.3
9238     tmp_sharedflag='-Wl,-shared' ;;
9239     xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9240     tmp_sharedflag='-qmkshrobj'
9241     tmp_addflag= ;;
9242     nvcc*) # Cuda Compiler Driver 2.2
9243     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'
9244     compiler_needs_object=yes
9245     ;;
9246 michael 5052 esac
9247 michael 5059 case `$CC -V 2>&1 | sed 5q` in
9248     *Sun\ C*) # Sun C 5.9
9249     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'
9250     compiler_needs_object=yes
9251     tmp_sharedflag='-G' ;;
9252     *Sun\ F*) # Sun Fortran 8.3
9253     tmp_sharedflag='-G' ;;
9254     esac
9255     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9256 michael 5052
9257 michael 5059 if test yes = "$supports_anon_versioning"; then
9258     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9259     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9260     echo "local: *; };" >> $output_objdir/$libname.ver~
9261     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9262     fi
9263    
9264     case $cc_basename in
9265     tcc*)
9266     export_dynamic_flag_spec='-rdynamic'
9267     ;;
9268     xlf* | bgf* | bgxlf* | mpixlf*)
9269     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9270     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9271     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9272     archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9273     if test yes = "$supports_anon_versioning"; then
9274     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9275     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9276     echo "local: *; };" >> $output_objdir/$libname.ver~
9277     $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9278     fi
9279     ;;
9280     esac
9281 michael 5052 else
9282 michael 5059 ld_shlibs=no
9283 michael 5052 fi
9284     ;;
9285    
9286 michael 5059 netbsd*)
9287     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9288 michael 5052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9289     wlarc=
9290     else
9291 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9292     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9293 michael 5052 fi
9294     ;;
9295    
9296     solaris*)
9297 michael 5059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9298 michael 5052 ld_shlibs=no
9299 michael 5059 cat <<_LT_EOF 1>&2
9300 michael 5052
9301     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9302     *** create shared libraries on Solaris systems. Therefore, libtool
9303     *** is disabling shared libraries support. We urge you to upgrade GNU
9304     *** binutils to release 2.9.1 or newer. Another option is to modify
9305     *** your PATH or compiler configuration so that the native linker is
9306     *** used, and then restart.
9307    
9308 michael 5059 _LT_EOF
9309     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9311     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9312 michael 5052 else
9313     ld_shlibs=no
9314     fi
9315     ;;
9316    
9317     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9318     case `$LD -v 2>&1` in
9319     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9320     ld_shlibs=no
9321     cat <<_LT_EOF 1>&2
9322    
9323 michael 5059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9324 michael 5052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9325     *** is disabling shared libraries support. We urge you to upgrade GNU
9326     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9327     *** your PATH or compiler configuration so that the native linker is
9328     *** used, and then restart.
9329    
9330     _LT_EOF
9331     ;;
9332     *)
9333 michael 5059 # For security reasons, it is highly recommended that you always
9334     # use absolute paths for naming shared libraries, and exclude the
9335     # DT_RUNPATH tag from executables and libraries. But doing so
9336     # requires that you compile everything twice, which is a pain.
9337     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9339     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9340     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9341 michael 5052 else
9342     ld_shlibs=no
9343     fi
9344     ;;
9345     esac
9346     ;;
9347    
9348     sunos4*)
9349     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350     wlarc=
9351     hardcode_direct=yes
9352     hardcode_shlibpath_var=no
9353     ;;
9354    
9355     *)
9356 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9357     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9358     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9359 michael 5052 else
9360     ld_shlibs=no
9361     fi
9362     ;;
9363     esac
9364    
9365 michael 5059 if test no = "$ld_shlibs"; then
9366 michael 5052 runpath_var=
9367     hardcode_libdir_flag_spec=
9368     export_dynamic_flag_spec=
9369     whole_archive_flag_spec=
9370     fi
9371     else
9372     # PORTME fill in a description of your system's linker (not GNU ld)
9373     case $host_os in
9374     aix3*)
9375     allow_undefined_flag=unsupported
9376     always_export_symbols=yes
9377     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'
9378     # Note: this linker hardcodes the directories in LIBPATH if there
9379     # are no directories specified by -L.
9380     hardcode_minus_L=yes
9381 michael 5059 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9382 michael 5052 # Neither direct hardcoding nor static linking is supported with a
9383     # broken collect2.
9384     hardcode_direct=unsupported
9385     fi
9386     ;;
9387    
9388 michael 5059 aix[4-9]*)
9389     if test ia64 = "$host_cpu"; then
9390 michael 5052 # On IA64, the linker does run time linking by default, so we don't
9391     # have to do anything special.
9392     aix_use_runtimelinking=no
9393     exp_sym_flag='-Bexport'
9394 michael 5059 no_entry_flag=
9395 michael 5052 else
9396     # If we're using GNU nm, then we don't want the "-C" option.
9397 michael 5059 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9398     # Without the "-l" option, or with the "-B" option, AIX nm treats
9399     # weak defined symbols like other global defined symbols, whereas
9400     # GNU nm marks them as "W".
9401     # While the 'weak' keyword is ignored in the Export File, we need
9402     # it in the Import File for the 'aix-soname' feature, so we have
9403     # to replace the "-B" option with "-P" for AIX nm.
9404     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9405     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'
9406 michael 5052 else
9407 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'
9408 michael 5052 fi
9409     aix_use_runtimelinking=no
9410    
9411     # Test if we are trying to use run time linking or normal
9412     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9413 michael 5059 # have runtime linking enabled, and use it for executables.
9414     # For shared libraries, we enable/disable runtime linking
9415     # depending on the kind of the shared library created -
9416     # when "with_aix_soname,aix_use_runtimelinking" is:
9417     # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9418     # "aix,yes" lib.so shared, rtl:yes, for executables
9419     # lib.a static archive
9420     # "both,no" lib.so.V(shr.o) shared, rtl:yes
9421     # lib.a(lib.so.V) shared, rtl:no, for executables
9422     # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9423     # lib.a(lib.so.V) shared, rtl:no
9424     # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9425     # lib.a static archive
9426     case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9427 michael 5052 for ld_flag in $LDFLAGS; do
9428 michael 5059 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9429     aix_use_runtimelinking=yes
9430     break
9431     fi
9432 michael 5052 done
9433 michael 5059 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9434     # With aix-soname=svr4, we create the lib.so.V shared archives only,
9435     # so we don't have lib.a shared libs to link our executables.
9436     # We have to force runtime linking in this case.
9437     aix_use_runtimelinking=yes
9438     LDFLAGS="$LDFLAGS -Wl,-brtl"
9439     fi
9440 michael 5052 ;;
9441     esac
9442    
9443     exp_sym_flag='-bexport'
9444     no_entry_flag='-bnoentry'
9445     fi
9446    
9447     # When large executables or shared objects are built, AIX ld can
9448     # have problems creating the table of contents. If linking a library
9449     # or program results in "error TOC overflow" add -mminimal-toc to
9450     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9451     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9452    
9453     archive_cmds=''
9454     hardcode_direct=yes
9455 michael 5059 hardcode_direct_absolute=yes
9456 michael 5052 hardcode_libdir_separator=':'
9457     link_all_deplibs=yes
9458 michael 5059 file_list_spec='$wl-f,'
9459     case $with_aix_soname,$aix_use_runtimelinking in
9460     aix,*) ;; # traditional, no import file
9461     svr4,* | *,yes) # use import file
9462     # The Import File defines what to hardcode.
9463     hardcode_direct=no
9464     hardcode_direct_absolute=no
9465     ;;
9466     esac
9467 michael 5052
9468 michael 5059 if test yes = "$GCC"; then
9469 michael 5052 case $host_os in aix4.[012]|aix4.[012].*)
9470     # We only want to do this on AIX 4.2 and lower, the check
9471     # below for broken collect2 doesn't work under 4.3+
9472 michael 5059 collect2name=`$CC -print-prog-name=collect2`
9473     if test -f "$collect2name" &&
9474     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9475 michael 5052 then
9476 michael 5059 # We have reworked collect2
9477     :
9478 michael 5052 else
9479 michael 5059 # We have old collect2
9480     hardcode_direct=unsupported
9481     # It fails to find uninstalled libraries when the uninstalled
9482     # path is not listed in the libpath. Setting hardcode_minus_L
9483     # to unsupported forces relinking
9484     hardcode_minus_L=yes
9485     hardcode_libdir_flag_spec='-L$libdir'
9486     hardcode_libdir_separator=
9487 michael 5052 fi
9488     ;;
9489     esac
9490     shared_flag='-shared'
9491 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9492     shared_flag="$shared_flag "'$wl-G'
9493 michael 5052 fi
9494 michael 5059 # Need to ensure runtime linking is disabled for the traditional
9495     # shared library, or the linker may eventually find shared libraries
9496     # /with/ Import File - we do not want to mix them.
9497     shared_flag_aix='-shared'
9498     shared_flag_svr4='-shared $wl-G'
9499 michael 5052 else
9500     # not using gcc
9501 michael 5059 if test ia64 = "$host_cpu"; then
9502     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9503     # chokes on -Wl,-G. The following line is correct:
9504 michael 5052 shared_flag='-G'
9505     else
9506 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9507     shared_flag='$wl-G'
9508 michael 5052 else
9509 michael 5059 shared_flag='$wl-bM:SRE'
9510 michael 5052 fi
9511 michael 5059 shared_flag_aix='$wl-bM:SRE'
9512     shared_flag_svr4='$wl-G'
9513 michael 5052 fi
9514     fi
9515    
9516 michael 5059 export_dynamic_flag_spec='$wl-bexpall'
9517 michael 5052 # It seems that -bexpall does not export symbols beginning with
9518     # underscore (_), so it is better to generate a list of symbols to export.
9519     always_export_symbols=yes
9520 michael 5059 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9521 michael 5052 # Warning - without using the other runtime loading flags (-brtl),
9522     # -berok will link without error, but may produce a broken library.
9523     allow_undefined_flag='-berok'
9524 michael 5059 # Determine the default libpath from the value encoded in an
9525     # empty executable.
9526     if test set = "${lt_cv_aix_libpath+set}"; then
9527     aix_libpath=$lt_cv_aix_libpath
9528     else
9529     if ${lt_cv_aix_libpath_+:} false; then :
9530     $as_echo_n "(cached) " >&6
9531     else
9532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 michael 5052 /* end confdefs.h. */
9534    
9535     int
9536     main ()
9537     {
9538    
9539     ;
9540     return 0;
9541     }
9542     _ACEOF
9543 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9544 michael 5052
9545 michael 5059 lt_aix_libpath_sed='
9546     /Import File Strings/,/^$/ {
9547     /^0/ {
9548     s/^0 *\([^ ]*\) *$/\1/
9549     p
9550     }
9551     }'
9552     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553     # Check for a 64-bit object if we didn't find anything.
9554     if test -z "$lt_cv_aix_libpath_"; then
9555     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556     fi
9557     fi
9558     rm -f core conftest.err conftest.$ac_objext \
9559     conftest$ac_exeext conftest.$ac_ext
9560     if test -z "$lt_cv_aix_libpath_"; then
9561     lt_cv_aix_libpath_=/usr/lib:/lib
9562     fi
9563 michael 5052
9564 michael 5059 fi
9565 michael 5052
9566 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9567 michael 5052 fi
9568    
9569 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9570     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
9571     else
9572     if test ia64 = "$host_cpu"; then
9573     hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9574 michael 5052 allow_undefined_flag="-z nodefs"
9575 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"
9576 michael 5052 else
9577 michael 5059 # Determine the default libpath from the value encoded in an
9578     # empty executable.
9579     if test set = "${lt_cv_aix_libpath+set}"; then
9580     aix_libpath=$lt_cv_aix_libpath
9581     else
9582     if ${lt_cv_aix_libpath_+:} false; then :
9583     $as_echo_n "(cached) " >&6
9584     else
9585     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 michael 5052 /* end confdefs.h. */
9587    
9588     int
9589     main ()
9590     {
9591    
9592     ;
9593     return 0;
9594     }
9595     _ACEOF
9596 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9597 michael 5052
9598 michael 5059 lt_aix_libpath_sed='
9599     /Import File Strings/,/^$/ {
9600     /^0/ {
9601     s/^0 *\([^ ]*\) *$/\1/
9602     p
9603     }
9604     }'
9605     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606     # Check for a 64-bit object if we didn't find anything.
9607     if test -z "$lt_cv_aix_libpath_"; then
9608     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9609     fi
9610     fi
9611     rm -f core conftest.err conftest.$ac_objext \
9612     conftest$ac_exeext conftest.$ac_ext
9613     if test -z "$lt_cv_aix_libpath_"; then
9614     lt_cv_aix_libpath_=/usr/lib:/lib
9615     fi
9616 michael 5052
9617 michael 5059 fi
9618 michael 5052
9619 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9620 michael 5052 fi
9621    
9622 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9623 michael 5052 # Warning - without using the other run time loading flags,
9624     # -berok will link without error, but may produce a broken library.
9625 michael 5059 no_undefined_flag=' $wl-bernotok'
9626     allow_undefined_flag=' $wl-berok'
9627     if test yes = "$with_gnu_ld"; then
9628     # We only use this code for GNU lds that support --whole-archive.
9629     whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9630     else
9631     # Exported symbols can be pulled into shared objects from archives
9632     whole_archive_flag_spec='$convenience'
9633     fi
9634 michael 5052 archive_cmds_need_lc=yes
9635 michael 5059 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9636     # -brtl affects multiple linker settings, -berok does not and is overridden later
9637     compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9638     if test svr4 != "$with_aix_soname"; then
9639     # This is similar to how AIX traditionally builds its shared libraries.
9640     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'
9641     fi
9642     if test aix != "$with_aix_soname"; then
9643     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'
9644     else
9645     # used by -dlpreopen to get the symbols
9646     archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9647     fi
9648     archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9649 michael 5052 fi
9650     fi
9651     ;;
9652    
9653     amigaos*)
9654 michael 5059 case $host_cpu in
9655     powerpc)
9656     # see comment about AmigaOS4 .so support
9657     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9658     archive_expsym_cmds=''
9659     ;;
9660     m68k)
9661     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)'
9662     hardcode_libdir_flag_spec='-L$libdir'
9663     hardcode_minus_L=yes
9664     ;;
9665     esac
9666 michael 5052 ;;
9667    
9668     bsdi[45]*)
9669     export_dynamic_flag_spec=-rdynamic
9670     ;;
9671    
9672 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9673 michael 5052 # When not using gcc, we currently assume that we are using
9674     # Microsoft Visual C++.
9675     # hardcode_libdir_flag_spec is actually meaningless, as there is
9676     # no search path for DLLs.
9677 michael 5059 case $cc_basename in
9678     cl*)
9679     # Native MSVC
9680     hardcode_libdir_flag_spec=' '
9681     allow_undefined_flag=unsupported
9682     always_export_symbols=yes
9683     file_list_spec='@'
9684     # Tell ltmain to make .lib files, not .a files.
9685     libext=lib
9686     # Tell ltmain to make .dll files, not .so files.
9687     shrext_cmds=.dll
9688     # FIXME: Setting linknames here is a bad hack.
9689     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9690     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9691     cp "$export_symbols" "$output_objdir/$soname.def";
9692     echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9693     else
9694     $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9695     fi~
9696     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9697     linknames='
9698     # The linker will not automatically build a static lib if we build a DLL.
9699     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9700     enable_shared_with_static_runtimes=yes
9701     exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9702     export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9703     # Don't use ranlib
9704     old_postinstall_cmds='chmod 644 $oldlib'
9705     postlink_cmds='lt_outputfile="@OUTPUT@"~
9706     lt_tool_outputfile="@TOOL_OUTPUT@"~
9707     case $lt_outputfile in
9708     *.exe|*.EXE) ;;
9709     *)
9710     lt_outputfile=$lt_outputfile.exe
9711     lt_tool_outputfile=$lt_tool_outputfile.exe
9712     ;;
9713     esac~
9714     if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9715     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9716     $RM "$lt_outputfile.manifest";
9717     fi'
9718     ;;
9719     *)
9720     # Assume MSVC wrapper
9721     hardcode_libdir_flag_spec=' '
9722     allow_undefined_flag=unsupported
9723     # Tell ltmain to make .lib files, not .a files.
9724     libext=lib
9725     # Tell ltmain to make .dll files, not .so files.
9726     shrext_cmds=.dll
9727     # FIXME: Setting linknames here is a bad hack.
9728     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9729     # The linker will automatically build a .lib file if we build a DLL.
9730     old_archive_from_new_cmds='true'
9731     # FIXME: Should let the user specify the lib program.
9732     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9733     enable_shared_with_static_runtimes=yes
9734     ;;
9735     esac
9736 michael 5052 ;;
9737    
9738     darwin* | rhapsody*)
9739 michael 5059
9740    
9741     archive_cmds_need_lc=no
9742     hardcode_direct=no
9743     hardcode_automatic=yes
9744     hardcode_shlibpath_var=unsupported
9745     if test yes = "$lt_cv_ld_force_load"; then
9746     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\"`'
9747    
9748     else
9749     whole_archive_flag_spec=''
9750     fi
9751     link_all_deplibs=yes
9752     allow_undefined_flag=$_lt_dar_allow_undefined
9753     case $cc_basename in
9754     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9755     *) _lt_dar_can_shared=$GCC ;;
9756     esac
9757     if test yes = "$_lt_dar_can_shared"; then
9758     output_verbose_link_cmd=func_echo_all
9759     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9760     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9761     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"
9762     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"
9763    
9764     else
9765     ld_shlibs=no
9766     fi
9767    
9768 michael 5052 ;;
9769    
9770     dgux*)
9771     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9772     hardcode_libdir_flag_spec='-L$libdir'
9773     hardcode_shlibpath_var=no
9774     ;;
9775    
9776     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9777     # support. Future versions do this automatically, but an explicit c++rt0.o
9778     # does not break anything, and helps significantly (at the cost of a little
9779     # extra space).
9780     freebsd2.2*)
9781     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9782     hardcode_libdir_flag_spec='-R$libdir'
9783     hardcode_direct=yes
9784     hardcode_shlibpath_var=no
9785     ;;
9786    
9787     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9788 michael 5059 freebsd2.*)
9789 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9790     hardcode_direct=yes
9791     hardcode_minus_L=yes
9792     hardcode_shlibpath_var=no
9793     ;;
9794    
9795     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9796     freebsd* | dragonfly*)
9797 michael 5059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9798 michael 5052 hardcode_libdir_flag_spec='-R$libdir'
9799     hardcode_direct=yes
9800     hardcode_shlibpath_var=no
9801     ;;
9802    
9803     hpux9*)
9804 michael 5059 if test yes = "$GCC"; then
9805     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'
9806 michael 5052 else
9807 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'
9808 michael 5052 fi
9809 michael 5059 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9810 michael 5052 hardcode_libdir_separator=:
9811     hardcode_direct=yes
9812    
9813     # hardcode_minus_L: Not really in the search PATH,
9814     # but as the default location of the library.
9815     hardcode_minus_L=yes
9816 michael 5059 export_dynamic_flag_spec='$wl-E'
9817 michael 5052 ;;
9818    
9819     hpux10*)
9820 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9821     archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9822 michael 5052 else
9823     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9824     fi
9825 michael 5059 if test no = "$with_gnu_ld"; then
9826     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9827 michael 5052 hardcode_libdir_separator=:
9828     hardcode_direct=yes
9829 michael 5059 hardcode_direct_absolute=yes
9830     export_dynamic_flag_spec='$wl-E'
9831 michael 5052 # hardcode_minus_L: Not really in the search PATH,
9832     # but as the default location of the library.
9833     hardcode_minus_L=yes
9834     fi
9835     ;;
9836    
9837     hpux11*)
9838 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9839 michael 5052 case $host_cpu in
9840     hppa*64*)
9841 michael 5059 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9842 michael 5052 ;;
9843     ia64*)
9844 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9845 michael 5052 ;;
9846     *)
9847 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9848 michael 5052 ;;
9849     esac
9850     else
9851     case $host_cpu in
9852     hppa*64*)
9853 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 michael 5052 ;;
9855     ia64*)
9856 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9857 michael 5052 ;;
9858     *)
9859 michael 5059
9860     # Older versions of the 11.00 compiler do not understand -b yet
9861     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9863     $as_echo_n "checking if $CC understands -b... " >&6; }
9864     if ${lt_cv_prog_compiler__b+:} false; then :
9865     $as_echo_n "(cached) " >&6
9866     else
9867     lt_cv_prog_compiler__b=no
9868     save_LDFLAGS=$LDFLAGS
9869     LDFLAGS="$LDFLAGS -b"
9870     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9871     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9872     # The linker can only warn and ignore the option if not recognized
9873     # So say no if there are warnings
9874     if test -s conftest.err; then
9875     # Append any errors to the config.log.
9876     cat conftest.err 1>&5
9877     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9878     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9879     if diff conftest.exp conftest.er2 >/dev/null; then
9880     lt_cv_prog_compiler__b=yes
9881     fi
9882     else
9883     lt_cv_prog_compiler__b=yes
9884     fi
9885     fi
9886     $RM -r conftest*
9887     LDFLAGS=$save_LDFLAGS
9888    
9889     fi
9890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9891     $as_echo "$lt_cv_prog_compiler__b" >&6; }
9892    
9893     if test yes = "$lt_cv_prog_compiler__b"; then
9894     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9895     else
9896     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9897     fi
9898    
9899 michael 5052 ;;
9900     esac
9901     fi
9902 michael 5059 if test no = "$with_gnu_ld"; then
9903     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9904 michael 5052 hardcode_libdir_separator=:
9905    
9906     case $host_cpu in
9907     hppa*64*|ia64*)
9908     hardcode_direct=no
9909     hardcode_shlibpath_var=no
9910     ;;
9911     *)
9912     hardcode_direct=yes
9913 michael 5059 hardcode_direct_absolute=yes
9914     export_dynamic_flag_spec='$wl-E'
9915 michael 5052
9916     # hardcode_minus_L: Not really in the search PATH,
9917     # but as the default location of the library.
9918     hardcode_minus_L=yes
9919     ;;
9920     esac
9921     fi
9922     ;;
9923    
9924     irix5* | irix6* | nonstopux*)
9925 michael 5059 if test yes = "$GCC"; then
9926     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'
9927     # Try to use the -exported_symbol ld option, if it does not
9928     # work, assume that -exports_file does not work either and
9929     # implicitly export all symbols.
9930     # This should be the same for all languages, so no per-tag cache variable.
9931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9932     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9933     if ${lt_cv_irix_exported_symbol+:} false; then :
9934     $as_echo_n "(cached) " >&6
9935     else
9936     save_LDFLAGS=$LDFLAGS
9937     LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939     /* end confdefs.h. */
9940     int foo (void) { return 0; }
9941     _ACEOF
9942     if ac_fn_c_try_link "$LINENO"; then :
9943     lt_cv_irix_exported_symbol=yes
9944     else
9945     lt_cv_irix_exported_symbol=no
9946     fi
9947     rm -f core conftest.err conftest.$ac_objext \
9948     conftest$ac_exeext conftest.$ac_ext
9949     LDFLAGS=$save_LDFLAGS
9950     fi
9951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9952     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9953     if test yes = "$lt_cv_irix_exported_symbol"; then
9954     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'
9955     fi
9956 michael 5052 else
9957 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'
9958     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'
9959 michael 5052 fi
9960 michael 5059 archive_cmds_need_lc='no'
9961     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9962 michael 5052 hardcode_libdir_separator=:
9963 michael 5059 inherit_rpath=yes
9964 michael 5052 link_all_deplibs=yes
9965     ;;
9966    
9967 michael 5059 linux*)
9968     case $cc_basename in
9969     tcc*)
9970     # Fabrice Bellard et al's Tiny C Compiler
9971     ld_shlibs=yes
9972     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9973     ;;
9974     esac
9975     ;;
9976    
9977     netbsd*)
9978     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9979 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9980     else
9981     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9982     fi
9983     hardcode_libdir_flag_spec='-R$libdir'
9984     hardcode_direct=yes
9985     hardcode_shlibpath_var=no
9986     ;;
9987    
9988     newsos6)
9989     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990     hardcode_direct=yes
9991 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9992 michael 5052 hardcode_libdir_separator=:
9993     hardcode_shlibpath_var=no
9994     ;;
9995    
9996 michael 5059 *nto* | *qnx*)
9997     ;;
9998    
9999     openbsd* | bitrig*)
10000     if test -f /usr/libexec/ld.so; then
10001     hardcode_direct=yes
10002     hardcode_shlibpath_var=no
10003     hardcode_direct_absolute=yes
10004     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10005     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10006     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10007     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10008     export_dynamic_flag_spec='$wl-E'
10009     else
10010     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10011     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10012     fi
10013 michael 5052 else
10014 michael 5059 ld_shlibs=no
10015 michael 5052 fi
10016     ;;
10017    
10018     os2*)
10019     hardcode_libdir_flag_spec='-L$libdir'
10020     hardcode_minus_L=yes
10021     allow_undefined_flag=unsupported
10022 michael 5059 shrext_cmds=.dll
10023     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10024     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10025     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10026     $ECHO EXPORTS >> $output_objdir/$libname.def~
10027     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10028     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10029     emximp -o $lib $output_objdir/$libname.def'
10030     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10031     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10032     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10033     $ECHO EXPORTS >> $output_objdir/$libname.def~
10034     prefix_cmds="$SED"~
10035     if test EXPORTS = "`$SED 1q $export_symbols`"; then
10036     prefix_cmds="$prefix_cmds -e 1d";
10037     fi~
10038     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10039     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10040     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10041     emximp -o $lib $output_objdir/$libname.def'
10042     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10043     enable_shared_with_static_runtimes=yes
10044 michael 5052 ;;
10045    
10046     osf3*)
10047 michael 5059 if test yes = "$GCC"; then
10048     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10049     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'
10050 michael 5052 else
10051     allow_undefined_flag=' -expect_unresolved \*'
10052 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'
10053 michael 5052 fi
10054 michael 5059 archive_cmds_need_lc='no'
10055     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10056 michael 5052 hardcode_libdir_separator=:
10057     ;;
10058    
10059     osf4* | osf5*) # as osf3* with the addition of -msym flag
10060 michael 5059 if test yes = "$GCC"; then
10061     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10062     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'
10063     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10064 michael 5052 else
10065     allow_undefined_flag=' -expect_unresolved \*'
10066 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'
10067     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~
10068     $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'
10069 michael 5052
10070     # Both c and cxx compiler support -rpath directly
10071     hardcode_libdir_flag_spec='-rpath $libdir'
10072     fi
10073 michael 5059 archive_cmds_need_lc='no'
10074 michael 5052 hardcode_libdir_separator=:
10075     ;;
10076    
10077     solaris*)
10078 michael 5059 no_undefined_flag=' -z defs'
10079     if test yes = "$GCC"; then
10080     wlarc='$wl'
10081     archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10082     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10083     $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'
10084 michael 5052 else
10085 michael 5059 case `$CC -V 2>&1` in
10086     *"Compilers 5.0"*)
10087     wlarc=''
10088     archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10090     $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10091     ;;
10092     *)
10093     wlarc='$wl'
10094     archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10095     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10096     $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10097     ;;
10098     esac
10099 michael 5052 fi
10100     hardcode_libdir_flag_spec='-R$libdir'
10101     hardcode_shlibpath_var=no
10102     case $host_os in
10103     solaris2.[0-5] | solaris2.[0-5].*) ;;
10104     *)
10105 michael 5059 # The compiler driver will combine and reorder linker options,
10106     # but understands '-z linker_flag'. GCC discards it without '$wl',
10107     # but is careful enough not to reorder.
10108     # Supported since Solaris 2.6 (maybe 2.5.1?)
10109     if test yes = "$GCC"; then
10110     whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10111     else
10112     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10113     fi
10114     ;;
10115 michael 5052 esac
10116     link_all_deplibs=yes
10117     ;;
10118    
10119     sunos4*)
10120 michael 5059 if test sequent = "$host_vendor"; then
10121 michael 5052 # Use $CC to link under sequent, because it throws in some extra .o
10122     # files that make .init and .fini sections work.
10123 michael 5059 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10124 michael 5052 else
10125     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10126     fi
10127     hardcode_libdir_flag_spec='-L$libdir'
10128     hardcode_direct=yes
10129     hardcode_minus_L=yes
10130     hardcode_shlibpath_var=no
10131     ;;
10132    
10133     sysv4)
10134     case $host_vendor in
10135     sni)
10136     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137     hardcode_direct=yes # is this really true???
10138     ;;
10139     siemens)
10140     ## LD is ld it makes a PLAMLIB
10141     ## CC just makes a GrossModule.
10142     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10143     reload_cmds='$CC -r -o $output$reload_objs'
10144     hardcode_direct=no
10145     ;;
10146     motorola)
10147     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10149     ;;
10150     esac
10151     runpath_var='LD_RUN_PATH'
10152     hardcode_shlibpath_var=no
10153     ;;
10154    
10155     sysv4.3*)
10156     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157     hardcode_shlibpath_var=no
10158     export_dynamic_flag_spec='-Bexport'
10159     ;;
10160    
10161     sysv4*MP*)
10162     if test -d /usr/nec; then
10163     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164     hardcode_shlibpath_var=no
10165     runpath_var=LD_RUN_PATH
10166     hardcode_runpath_var=yes
10167     ld_shlibs=yes
10168     fi
10169     ;;
10170    
10171 michael 5059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10172     no_undefined_flag='$wl-z,text'
10173 michael 5052 archive_cmds_need_lc=no
10174     hardcode_shlibpath_var=no
10175     runpath_var='LD_RUN_PATH'
10176    
10177 michael 5059 if test yes = "$GCC"; then
10178     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 michael 5052 else
10181 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183 michael 5052 fi
10184     ;;
10185    
10186     sysv5* | sco3.2v5* | sco5v6*)
10187 michael 5059 # Note: We CANNOT use -z defs as we might desire, because we do not
10188 michael 5052 # link with -lc, and that would cause any symbols used from libc to
10189     # always be unresolved, which means just about no library would
10190     # ever link correctly. If we're not using GNU ld we use -z text
10191     # though, which does catch some bad symbols but isn't as heavy-handed
10192     # as -z defs.
10193 michael 5059 no_undefined_flag='$wl-z,text'
10194     allow_undefined_flag='$wl-z,nodefs'
10195 michael 5052 archive_cmds_need_lc=no
10196     hardcode_shlibpath_var=no
10197 michael 5059 hardcode_libdir_flag_spec='$wl-R,$libdir'
10198 michael 5052 hardcode_libdir_separator=':'
10199     link_all_deplibs=yes
10200 michael 5059 export_dynamic_flag_spec='$wl-Bexport'
10201 michael 5052 runpath_var='LD_RUN_PATH'
10202    
10203 michael 5059 if test yes = "$GCC"; then
10204     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206 michael 5052 else
10207 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209 michael 5052 fi
10210     ;;
10211    
10212     uts4*)
10213     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214     hardcode_libdir_flag_spec='-L$libdir'
10215     hardcode_shlibpath_var=no
10216     ;;
10217    
10218     *)
10219     ld_shlibs=no
10220     ;;
10221     esac
10222 michael 5059
10223     if test sni = "$host_vendor"; then
10224     case $host in
10225     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10226     export_dynamic_flag_spec='$wl-Blargedynsym'
10227     ;;
10228     esac
10229     fi
10230 michael 5052 fi
10231    
10232 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10233     $as_echo "$ld_shlibs" >&6; }
10234     test no = "$ld_shlibs" && can_build_shared=no
10235 michael 5052
10236 michael 5059 with_gnu_ld=$with_gnu_ld
10237    
10238    
10239    
10240    
10241    
10242    
10243    
10244    
10245    
10246    
10247    
10248    
10249    
10250    
10251    
10252 michael 5052 #
10253     # Do we need to explicitly link libc?
10254     #
10255     case "x$archive_cmds_need_lc" in
10256     x|xyes)
10257     # Assume -lc should be added
10258     archive_cmds_need_lc=yes
10259    
10260 michael 5059 if test yes,yes = "$GCC,$enable_shared"; then
10261 michael 5052 case $archive_cmds in
10262     *'~'*)
10263     # FIXME: we may have to deal with multi-command sequences.
10264     ;;
10265     '$CC '*)
10266     # Test whether the compiler implicitly links with -lc since on some
10267     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10268     # to ld, don't add -lc before -lgcc.
10269 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10270     $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10271     if ${lt_cv_archive_cmds_need_lc+:} false; then :
10272     $as_echo_n "(cached) " >&6
10273     else
10274     $RM conftest*
10275     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10276 michael 5052
10277 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10278 michael 5052 (eval $ac_compile) 2>&5
10279     ac_status=$?
10280 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10281     test $ac_status = 0; } 2>conftest.err; then
10282     soname=conftest
10283     lib=conftest
10284     libobjs=conftest.$ac_objext
10285     deplibs=
10286     wl=$lt_prog_compiler_wl
10287     pic_flag=$lt_prog_compiler_pic
10288     compiler_flags=-v
10289     linker_flags=-v
10290     verstring=
10291     output_objdir=.
10292     libname=conftest
10293     lt_save_allow_undefined_flag=$allow_undefined_flag
10294     allow_undefined_flag=
10295     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10296     (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10297 michael 5052 ac_status=$?
10298 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10299     test $ac_status = 0; }
10300     then
10301     lt_cv_archive_cmds_need_lc=no
10302     else
10303     lt_cv_archive_cmds_need_lc=yes
10304     fi
10305     allow_undefined_flag=$lt_save_allow_undefined_flag
10306     else
10307     cat conftest.err 1>&5
10308     fi
10309     $RM conftest*
10310    
10311     fi
10312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10313     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10314     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10315 michael 5052 ;;
10316     esac
10317     fi
10318     ;;
10319     esac
10320    
10321 michael 5059
10322    
10323    
10324    
10325    
10326    
10327    
10328    
10329    
10330    
10331    
10332    
10333    
10334    
10335    
10336    
10337    
10338    
10339    
10340    
10341    
10342    
10343    
10344    
10345    
10346    
10347    
10348    
10349    
10350    
10351    
10352    
10353    
10354    
10355    
10356    
10357    
10358    
10359    
10360    
10361    
10362    
10363    
10364    
10365    
10366    
10367    
10368    
10369    
10370    
10371    
10372    
10373    
10374    
10375    
10376    
10377    
10378    
10379    
10380    
10381    
10382    
10383    
10384    
10385    
10386    
10387    
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415    
10416    
10417    
10418    
10419    
10420    
10421    
10422    
10423    
10424    
10425    
10426    
10427    
10428    
10429    
10430    
10431    
10432    
10433    
10434    
10435    
10436    
10437    
10438    
10439    
10440    
10441    
10442    
10443    
10444    
10445    
10446    
10447    
10448    
10449    
10450    
10451    
10452    
10453    
10454    
10455    
10456    
10457    
10458    
10459    
10460    
10461    
10462    
10463    
10464    
10465    
10466    
10467    
10468    
10469    
10470    
10471    
10472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10473     $as_echo_n "checking dynamic linker characteristics... " >&6; }
10474    
10475     if test yes = "$GCC"; then
10476     case $host_os in
10477     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10478     *) lt_awk_arg='/^libraries:/' ;;
10479     esac
10480     case $host_os in
10481     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10482     *) lt_sed_strip_eq='s|=/|/|g' ;;
10483     esac
10484     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10485     case $lt_search_path_spec in
10486     *\;*)
10487     # if the path contains ";" then we assume it to be the separator
10488     # otherwise default to the standard path separator (i.e. ":") - it is
10489     # assumed that no part of a normal pathname contains ";" but that should
10490     # okay in the real world where ";" in dirpaths is itself problematic.
10491     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10492     ;;
10493     *)
10494     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10495     ;;
10496     esac
10497     # Ok, now we have the path, separated by spaces, we can step through it
10498     # and add multilib dir if necessary...
10499     lt_tmp_lt_search_path_spec=
10500     lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10501     # ...but if some path component already ends with the multilib dir we assume
10502     # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10503     case "$lt_multi_os_dir; $lt_search_path_spec " in
10504     "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10505     lt_multi_os_dir=
10506     ;;
10507     esac
10508     for lt_sys_path in $lt_search_path_spec; do
10509     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10510     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10511     elif test -n "$lt_multi_os_dir"; then
10512     test -d "$lt_sys_path" && \
10513     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10514     fi
10515     done
10516     lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10517     BEGIN {RS = " "; FS = "/|\n";} {
10518     lt_foo = "";
10519     lt_count = 0;
10520     for (lt_i = NF; lt_i > 0; lt_i--) {
10521     if ($lt_i != "" && $lt_i != ".") {
10522     if ($lt_i == "..") {
10523     lt_count++;
10524     } else {
10525     if (lt_count == 0) {
10526     lt_foo = "/" $lt_i lt_foo;
10527     } else {
10528     lt_count--;
10529     }
10530     }
10531     }
10532     }
10533     if (lt_foo != "") { lt_freq[lt_foo]++; }
10534     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10535     }'`
10536     # AWK program above erroneously prepends '/' to C:/dos/paths
10537     # for these hosts.
10538     case $host_os in
10539     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10540     $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10541     esac
10542     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10543     else
10544     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10545     fi
10546 michael 5052 library_names_spec=
10547     libname_spec='lib$name'
10548     soname_spec=
10549 michael 5059 shrext_cmds=.so
10550 michael 5052 postinstall_cmds=
10551     postuninstall_cmds=
10552     finish_cmds=
10553     finish_eval=
10554     shlibpath_var=
10555     shlibpath_overrides_runpath=unknown
10556     version_type=none
10557     dynamic_linker="$host_os ld.so"
10558     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10559     need_lib_prefix=unknown
10560     hardcode_into_libs=no
10561    
10562     # when you set need_version to no, make sure it does not cause -set_version
10563     # flags to be left without arguments
10564     need_version=unknown
10565    
10566     case $host_os in
10567     aix3*)
10568 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10569     library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10570 michael 5052 shlibpath_var=LIBPATH
10571    
10572     # AIX 3 has no versioning support, so we append a major version to the name.
10573 michael 5059 soname_spec='$libname$release$shared_ext$major'
10574 michael 5052 ;;
10575    
10576 michael 5059 aix[4-9]*)
10577     version_type=linux # correct to gnu/linux during the next big refactor
10578 michael 5052 need_lib_prefix=no
10579     need_version=no
10580     hardcode_into_libs=yes
10581 michael 5059 if test ia64 = "$host_cpu"; then
10582 michael 5052 # AIX 5 supports IA64
10583 michael 5059 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10584 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10585     else
10586     # With GCC up to 2.95.x, collect2 would create an import file
10587     # for dependence libraries. The import file would start with
10588 michael 5059 # the line '#! .'. This would cause the generated library to
10589     # depend on '.', always an invalid library. This was fixed in
10590 michael 5052 # development snapshots of GCC prior to 3.0.
10591     case $host_os in
10592     aix4 | aix4.[01] | aix4.[01].*)
10593     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10594     echo ' yes '
10595 michael 5059 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10596 michael 5052 :
10597     else
10598     can_build_shared=no
10599     fi
10600     ;;
10601     esac
10602 michael 5059 # Using Import Files as archive members, it is possible to support
10603     # filename-based versioning of shared library archives on AIX. While
10604     # this would work for both with and without runtime linking, it will
10605     # prevent static linking of such archives. So we do filename-based
10606     # shared library versioning with .so extension only, which is used
10607     # when both runtime linking and shared linking is enabled.
10608     # Unfortunately, runtime linking may impact performance, so we do
10609     # not want this to be the default eventually. Also, we use the
10610     # versioned .so libs for executables only if there is the -brtl
10611     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10612     # To allow for filename-based versioning support, we need to create
10613     # libNAME.so.V as an archive file, containing:
10614     # *) an Import File, referring to the versioned filename of the
10615     # archive as well as the shared archive member, telling the
10616     # bitwidth (32 or 64) of that shared object, and providing the
10617     # list of exported symbols of that shared object, eventually
10618     # decorated with the 'weak' keyword
10619     # *) the shared object with the F_LOADONLY flag set, to really avoid
10620     # it being seen by the linker.
10621     # At run time we better use the real file rather than another symlink,
10622     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10623    
10624     case $with_aix_soname,$aix_use_runtimelinking in
10625     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10626 michael 5052 # soname into executable. Probably we can add versioning support to
10627     # collect2, so additional links can be useful in future.
10628 michael 5059 aix,yes) # traditional libtool
10629     dynamic_linker='AIX unversionable lib.so'
10630 michael 5052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10631     # instead of lib<name>.a to let people know that these are not
10632     # typical AIX shared libraries.
10633 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10634     ;;
10635     aix,no) # traditional AIX only
10636     dynamic_linker='AIX lib.a(lib.so.V)'
10637 michael 5052 # We preserve .a as extension for shared libraries through AIX4.2
10638     # and later when we are not doing run time linking.
10639 michael 5059 library_names_spec='$libname$release.a $libname.a'
10640     soname_spec='$libname$release$shared_ext$major'
10641     ;;
10642     svr4,*) # full svr4 only
10643     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10644     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10645     # We do not specify a path in Import Files, so LIBPATH fires.
10646     shlibpath_overrides_runpath=yes
10647     ;;
10648     *,yes) # both, prefer svr4
10649     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10650     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10651     # unpreferred sharedlib libNAME.a needs extra handling
10652     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"'
10653     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"'
10654     # We do not specify a path in Import Files, so LIBPATH fires.
10655     shlibpath_overrides_runpath=yes
10656     ;;
10657     *,no) # both, prefer aix
10658     dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10659     library_names_spec='$libname$release.a $libname.a'
10660     soname_spec='$libname$release$shared_ext$major'
10661     # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10662     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)'
10663     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"'
10664     ;;
10665     esac
10666 michael 5052 shlibpath_var=LIBPATH
10667     fi
10668     ;;
10669    
10670     amigaos*)
10671 michael 5059 case $host_cpu in
10672     powerpc)
10673     # Since July 2007 AmigaOS4 officially supports .so libraries.
10674     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10675     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10676     ;;
10677     m68k)
10678     library_names_spec='$libname.ixlibrary $libname.a'
10679     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10680     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'
10681     ;;
10682     esac
10683 michael 5052 ;;
10684    
10685     beos*)
10686 michael 5059 library_names_spec='$libname$shared_ext'
10687 michael 5052 dynamic_linker="$host_os ld.so"
10688     shlibpath_var=LIBRARY_PATH
10689     ;;
10690    
10691     bsdi[45]*)
10692 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10693 michael 5052 need_version=no
10694 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10695     soname_spec='$libname$release$shared_ext$major'
10696 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10697     shlibpath_var=LD_LIBRARY_PATH
10698     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10699     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10700     # the default ld.so.conf also contains /usr/contrib/lib and
10701     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10702     # libtool to hard-code these into programs
10703     ;;
10704    
10705 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
10706 michael 5052 version_type=windows
10707 michael 5059 shrext_cmds=.dll
10708 michael 5052 need_version=no
10709     need_lib_prefix=no
10710    
10711 michael 5059 case $GCC,$cc_basename in
10712     yes,*)
10713     # gcc
10714 michael 5052 library_names_spec='$libname.dll.a'
10715     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716 michael 5059 postinstall_cmds='base_file=`basename \$file`~
10717     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10718 michael 5052 dldir=$destdir/`dirname \$dlpath`~
10719     test -d \$dldir || mkdir -p \$dldir~
10720     $install_prog $dir/$dlname \$dldir/$dlname~
10721 michael 5059 chmod a+x \$dldir/$dlname~
10722     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10723     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10724     fi'
10725 michael 5052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10726     dlpath=$dir/\$dldll~
10727 michael 5059 $RM \$dlpath'
10728 michael 5052 shlibpath_overrides_runpath=yes
10729    
10730     case $host_os in
10731     cygwin*)
10732     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10733 michael 5059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10734    
10735     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10736 michael 5052 ;;
10737 michael 5059 mingw* | cegcc*)
10738 michael 5052 # MinGW DLLs use traditional 'lib' prefix
10739 michael 5059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10740 michael 5052 ;;
10741     pw32*)
10742     # pw32 DLLs use 'pw' prefix rather than 'lib'
10743 michael 5059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10744 michael 5052 ;;
10745     esac
10746 michael 5059 dynamic_linker='Win32 ld.exe'
10747 michael 5052 ;;
10748    
10749 michael 5059 *,cl*)
10750     # Native MSVC
10751     libname_spec='$name'
10752     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10753     library_names_spec='$libname.dll.lib'
10754    
10755     case $build_os in
10756     mingw*)
10757     sys_lib_search_path_spec=
10758     lt_save_ifs=$IFS
10759     IFS=';'
10760     for lt_path in $LIB
10761     do
10762     IFS=$lt_save_ifs
10763     # Let DOS variable expansion print the short 8.3 style file name.
10764     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10765     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10766     done
10767     IFS=$lt_save_ifs
10768     # Convert to MSYS style.
10769     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10770     ;;
10771     cygwin*)
10772     # Convert to unix form, then to dos form, then back to unix form
10773     # but this time dos style (no spaces!) so that the unix form looks
10774     # like /cygdrive/c/PROGRA~1:/cygdr...
10775     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10776     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10777     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10778     ;;
10779     *)
10780     sys_lib_search_path_spec=$LIB
10781     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10782     # It is most probably a Windows format PATH.
10783     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10784     else
10785     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10786     fi
10787     # FIXME: find the short name or the path components, as spaces are
10788     # common. (e.g. "Program Files" -> "PROGRA~1")
10789     ;;
10790     esac
10791    
10792     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10793     postinstall_cmds='base_file=`basename \$file`~
10794     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10795     dldir=$destdir/`dirname \$dlpath`~
10796     test -d \$dldir || mkdir -p \$dldir~
10797     $install_prog $dir/$dlname \$dldir/$dlname'
10798     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10799     dlpath=$dir/\$dldll~
10800     $RM \$dlpath'
10801     shlibpath_overrides_runpath=yes
10802     dynamic_linker='Win32 link.exe'
10803     ;;
10804    
10805 michael 5052 *)
10806 michael 5059 # Assume MSVC wrapper
10807     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10808     dynamic_linker='Win32 ld.exe'
10809 michael 5052 ;;
10810     esac
10811     # FIXME: first we should search . and the directory the executable is in
10812     shlibpath_var=PATH
10813     ;;
10814    
10815     darwin* | rhapsody*)
10816     dynamic_linker="$host_os dyld"
10817     version_type=darwin
10818     need_lib_prefix=no
10819     need_version=no
10820 michael 5059 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10821     soname_spec='$libname$release$major$shared_ext'
10822 michael 5052 shlibpath_overrides_runpath=yes
10823     shlibpath_var=DYLD_LIBRARY_PATH
10824     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10825 michael 5059
10826     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10827 michael 5052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10828     ;;
10829    
10830     dgux*)
10831 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10832 michael 5052 need_lib_prefix=no
10833     need_version=no
10834 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10835     soname_spec='$libname$release$shared_ext$major'
10836 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10837     ;;
10838    
10839     freebsd* | dragonfly*)
10840     # DragonFly does not have aout. When/if they implement a new
10841     # versioning mechanism, adjust this.
10842     if test -x /usr/bin/objformat; then
10843     objformat=`/usr/bin/objformat`
10844     else
10845     case $host_os in
10846 michael 5059 freebsd[23].*) objformat=aout ;;
10847 michael 5052 *) objformat=elf ;;
10848     esac
10849     fi
10850     version_type=freebsd-$objformat
10851     case $version_type in
10852     freebsd-elf*)
10853 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10854 michael 5052 need_version=no
10855     need_lib_prefix=no
10856     ;;
10857     freebsd-*)
10858 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10859 michael 5052 need_version=yes
10860     ;;
10861     esac
10862     shlibpath_var=LD_LIBRARY_PATH
10863     case $host_os in
10864 michael 5059 freebsd2.*)
10865 michael 5052 shlibpath_overrides_runpath=yes
10866     ;;
10867     freebsd3.[01]* | freebsdelf3.[01]*)
10868     shlibpath_overrides_runpath=yes
10869     hardcode_into_libs=yes
10870     ;;
10871     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10872     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10873     shlibpath_overrides_runpath=no
10874     hardcode_into_libs=yes
10875     ;;
10876 michael 5059 *) # from 4.6 on, and DragonFly
10877 michael 5052 shlibpath_overrides_runpath=yes
10878     hardcode_into_libs=yes
10879     ;;
10880     esac
10881     ;;
10882    
10883 michael 5059 haiku*)
10884     version_type=linux # correct to gnu/linux during the next big refactor
10885 michael 5052 need_lib_prefix=no
10886     need_version=no
10887 michael 5059 dynamic_linker="$host_os runtime_loader"
10888     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10889     soname_spec='$libname$release$shared_ext$major'
10890     shlibpath_var=LIBRARY_PATH
10891     shlibpath_overrides_runpath=no
10892     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10893 michael 5052 hardcode_into_libs=yes
10894     ;;
10895    
10896     hpux9* | hpux10* | hpux11*)
10897     # Give a soname corresponding to the major version so that dld.sl refuses to
10898     # link against other versions.
10899     version_type=sunos
10900     need_lib_prefix=no
10901     need_version=no
10902     case $host_cpu in
10903     ia64*)
10904     shrext_cmds='.so'
10905     hardcode_into_libs=yes
10906     dynamic_linker="$host_os dld.so"
10907     shlibpath_var=LD_LIBRARY_PATH
10908     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10909 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10910     soname_spec='$libname$release$shared_ext$major'
10911     if test 32 = "$HPUX_IA64_MODE"; then
10912 michael 5052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10913     else
10914     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10915     fi
10916     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10917     ;;
10918 michael 5059 hppa*64*)
10919 michael 5052 shrext_cmds='.sl'
10920 michael 5059 hardcode_into_libs=yes
10921 michael 5052 dynamic_linker="$host_os dld.sl"
10922 michael 5059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10923     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10924     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10925     soname_spec='$libname$release$shared_ext$major'
10926     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10927     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10928     ;;
10929     *)
10930     shrext_cmds='.sl'
10931     dynamic_linker="$host_os dld.sl"
10932 michael 5052 shlibpath_var=SHLIB_PATH
10933     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10934 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10935     soname_spec='$libname$release$shared_ext$major'
10936 michael 5052 ;;
10937     esac
10938 michael 5059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10939 michael 5052 postinstall_cmds='chmod 555 $lib'
10940 michael 5059 # or fails outright, so override atomically:
10941     install_override_mode=555
10942 michael 5052 ;;
10943    
10944 michael 5059 interix[3-9]*)
10945     version_type=linux # correct to gnu/linux during the next big refactor
10946 michael 5052 need_lib_prefix=no
10947     need_version=no
10948 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10949     soname_spec='$libname$release$shared_ext$major'
10950 michael 5052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10951     shlibpath_var=LD_LIBRARY_PATH
10952     shlibpath_overrides_runpath=no
10953     hardcode_into_libs=yes
10954     ;;
10955    
10956     irix5* | irix6* | nonstopux*)
10957     case $host_os in
10958     nonstopux*) version_type=nonstopux ;;
10959     *)
10960 michael 5059 if test yes = "$lt_cv_prog_gnu_ld"; then
10961     version_type=linux # correct to gnu/linux during the next big refactor
10962 michael 5052 else
10963     version_type=irix
10964     fi ;;
10965     esac
10966     need_lib_prefix=no
10967     need_version=no
10968 michael 5059 soname_spec='$libname$release$shared_ext$major'
10969     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10970 michael 5052 case $host_os in
10971     irix5* | nonstopux*)
10972     libsuff= shlibsuff=
10973     ;;
10974     *)
10975     case $LD in # libtool.m4 will add one of these switches to LD
10976     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10977     libsuff= shlibsuff= libmagic=32-bit;;
10978     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10979     libsuff=32 shlibsuff=N32 libmagic=N32;;
10980     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10981     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10982     *) libsuff= shlibsuff= libmagic=never-match;;
10983     esac
10984     ;;
10985     esac
10986     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10987     shlibpath_overrides_runpath=no
10988 michael 5059 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10989     sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10990 michael 5052 hardcode_into_libs=yes
10991     ;;
10992    
10993     # No shared lib support for Linux oldld, aout, or coff.
10994     linux*oldld* | linux*aout* | linux*coff*)
10995     dynamic_linker=no
10996     ;;
10997    
10998 michael 5059 linux*android*)
10999     version_type=none # Android doesn't support versioned libraries.
11000 michael 5052 need_lib_prefix=no
11001     need_version=no
11002 michael 5059 library_names_spec='$libname$release$shared_ext'
11003     soname_spec='$libname$release$shared_ext'
11004     finish_cmds=
11005     shlibpath_var=LD_LIBRARY_PATH
11006     shlibpath_overrides_runpath=yes
11007    
11008     # This implies no fast_install, which is unacceptable.
11009     # Some rework will be needed to allow for fast_install
11010     # before this can be enabled.
11011     hardcode_into_libs=yes
11012    
11013     dynamic_linker='Android linker'
11014     # Don't embed -rpath directories since the linker doesn't support them.
11015     hardcode_libdir_flag_spec='-L$libdir'
11016     ;;
11017    
11018     # This must be glibc/ELF.
11019     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11020     version_type=linux # correct to gnu/linux during the next big refactor
11021     need_lib_prefix=no
11022     need_version=no
11023     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11024     soname_spec='$libname$release$shared_ext$major'
11025 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11026     shlibpath_var=LD_LIBRARY_PATH
11027     shlibpath_overrides_runpath=no
11028 michael 5059
11029     # Some binutils ld are patched to set DT_RUNPATH
11030     if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11031     $as_echo_n "(cached) " >&6
11032     else
11033     lt_cv_shlibpath_overrides_runpath=no
11034     save_LDFLAGS=$LDFLAGS
11035     save_libdir=$libdir
11036     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11037     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039     /* end confdefs.h. */
11040    
11041     int
11042     main ()
11043     {
11044    
11045     ;
11046     return 0;
11047     }
11048     _ACEOF
11049     if ac_fn_c_try_link "$LINENO"; then :
11050     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11051     lt_cv_shlibpath_overrides_runpath=yes
11052     fi
11053     fi
11054     rm -f core conftest.err conftest.$ac_objext \
11055     conftest$ac_exeext conftest.$ac_ext
11056     LDFLAGS=$save_LDFLAGS
11057     libdir=$save_libdir
11058    
11059     fi
11060    
11061     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11062    
11063 michael 5052 # This implies no fast_install, which is unacceptable.
11064     # Some rework will be needed to allow for fast_install
11065     # before this can be enabled.
11066     hardcode_into_libs=yes
11067    
11068     # Append ld.so.conf contents to the search path
11069     if test -f /etc/ld.so.conf; then
11070 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' ' '`
11071 michael 5052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11072     fi
11073    
11074     # We used to test for /lib/ld.so.1 and disable shared libraries on
11075     # powerpc, because MkLinux only supported shared libraries with the
11076     # GNU dynamic linker. Since this was broken with cross compilers,
11077     # most powerpc-linux boxes support dynamic linking these days and
11078     # people can always --disable-shared, the test was removed, and we
11079     # assume the GNU/Linux dynamic linker is in use.
11080     dynamic_linker='GNU/Linux ld.so'
11081     ;;
11082    
11083     netbsd*)
11084     version_type=sunos
11085     need_lib_prefix=no
11086     need_version=no
11087 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11088     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11089 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11090     dynamic_linker='NetBSD (a.out) ld.so'
11091     else
11092 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11093     soname_spec='$libname$release$shared_ext$major'
11094 michael 5052 dynamic_linker='NetBSD ld.elf_so'
11095     fi
11096     shlibpath_var=LD_LIBRARY_PATH
11097     shlibpath_overrides_runpath=yes
11098     hardcode_into_libs=yes
11099     ;;
11100    
11101     newsos6)
11102 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11103     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11104 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11105     shlibpath_overrides_runpath=yes
11106     ;;
11107    
11108 michael 5059 *nto* | *qnx*)
11109     version_type=qnx
11110 michael 5052 need_lib_prefix=no
11111     need_version=no
11112 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113     soname_spec='$libname$release$shared_ext$major'
11114 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11115 michael 5059 shlibpath_overrides_runpath=no
11116     hardcode_into_libs=yes
11117     dynamic_linker='ldqnx.so'
11118 michael 5052 ;;
11119    
11120 michael 5059 openbsd* | bitrig*)
11121 michael 5052 version_type=sunos
11122 michael 5059 sys_lib_dlsearch_path_spec=/usr/lib
11123 michael 5052 need_lib_prefix=no
11124 michael 5059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11125     need_version=no
11126     else
11127     need_version=yes
11128     fi
11129     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11130 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11131     shlibpath_var=LD_LIBRARY_PATH
11132 michael 5059 shlibpath_overrides_runpath=yes
11133 michael 5052 ;;
11134    
11135     os2*)
11136     libname_spec='$name'
11137 michael 5059 version_type=windows
11138     shrext_cmds=.dll
11139     need_version=no
11140 michael 5052 need_lib_prefix=no
11141 michael 5059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11142     soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11143     v=$($ECHO $release$versuffix | tr -d .-);
11144     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11145     $ECHO $n$v`$shared_ext'
11146     library_names_spec='${libname}_dll.$libext'
11147 michael 5052 dynamic_linker='OS/2 ld.exe'
11148 michael 5059 shlibpath_var=BEGINLIBPATH
11149     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11150     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11151     postinstall_cmds='base_file=`basename \$file`~
11152     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11153     dldir=$destdir/`dirname \$dlpath`~
11154     test -d \$dldir || mkdir -p \$dldir~
11155     $install_prog $dir/$dlname \$dldir/$dlname~
11156     chmod a+x \$dldir/$dlname~
11157     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11158     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11159     fi'
11160     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11161     dlpath=$dir/\$dldll~
11162     $RM \$dlpath'
11163 michael 5052 ;;
11164    
11165     osf3* | osf4* | osf5*)
11166     version_type=osf
11167     need_lib_prefix=no
11168     need_version=no
11169 michael 5059 soname_spec='$libname$release$shared_ext$major'
11170     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11172     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11173 michael 5059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11174 michael 5052 ;;
11175    
11176 michael 5059 rdos*)
11177     dynamic_linker=no
11178     ;;
11179    
11180 michael 5052 solaris*)
11181 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11182 michael 5052 need_lib_prefix=no
11183     need_version=no
11184 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11185     soname_spec='$libname$release$shared_ext$major'
11186 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11187     shlibpath_overrides_runpath=yes
11188     hardcode_into_libs=yes
11189     # ldd complains unless libraries are executable
11190     postinstall_cmds='chmod +x $lib'
11191     ;;
11192    
11193     sunos4*)
11194     version_type=sunos
11195 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11196 michael 5052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11197     shlibpath_var=LD_LIBRARY_PATH
11198     shlibpath_overrides_runpath=yes
11199 michael 5059 if test yes = "$with_gnu_ld"; then
11200 michael 5052 need_lib_prefix=no
11201     fi
11202     need_version=yes
11203     ;;
11204    
11205     sysv4 | sysv4.3*)
11206 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11207     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11208     soname_spec='$libname$release$shared_ext$major'
11209 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11210     case $host_vendor in
11211     sni)
11212     shlibpath_overrides_runpath=no
11213     need_lib_prefix=no
11214     runpath_var=LD_RUN_PATH
11215     ;;
11216     siemens)
11217     need_lib_prefix=no
11218     ;;
11219     motorola)
11220     need_lib_prefix=no
11221     need_version=no
11222     shlibpath_overrides_runpath=no
11223     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11224     ;;
11225     esac
11226     ;;
11227    
11228     sysv4*MP*)
11229 michael 5059 if test -d /usr/nec; then
11230     version_type=linux # correct to gnu/linux during the next big refactor
11231     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11232     soname_spec='$libname$shared_ext.$major'
11233 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11234     fi
11235     ;;
11236    
11237     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11238 michael 5059 version_type=sco
11239 michael 5052 need_lib_prefix=no
11240     need_version=no
11241 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11242     soname_spec='$libname$release$shared_ext$major'
11243 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11244 michael 5059 shlibpath_overrides_runpath=yes
11245 michael 5052 hardcode_into_libs=yes
11246 michael 5059 if test yes = "$with_gnu_ld"; then
11247 michael 5052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11248     else
11249     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11250     case $host_os in
11251     sco3.2v5*)
11252     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11253     ;;
11254     esac
11255     fi
11256     sys_lib_dlsearch_path_spec='/usr/lib'
11257     ;;
11258    
11259 michael 5059 tpf*)
11260     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11261     version_type=linux # correct to gnu/linux during the next big refactor
11262     need_lib_prefix=no
11263     need_version=no
11264     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11265     shlibpath_var=LD_LIBRARY_PATH
11266     shlibpath_overrides_runpath=no
11267     hardcode_into_libs=yes
11268     ;;
11269    
11270 michael 5052 uts4*)
11271 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11272     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273     soname_spec='$libname$release$shared_ext$major'
11274 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11275     ;;
11276    
11277     *)
11278     dynamic_linker=no
11279     ;;
11280     esac
11281 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11282     $as_echo "$dynamic_linker" >&6; }
11283     test no = "$dynamic_linker" && can_build_shared=no
11284 michael 5052
11285     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11286 michael 5059 if test yes = "$GCC"; then
11287 michael 5052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11288     fi
11289    
11290 michael 5059 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11291     sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11292     fi
11293     if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11294     sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11295     fi
11296    
11297    
11298    
11299    
11300    
11301    
11302    
11303    
11304    
11305    
11306    
11307    
11308    
11309    
11310    
11311    
11312    
11313    
11314    
11315    
11316    
11317    
11318    
11319    
11320    
11321    
11322    
11323    
11324    
11325    
11326    
11327    
11328    
11329    
11330    
11331    
11332    
11333    
11334    
11335    
11336    
11337    
11338    
11339    
11340    
11341    
11342    
11343    
11344    
11345    
11346    
11347    
11348    
11349    
11350    
11351    
11352    
11353    
11354    
11355    
11356    
11357    
11358    
11359    
11360    
11361    
11362    
11363    
11364    
11365    
11366    
11367    
11368    
11369    
11370    
11371    
11372    
11373    
11374    
11375    
11376    
11377    
11378    
11379    
11380    
11381    
11382    
11383    
11384    
11385    
11386    
11387    
11388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11389     $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11390 michael 5052 hardcode_action=
11391 michael 5059 if test -n "$hardcode_libdir_flag_spec" ||
11392     test -n "$runpath_var" ||
11393     test yes = "$hardcode_automatic"; then
11394 michael 5052
11395 michael 5059 # We can hardcode non-existent directories.
11396     if test no != "$hardcode_direct" &&
11397 michael 5052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11398     # have to relink, otherwise we might link with an installed library
11399     # when we should be linking with a yet-to-be-installed one
11400 michael 5059 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11401     test no != "$hardcode_minus_L"; then
11402 michael 5052 # Linking always hardcodes the temporary library directory.
11403     hardcode_action=relink
11404     else
11405     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11406     hardcode_action=immediate
11407     fi
11408     else
11409     # We cannot hardcode anything, or else we can only hardcode existing
11410     # directories.
11411     hardcode_action=unsupported
11412     fi
11413 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11414     $as_echo "$hardcode_action" >&6; }
11415 michael 5052
11416 michael 5059 if test relink = "$hardcode_action" ||
11417     test yes = "$inherit_rpath"; then
11418 michael 5052 # Fast installation is not supported
11419     enable_fast_install=no
11420 michael 5059 elif test yes = "$shlibpath_overrides_runpath" ||
11421     test no = "$enable_shared"; then
11422 michael 5052 # Fast installation is not necessary
11423     enable_fast_install=needless
11424     fi
11425    
11426    
11427 michael 5059
11428    
11429    
11430    
11431     if test yes != "$enable_dlopen"; then
11432 michael 5052 enable_dlopen=unknown
11433     enable_dlopen_self=unknown
11434     enable_dlopen_self_static=unknown
11435     else
11436     lt_cv_dlopen=no
11437     lt_cv_dlopen_libs=
11438    
11439     case $host_os in
11440     beos*)
11441 michael 5059 lt_cv_dlopen=load_add_on
11442 michael 5052 lt_cv_dlopen_libs=
11443     lt_cv_dlopen_self=yes
11444     ;;
11445    
11446 michael 5059 mingw* | pw32* | cegcc*)
11447     lt_cv_dlopen=LoadLibrary
11448 michael 5052 lt_cv_dlopen_libs=
11449 michael 5059 ;;
11450 michael 5052
11451     cygwin*)
11452 michael 5059 lt_cv_dlopen=dlopen
11453 michael 5052 lt_cv_dlopen_libs=
11454 michael 5059 ;;
11455 michael 5052
11456     darwin*)
11457 michael 5059 # if libdl is installed we need to link against it
11458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11460     if ${ac_cv_lib_dl_dlopen+:} false; then :
11461     $as_echo_n "(cached) " >&6
11462 michael 5052 else
11463     ac_check_lib_save_LIBS=$LIBS
11464     LIBS="-ldl $LIBS"
11465 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 michael 5052 /* end confdefs.h. */
11467    
11468     /* Override any GCC internal prototype to avoid an error.
11469     Use char because int might match the return type of a GCC
11470     builtin and then its argument prototype would still apply. */
11471     #ifdef __cplusplus
11472     extern "C"
11473     #endif
11474     char dlopen ();
11475     int
11476     main ()
11477     {
11478     return dlopen ();
11479     ;
11480     return 0;
11481     }
11482     _ACEOF
11483 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11484 michael 5052 ac_cv_lib_dl_dlopen=yes
11485     else
11486 michael 5059 ac_cv_lib_dl_dlopen=no
11487 michael 5052 fi
11488     rm -f core conftest.err conftest.$ac_objext \
11489 michael 5059 conftest$ac_exeext conftest.$ac_ext
11490 michael 5052 LIBS=$ac_check_lib_save_LIBS
11491     fi
11492 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11494     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11495     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11496 michael 5052 else
11497    
11498 michael 5059 lt_cv_dlopen=dyld
11499 michael 5052 lt_cv_dlopen_libs=
11500     lt_cv_dlopen_self=yes
11501    
11502     fi
11503    
11504 michael 5059 ;;
11505 michael 5052
11506 michael 5059 tpf*)
11507     # Don't try to run any link tests for TPF. We know it's impossible
11508     # because TPF is a cross-compiler, and we know how we open DSOs.
11509     lt_cv_dlopen=dlopen
11510     lt_cv_dlopen_libs=
11511     lt_cv_dlopen_self=no
11512     ;;
11513    
11514 michael 5052 *)
11515 michael 5059 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11516     if test "x$ac_cv_func_shl_load" = xyes; then :
11517     lt_cv_dlopen=shl_load
11518 michael 5052 else
11519 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11520     $as_echo_n "checking for shl_load in -ldld... " >&6; }
11521     if ${ac_cv_lib_dld_shl_load+:} false; then :
11522     $as_echo_n "(cached) " >&6
11523 michael 5052 else
11524     ac_check_lib_save_LIBS=$LIBS
11525     LIBS="-ldld $LIBS"
11526 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 michael 5052 /* end confdefs.h. */
11528    
11529     /* Override any GCC internal prototype to avoid an error.
11530     Use char because int might match the return type of a GCC
11531     builtin and then its argument prototype would still apply. */
11532     #ifdef __cplusplus
11533     extern "C"
11534     #endif
11535     char shl_load ();
11536     int
11537     main ()
11538     {
11539     return shl_load ();
11540     ;
11541     return 0;
11542     }
11543     _ACEOF
11544 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11545 michael 5052 ac_cv_lib_dld_shl_load=yes
11546     else
11547 michael 5059 ac_cv_lib_dld_shl_load=no
11548 michael 5052 fi
11549     rm -f core conftest.err conftest.$ac_objext \
11550 michael 5059 conftest$ac_exeext conftest.$ac_ext
11551 michael 5052 LIBS=$ac_check_lib_save_LIBS
11552     fi
11553 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11554     $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11555     if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11556     lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11557 michael 5052 else
11558 michael 5059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11559     if test "x$ac_cv_func_dlopen" = xyes; then :
11560     lt_cv_dlopen=dlopen
11561 michael 5052 else
11562 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11563     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11564     if ${ac_cv_lib_dl_dlopen+:} false; then :
11565     $as_echo_n "(cached) " >&6
11566 michael 5052 else
11567     ac_check_lib_save_LIBS=$LIBS
11568     LIBS="-ldl $LIBS"
11569 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 michael 5052 /* end confdefs.h. */
11571    
11572     /* Override any GCC internal prototype to avoid an error.
11573     Use char because int might match the return type of a GCC
11574     builtin and then its argument prototype would still apply. */
11575     #ifdef __cplusplus
11576     extern "C"
11577     #endif
11578     char dlopen ();
11579     int
11580     main ()
11581     {
11582     return dlopen ();
11583     ;
11584     return 0;
11585     }
11586     _ACEOF
11587 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11588 michael 5052 ac_cv_lib_dl_dlopen=yes
11589     else
11590 michael 5059 ac_cv_lib_dl_dlopen=no
11591 michael 5052 fi
11592     rm -f core conftest.err conftest.$ac_objext \
11593 michael 5059 conftest$ac_exeext conftest.$ac_ext
11594 michael 5052 LIBS=$ac_check_lib_save_LIBS
11595     fi
11596 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11597     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11598     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11599     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11600 michael 5052 else
11601 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11602     $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11603     if ${ac_cv_lib_svld_dlopen+:} false; then :
11604     $as_echo_n "(cached) " >&6
11605 michael 5052 else
11606     ac_check_lib_save_LIBS=$LIBS
11607     LIBS="-lsvld $LIBS"
11608 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 michael 5052 /* end confdefs.h. */
11610    
11611     /* Override any GCC internal prototype to avoid an error.
11612     Use char because int might match the return type of a GCC
11613     builtin and then its argument prototype would still apply. */
11614     #ifdef __cplusplus
11615     extern "C"
11616     #endif
11617     char dlopen ();
11618     int
11619     main ()
11620     {
11621     return dlopen ();
11622     ;
11623     return 0;
11624     }
11625     _ACEOF
11626 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11627 michael 5052 ac_cv_lib_svld_dlopen=yes
11628     else
11629 michael 5059 ac_cv_lib_svld_dlopen=no
11630 michael 5052 fi
11631     rm -f core conftest.err conftest.$ac_objext \
11632 michael 5059 conftest$ac_exeext conftest.$ac_ext
11633 michael 5052 LIBS=$ac_check_lib_save_LIBS
11634     fi
11635 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11636     $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11637     if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11638     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11639 michael 5052 else
11640 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11641     $as_echo_n "checking for dld_link in -ldld... " >&6; }
11642     if ${ac_cv_lib_dld_dld_link+:} false; then :
11643     $as_echo_n "(cached) " >&6
11644 michael 5052 else
11645     ac_check_lib_save_LIBS=$LIBS
11646     LIBS="-ldld $LIBS"
11647 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 michael 5052 /* end confdefs.h. */
11649    
11650     /* Override any GCC internal prototype to avoid an error.
11651     Use char because int might match the return type of a GCC
11652     builtin and then its argument prototype would still apply. */
11653     #ifdef __cplusplus
11654     extern "C"
11655     #endif
11656     char dld_link ();
11657     int
11658     main ()
11659     {
11660     return dld_link ();
11661     ;
11662     return 0;
11663     }
11664     _ACEOF
11665 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11666 michael 5052 ac_cv_lib_dld_dld_link=yes
11667     else
11668 michael 5059 ac_cv_lib_dld_dld_link=no
11669 michael 5052 fi
11670     rm -f core conftest.err conftest.$ac_objext \
11671 michael 5059 conftest$ac_exeext conftest.$ac_ext
11672 michael 5052 LIBS=$ac_check_lib_save_LIBS
11673     fi
11674 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11675     $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11676     if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11677     lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11678 michael 5052 fi
11679    
11680    
11681     fi
11682    
11683    
11684     fi
11685    
11686    
11687     fi
11688    
11689    
11690     fi
11691    
11692    
11693     fi
11694    
11695     ;;
11696     esac
11697    
11698 michael 5059 if test no = "$lt_cv_dlopen"; then
11699     enable_dlopen=no
11700     else
11701 michael 5052 enable_dlopen=yes
11702     fi
11703    
11704     case $lt_cv_dlopen in
11705     dlopen)
11706 michael 5059 save_CPPFLAGS=$CPPFLAGS
11707     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11708 michael 5052
11709 michael 5059 save_LDFLAGS=$LDFLAGS
11710 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11711    
11712 michael 5059 save_LIBS=$LIBS
11713 michael 5052 LIBS="$lt_cv_dlopen_libs $LIBS"
11714    
11715 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11716     $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11717     if ${lt_cv_dlopen_self+:} false; then :
11718     $as_echo_n "(cached) " >&6
11719 michael 5052 else
11720 michael 5059 if test yes = "$cross_compiling"; then :
11721 michael 5052 lt_cv_dlopen_self=cross
11722     else
11723     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11724     lt_status=$lt_dlunknown
11725 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11726     #line $LINENO "configure"
11727 michael 5052 #include "confdefs.h"
11728    
11729     #if HAVE_DLFCN_H
11730     #include <dlfcn.h>
11731     #endif
11732    
11733     #include <stdio.h>
11734    
11735     #ifdef RTLD_GLOBAL
11736     # define LT_DLGLOBAL RTLD_GLOBAL
11737     #else
11738     # ifdef DL_GLOBAL
11739     # define LT_DLGLOBAL DL_GLOBAL
11740     # else
11741     # define LT_DLGLOBAL 0
11742     # endif
11743     #endif
11744    
11745     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11746     find out it does not work in some platform. */
11747     #ifndef LT_DLLAZY_OR_NOW
11748     # ifdef RTLD_LAZY
11749     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11750     # else
11751     # ifdef DL_LAZY
11752     # define LT_DLLAZY_OR_NOW DL_LAZY
11753     # else
11754     # ifdef RTLD_NOW
11755     # define LT_DLLAZY_OR_NOW RTLD_NOW
11756     # else
11757     # ifdef DL_NOW
11758     # define LT_DLLAZY_OR_NOW DL_NOW
11759     # else
11760     # define LT_DLLAZY_OR_NOW 0
11761     # endif
11762     # endif
11763     # endif
11764     # endif
11765     #endif
11766    
11767 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11768     correspondingly for the symbols needed. */
11769     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11770     int fnord () __attribute__((visibility("default")));
11771 michael 5052 #endif
11772    
11773 michael 5059 int fnord () { return 42; }
11774 michael 5052 int main ()
11775     {
11776     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11777     int status = $lt_dlunknown;
11778    
11779     if (self)
11780     {
11781     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11782 michael 5059 else
11783     {
11784     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11785     else puts (dlerror ());
11786     }
11787 michael 5052 /* dlclose (self); */
11788     }
11789     else
11790     puts (dlerror ());
11791    
11792 michael 5059 return status;
11793 michael 5052 }
11794 michael 5059 _LT_EOF
11795     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11796 michael 5052 (eval $ac_link) 2>&5
11797     ac_status=$?
11798 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11800 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11801     lt_status=$?
11802     case x$lt_status in
11803     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11804     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11805     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11806     esac
11807     else :
11808     # compilation failed
11809     lt_cv_dlopen_self=no
11810     fi
11811     fi
11812     rm -fr conftest*
11813    
11814    
11815     fi
11816 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11817     $as_echo "$lt_cv_dlopen_self" >&6; }
11818 michael 5052
11819 michael 5059 if test yes = "$lt_cv_dlopen_self"; then
11820 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11821 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11822     $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11823     if ${lt_cv_dlopen_self_static+:} false; then :
11824     $as_echo_n "(cached) " >&6
11825 michael 5052 else
11826 michael 5059 if test yes = "$cross_compiling"; then :
11827 michael 5052 lt_cv_dlopen_self_static=cross
11828     else
11829     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11830     lt_status=$lt_dlunknown
11831 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11832     #line $LINENO "configure"
11833 michael 5052 #include "confdefs.h"
11834    
11835     #if HAVE_DLFCN_H
11836     #include <dlfcn.h>
11837     #endif
11838    
11839     #include <stdio.h>
11840    
11841     #ifdef RTLD_GLOBAL
11842     # define LT_DLGLOBAL RTLD_GLOBAL
11843     #else
11844     # ifdef DL_GLOBAL
11845     # define LT_DLGLOBAL DL_GLOBAL
11846     # else
11847     # define LT_DLGLOBAL 0
11848     # endif
11849     #endif
11850    
11851     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11852     find out it does not work in some platform. */
11853     #ifndef LT_DLLAZY_OR_NOW
11854     # ifdef RTLD_LAZY
11855     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11856     # else
11857     # ifdef DL_LAZY
11858     # define LT_DLLAZY_OR_NOW DL_LAZY
11859     # else
11860     # ifdef RTLD_NOW
11861     # define LT_DLLAZY_OR_NOW RTLD_NOW
11862     # else
11863     # ifdef DL_NOW
11864     # define LT_DLLAZY_OR_NOW DL_NOW
11865     # else
11866     # define LT_DLLAZY_OR_NOW 0
11867     # endif
11868     # endif
11869     # endif
11870     # endif
11871     #endif
11872    
11873 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11874     correspondingly for the symbols needed. */
11875     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11876     int fnord () __attribute__((visibility("default")));
11877 michael 5052 #endif
11878    
11879 michael 5059 int fnord () { return 42; }
11880 michael 5052 int main ()
11881     {
11882     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883     int status = $lt_dlunknown;
11884    
11885     if (self)
11886     {
11887     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11888 michael 5059 else
11889     {
11890     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11891     else puts (dlerror ());
11892     }
11893 michael 5052 /* dlclose (self); */
11894     }
11895     else
11896     puts (dlerror ());
11897    
11898 michael 5059 return status;
11899 michael 5052 }
11900 michael 5059 _LT_EOF
11901     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11902 michael 5052 (eval $ac_link) 2>&5
11903     ac_status=$?
11904 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11905     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11906 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11907     lt_status=$?
11908     case x$lt_status in
11909     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11912     esac
11913     else :
11914     # compilation failed
11915     lt_cv_dlopen_self_static=no
11916     fi
11917     fi
11918     rm -fr conftest*
11919    
11920    
11921     fi
11922 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11923     $as_echo "$lt_cv_dlopen_self_static" >&6; }
11924 michael 5052 fi
11925    
11926 michael 5059 CPPFLAGS=$save_CPPFLAGS
11927     LDFLAGS=$save_LDFLAGS
11928     LIBS=$save_LIBS
11929 michael 5052 ;;
11930     esac
11931    
11932     case $lt_cv_dlopen_self in
11933     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934     *) enable_dlopen_self=unknown ;;
11935     esac
11936    
11937     case $lt_cv_dlopen_self_static in
11938     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939     *) enable_dlopen_self_static=unknown ;;
11940     esac
11941     fi
11942    
11943    
11944    
11945    
11946    
11947    
11948    
11949    
11950    
11951    
11952    
11953    
11954    
11955    
11956    
11957    
11958    
11959 michael 5059 striplib=
11960     old_striplib=
11961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11962     $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11963     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11964     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11965     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967     $as_echo "yes" >&6; }
11968 michael 5052 else
11969 michael 5059 # FIXME - insert some real tests, host_os isn't really good enough
11970 michael 5052 case $host_os in
11971 michael 5059 darwin*)
11972     if test -n "$STRIP"; then
11973     striplib="$STRIP -x"
11974     old_striplib="$STRIP -S"
11975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976     $as_echo "yes" >&6; }
11977 michael 5052 else
11978 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979     $as_echo "no" >&6; }
11980 michael 5052 fi
11981     ;;
11982     *)
11983 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984     $as_echo "no" >&6; }
11985 michael 5052 ;;
11986     esac
11987     fi
11988    
11989    
11990    
11991    
11992    
11993    
11994    
11995    
11996    
11997    
11998    
11999    
12000 michael 5059 # Report what library types will actually be built
12001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12002     $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12004     $as_echo "$can_build_shared" >&6; }
12005 michael 5052
12006 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12007     $as_echo_n "checking whether to build shared libraries... " >&6; }
12008     test no = "$can_build_shared" && enable_shared=no
12009 michael 5052
12010 michael 5059 # On AIX, shared libraries and static libraries use the same namespace, and
12011     # are all built from PIC.
12012 michael 5052 case $host_os in
12013 michael 5059 aix3*)
12014     test yes = "$enable_shared" && enable_static=no
12015     if test -n "$RANLIB"; then
12016     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12017     postinstall_cmds='$RANLIB $lib'
12018 michael 5052 fi
12019     ;;
12020    
12021 michael 5059 aix[4-9]*)
12022     if test ia64 != "$host_cpu"; then
12023     case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12024     yes,aix,yes) ;; # shared object as lib.so file only
12025     yes,svr4,*) ;; # shared object as lib.so archive member only
12026     yes,*) enable_static=no ;; # shared object in lib.a archive as well
12027 michael 5052 esac
12028     fi
12029     ;;
12030     esac
12031 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12032     $as_echo "$enable_shared" >&6; }
12033 michael 5052
12034 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12035     $as_echo_n "checking whether to build static libraries... " >&6; }
12036     # Make sure either enable_shared or enable_static is yes.
12037     test yes = "$enable_shared" || enable_static=yes
12038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12039     $as_echo "$enable_static" >&6; }
12040 michael 5052
12041    
12042    
12043    
12044     fi
12045     ac_ext=c
12046     ac_cpp='$CPP $CPPFLAGS'
12047     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12050    
12051 michael 5059 CC=$lt_save_CC
12052 michael 5052
12053    
12054    
12055    
12056    
12057    
12058    
12059    
12060    
12061    
12062    
12063    
12064    
12065    
12066    
12067 michael 5059 ac_config_commands="$ac_config_commands libtool"
12068 michael 5052
12069    
12070    
12071    
12072 michael 5059 # Only expand once:
12073 michael 5052
12074    
12075    
12076    
12077 michael 5209 for ac_header in fcntl.h sys/time.h unistd.h
12078 michael 5059 do :
12079     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12080     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12081     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12082 michael 5052 cat >>confdefs.h <<_ACEOF
12083 michael 5059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12084 michael 5052 _ACEOF
12085    
12086     fi
12087    
12088     done
12089    
12090    
12091 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12092     $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12093     if ${ac_cv_header_time+:} false; then :
12094     $as_echo_n "(cached) " >&6
12095 michael 5052 else
12096 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 michael 5052 /* end confdefs.h. */
12098     #include <sys/types.h>
12099     #include <sys/time.h>
12100     #include <time.h>
12101    
12102     int
12103     main ()
12104     {
12105     if ((struct tm *) 0)
12106     return 0;
12107     ;
12108     return 0;
12109     }
12110     _ACEOF
12111 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12112 michael 5052 ac_cv_header_time=yes
12113     else
12114 michael 5059 ac_cv_header_time=no
12115 michael 5052 fi
12116     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117     fi
12118 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12119     $as_echo "$ac_cv_header_time" >&6; }
12120 michael 5052 if test $ac_cv_header_time = yes; then
12121    
12122 michael 5059 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12123 michael 5052
12124     fi
12125    
12126 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12127     $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12128     if ${ac_cv_struct_tm+:} false; then :
12129     $as_echo_n "(cached) " >&6
12130 michael 5052 else
12131 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 michael 5052 /* end confdefs.h. */
12133     #include <sys/types.h>
12134     #include <time.h>
12135    
12136     int
12137     main ()
12138     {
12139 michael 5059 struct tm tm;
12140     int *p = &tm.tm_sec;
12141     return !p;
12142 michael 5052 ;
12143     return 0;
12144     }
12145     _ACEOF
12146 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12147 michael 5052 ac_cv_struct_tm=time.h
12148     else
12149 michael 5059 ac_cv_struct_tm=sys/time.h
12150 michael 5052 fi
12151     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152     fi
12153 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12154     $as_echo "$ac_cv_struct_tm" >&6; }
12155 michael 5052 if test $ac_cv_struct_tm = sys/time.h; then
12156    
12157 michael 5059 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12158 michael 5052
12159     fi
12160    
12161    
12162    
12163     for ac_prog in 'bison -y' byacc
12164     do
12165     # Extract the first word of "$ac_prog", so it can be a program name with args.
12166     set dummy $ac_prog; ac_word=$2
12167 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168     $as_echo_n "checking for $ac_word... " >&6; }
12169     if ${ac_cv_prog_YACC+:} false; then :
12170     $as_echo_n "(cached) " >&6
12171 michael 5052 else
12172     if test -n "$YACC"; then
12173     ac_cv_prog_YACC="$YACC" # Let the user override the test.
12174     else
12175     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176     for as_dir in $PATH
12177     do
12178     IFS=$as_save_IFS
12179     test -z "$as_dir" && as_dir=.
12180 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12181     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182 michael 5052 ac_cv_prog_YACC="$ac_prog"
12183 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 michael 5052 break 2
12185     fi
12186     done
12187 michael 5059 done
12188 michael 5052 IFS=$as_save_IFS
12189    
12190     fi
12191     fi
12192     YACC=$ac_cv_prog_YACC
12193     if test -n "$YACC"; then
12194 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12195     $as_echo "$YACC" >&6; }
12196 michael 5052 else
12197 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198     $as_echo "no" >&6; }
12199 michael 5052 fi
12200    
12201    
12202     test -n "$YACC" && break
12203     done
12204     test -n "$YACC" || YACC="yacc"
12205    
12206    
12207     for ac_prog in flex lex
12208     do
12209     # Extract the first word of "$ac_prog", so it can be a program name with args.
12210     set dummy $ac_prog; ac_word=$2
12211 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212     $as_echo_n "checking for $ac_word... " >&6; }
12213     if ${ac_cv_prog_LEX+:} false; then :
12214     $as_echo_n "(cached) " >&6
12215 michael 5052 else
12216     if test -n "$LEX"; then
12217     ac_cv_prog_LEX="$LEX" # Let the user override the test.
12218     else
12219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220     for as_dir in $PATH
12221     do
12222     IFS=$as_save_IFS
12223     test -z "$as_dir" && as_dir=.
12224 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12225     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226 michael 5052 ac_cv_prog_LEX="$ac_prog"
12227 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 michael 5052 break 2
12229     fi
12230     done
12231 michael 5059 done
12232 michael 5052 IFS=$as_save_IFS
12233    
12234     fi
12235     fi
12236     LEX=$ac_cv_prog_LEX
12237     if test -n "$LEX"; then
12238 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12239     $as_echo "$LEX" >&6; }
12240 michael 5052 else
12241 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242     $as_echo "no" >&6; }
12243 michael 5052 fi
12244    
12245    
12246     test -n "$LEX" && break
12247     done
12248     test -n "$LEX" || LEX=":"
12249    
12250 michael 5059 if test "x$LEX" != "x:"; then
12251     cat >conftest.l <<_ACEOF
12252     %%
12253     a { ECHO; }
12254     b { REJECT; }
12255     c { yymore (); }
12256     d { yyless (1); }
12257     e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12258     yyless ((input () != 0)); }
12259     f { unput (yytext[0]); }
12260     . { BEGIN INITIAL; }
12261     %%
12262     #ifdef YYTEXT_POINTER
12263     extern char *yytext;
12264 michael 5052 #endif
12265     int
12266 michael 5059 main (void)
12267 michael 5052 {
12268 michael 5059 return ! yylex () + ! yywrap ();
12269 michael 5052 }
12270     _ACEOF
12271 michael 5059 { { ac_try="$LEX conftest.l"
12272 michael 5052 case "(($ac_try" in
12273     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274     *) ac_try_echo=$ac_try;;
12275     esac
12276 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12277     $as_echo "$ac_try_echo"; } >&5
12278     (eval "$LEX conftest.l") 2>&5
12279 michael 5052 ac_status=$?
12280 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12281     test $ac_status = 0; }
12282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12283     $as_echo_n "checking lex output file root... " >&6; }
12284     if ${ac_cv_prog_lex_root+:} false; then :
12285     $as_echo_n "(cached) " >&6
12286 michael 5052 else
12287    
12288 michael 5059 if test -f lex.yy.c; then
12289     ac_cv_prog_lex_root=lex.yy
12290     elif test -f lexyy.c; then
12291     ac_cv_prog_lex_root=lexyy
12292     else
12293     as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12294 michael 5052 fi
12295 michael 5059 fi
12296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12297     $as_echo "$ac_cv_prog_lex_root" >&6; }
12298     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12299 michael 5052
12300 michael 5059 if test -z "${LEXLIB+set}"; then
12301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12302     $as_echo_n "checking lex library... " >&6; }
12303     if ${ac_cv_lib_lex+:} false; then :
12304     $as_echo_n "(cached) " >&6
12305 michael 5052 else
12306 michael 5059
12307     ac_save_LIBS=$LIBS
12308     ac_cv_lib_lex='none needed'
12309     for ac_lib in '' -lfl -ll; do
12310     LIBS="$ac_lib $ac_save_LIBS"
12311     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 michael 5052 /* end confdefs.h. */
12313 michael 5059 `cat $LEX_OUTPUT_ROOT.c`
12314 michael 5052 _ACEOF
12315 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12316     ac_cv_lib_lex=$ac_lib
12317 michael 5052 fi
12318     rm -f core conftest.err conftest.$ac_objext \
12319 michael 5059 conftest$ac_exeext conftest.$ac_ext
12320     test "$ac_cv_lib_lex" != 'none needed' && break
12321     done
12322     LIBS=$ac_save_LIBS
12323 michael 5052
12324     fi
12325 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12326     $as_echo "$ac_cv_lib_lex" >&6; }
12327     test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12328 michael 5052 fi
12329    
12330    
12331 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12332     $as_echo_n "checking whether yytext is a pointer... " >&6; }
12333     if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12334     $as_echo_n "(cached) " >&6
12335 michael 5052 else
12336     # POSIX says lex can declare yytext either as a pointer or an array; the
12337 michael 5059 # default is implementation-dependent. Figure out which it is, since
12338 michael 5052 # not all implementations provide the %pointer and %array declarations.
12339     ac_cv_prog_lex_yytext_pointer=no
12340     ac_save_LIBS=$LIBS
12341 michael 5059 LIBS="$LEXLIB $ac_save_LIBS"
12342     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343     /* end confdefs.h. */
12344    
12345     #define YYTEXT_POINTER 1
12346 michael 5052 `cat $LEX_OUTPUT_ROOT.c`
12347     _ACEOF
12348 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12349 michael 5052 ac_cv_prog_lex_yytext_pointer=yes
12350     fi
12351     rm -f core conftest.err conftest.$ac_objext \
12352 michael 5059 conftest$ac_exeext conftest.$ac_ext
12353 michael 5052 LIBS=$ac_save_LIBS
12354    
12355     fi
12356 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12357     $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12358 michael 5052 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12359    
12360 michael 5059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12361 michael 5052
12362     fi
12363 michael 5059 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12364 michael 5052
12365     fi
12366     if test "$LEX" = :; then
12367     LEX=${am_missing_run}flex
12368     fi
12369    
12370 michael 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12371     $as_echo_n "checking for library containing socket... " >&6; }
12372     if ${ac_cv_search_socket+:} false; then :
12373     $as_echo_n "(cached) " >&6
12374     else
12375     ac_func_search_save_LIBS=$LIBS
12376     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377     /* end confdefs.h. */
12378 michael 5052
12379 michael 5062 /* Override any GCC internal prototype to avoid an error.
12380     Use char because int might match the return type of a GCC
12381     builtin and then its argument prototype would still apply. */
12382     #ifdef __cplusplus
12383     extern "C"
12384     #endif
12385     char socket ();
12386     int
12387     main ()
12388     {
12389     return socket ();
12390     ;
12391     return 0;
12392     }
12393     _ACEOF
12394     for ac_lib in '' socket; do
12395     if test -z "$ac_lib"; then
12396     ac_res="none required"
12397     else
12398     ac_res=-l$ac_lib
12399     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12400     fi
12401     if ac_fn_c_try_link "$LINENO"; then :
12402     ac_cv_search_socket=$ac_res
12403     fi
12404     rm -f core conftest.err conftest.$ac_objext \
12405     conftest$ac_exeext
12406     if ${ac_cv_search_socket+:} false; then :
12407     break
12408     fi
12409     done
12410     if ${ac_cv_search_socket+:} false; then :
12411    
12412     else
12413     ac_cv_search_socket=no
12414     fi
12415     rm conftest.$ac_ext
12416     LIBS=$ac_func_search_save_LIBS
12417     fi
12418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12419     $as_echo "$ac_cv_search_socket" >&6; }
12420     ac_res=$ac_cv_search_socket
12421     if test "$ac_res" != no; then :
12422     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12423    
12424     else
12425     as_fn_error $? "socket library not found" "$LINENO" 5
12426     fi
12427    
12428     ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12429     if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12430    
12431     else
12432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12433     $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12434     if ${ac_cv_search_getaddrinfo+:} false; then :
12435     $as_echo_n "(cached) " >&6
12436     else
12437     ac_func_search_save_LIBS=$LIBS
12438     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439     /* end confdefs.h. */
12440    
12441     /* Override any GCC internal prototype to avoid an error.
12442     Use char because int might match the return type of a GCC
12443     builtin and then its argument prototype would still apply. */
12444     #ifdef __cplusplus
12445     extern "C"
12446     #endif
12447     char getaddrinfo ();
12448     int
12449     main ()
12450     {
12451     return getaddrinfo ();
12452     ;
12453     return 0;
12454     }
12455     _ACEOF
12456     for ac_lib in '' nsl; do
12457     if test -z "$ac_lib"; then
12458     ac_res="none required"
12459     else
12460     ac_res=-l$ac_lib
12461     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12462     fi
12463     if ac_fn_c_try_link "$LINENO"; then :
12464     ac_cv_search_getaddrinfo=$ac_res
12465     fi
12466     rm -f core conftest.err conftest.$ac_objext \
12467     conftest$ac_exeext
12468     if ${ac_cv_search_getaddrinfo+:} false; then :
12469     break
12470     fi
12471     done
12472     if ${ac_cv_search_getaddrinfo+:} false; then :
12473    
12474     else
12475     ac_cv_search_getaddrinfo=no
12476     fi
12477     rm conftest.$ac_ext
12478     LIBS=$ac_func_search_save_LIBS
12479     fi
12480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12481     $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12482     ac_res=$ac_cv_search_getaddrinfo
12483     if test "$ac_res" != no; then :
12484     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12485    
12486     fi
12487    
12488     fi
12489    
12490     ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12491     if test "x$ac_cv_func_getnameinfo" = xyes; then :
12492    
12493     else
12494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12495     $as_echo_n "checking for library containing getnameinfo... " >&6; }
12496     if ${ac_cv_search_getnameinfo+:} false; then :
12497     $as_echo_n "(cached) " >&6
12498     else
12499     ac_func_search_save_LIBS=$LIBS
12500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501     /* end confdefs.h. */
12502    
12503     /* Override any GCC internal prototype to avoid an error.
12504     Use char because int might match the return type of a GCC
12505     builtin and then its argument prototype would still apply. */
12506     #ifdef __cplusplus
12507     extern "C"
12508     #endif
12509     char getnameinfo ();
12510     int
12511     main ()
12512     {
12513     return getnameinfo ();
12514     ;
12515     return 0;
12516     }
12517     _ACEOF
12518     for ac_lib in '' nsl; do
12519     if test -z "$ac_lib"; then
12520     ac_res="none required"
12521     else
12522     ac_res=-l$ac_lib
12523     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12524     fi
12525     if ac_fn_c_try_link "$LINENO"; then :
12526     ac_cv_search_getnameinfo=$ac_res
12527     fi
12528     rm -f core conftest.err conftest.$ac_objext \
12529     conftest$ac_exeext
12530     if ${ac_cv_search_getnameinfo+:} false; then :
12531     break
12532     fi
12533     done
12534     if ${ac_cv_search_getnameinfo+:} false; then :
12535    
12536     else
12537     ac_cv_search_getnameinfo=no
12538     fi
12539     rm conftest.$ac_ext
12540     LIBS=$ac_func_search_save_LIBS
12541     fi
12542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12543     $as_echo "$ac_cv_search_getnameinfo" >&6; }
12544     ac_res=$ac_cv_search_getnameinfo
12545     if test "$ac_res" != no; then :
12546     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12547    
12548     fi
12549    
12550     fi
12551    
12552    
12553 michael 5172 for ac_func in strlcpy strlcat socket
12554 michael 5059 do :
12555     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12556     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12557     if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12558     cat >>confdefs.h <<_ACEOF
12559     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12560 michael 5052 _ACEOF
12561    
12562     fi
12563 michael 5059 done
12564 michael 5052
12565    
12566 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12567     $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12568     if ${ac_cv_c_bigendian+:} false; then :
12569     $as_echo_n "(cached) " >&6
12570 michael 5052 else
12571 michael 5059 ac_cv_c_bigendian=unknown
12572     # See if we're dealing with a universal compiler.
12573     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 michael 5052 /* end confdefs.h. */
12575 michael 5059 #ifndef __APPLE_CC__
12576     not a universal capable compiler
12577     #endif
12578     typedef int dummy;
12579 michael 5052
12580     _ACEOF
12581 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12582 michael 5052
12583 michael 5059 # Check for potential -arch flags. It is not universal unless
12584     # there are at least two -arch flags with different values.
12585     ac_arch=
12586     ac_prev=
12587     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12588     if test -n "$ac_prev"; then
12589     case $ac_word in
12590     i?86 | x86_64 | ppc | ppc64)
12591     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12592     ac_arch=$ac_word
12593     else
12594     ac_cv_c_bigendian=universal
12595     break
12596     fi
12597     ;;
12598     esac
12599     ac_prev=
12600     elif test "x$ac_word" = "x-arch"; then
12601     ac_prev=arch
12602     fi
12603     done
12604 michael 5052 fi
12605 michael 5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606     if test $ac_cv_c_bigendian = unknown; then
12607     # See if sys/param.h defines the BYTE_ORDER macro.
12608     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 michael 5052 /* end confdefs.h. */
12610     #include <sys/types.h>
12611 michael 5059 #include <sys/param.h>
12612 michael 5052
12613     int
12614     main ()
12615     {
12616 michael 5059 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12617     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12618     && LITTLE_ENDIAN)
12619     bogus endian macros
12620     #endif
12621 michael 5052
12622     ;
12623     return 0;
12624     }
12625     _ACEOF
12626 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12627 michael 5052 # It does; now see whether it defined to BIG_ENDIAN or not.
12628 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 michael 5052 /* end confdefs.h. */
12630     #include <sys/types.h>
12631 michael 5059 #include <sys/param.h>
12632 michael 5052
12633     int
12634     main ()
12635     {
12636     #if BYTE_ORDER != BIG_ENDIAN
12637 michael 5059 not big endian
12638     #endif
12639 michael 5052
12640     ;
12641     return 0;
12642     }
12643     _ACEOF
12644 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12645 michael 5052 ac_cv_c_bigendian=yes
12646     else
12647     ac_cv_c_bigendian=no
12648     fi
12649     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650     fi
12651     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 michael 5059 fi
12653     if test $ac_cv_c_bigendian = unknown; then
12654     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 michael 5052 /* end confdefs.h. */
12657 michael 5059 #include <limits.h>
12658 michael 5052
12659     int
12660     main ()
12661     {
12662 michael 5059 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12663     bogus endian macros
12664     #endif
12665 michael 5052
12666     ;
12667     return 0;
12668     }
12669     _ACEOF
12670 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12671     # It does; now see whether it defined to _BIG_ENDIAN or not.
12672     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 michael 5052 /* end confdefs.h. */
12674 michael 5059 #include <limits.h>
12675 michael 5052
12676     int
12677     main ()
12678     {
12679 michael 5059 #ifndef _BIG_ENDIAN
12680     not big endian
12681     #endif
12682 michael 5052
12683     ;
12684     return 0;
12685     }
12686     _ACEOF
12687 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12688     ac_cv_c_bigendian=yes
12689 michael 5052 else
12690 michael 5059 ac_cv_c_bigendian=no
12691 michael 5052 fi
12692     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693     fi
12694     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 michael 5059 fi
12696     if test $ac_cv_c_bigendian = unknown; then
12697     # Compile a test program.
12698     if test "$cross_compiling" = yes; then :
12699     # Try to guess by grepping values from an object file.
12700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701     /* end confdefs.h. */
12702     short int ascii_mm[] =
12703     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12704     short int ascii_ii[] =
12705     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12706     int use_ascii (int i) {
12707     return ascii_mm[i] + ascii_ii[i];
12708     }
12709     short int ebcdic_ii[] =
12710     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12711     short int ebcdic_mm[] =
12712     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12713     int use_ebcdic (int i) {
12714     return ebcdic_mm[i] + ebcdic_ii[i];
12715     }
12716     extern int foo;
12717 michael 5052
12718     int
12719     main ()
12720     {
12721 michael 5059 return use_ascii (foo) == use_ebcdic (foo);
12722 michael 5052 ;
12723     return 0;
12724     }
12725     _ACEOF
12726 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12727     if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12728     ac_cv_c_bigendian=yes
12729     fi
12730     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12731     if test "$ac_cv_c_bigendian" = unknown; then
12732     ac_cv_c_bigendian=no
12733     else
12734     # finding both strings is unlikely to happen, but who knows?
12735     ac_cv_c_bigendian=unknown
12736     fi
12737     fi
12738 michael 5052 fi
12739     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12740     else
12741 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742 michael 5052 /* end confdefs.h. */
12743     $ac_includes_default
12744     int
12745     main ()
12746     {
12747    
12748 michael 5059 /* Are we little or big endian? From Harbison&Steele. */
12749     union
12750     {
12751     long int l;
12752     char c[sizeof (long int)];
12753     } u;
12754     u.l = 1;
12755     return u.c[sizeof (long int) - 1] == 1;
12756 michael 5052
12757     ;
12758     return 0;
12759     }
12760     _ACEOF
12761 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
12762     ac_cv_c_bigendian=no
12763 michael 5052 else
12764 michael 5059 ac_cv_c_bigendian=yes
12765 michael 5052 fi
12766 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12767     conftest.$ac_objext conftest.beam conftest.$ac_ext
12768 michael 5052 fi
12769 michael 5059
12770     fi
12771 michael 5052 fi
12772 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12773     $as_echo "$ac_cv_c_bigendian" >&6; }
12774     case $ac_cv_c_bigendian in #(
12775     yes)
12776     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12777     ;; #(
12778     no)
12779     ;; #(
12780     universal)
12781 michael 5052
12782 michael 5059 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12783 michael 5052
12784 michael 5059 ;; #(
12785     *)
12786     as_fn_error $? "unknown endianness
12787     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12788     esac
12789 michael 5052
12790    
12791 michael 5260 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
12792 michael 5052
12793     cat >confcache <<\_ACEOF
12794     # This file is a shell script that caches the results of configure
12795     # tests run on this system so they can be shared between configure
12796     # scripts and configure runs, see configure's option --config-cache.
12797     # It is not useful on other systems. If it contains results you don't
12798     # want to keep, you may remove or edit it.
12799     #
12800     # config.status only pays attention to the cache file if you give it
12801     # the --recheck option to rerun configure.
12802     #
12803     # `ac_cv_env_foo' variables (set or unset) will be overridden when
12804     # loading this file, other *unset* `ac_cv_foo' will be assigned the
12805     # following values.
12806    
12807     _ACEOF
12808    
12809     # The following way of writing the cache mishandles newlines in values,
12810     # but we know of no workaround that is simple, portable, and efficient.
12811     # So, we kill variables containing newlines.
12812     # Ultrix sh set writes to stderr and can't be redirected directly,
12813     # and sets the high bit in the cache file unless we assign to the vars.
12814     (
12815     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12816     eval ac_val=\$$ac_var
12817     case $ac_val in #(
12818     *${as_nl}*)
12819     case $ac_var in #(
12820 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12821     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12822 michael 5052 esac
12823     case $ac_var in #(
12824     _ | IFS | as_nl) ;; #(
12825 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12826     *) { eval $ac_var=; unset $ac_var;} ;;
12827 michael 5052 esac ;;
12828     esac
12829     done
12830    
12831     (set) 2>&1 |
12832     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12833     *${as_nl}ac_space=\ *)
12834 michael 5059 # `set' does not quote correctly, so add quotes: double-quote
12835     # substitution turns \\\\ into \\, and sed turns \\ into \.
12836 michael 5052 sed -n \
12837     "s/'/'\\\\''/g;
12838     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12839     ;; #(
12840     *)
12841     # `set' quotes correctly as required by POSIX, so do not add quotes.
12842     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12843     ;;
12844     esac |
12845     sort
12846     ) |
12847     sed '
12848     /^ac_cv_env_/b end
12849     t clear
12850     :clear
12851     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12852     t end
12853     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12854     :end' >>confcache
12855     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12856     if test -w "$cache_file"; then
12857 michael 5059 if test "x$cache_file" != "x/dev/null"; then
12858     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12859     $as_echo "$as_me: updating cache $cache_file" >&6;}
12860     if test ! -f "$cache_file" || test -h "$cache_file"; then
12861     cat confcache >"$cache_file"
12862     else
12863     case $cache_file in #(
12864     */* | ?:*)
12865     mv -f confcache "$cache_file"$$ &&
12866     mv -f "$cache_file"$$ "$cache_file" ;; #(
12867     *)
12868     mv -f confcache "$cache_file" ;;
12869     esac
12870     fi
12871     fi
12872 michael 5052 else
12873 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12874     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12875 michael 5052 fi
12876     fi
12877     rm -f confcache
12878    
12879     test "x$prefix" = xNONE && prefix=$ac_default_prefix
12880     # Let make expand exec_prefix.
12881     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12882    
12883     DEFS=-DHAVE_CONFIG_H
12884    
12885     ac_libobjs=
12886     ac_ltlibobjs=
12887 michael 5145 U=
12888 michael 5052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12889     # 1. Remove the extension, and $U if already installed.
12890     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12891 michael 5059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12892 michael 5052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12893     # will be set to the directory where LIBOBJS objects are built.
12894 michael 5059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12895     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12896 michael 5052 done
12897     LIBOBJS=$ac_libobjs
12898    
12899     LTLIBOBJS=$ac_ltlibobjs
12900    
12901    
12902 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12903     $as_echo_n "checking that generated files are newer than configure... " >&6; }
12904     if test -n "$am_sleep_pid"; then
12905     # Hide warnings about reused PIDs.
12906     wait $am_sleep_pid 2>/dev/null
12907     fi
12908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12909     $as_echo "done" >&6; }
12910     if test -n "$EXEEXT"; then
12911     am__EXEEXT_TRUE=
12912     am__EXEEXT_FALSE='#'
12913     else
12914     am__EXEEXT_TRUE='#'
12915     am__EXEEXT_FALSE=
12916     fi
12917    
12918 michael 5052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12919 michael 5059 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12920     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12921 michael 5052 fi
12922     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12923 michael 5059 as_fn_error $? "conditional \"AMDEP\" was never defined.
12924     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12925 michael 5052 fi
12926     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12927 michael 5059 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12928     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12929 michael 5052 fi
12930    
12931 michael 5059
12932     : "${CONFIG_STATUS=./config.status}"
12933     ac_write_fail=0
12934 michael 5052 ac_clean_files_save=$ac_clean_files
12935     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12936 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12937     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12938     as_write_fail=0
12939     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12940 michael 5052 #! $SHELL
12941     # Generated by $as_me.
12942     # Run this file to recreate the current configuration.
12943     # Compiler output produced by configure, useful for debugging
12944     # configure, is in config.log if it exists.
12945    
12946     debug=false
12947     ac_cs_recheck=false
12948     ac_cs_silent=false
12949 michael 5059
12950 michael 5052 SHELL=\${CONFIG_SHELL-$SHELL}
12951 michael 5059 export SHELL
12952     _ASEOF
12953     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12954     ## -------------------- ##
12955     ## M4sh Initialization. ##
12956     ## -------------------- ##
12957 michael 5052
12958 michael 5059 # Be more Bourne compatible
12959     DUALCASE=1; export DUALCASE # for MKS sh
12960     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12961 michael 5052 emulate sh
12962     NULLCMD=:
12963 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12964 michael 5052 # is contrary to our usage. Disable this feature.
12965     alias -g '${1+"$@"}'='"$@"'
12966     setopt NO_GLOB_SUBST
12967     else
12968 michael 5059 case `(set -o) 2>/dev/null` in #(
12969     *posix*) :
12970     set -o posix ;; #(
12971     *) :
12972     ;;
12973     esac
12974 michael 5052 fi
12975    
12976    
12977 michael 5059 as_nl='
12978     '
12979     export as_nl
12980     # Printing a long string crashes Solaris 7 /usr/bin/printf.
12981     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12982     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12983     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12984     # Prefer a ksh shell builtin over an external printf program on Solaris,
12985     # but without wasting forks for bash or zsh.
12986     if test -z "$BASH_VERSION$ZSH_VERSION" \
12987     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12988     as_echo='print -r --'
12989     as_echo_n='print -rn --'
12990     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12991     as_echo='printf %s\n'
12992     as_echo_n='printf %s'
12993     else
12994     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12995     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12996     as_echo_n='/usr/ucb/echo -n'
12997 michael 5052 else
12998 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12999     as_echo_n_body='eval
13000     arg=$1;
13001     case $arg in #(
13002     *"$as_nl"*)
13003     expr "X$arg" : "X\\(.*\\)$as_nl";
13004     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13005     esac;
13006     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13007     '
13008     export as_echo_n_body
13009     as_echo_n='sh -c $as_echo_n_body as_echo'
13010 michael 5052 fi
13011 michael 5059 export as_echo_body
13012     as_echo='sh -c $as_echo_body as_echo'
13013 michael 5052 fi
13014    
13015 michael 5059 # The user is always right.
13016     if test "${PATH_SEPARATOR+set}" != set; then
13017     PATH_SEPARATOR=:
13018     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13019     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13020     PATH_SEPARATOR=';'
13021     }
13022 michael 5052 fi
13023    
13024    
13025     # IFS
13026     # We need space, tab and new line, in precisely that order. Quoting is
13027     # there to prevent editors from complaining about space-tab.
13028     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13029     # splitting by setting IFS to empty value.)
13030     IFS=" "" $as_nl"
13031    
13032     # Find who we are. Look in the path if we contain no directory separator.
13033 michael 5059 as_myself=
13034     case $0 in #((
13035 michael 5052 *[\\/]* ) as_myself=$0 ;;
13036     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037     for as_dir in $PATH
13038     do
13039     IFS=$as_save_IFS
13040     test -z "$as_dir" && as_dir=.
13041 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13042     done
13043 michael 5052 IFS=$as_save_IFS
13044    
13045     ;;
13046     esac
13047     # We did not find ourselves, most probably we were run as `sh COMMAND'
13048     # in which case we are not to be found in the path.
13049     if test "x$as_myself" = x; then
13050     as_myself=$0
13051     fi
13052     if test ! -f "$as_myself"; then
13053 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13054     exit 1
13055 michael 5052 fi
13056    
13057 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
13058     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13059     # suppresses any "Segmentation fault" message there. '((' could
13060     # trigger a bug in pdksh 5.2.14.
13061     for as_var in BASH_ENV ENV MAIL MAILPATH
13062     do eval test x\${$as_var+set} = xset \
13063     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13064 michael 5052 done
13065     PS1='$ '
13066     PS2='> '
13067     PS4='+ '
13068    
13069     # NLS nuisances.
13070 michael 5059 LC_ALL=C
13071     export LC_ALL
13072     LANGUAGE=C
13073     export LANGUAGE
13074    
13075     # CDPATH.
13076     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13077    
13078    
13079     # as_fn_error STATUS ERROR [LINENO LOG_FD]
13080     # ----------------------------------------
13081     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13082     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13083     # script with STATUS, using 1 if that was 0.
13084     as_fn_error ()
13085     {
13086     as_status=$1; test $as_status -eq 0 && as_status=1
13087     if test "$4"; then
13088     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13089     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13090 michael 5052 fi
13091 michael 5059 $as_echo "$as_me: error: $2" >&2
13092     as_fn_exit $as_status
13093     } # as_fn_error
13094 michael 5052
13095 michael 5059
13096     # as_fn_set_status STATUS
13097     # -----------------------
13098     # Set $? to STATUS, without forking.
13099     as_fn_set_status ()
13100     {
13101     return $1
13102     } # as_fn_set_status
13103    
13104     # as_fn_exit STATUS
13105     # -----------------
13106     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13107     as_fn_exit ()
13108     {
13109     set +e
13110     as_fn_set_status $1
13111     exit $1
13112     } # as_fn_exit
13113    
13114     # as_fn_unset VAR
13115     # ---------------
13116     # Portably unset VAR.
13117     as_fn_unset ()
13118     {
13119     { eval $1=; unset $1;}
13120     }
13121     as_unset=as_fn_unset
13122     # as_fn_append VAR VALUE
13123     # ----------------------
13124     # Append the text in VALUE to the end of the definition contained in VAR. Take
13125     # advantage of any shell optimizations that allow amortized linear growth over
13126     # repeated appends, instead of the typical quadratic growth present in naive
13127     # implementations.
13128     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13129     eval 'as_fn_append ()
13130     {
13131     eval $1+=\$2
13132     }'
13133     else
13134     as_fn_append ()
13135     {
13136     eval $1=\$$1\$2
13137     }
13138     fi # as_fn_append
13139    
13140     # as_fn_arith ARG...
13141     # ------------------
13142     # Perform arithmetic evaluation on the ARGs, and store the result in the
13143     # global $as_val. Take advantage of shells that can avoid forks. The arguments
13144     # must be portable across $(()) and expr.
13145     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13146     eval 'as_fn_arith ()
13147     {
13148     as_val=$(( $* ))
13149     }'
13150     else
13151     as_fn_arith ()
13152     {
13153     as_val=`expr "$@" || test $? -eq 1`
13154     }
13155     fi # as_fn_arith
13156    
13157    
13158 michael 5052 if expr a : '\(a\)' >/dev/null 2>&1 &&
13159     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13160     as_expr=expr
13161     else
13162     as_expr=false
13163     fi
13164    
13165     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13166     as_basename=basename
13167     else
13168     as_basename=false
13169     fi
13170    
13171 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13172     as_dirname=dirname
13173     else
13174     as_dirname=false
13175     fi
13176 michael 5052
13177     as_me=`$as_basename -- "$0" ||
13178     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13179     X"$0" : 'X\(//\)$' \| \
13180     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13181 michael 5059 $as_echo X/"$0" |
13182 michael 5052 sed '/^.*\/\([^/][^/]*\)\/*$/{
13183     s//\1/
13184     q
13185     }
13186     /^X\/\(\/\/\)$/{
13187     s//\1/
13188     q
13189     }
13190     /^X\/\(\/\).*/{
13191     s//\1/
13192     q
13193     }
13194     s/.*/./; q'`
13195    
13196 michael 5059 # Avoid depending upon Character Ranges.
13197     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13198     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13199     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13200     as_cr_digits='0123456789'
13201     as_cr_alnum=$as_cr_Letters$as_cr_digits
13202 michael 5052
13203     ECHO_C= ECHO_N= ECHO_T=
13204 michael 5059 case `echo -n x` in #(((((
13205 michael 5052 -n*)
13206 michael 5059 case `echo 'xy\c'` in
13207 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13208 michael 5059 xy) ECHO_C='\c';;
13209     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13210     ECHO_T=' ';;
13211 michael 5052 esac;;
13212     *)
13213     ECHO_N='-n';;
13214     esac
13215    
13216     rm -f conf$$ conf$$.exe conf$$.file
13217     if test -d conf$$.dir; then
13218     rm -f conf$$.dir/conf$$.file
13219     else
13220     rm -f conf$$.dir
13221 michael 5059 mkdir conf$$.dir 2>/dev/null
13222 michael 5052 fi
13223 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
13224     if ln -s conf$$.file conf$$ 2>/dev/null; then
13225     as_ln_s='ln -s'
13226     # ... but there are two gotchas:
13227     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13228     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13229     # In both cases, we have to default to `cp -pR'.
13230     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13231     as_ln_s='cp -pR'
13232     elif ln conf$$.file conf$$ 2>/dev/null; then
13233     as_ln_s=ln
13234     else
13235     as_ln_s='cp -pR'
13236     fi
13237 michael 5052 else
13238 michael 5059 as_ln_s='cp -pR'
13239 michael 5052 fi
13240     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13241     rmdir conf$$.dir 2>/dev/null
13242    
13243 michael 5059
13244     # as_fn_mkdir_p
13245     # -------------
13246     # Create "$as_dir" as a directory, including parents if necessary.
13247     as_fn_mkdir_p ()
13248     {
13249    
13250     case $as_dir in #(
13251     -*) as_dir=./$as_dir;;
13252     esac
13253     test -d "$as_dir" || eval $as_mkdir_p || {
13254     as_dirs=
13255     while :; do
13256     case $as_dir in #(
13257     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13258     *) as_qdir=$as_dir;;
13259     esac
13260     as_dirs="'$as_qdir' $as_dirs"
13261     as_dir=`$as_dirname -- "$as_dir" ||
13262     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13263     X"$as_dir" : 'X\(//\)[^/]' \| \
13264     X"$as_dir" : 'X\(//\)$' \| \
13265     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13266     $as_echo X"$as_dir" |
13267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13268     s//\1/
13269     q
13270     }
13271     /^X\(\/\/\)[^/].*/{
13272     s//\1/
13273     q
13274     }
13275     /^X\(\/\/\)$/{
13276     s//\1/
13277     q
13278     }
13279     /^X\(\/\).*/{
13280     s//\1/
13281     q
13282     }
13283     s/.*/./; q'`
13284     test -d "$as_dir" && break
13285     done
13286     test -z "$as_dirs" || eval "mkdir $as_dirs"
13287     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13288    
13289    
13290     } # as_fn_mkdir_p
13291 michael 5052 if mkdir -p . 2>/dev/null; then
13292 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
13293 michael 5052 else
13294     test -d ./-p && rmdir ./-p
13295     as_mkdir_p=false
13296     fi
13297    
13298    
13299 michael 5059 # as_fn_executable_p FILE
13300     # -----------------------
13301     # Test if FILE is an executable regular file.
13302     as_fn_executable_p ()
13303     {
13304     test -f "$1" && test -x "$1"
13305     } # as_fn_executable_p
13306     as_test_x='test -x'
13307     as_executable_p=as_fn_executable_p
13308    
13309 michael 5052 # Sed expression to map a string onto a valid CPP name.
13310     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13311    
13312     # Sed expression to map a string onto a valid variable name.
13313     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13314    
13315    
13316     exec 6>&1
13317 michael 5059 ## ----------------------------------- ##
13318     ## Main body of $CONFIG_STATUS script. ##
13319     ## ----------------------------------- ##
13320     _ASEOF
13321     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13322 michael 5052
13323 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13324     # Save the log message, to keep $0 and so on meaningful, and to
13325 michael 5052 # report actual input values of CONFIG_FILES etc. instead of their
13326     # values after options handling.
13327     ac_log="
13328 michael 5061 This file was extended by hopm $as_me 1.0.0beta1, which was
13329 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
13330 michael 5052
13331     CONFIG_FILES = $CONFIG_FILES
13332     CONFIG_HEADERS = $CONFIG_HEADERS
13333     CONFIG_LINKS = $CONFIG_LINKS
13334     CONFIG_COMMANDS = $CONFIG_COMMANDS
13335     $ $0 $@
13336    
13337     on `(hostname || uname -n) 2>/dev/null | sed 1q`
13338     "
13339    
13340     _ACEOF
13341    
13342 michael 5059 case $ac_config_files in *"
13343     "*) set x $ac_config_files; shift; ac_config_files=$*;;
13344     esac
13345    
13346     case $ac_config_headers in *"
13347     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13348     esac
13349    
13350    
13351     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13352 michael 5052 # Files that config.status was made for.
13353     config_files="$ac_config_files"
13354     config_headers="$ac_config_headers"
13355     config_commands="$ac_config_commands"
13356    
13357     _ACEOF
13358    
13359 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13360 michael 5052 ac_cs_usage="\
13361 michael 5059 \`$as_me' instantiates files and other configuration actions
13362     from templates according to the current configuration. Unless the files
13363     and actions are specified as TAGs, all are instantiated by default.
13364 michael 5052
13365 michael 5059 Usage: $0 [OPTION]... [TAG]...
13366 michael 5052
13367     -h, --help print this help, then exit
13368 michael 5059 -V, --version print version number and configuration settings, then exit
13369     --config print configuration, then exit
13370     -q, --quiet, --silent
13371     do not print progress messages
13372 michael 5052 -d, --debug don't remove temporary files
13373     --recheck update $as_me by reconfiguring in the same conditions
13374 michael 5059 --file=FILE[:TEMPLATE]
13375     instantiate the configuration file FILE
13376     --header=FILE[:TEMPLATE]
13377     instantiate the configuration header FILE
13378 michael 5052
13379     Configuration files:
13380     $config_files
13381    
13382     Configuration headers:
13383     $config_headers
13384    
13385     Configuration commands:
13386     $config_commands
13387    
13388 michael 5059 Report bugs to the package provider."
13389 michael 5052
13390     _ACEOF
13391 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13392     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13393 michael 5052 ac_cs_version="\\
13394 michael 5061 hopm config.status 1.0.0beta1
13395 michael 5059 configured by $0, generated by GNU Autoconf 2.69,
13396     with options \\"\$ac_cs_config\\"
13397 michael 5052
13398 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
13399 michael 5052 This config.status script is free software; the Free Software Foundation
13400     gives unlimited permission to copy, distribute and modify it."
13401    
13402     ac_pwd='$ac_pwd'
13403     srcdir='$srcdir'
13404     INSTALL='$INSTALL'
13405 michael 5059 MKDIR_P='$MKDIR_P'
13406     AWK='$AWK'
13407     test -n "\$AWK" || AWK=awk
13408 michael 5052 _ACEOF
13409    
13410 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13411     # The default lists apply if the user does not specify any file.
13412 michael 5052 ac_need_defaults=:
13413     while test $# != 0
13414     do
13415     case $1 in
13416 michael 5059 --*=?*)
13417 michael 5052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13418     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13419     ac_shift=:
13420     ;;
13421 michael 5059 --*=)
13422     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13423     ac_optarg=
13424     ac_shift=:
13425     ;;
13426 michael 5052 *)
13427     ac_option=$1
13428     ac_optarg=$2
13429     ac_shift=shift
13430     ;;
13431     esac
13432    
13433     case $ac_option in
13434     # Handling of the options.
13435     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13436     ac_cs_recheck=: ;;
13437     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13438 michael 5059 $as_echo "$ac_cs_version"; exit ;;
13439     --config | --confi | --conf | --con | --co | --c )
13440     $as_echo "$ac_cs_config"; exit ;;
13441 michael 5052 --debug | --debu | --deb | --de | --d | -d )
13442     debug=: ;;
13443     --file | --fil | --fi | --f )
13444     $ac_shift
13445 michael 5059 case $ac_optarg in
13446     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13447     '') as_fn_error $? "missing file argument" ;;
13448     esac
13449     as_fn_append CONFIG_FILES " '$ac_optarg'"
13450 michael 5052 ac_need_defaults=false;;
13451     --header | --heade | --head | --hea )
13452     $ac_shift
13453 michael 5059 case $ac_optarg in
13454     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13455     esac
13456     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13457 michael 5052 ac_need_defaults=false;;
13458     --he | --h)
13459     # Conflict between --help and --header
13460 michael 5059 as_fn_error $? "ambiguous option: \`$1'
13461     Try \`$0 --help' for more information.";;
13462 michael 5052 --help | --hel | -h )
13463 michael 5059 $as_echo "$ac_cs_usage"; exit ;;
13464 michael 5052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13465     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13466     ac_cs_silent=: ;;
13467    
13468     # This is an error.
13469 michael 5059 -*) as_fn_error $? "unrecognized option: \`$1'
13470     Try \`$0 --help' for more information." ;;
13471 michael 5052
13472 michael 5059 *) as_fn_append ac_config_targets " $1"
13473 michael 5052 ac_need_defaults=false ;;
13474    
13475     esac
13476     shift
13477     done
13478    
13479     ac_configure_extra_args=
13480    
13481     if $ac_cs_silent; then
13482     exec 6>/dev/null
13483     ac_configure_extra_args="$ac_configure_extra_args --silent"
13484     fi
13485    
13486     _ACEOF
13487 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13488 michael 5052 if \$ac_cs_recheck; then
13489 michael 5059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13490     shift
13491     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13492     CONFIG_SHELL='$SHELL'
13493 michael 5052 export CONFIG_SHELL
13494 michael 5059 exec "\$@"
13495 michael 5052 fi
13496    
13497     _ACEOF
13498 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13499 michael 5052 exec 5>>config.log
13500     {
13501     echo
13502     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13503     ## Running $as_me. ##
13504     _ASBOX
13505 michael 5059 $as_echo "$ac_log"
13506 michael 5052 } >&5
13507    
13508     _ACEOF
13509 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13510 michael 5052 #
13511     # INIT-COMMANDS
13512     #
13513     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13514    
13515 michael 5059
13516     # The HP-UX ksh and POSIX shell print the target directory to stdout
13517     # if CDPATH is set.
13518     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13519    
13520     sed_quote_subst='$sed_quote_subst'
13521     double_quote_subst='$double_quote_subst'
13522     delay_variable_subst='$delay_variable_subst'
13523     macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13524     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13525     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13526     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13527     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13528     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13529     shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13530     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13531     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13532     PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13533     host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13534     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13535     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13536     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13537     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13538     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13539     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13540     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13541     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13542     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13543     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13544     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13545     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13546     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13547     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13548     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13549     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13550     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13551     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13552     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13553     lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13554     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13555     reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13556     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13557     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13558     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13559     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13560     file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13561     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13562     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13563     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13564     AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13565     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13566     archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13567     STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13568     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13569     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13570     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13571     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13572     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13573     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13574     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13575     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13576     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13577     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13578     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13579     lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13580     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13581     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"`'
13582     lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13583     nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13584     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13585     lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13586     objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13587     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13588     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13589     lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13590     lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13591     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13592     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13593     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13594     MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13595     DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13596     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13597     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13598     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13599     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13600     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13601     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13602     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13603     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13604     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13605     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13606     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13607     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13608     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13609     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13610     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13611     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13612     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13613     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13614     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13615     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13616     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13617     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13618     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13619     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13620     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13621     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13622     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13623     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13624     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13625     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13626     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13627     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13628     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13629     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13630     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13631     postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13632     file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13633     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13634     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13635     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13636     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13637     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13638     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13639     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13640     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13641     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13642     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13643     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13644     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13645     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13646     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13647     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13648     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13649     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13650     sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13651     hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13652     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13653     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13654     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13655     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13656     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13657    
13658     LTCC='$LTCC'
13659     LTCFLAGS='$LTCFLAGS'
13660     compiler='$compiler_DEFAULT'
13661    
13662     # A function that is used when there is no print builtin or printf.
13663     func_fallback_echo ()
13664     {
13665     eval 'cat <<_LTECHO_EOF
13666     \$1
13667     _LTECHO_EOF'
13668     }
13669    
13670     # Quote evaled strings.
13671     for var in SHELL \
13672     ECHO \
13673     PATH_SEPARATOR \
13674     SED \
13675     GREP \
13676     EGREP \
13677     FGREP \
13678     LD \
13679     NM \
13680     LN_S \
13681     lt_SP2NL \
13682     lt_NL2SP \
13683     reload_flag \
13684     OBJDUMP \
13685     deplibs_check_method \
13686     file_magic_cmd \
13687     file_magic_glob \
13688     want_nocaseglob \
13689     DLLTOOL \
13690     sharedlib_from_linklib_cmd \
13691     AR \
13692     AR_FLAGS \
13693     archiver_list_spec \
13694     STRIP \
13695     RANLIB \
13696     CC \
13697     CFLAGS \
13698     compiler \
13699     lt_cv_sys_global_symbol_pipe \
13700     lt_cv_sys_global_symbol_to_cdecl \
13701     lt_cv_sys_global_symbol_to_import \
13702     lt_cv_sys_global_symbol_to_c_name_address \
13703     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13704     lt_cv_nm_interface \
13705     nm_file_list_spec \
13706     lt_cv_truncate_bin \
13707     lt_prog_compiler_no_builtin_flag \
13708     lt_prog_compiler_pic \
13709     lt_prog_compiler_wl \
13710     lt_prog_compiler_static \
13711     lt_cv_prog_compiler_c_o \
13712     need_locks \
13713     MANIFEST_TOOL \
13714     DSYMUTIL \
13715     NMEDIT \
13716     LIPO \
13717     OTOOL \
13718     OTOOL64 \
13719     shrext_cmds \
13720     export_dynamic_flag_spec \
13721     whole_archive_flag_spec \
13722     compiler_needs_object \
13723     with_gnu_ld \
13724     allow_undefined_flag \
13725     no_undefined_flag \
13726     hardcode_libdir_flag_spec \
13727     hardcode_libdir_separator \
13728     exclude_expsyms \
13729     include_expsyms \
13730     file_list_spec \
13731     variables_saved_for_relink \
13732     libname_spec \
13733     library_names_spec \
13734     soname_spec \
13735     install_override_mode \
13736     finish_eval \
13737     old_striplib \
13738     striplib; do
13739     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13740     *[\\\\\\\`\\"\\\$]*)
13741     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13742     ;;
13743     *)
13744     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13745     ;;
13746     esac
13747     done
13748    
13749     # Double-quote double-evaled strings.
13750     for var in reload_cmds \
13751     old_postinstall_cmds \
13752     old_postuninstall_cmds \
13753     old_archive_cmds \
13754     extract_expsyms_cmds \
13755     old_archive_from_new_cmds \
13756     old_archive_from_expsyms_cmds \
13757     archive_cmds \
13758     archive_expsym_cmds \
13759     module_cmds \
13760     module_expsym_cmds \
13761     export_symbols_cmds \
13762     prelink_cmds \
13763     postlink_cmds \
13764     postinstall_cmds \
13765     postuninstall_cmds \
13766     finish_cmds \
13767     sys_lib_search_path_spec \
13768     sys_lib_dlsearch_path_spec; do
13769     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13770     *[\\\\\\\`\\"\\\$]*)
13771     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13772     ;;
13773     *)
13774     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13775     ;;
13776     esac
13777     done
13778    
13779     ac_aux_dir='$ac_aux_dir'
13780    
13781     # See if we are running on zsh, and set the options that allow our
13782     # commands through without removal of \ escapes INIT.
13783     if test -n "\${ZSH_VERSION+set}"; then
13784     setopt NO_GLOB_SUBST
13785     fi
13786    
13787    
13788     PACKAGE='$PACKAGE'
13789     VERSION='$VERSION'
13790     RM='$RM'
13791     ofile='$ofile'
13792    
13793    
13794    
13795    
13796 michael 5052 _ACEOF
13797    
13798 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13799 michael 5052
13800     # Handling of arguments.
13801     for ac_config_target in $ac_config_targets
13802     do
13803     case $ac_config_target in
13804     "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13805     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13806 michael 5059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13807 michael 5052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13808 michael 5065 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13809 michael 5052 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13810 michael 5260 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
13811     "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
13812 michael 5052
13813 michael 5059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13814 michael 5052 esac
13815     done
13816    
13817    
13818     # If the user did not use the arguments to specify the items to instantiate,
13819     # then the envvar interface is used. Set only those that are not.
13820     # We use the long form for the default assignment because of an extremely
13821     # bizarre bug on SunOS 4.1.3.
13822     if $ac_need_defaults; then
13823     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13824     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13825     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13826     fi
13827    
13828     # Have a temporary directory for convenience. Make it in the build tree
13829     # simply because there is no reason against having it here, and in addition,
13830     # creating and moving files from /tmp can sometimes cause problems.
13831     # Hook for its removal unless debugging.
13832     # Note that there is a small window in which the directory will not be cleaned:
13833     # after its creation but before its name has been assigned to `$tmp'.
13834     $debug ||
13835     {
13836 michael 5059 tmp= ac_tmp=
13837 michael 5052 trap 'exit_status=$?
13838 michael 5059 : "${ac_tmp:=$tmp}"
13839     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13840 michael 5052 ' 0
13841 michael 5059 trap 'as_fn_exit 1' 1 2 13 15
13842 michael 5052 }
13843     # Create a (secure) tmp directory for tmp files.
13844    
13845     {
13846     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13847 michael 5059 test -d "$tmp"
13848 michael 5052 } ||
13849     {
13850     tmp=./conf$$-$RANDOM
13851     (umask 077 && mkdir "$tmp")
13852 michael 5059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13853     ac_tmp=$tmp
13854 michael 5052
13855 michael 5059 # Set up the scripts for CONFIG_FILES section.
13856     # No need to generate them if there are no CONFIG_FILES.
13857     # This happens for instance with `./config.status config.h'.
13858 michael 5052 if test -n "$CONFIG_FILES"; then
13859    
13860 michael 5059
13861     ac_cr=`echo X | tr X '\015'`
13862     # On cygwin, bash can eat \r inside `` if the user requested igncr.
13863     # But we know of no other shell where ac_cr would be empty at this
13864     # point, so we can use a bashism as a fallback.
13865     if test "x$ac_cr" = x; then
13866     eval ac_cr=\$\'\\r\'
13867     fi
13868     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13869     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13870     ac_cs_awk_cr='\\r'
13871     else
13872     ac_cs_awk_cr=$ac_cr
13873     fi
13874    
13875     echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13876 michael 5052 _ACEOF
13877    
13878    
13879 michael 5059 {
13880     echo "cat >conf$$subs.awk <<_ACEOF" &&
13881     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13882     echo "_ACEOF"
13883     } >conf$$subs.sh ||
13884     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13885     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13886 michael 5052 ac_delim='%!_!# '
13887     for ac_last_try in false false false false false :; do
13888 michael 5059 . ./conf$$subs.sh ||
13889     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13890 michael 5052
13891 michael 5059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13892     if test $ac_delim_n = $ac_delim_num; then
13893 michael 5052 break
13894     elif $ac_last_try; then
13895 michael 5059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13896 michael 5052 else
13897     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13898     fi
13899     done
13900 michael 5059 rm -f conf$$subs.sh
13901 michael 5052
13902 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13903     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13904     _ACEOF
13905     sed -n '
13906     h
13907     s/^/S["/; s/!.*/"]=/
13908     p
13909     g
13910     s/^[^!]*!//
13911     :repl
13912     t repl
13913     s/'"$ac_delim"'$//
13914     t delim
13915     :nl
13916     h
13917     s/\(.\{148\}\)..*/\1/
13918     t more1
13919     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13920     p
13921     n
13922     b repl
13923     :more1
13924     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13925     p
13926     g
13927     s/.\{148\}//
13928     t nl
13929     :delim
13930     h
13931     s/\(.\{148\}\)..*/\1/
13932     t more2
13933     s/["\\]/\\&/g; s/^/"/; s/$/"/
13934     p
13935     b
13936     :more2
13937     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13938     p
13939     g
13940     s/.\{148\}//
13941     t delim
13942     ' <conf$$subs.awk | sed '
13943     /^[^""]/{
13944     N
13945     s/\n//
13946     }
13947     ' >>$CONFIG_STATUS || ac_write_fail=1
13948     rm -f conf$$subs.awk
13949     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13950     _ACAWK
13951     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13952     for (key in S) S_is_set[key] = 1
13953     FS = ""
13954 michael 5052
13955 michael 5059 }
13956     {
13957     line = $ 0
13958     nfields = split(line, field, "@")
13959     substed = 0
13960     len = length(field[1])
13961     for (i = 2; i < nfields; i++) {
13962     key = field[i]
13963     keylen = length(key)
13964     if (S_is_set[key]) {
13965     value = S[key]
13966     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13967     len += length(value) + length(field[++i])
13968     substed = 1
13969     } else
13970     len += 1 + keylen
13971     }
13972    
13973     print line
13974     }
13975    
13976     _ACAWK
13977 michael 5052 _ACEOF
13978 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13979     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13980     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13981     else
13982     cat
13983     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13984     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13985 michael 5052 _ACEOF
13986    
13987 michael 5059 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13988     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13989     # trailing colons and then remove the whole line if VPATH becomes empty
13990     # (actually we leave an empty line to preserve line numbers).
13991     if test "x$srcdir" = x.; then
13992     ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13993     h
13994     s///
13995     s/^/:/
13996     s/[ ]*$/:/
13997     s/:\$(srcdir):/:/g
13998     s/:\${srcdir}:/:/g
13999     s/:@srcdir@:/:/g
14000     s/^:*//
14001     s/:*$//
14002     x
14003     s/\(=[ ]*\).*/\1/
14004     G
14005     s/\n//
14006     s/^[^=]*=[ ]*$//
14007     }'
14008     fi
14009 michael 5052
14010 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14011     fi # test -n "$CONFIG_FILES"
14012    
14013     # Set up the scripts for CONFIG_HEADERS section.
14014     # No need to generate them if there are no CONFIG_HEADERS.
14015     # This happens for instance with `./config.status Makefile'.
14016     if test -n "$CONFIG_HEADERS"; then
14017     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14018     BEGIN {
14019 michael 5052 _ACEOF
14020    
14021 michael 5059 # Transform confdefs.h into an awk script `defines.awk', embedded as
14022     # here-document in config.status, that substitutes the proper values into
14023     # config.h.in to produce config.h.
14024    
14025     # Create a delimiter string that does not exist in confdefs.h, to ease
14026     # handling of long lines.
14027     ac_delim='%!_!# '
14028     for ac_last_try in false false :; do
14029     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14030     if test -z "$ac_tt"; then
14031 michael 5052 break
14032     elif $ac_last_try; then
14033 michael 5059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14034 michael 5052 else
14035     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14036     fi
14037     done
14038    
14039 michael 5059 # For the awk script, D is an array of macro values keyed by name,
14040     # likewise P contains macro parameters if any. Preserve backslash
14041     # newline sequences.
14042 michael 5052
14043 michael 5059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14044     sed -n '
14045     s/.\{148\}/&'"$ac_delim"'/g
14046     t rset
14047     :rset
14048     s/^[ ]*#[ ]*define[ ][ ]*/ /
14049     t def
14050     d
14051     :def
14052     s/\\$//
14053     t bsnl
14054     s/["\\]/\\&/g
14055     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14056     D["\1"]=" \3"/p
14057     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14058     d
14059     :bsnl
14060     s/["\\]/\\&/g
14061     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14062     D["\1"]=" \3\\\\\\n"\\/p
14063     t cont
14064     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14065     t cont
14066     d
14067     :cont
14068     n
14069     s/.\{148\}/&'"$ac_delim"'/g
14070     t clear
14071     :clear
14072     s/\\$//
14073     t bsnlc
14074     s/["\\]/\\&/g; s/^/"/; s/$/"/p
14075     d
14076     :bsnlc
14077     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14078     b cont
14079     ' <confdefs.h | sed '
14080     s/'"$ac_delim"'/"\\\
14081     "/g' >>$CONFIG_STATUS || ac_write_fail=1
14082    
14083     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14084     for (key in D) D_is_set[key] = 1
14085     FS = ""
14086     }
14087     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14088     line = \$ 0
14089     split(line, arg, " ")
14090     if (arg[1] == "#") {
14091     defundef = arg[2]
14092     mac1 = arg[3]
14093     } else {
14094     defundef = substr(arg[1], 2)
14095     mac1 = arg[2]
14096     }
14097     split(mac1, mac2, "(") #)
14098     macro = mac2[1]
14099     prefix = substr(line, 1, index(line, defundef) - 1)
14100     if (D_is_set[macro]) {
14101     # Preserve the white space surrounding the "#".
14102     print prefix "define", macro P[macro] D[macro]
14103     next
14104     } else {
14105     # Replace #undef with comments. This is necessary, for example,
14106     # in the case of _POSIX_SOURCE, which is predefined and required
14107     # on some systems where configure will not decide to define it.
14108     if (defundef == "undef") {
14109     print "/*", prefix defundef, macro, "*/"
14110     next
14111     }
14112     }
14113     }
14114     { print }
14115     _ACAWK
14116 michael 5052 _ACEOF
14117 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14118     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14119     fi # test -n "$CONFIG_HEADERS"
14120 michael 5052
14121    
14122 michael 5059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14123     shift
14124     for ac_tag
14125 michael 5052 do
14126     case $ac_tag in
14127     :[FHLC]) ac_mode=$ac_tag; continue;;
14128     esac
14129     case $ac_mode$ac_tag in
14130     :[FHL]*:*);;
14131 michael 5059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14132 michael 5052 :[FH]-) ac_tag=-:-;;
14133     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14134     esac
14135     ac_save_IFS=$IFS
14136     IFS=:
14137     set x $ac_tag
14138     IFS=$ac_save_IFS
14139     shift
14140     ac_file=$1
14141     shift
14142    
14143     case $ac_mode in
14144     :L) ac_source=$1;;
14145     :[FH])
14146     ac_file_inputs=
14147     for ac_f
14148     do
14149     case $ac_f in
14150 michael 5059 -) ac_f="$ac_tmp/stdin";;
14151 michael 5052 *) # Look for the file first in the build tree, then in the source tree
14152     # (if the path is not absolute). The absolute path cannot be DOS-style,
14153     # because $ac_f cannot contain `:'.
14154     test -f "$ac_f" ||
14155     case $ac_f in
14156     [\\/$]*) false;;
14157     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14158     esac ||
14159 michael 5059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14160 michael 5052 esac
14161 michael 5059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14162     as_fn_append ac_file_inputs " '$ac_f'"
14163 michael 5052 done
14164    
14165     # Let's still pretend it is `configure' which instantiates (i.e., don't
14166     # use $as_me), people would be surprised to read:
14167     # /* config.h. Generated by config.status. */
14168 michael 5059 configure_input='Generated from '`
14169     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14170     `' by configure.'
14171 michael 5052 if test x"$ac_file" != x-; then
14172     configure_input="$ac_file. $configure_input"
14173 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14174     $as_echo "$as_me: creating $ac_file" >&6;}
14175 michael 5052 fi
14176 michael 5059 # Neutralize special characters interpreted by sed in replacement strings.
14177     case $configure_input in #(
14178     *\&* | *\|* | *\\* )
14179     ac_sed_conf_input=`$as_echo "$configure_input" |
14180     sed 's/[\\\\&|]/\\\\&/g'`;; #(
14181     *) ac_sed_conf_input=$configure_input;;
14182     esac
14183 michael 5052
14184     case $ac_tag in
14185 michael 5059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14186     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14187 michael 5052 esac
14188     ;;
14189     esac
14190    
14191     ac_dir=`$as_dirname -- "$ac_file" ||
14192     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14193     X"$ac_file" : 'X\(//\)[^/]' \| \
14194     X"$ac_file" : 'X\(//\)$' \| \
14195     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14196 michael 5059 $as_echo X"$ac_file" |
14197 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14198     s//\1/
14199     q
14200     }
14201     /^X\(\/\/\)[^/].*/{
14202     s//\1/
14203     q
14204     }
14205     /^X\(\/\/\)$/{
14206     s//\1/
14207     q
14208     }
14209     /^X\(\/\).*/{
14210     s//\1/
14211     q
14212     }
14213     s/.*/./; q'`
14214 michael 5059 as_dir="$ac_dir"; as_fn_mkdir_p
14215 michael 5052 ac_builddir=.
14216    
14217     case "$ac_dir" in
14218     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14219     *)
14220 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14221 michael 5052 # A ".." for each directory in $ac_dir_suffix.
14222 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14223 michael 5052 case $ac_top_builddir_sub in
14224     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14225     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14226     esac ;;
14227     esac
14228     ac_abs_top_builddir=$ac_pwd
14229     ac_abs_builddir=$ac_pwd$ac_dir_suffix
14230     # for backward compatibility:
14231     ac_top_builddir=$ac_top_build_prefix
14232    
14233     case $srcdir in
14234     .) # We are building in place.
14235     ac_srcdir=.
14236     ac_top_srcdir=$ac_top_builddir_sub
14237     ac_abs_top_srcdir=$ac_pwd ;;
14238     [\\/]* | ?:[\\/]* ) # Absolute name.
14239     ac_srcdir=$srcdir$ac_dir_suffix;
14240     ac_top_srcdir=$srcdir
14241     ac_abs_top_srcdir=$srcdir ;;
14242     *) # Relative name.
14243     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14244     ac_top_srcdir=$ac_top_build_prefix$srcdir
14245     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14246     esac
14247     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14248    
14249    
14250     case $ac_mode in
14251     :F)
14252     #
14253     # CONFIG_FILE
14254     #
14255    
14256     case $INSTALL in
14257     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14258     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14259     esac
14260 michael 5059 ac_MKDIR_P=$MKDIR_P
14261     case $MKDIR_P in
14262     [\\/$]* | ?:[\\/]* ) ;;
14263     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14264     esac
14265 michael 5052 _ACEOF
14266    
14267 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14268 michael 5052 # If the template does not know about datarootdir, expand it.
14269     # FIXME: This hack should be removed a few years after 2.60.
14270     ac_datarootdir_hack=; ac_datarootdir_seen=
14271 michael 5059 ac_sed_dataroot='
14272     /datarootdir/ {
14273 michael 5052 p
14274     q
14275     }
14276     /@datadir@/p
14277     /@docdir@/p
14278     /@infodir@/p
14279     /@localedir@/p
14280 michael 5059 /@mandir@/p'
14281     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14282 michael 5052 *datarootdir*) ac_datarootdir_seen=yes;;
14283     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14284 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14285     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14286 michael 5052 _ACEOF
14287 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14288 michael 5052 ac_datarootdir_hack='
14289     s&@datadir@&$datadir&g
14290     s&@docdir@&$docdir&g
14291     s&@infodir@&$infodir&g
14292     s&@localedir@&$localedir&g
14293     s&@mandir@&$mandir&g
14294 michael 5059 s&\\\${datarootdir}&$datarootdir&g' ;;
14295 michael 5052 esac
14296     _ACEOF
14297    
14298     # Neutralize VPATH when `$srcdir' = `.'.
14299     # Shell code in configure.ac might set extrasub.
14300     # FIXME: do we really want to maintain this feature?
14301 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14302     ac_sed_extra="$ac_vpsub
14303 michael 5052 $extrasub
14304     _ACEOF
14305 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14306 michael 5052 :t
14307     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14308 michael 5059 s|@configure_input@|$ac_sed_conf_input|;t t
14309 michael 5052 s&@top_builddir@&$ac_top_builddir_sub&;t t
14310 michael 5059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14311 michael 5052 s&@srcdir@&$ac_srcdir&;t t
14312     s&@abs_srcdir@&$ac_abs_srcdir&;t t
14313     s&@top_srcdir@&$ac_top_srcdir&;t t
14314     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14315     s&@builddir@&$ac_builddir&;t t
14316     s&@abs_builddir@&$ac_abs_builddir&;t t
14317     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14318     s&@INSTALL@&$ac_INSTALL&;t t
14319 michael 5059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14320 michael 5052 $ac_datarootdir_hack
14321 michael 5059 "
14322     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14323     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14324 michael 5052
14325     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14326 michael 5059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14327     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14328     "$ac_tmp/out"`; test -z "$ac_out"; } &&
14329     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14330     which seems to be undefined. Please make sure it is defined" >&5
14331     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14332     which seems to be undefined. Please make sure it is defined" >&2;}
14333 michael 5052
14334 michael 5059 rm -f "$ac_tmp/stdin"
14335 michael 5052 case $ac_file in
14336 michael 5059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14337     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14338     esac \
14339     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14340 michael 5052 ;;
14341     :H)
14342     #
14343     # CONFIG_HEADER
14344     #
14345     if test x"$ac_file" != x-; then
14346 michael 5059 {
14347     $as_echo "/* $configure_input */" \
14348     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14349     } >"$ac_tmp/config.h" \
14350     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14351     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14352     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14353     $as_echo "$as_me: $ac_file is unchanged" >&6;}
14354 michael 5052 else
14355 michael 5059 rm -f "$ac_file"
14356     mv "$ac_tmp/config.h" "$ac_file" \
14357     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14358 michael 5052 fi
14359     else
14360 michael 5059 $as_echo "/* $configure_input */" \
14361     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14362     || as_fn_error $? "could not create -" "$LINENO" 5
14363 michael 5052 fi
14364 michael 5059 # Compute "$ac_file"'s index in $config_headers.
14365     _am_arg="$ac_file"
14366 michael 5052 _am_stamp_count=1
14367     for _am_header in $config_headers :; do
14368     case $_am_header in
14369 michael 5059 $_am_arg | $_am_arg:* )
14370 michael 5052 break ;;
14371     * )
14372     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14373     esac
14374     done
14375 michael 5059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14376     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14377     X"$_am_arg" : 'X\(//\)[^/]' \| \
14378     X"$_am_arg" : 'X\(//\)$' \| \
14379     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14380     $as_echo X"$_am_arg" |
14381 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14382     s//\1/
14383     q
14384     }
14385     /^X\(\/\/\)[^/].*/{
14386     s//\1/
14387     q
14388     }
14389     /^X\(\/\/\)$/{
14390     s//\1/
14391     q
14392     }
14393     /^X\(\/\).*/{
14394     s//\1/
14395     q
14396     }
14397     s/.*/./; q'`/stamp-h$_am_stamp_count
14398     ;;
14399    
14400 michael 5059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14401     $as_echo "$as_me: executing $ac_file commands" >&6;}
14402 michael 5052 ;;
14403     esac
14404    
14405    
14406     case $ac_file$ac_mode in
14407 michael 5059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14408     # Older Autoconf quotes --file arguments for eval, but not when files
14409     # are listed without --file. Let's play safe and only enable the eval
14410     # if we detect the quoting.
14411     case $CONFIG_FILES in
14412     *\'*) eval set x "$CONFIG_FILES" ;;
14413     *) set x $CONFIG_FILES ;;
14414     esac
14415     shift
14416     for mf
14417     do
14418     # Strip MF so we end up with the name of the file.
14419     mf=`echo "$mf" | sed -e 's/:.*$//'`
14420     # Check whether this is an Automake generated Makefile or not.
14421     # We used to match only the files named 'Makefile.in', but
14422     # some people rename them; so instead we look at the file content.
14423     # Grep'ing the first line is not enough: some people post-process
14424     # each Makefile.in and add a new line on top of each file to say so.
14425     # Grep'ing the whole file is not good either: AIX grep has a line
14426     # limit of 2048, but all sed's we know have understand at least 4000.
14427     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14428     dirpart=`$as_dirname -- "$mf" ||
14429 michael 5052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14430     X"$mf" : 'X\(//\)[^/]' \| \
14431     X"$mf" : 'X\(//\)$' \| \
14432     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14433 michael 5059 $as_echo X"$mf" |
14434 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14435     s//\1/
14436     q
14437     }
14438     /^X\(\/\/\)[^/].*/{
14439     s//\1/
14440     q
14441     }
14442     /^X\(\/\/\)$/{
14443     s//\1/
14444     q
14445     }
14446     /^X\(\/\).*/{
14447     s//\1/
14448     q
14449     }
14450     s/.*/./; q'`
14451 michael 5059 else
14452     continue
14453     fi
14454     # Extract the definition of DEPDIR, am__include, and am__quote
14455     # from the Makefile without running 'make'.
14456     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14457     test -z "$DEPDIR" && continue
14458     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14459     test -z "$am__include" && continue
14460     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14461     # Find all dependency output files, they are included files with
14462     # $(DEPDIR) in their names. We invoke sed twice because it is the
14463     # simplest approach to changing $(DEPDIR) to its actual value in the
14464     # expansion.
14465     for file in `sed -n "
14466     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14467     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14468     # Make sure the directory exists.
14469     test -f "$dirpart/$file" && continue
14470     fdir=`$as_dirname -- "$file" ||
14471 michael 5052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14472     X"$file" : 'X\(//\)[^/]' \| \
14473     X"$file" : 'X\(//\)$' \| \
14474     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14475 michael 5059 $as_echo X"$file" |
14476 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14477     s//\1/
14478     q
14479     }
14480     /^X\(\/\/\)[^/].*/{
14481     s//\1/
14482     q
14483     }
14484     /^X\(\/\/\)$/{
14485     s//\1/
14486     q
14487     }
14488     /^X\(\/\).*/{
14489     s//\1/
14490     q
14491     }
14492     s/.*/./; q'`
14493 michael 5059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14494     # echo "creating $dirpart/$file"
14495     echo '# dummy' > "$dirpart/$file"
14496 michael 5052 done
14497     done
14498 michael 5059 }
14499 michael 5052 ;;
14500 michael 5059 "libtool":C)
14501 michael 5052
14502 michael 5059 # See if we are running on zsh, and set the options that allow our
14503     # commands through without removal of \ escapes.
14504     if test -n "${ZSH_VERSION+set}"; then
14505     setopt NO_GLOB_SUBST
14506     fi
14507    
14508     cfgfile=${ofile}T
14509     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14510     $RM "$cfgfile"
14511    
14512     cat <<_LT_EOF >> "$cfgfile"
14513     #! $SHELL
14514     # Generated automatically by $as_me ($PACKAGE) $VERSION
14515     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14516     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14517    
14518     # Provide generalized library-building support services.
14519     # Written by Gordon Matzigkeit, 1996
14520    
14521     # Copyright (C) 2014 Free Software Foundation, Inc.
14522     # This is free software; see the source for copying conditions. There is NO
14523     # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14524    
14525     # GNU Libtool is free software; you can redistribute it and/or modify
14526     # it under the terms of the GNU General Public License as published by
14527     # the Free Software Foundation; either version 2 of of the License, or
14528     # (at your option) any later version.
14529     #
14530     # As a special exception to the GNU General Public License, if you
14531     # distribute this file as part of a program or library that is built
14532     # using GNU Libtool, you may include this file under the same
14533     # distribution terms that you use for the rest of that program.
14534     #
14535     # GNU Libtool is distributed in the hope that it will be useful, but
14536     # WITHOUT ANY WARRANTY; without even the implied warranty of
14537     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14538     # GNU General Public License for more details.
14539     #
14540     # You should have received a copy of the GNU General Public License
14541     # along with this program. If not, see <http://www.gnu.org/licenses/>.
14542    
14543    
14544     # The names of the tagged configurations supported by this script.
14545     available_tags=''
14546    
14547     # ### BEGIN LIBTOOL CONFIG
14548    
14549     # Which release of libtool.m4 was used?
14550     macro_version=$macro_version
14551     macro_revision=$macro_revision
14552    
14553     # Whether or not to build shared libraries.
14554     build_libtool_libs=$enable_shared
14555    
14556     # Whether or not to build static libraries.
14557     build_old_libs=$enable_static
14558    
14559     # What type of objects to build.
14560     pic_mode=$pic_mode
14561    
14562     # Whether or not to optimize for fast installation.
14563     fast_install=$enable_fast_install
14564    
14565     # Shared archive member basename,for filename based shared library versioning on AIX.
14566     shared_archive_member_spec=$shared_archive_member_spec
14567    
14568     # Shell to use when invoking shell scripts.
14569     SHELL=$lt_SHELL
14570    
14571     # An echo program that protects backslashes.
14572     ECHO=$lt_ECHO
14573    
14574     # The PATH separator for the build system.
14575     PATH_SEPARATOR=$lt_PATH_SEPARATOR
14576    
14577     # The host system.
14578     host_alias=$host_alias
14579     host=$host
14580     host_os=$host_os
14581    
14582     # The build system.
14583     build_alias=$build_alias
14584     build=$build
14585     build_os=$build_os
14586    
14587     # A sed program that does not truncate output.
14588     SED=$lt_SED
14589    
14590     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14591     Xsed="\$SED -e 1s/^X//"
14592    
14593     # A grep program that handles long lines.
14594     GREP=$lt_GREP
14595    
14596     # An ERE matcher.
14597     EGREP=$lt_EGREP
14598    
14599     # A literal string matcher.
14600     FGREP=$lt_FGREP
14601    
14602     # A BSD- or MS-compatible name lister.
14603     NM=$lt_NM
14604    
14605     # Whether we need soft or hard links.
14606     LN_S=$lt_LN_S
14607    
14608     # What is the maximum length of a command?
14609     max_cmd_len=$max_cmd_len
14610    
14611     # Object file suffix (normally "o").
14612     objext=$ac_objext
14613    
14614     # Executable file suffix (normally "").
14615     exeext=$exeext
14616    
14617     # whether the shell understands "unset".
14618     lt_unset=$lt_unset
14619    
14620     # turn spaces into newlines.
14621     SP2NL=$lt_lt_SP2NL
14622    
14623     # turn newlines into spaces.
14624     NL2SP=$lt_lt_NL2SP
14625    
14626     # convert \$build file names to \$host format.
14627     to_host_file_cmd=$lt_cv_to_host_file_cmd
14628    
14629     # convert \$build files to toolchain format.
14630     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14631    
14632     # An object symbol dumper.
14633     OBJDUMP=$lt_OBJDUMP
14634    
14635     # Method to check whether dependent libraries are shared objects.
14636     deplibs_check_method=$lt_deplibs_check_method
14637    
14638     # Command to use when deplibs_check_method = "file_magic".
14639     file_magic_cmd=$lt_file_magic_cmd
14640    
14641     # How to find potential files when deplibs_check_method = "file_magic".
14642     file_magic_glob=$lt_file_magic_glob
14643    
14644     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14645     want_nocaseglob=$lt_want_nocaseglob
14646    
14647     # DLL creation program.
14648     DLLTOOL=$lt_DLLTOOL
14649    
14650     # Command to associate shared and link libraries.
14651     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14652    
14653     # The archiver.
14654     AR=$lt_AR
14655    
14656     # Flags to create an archive.
14657     AR_FLAGS=$lt_AR_FLAGS
14658    
14659     # How to feed a file listing to the archiver.
14660     archiver_list_spec=$lt_archiver_list_spec
14661    
14662     # A symbol stripping program.
14663     STRIP=$lt_STRIP
14664    
14665     # Commands used to install an old-style archive.
14666     RANLIB=$lt_RANLIB
14667     old_postinstall_cmds=$lt_old_postinstall_cmds
14668     old_postuninstall_cmds=$lt_old_postuninstall_cmds
14669    
14670     # Whether to use a lock for old archive extraction.
14671     lock_old_archive_extraction=$lock_old_archive_extraction
14672    
14673     # A C compiler.
14674     LTCC=$lt_CC
14675    
14676     # LTCC compiler flags.
14677     LTCFLAGS=$lt_CFLAGS
14678    
14679     # Take the output of nm and produce a listing of raw symbols and C names.
14680     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14681    
14682     # Transform the output of nm in a proper C declaration.
14683     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14684    
14685     # Transform the output of nm into a list of symbols to manually relocate.
14686     global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14687    
14688     # Transform the output of nm in a C name address pair.
14689     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14690    
14691     # Transform the output of nm in a C name address pair when lib prefix is needed.
14692     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14693    
14694     # The name lister interface.
14695     nm_interface=$lt_lt_cv_nm_interface
14696    
14697     # Specify filename containing input files for \$NM.
14698     nm_file_list_spec=$lt_nm_file_list_spec
14699    
14700     # The root where to search for dependent libraries,and where our libraries should be installed.
14701     lt_sysroot=$lt_sysroot
14702    
14703     # Command to truncate a binary pipe.
14704     lt_truncate_bin=$lt_lt_cv_truncate_bin
14705    
14706     # The name of the directory that contains temporary libtool files.
14707     objdir=$objdir
14708    
14709     # Used to examine libraries when file_magic_cmd begins with "file".
14710     MAGIC_CMD=$MAGIC_CMD
14711    
14712     # Must we lock files when doing compilation?
14713     need_locks=$lt_need_locks
14714    
14715     # Manifest tool.
14716     MANIFEST_TOOL=$lt_MANIFEST_TOOL
14717    
14718     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14719     DSYMUTIL=$lt_DSYMUTIL
14720    
14721     # Tool to change global to local symbols on Mac OS X.
14722     NMEDIT=$lt_NMEDIT
14723    
14724     # Tool to manipulate fat objects and archives on Mac OS X.
14725     LIPO=$lt_LIPO
14726    
14727     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14728     OTOOL=$lt_OTOOL
14729    
14730     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14731     OTOOL64=$lt_OTOOL64
14732    
14733     # Old archive suffix (normally "a").
14734     libext=$libext
14735    
14736     # Shared library suffix (normally ".so").
14737     shrext_cmds=$lt_shrext_cmds
14738    
14739     # The commands to extract the exported symbol list from a shared archive.
14740     extract_expsyms_cmds=$lt_extract_expsyms_cmds
14741    
14742     # Variables whose values should be saved in libtool wrapper scripts and
14743     # restored at link time.
14744     variables_saved_for_relink=$lt_variables_saved_for_relink
14745    
14746     # Do we need the "lib" prefix for modules?
14747     need_lib_prefix=$need_lib_prefix
14748    
14749     # Do we need a version for libraries?
14750     need_version=$need_version
14751    
14752     # Library versioning type.
14753     version_type=$version_type
14754    
14755     # Shared library runtime path variable.
14756     runpath_var=$runpath_var
14757    
14758     # Shared library path variable.
14759     shlibpath_var=$shlibpath_var
14760    
14761     # Is shlibpath searched before the hard-coded library search path?
14762     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14763    
14764     # Format of library name prefix.
14765     libname_spec=$lt_libname_spec
14766    
14767     # List of archive names. First name is the real one, the rest are links.
14768     # The last name is the one that the linker finds with -lNAME
14769     library_names_spec=$lt_library_names_spec
14770    
14771     # The coded name of the library, if different from the real name.
14772     soname_spec=$lt_soname_spec
14773    
14774     # Permission mode override for installation of shared libraries.
14775     install_override_mode=$lt_install_override_mode
14776    
14777     # Command to use after installation of a shared archive.
14778     postinstall_cmds=$lt_postinstall_cmds
14779    
14780     # Command to use after uninstallation of a shared archive.
14781     postuninstall_cmds=$lt_postuninstall_cmds
14782    
14783     # Commands used to finish a libtool library installation in a directory.
14784     finish_cmds=$lt_finish_cmds
14785    
14786     # As "finish_cmds", except a single script fragment to be evaled but
14787     # not shown.
14788     finish_eval=$lt_finish_eval
14789    
14790     # Whether we should hardcode library paths into libraries.
14791     hardcode_into_libs=$hardcode_into_libs
14792    
14793     # Compile-time system search path for libraries.
14794     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14795    
14796     # Run-time system search path for libraries.
14797     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14798    
14799     # Whether dlopen is supported.
14800     dlopen_support=$enable_dlopen
14801    
14802     # Whether dlopen of programs is supported.
14803     dlopen_self=$enable_dlopen_self
14804    
14805     # Whether dlopen of statically linked programs is supported.
14806     dlopen_self_static=$enable_dlopen_self_static
14807    
14808     # Commands to strip libraries.
14809     old_striplib=$lt_old_striplib
14810     striplib=$lt_striplib
14811    
14812    
14813     # The linker used to build libraries.
14814     LD=$lt_LD
14815    
14816     # How to create reloadable object files.
14817     reload_flag=$lt_reload_flag
14818     reload_cmds=$lt_reload_cmds
14819    
14820     # Commands used to build an old-style archive.
14821     old_archive_cmds=$lt_old_archive_cmds
14822    
14823     # A language specific compiler.
14824     CC=$lt_compiler
14825    
14826     # Is the compiler the GNU compiler?
14827     with_gcc=$GCC
14828    
14829     # Compiler flag to turn off builtin functions.
14830     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14831    
14832     # Additional compiler flags for building library objects.
14833     pic_flag=$lt_lt_prog_compiler_pic
14834    
14835     # How to pass a linker flag through the compiler.
14836     wl=$lt_lt_prog_compiler_wl
14837    
14838     # Compiler flag to prevent dynamic linking.
14839     link_static_flag=$lt_lt_prog_compiler_static
14840    
14841     # Does compiler simultaneously support -c and -o options?
14842     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14843    
14844     # Whether or not to add -lc for building shared libraries.
14845     build_libtool_need_lc=$archive_cmds_need_lc
14846    
14847     # Whether or not to disallow shared libs when runtime libs are static.
14848     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14849    
14850     # Compiler flag to allow reflexive dlopens.
14851     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14852    
14853     # Compiler flag to generate shared objects directly from archives.
14854     whole_archive_flag_spec=$lt_whole_archive_flag_spec
14855    
14856     # Whether the compiler copes with passing no objects directly.
14857     compiler_needs_object=$lt_compiler_needs_object
14858    
14859     # Create an old-style archive from a shared archive.
14860     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14861    
14862     # Create a temporary old-style archive to link instead of a shared archive.
14863     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14864    
14865     # Commands used to build a shared archive.
14866     archive_cmds=$lt_archive_cmds
14867     archive_expsym_cmds=$lt_archive_expsym_cmds
14868    
14869     # Commands used to build a loadable module if different from building
14870     # a shared archive.
14871     module_cmds=$lt_module_cmds
14872     module_expsym_cmds=$lt_module_expsym_cmds
14873    
14874     # Whether we are building with GNU ld or not.
14875     with_gnu_ld=$lt_with_gnu_ld
14876    
14877     # Flag that allows shared libraries with undefined symbols to be built.
14878     allow_undefined_flag=$lt_allow_undefined_flag
14879    
14880     # Flag that enforces no undefined symbols.
14881     no_undefined_flag=$lt_no_undefined_flag
14882    
14883     # Flag to hardcode \$libdir into a binary during linking.
14884     # This must work even if \$libdir does not exist
14885     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14886    
14887     # Whether we need a single "-rpath" flag with a separated argument.
14888     hardcode_libdir_separator=$lt_hardcode_libdir_separator
14889    
14890     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14891     # DIR into the resulting binary.
14892     hardcode_direct=$hardcode_direct
14893    
14894     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14895     # DIR into the resulting binary and the resulting library dependency is
14896     # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14897     # library is relocated.
14898     hardcode_direct_absolute=$hardcode_direct_absolute
14899    
14900     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14901     # into the resulting binary.
14902     hardcode_minus_L=$hardcode_minus_L
14903    
14904     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14905     # into the resulting binary.
14906     hardcode_shlibpath_var=$hardcode_shlibpath_var
14907    
14908     # Set to "yes" if building a shared library automatically hardcodes DIR
14909     # into the library and all subsequent libraries and executables linked
14910     # against it.
14911     hardcode_automatic=$hardcode_automatic
14912    
14913     # Set to yes if linker adds runtime paths of dependent libraries
14914     # to runtime path list.
14915     inherit_rpath=$inherit_rpath
14916    
14917     # Whether libtool must link a program against all its dependency libraries.
14918     link_all_deplibs=$link_all_deplibs
14919    
14920     # Set to "yes" if exported symbols are required.
14921     always_export_symbols=$always_export_symbols
14922    
14923     # The commands to list exported symbols.
14924     export_symbols_cmds=$lt_export_symbols_cmds
14925    
14926     # Symbols that should not be listed in the preloaded symbols.
14927     exclude_expsyms=$lt_exclude_expsyms
14928    
14929     # Symbols that must always be exported.
14930     include_expsyms=$lt_include_expsyms
14931    
14932     # Commands necessary for linking programs (against libraries) with templates.
14933     prelink_cmds=$lt_prelink_cmds
14934    
14935     # Commands necessary for finishing linking programs.
14936     postlink_cmds=$lt_postlink_cmds
14937    
14938     # Specify filename containing input files.
14939     file_list_spec=$lt_file_list_spec
14940    
14941     # How to hardcode a shared library path into an executable.
14942     hardcode_action=$hardcode_action
14943    
14944     # ### END LIBTOOL CONFIG
14945    
14946     _LT_EOF
14947    
14948     case $host_os in
14949     aix3*)
14950     cat <<\_LT_EOF >> "$cfgfile"
14951     # AIX sometimes has problems with the GCC collect2 program. For some
14952     # reason, if we set the COLLECT_NAMES environment variable, the problems
14953     # vanish in a puff of smoke.
14954     if test set != "${COLLECT_NAMES+set}"; then
14955     COLLECT_NAMES=
14956     export COLLECT_NAMES
14957     fi
14958     _LT_EOF
14959     ;;
14960 michael 5052 esac
14961 michael 5059
14962    
14963     ltmain=$ac_aux_dir/ltmain.sh
14964    
14965    
14966     # We use sed instead of cat because bash on DJGPP gets confused if
14967     # if finds mixed CR/LF and LF-only lines. Since sed operates in
14968     # text mode, it properly converts lines to CR/LF. This bash problem
14969     # is reportedly fixed, but why not run on old versions too?
14970     sed '$q' "$ltmain" >> "$cfgfile" \
14971     || (rm -f "$cfgfile"; exit 1)
14972    
14973     mv -f "$cfgfile" "$ofile" ||
14974     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14975     chmod +x "$ofile"
14976    
14977     ;;
14978    
14979     esac
14980 michael 5052 done # for ac_tag
14981    
14982    
14983 michael 5059 as_fn_exit 0
14984 michael 5052 _ACEOF
14985     ac_clean_files=$ac_clean_files_save
14986    
14987 michael 5059 test $ac_write_fail = 0 ||
14988     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14989 michael 5052
14990 michael 5059
14991 michael 5052 # configure is writing to config.log, and then calls config.status.
14992     # config.status does its own redirection, appending to config.log.
14993     # Unfortunately, on DOS this fails, as config.log is still kept open
14994     # by configure, so config.status won't be able to write to it; its
14995     # output is simply discarded. So we exec the FD to /dev/null,
14996     # effectively closing config.log, so it can be properly (re)opened and
14997     # appended to by config.status. When coming back to configure, we
14998     # need to make the FD available again.
14999     if test "$no_create" != yes; then
15000     ac_cs_success=:
15001     ac_config_status_args=
15002     test "$silent" = yes &&
15003     ac_config_status_args="$ac_config_status_args --quiet"
15004     exec 5>/dev/null
15005     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15006     exec 5>>config.log
15007     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15008     # would make configure fail if this is the last instruction.
15009 michael 5059 $ac_cs_success || as_fn_exit 1
15010 michael 5052 fi
15011 michael 5059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15012     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15013     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15014     fi
15015 michael 5052
15016    
15017    
15018 michael 5110 echo "###############################################################################"
15019     echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
15020 michael 5052 echo
15021 michael 5110 echo "HOPM will be installed in ${prefix}. To change this, run:"
15022 michael 5052 echo " ./configure --prefix=DIRECTORY"
15023 michael 5110 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id